Commit 58cec37
authored
Add CustomModelDownloadService to retrieve download details about… (firebase#2134)
* Add new CustomModelDownloadService to retrieve download details about the CustomModel.
* Add tests for download service calls
* Change to mockwire standalone - now builds locally.
Test still needs work and code seems to actually run and not use mockwire?
* add first working wiremock unit test.
* add more wiremock unit test.
* Update the registrar to use CustomModelDownloadService.
* Update the registrar to use CustomModelDownloadService.
* Update the registrar to use CustomModelDownloadService.
* Update the registrar to use CustomModelDownloadService.
* Fixing returned task values and tests.
* Changing equals asserts.
* Fix errors caused by timestamp issues, hardcoding to UTC as that's the correct solution.
* Reviewer request updates.
* Reviewer request updates.
* Reviewer request updates.1 parent e568cc0 commit 58cec37
File tree
10 files changed
+722
-34
lines changed- firebase-ml-modeldownloader
- src
- main/java/com/google/firebase/ml/modeldownloader
- internal
- test/java/com/google/firebase/ml/modeldownloader
- internal
10 files changed
+722
-34
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
| 66 | + | |
60 | 67 | | |
Lines changed: 84 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | | - | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
53 | 55 | | |
54 | | - | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
61 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
62 | 103 | | |
63 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
64 | 109 | | |
65 | 110 | | |
66 | 111 | | |
67 | 112 | | |
68 | 113 | | |
| 114 | + | |
| 115 | + | |
69 | 116 | | |
70 | 117 | | |
71 | 118 | | |
| |||
81 | 128 | | |
82 | 129 | | |
83 | 130 | | |
84 | | - | |
| 131 | + | |
85 | 132 | | |
86 | 133 | | |
87 | 134 | | |
| |||
130 | 177 | | |
131 | 178 | | |
132 | 179 | | |
133 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
134 | 183 | | |
135 | 184 | | |
136 | 185 | | |
137 | 186 | | |
138 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
139 | 210 | | |
140 | 211 | | |
141 | 212 | | |
142 | 213 | | |
143 | 214 | | |
144 | 215 | | |
145 | | - | |
| 216 | + | |
146 | 217 | | |
147 | 218 | | |
148 | 219 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
0 commit comments