OLD | NEW |
1 library googleapis.safebrowsing.v4.test; | 1 library googleapis.safebrowsing.v4.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 checkClientInfo(api.ClientInfo o) { | 85 checkClientInfo(api.ClientInfo o) { |
86 buildCounterClientInfo++; | 86 buildCounterClientInfo++; |
87 if (buildCounterClientInfo < 3) { | 87 if (buildCounterClientInfo < 3) { |
88 unittest.expect(o.clientId, unittest.equals('foo')); | 88 unittest.expect(o.clientId, unittest.equals('foo')); |
89 unittest.expect(o.clientVersion, unittest.equals('foo')); | 89 unittest.expect(o.clientVersion, unittest.equals('foo')); |
90 } | 90 } |
91 buildCounterClientInfo--; | 91 buildCounterClientInfo--; |
92 } | 92 } |
93 | 93 |
94 buildUnnamed999() { | 94 buildUnnamed990() { |
95 var o = new core.List<core.String>(); | 95 var o = new core.List<core.String>(); |
96 o.add("foo"); | 96 o.add("foo"); |
97 o.add("foo"); | 97 o.add("foo"); |
98 return o; | 98 return o; |
99 } | 99 } |
100 | 100 |
101 checkUnnamed999(core.List<core.String> o) { | 101 checkUnnamed990(core.List<core.String> o) { |
102 unittest.expect(o, unittest.hasLength(2)); | 102 unittest.expect(o, unittest.hasLength(2)); |
103 unittest.expect(o[0], unittest.equals('foo')); | 103 unittest.expect(o[0], unittest.equals('foo')); |
104 unittest.expect(o[1], unittest.equals('foo')); | 104 unittest.expect(o[1], unittest.equals('foo')); |
105 } | 105 } |
106 | 106 |
107 core.int buildCounterConstraints = 0; | 107 core.int buildCounterConstraints = 0; |
108 buildConstraints() { | 108 buildConstraints() { |
109 var o = new api.Constraints(); | 109 var o = new api.Constraints(); |
110 buildCounterConstraints++; | 110 buildCounterConstraints++; |
111 if (buildCounterConstraints < 3) { | 111 if (buildCounterConstraints < 3) { |
112 o.maxDatabaseEntries = 42; | 112 o.maxDatabaseEntries = 42; |
113 o.maxUpdateEntries = 42; | 113 o.maxUpdateEntries = 42; |
114 o.region = "foo"; | 114 o.region = "foo"; |
115 o.supportedCompressions = buildUnnamed999(); | 115 o.supportedCompressions = buildUnnamed990(); |
116 } | 116 } |
117 buildCounterConstraints--; | 117 buildCounterConstraints--; |
118 return o; | 118 return o; |
119 } | 119 } |
120 | 120 |
121 checkConstraints(api.Constraints o) { | 121 checkConstraints(api.Constraints o) { |
122 buildCounterConstraints++; | 122 buildCounterConstraints++; |
123 if (buildCounterConstraints < 3) { | 123 if (buildCounterConstraints < 3) { |
124 unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); | 124 unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); |
125 unittest.expect(o.maxUpdateEntries, unittest.equals(42)); | 125 unittest.expect(o.maxUpdateEntries, unittest.equals(42)); |
126 unittest.expect(o.region, unittest.equals('foo')); | 126 unittest.expect(o.region, unittest.equals('foo')); |
127 checkUnnamed999(o.supportedCompressions); | 127 checkUnnamed990(o.supportedCompressions); |
128 } | 128 } |
129 buildCounterConstraints--; | 129 buildCounterConstraints--; |
130 } | 130 } |
131 | 131 |
132 buildUnnamed1000() { | 132 buildUnnamed991() { |
133 var o = new core.List<api.ListUpdateRequest>(); | 133 var o = new core.List<api.ListUpdateRequest>(); |
134 o.add(buildListUpdateRequest()); | 134 o.add(buildListUpdateRequest()); |
135 o.add(buildListUpdateRequest()); | 135 o.add(buildListUpdateRequest()); |
136 return o; | 136 return o; |
137 } | 137 } |
138 | 138 |
139 checkUnnamed1000(core.List<api.ListUpdateRequest> o) { | 139 checkUnnamed991(core.List<api.ListUpdateRequest> o) { |
140 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
141 checkListUpdateRequest(o[0]); | 141 checkListUpdateRequest(o[0]); |
142 checkListUpdateRequest(o[1]); | 142 checkListUpdateRequest(o[1]); |
143 } | 143 } |
144 | 144 |
145 core.int buildCounterFetchThreatListUpdatesRequest = 0; | 145 core.int buildCounterFetchThreatListUpdatesRequest = 0; |
146 buildFetchThreatListUpdatesRequest() { | 146 buildFetchThreatListUpdatesRequest() { |
147 var o = new api.FetchThreatListUpdatesRequest(); | 147 var o = new api.FetchThreatListUpdatesRequest(); |
148 buildCounterFetchThreatListUpdatesRequest++; | 148 buildCounterFetchThreatListUpdatesRequest++; |
149 if (buildCounterFetchThreatListUpdatesRequest < 3) { | 149 if (buildCounterFetchThreatListUpdatesRequest < 3) { |
150 o.client = buildClientInfo(); | 150 o.client = buildClientInfo(); |
151 o.listUpdateRequests = buildUnnamed1000(); | 151 o.listUpdateRequests = buildUnnamed991(); |
152 } | 152 } |
153 buildCounterFetchThreatListUpdatesRequest--; | 153 buildCounterFetchThreatListUpdatesRequest--; |
154 return o; | 154 return o; |
155 } | 155 } |
156 | 156 |
157 checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) { | 157 checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) { |
158 buildCounterFetchThreatListUpdatesRequest++; | 158 buildCounterFetchThreatListUpdatesRequest++; |
159 if (buildCounterFetchThreatListUpdatesRequest < 3) { | 159 if (buildCounterFetchThreatListUpdatesRequest < 3) { |
160 checkClientInfo(o.client); | 160 checkClientInfo(o.client); |
161 checkUnnamed1000(o.listUpdateRequests); | 161 checkUnnamed991(o.listUpdateRequests); |
162 } | 162 } |
163 buildCounterFetchThreatListUpdatesRequest--; | 163 buildCounterFetchThreatListUpdatesRequest--; |
164 } | 164 } |
165 | 165 |
166 buildUnnamed1001() { | 166 buildUnnamed992() { |
167 var o = new core.List<api.ListUpdateResponse>(); | 167 var o = new core.List<api.ListUpdateResponse>(); |
168 o.add(buildListUpdateResponse()); | 168 o.add(buildListUpdateResponse()); |
169 o.add(buildListUpdateResponse()); | 169 o.add(buildListUpdateResponse()); |
170 return o; | 170 return o; |
171 } | 171 } |
172 | 172 |
173 checkUnnamed1001(core.List<api.ListUpdateResponse> o) { | 173 checkUnnamed992(core.List<api.ListUpdateResponse> o) { |
174 unittest.expect(o, unittest.hasLength(2)); | 174 unittest.expect(o, unittest.hasLength(2)); |
175 checkListUpdateResponse(o[0]); | 175 checkListUpdateResponse(o[0]); |
176 checkListUpdateResponse(o[1]); | 176 checkListUpdateResponse(o[1]); |
177 } | 177 } |
178 | 178 |
179 core.int buildCounterFetchThreatListUpdatesResponse = 0; | 179 core.int buildCounterFetchThreatListUpdatesResponse = 0; |
180 buildFetchThreatListUpdatesResponse() { | 180 buildFetchThreatListUpdatesResponse() { |
181 var o = new api.FetchThreatListUpdatesResponse(); | 181 var o = new api.FetchThreatListUpdatesResponse(); |
182 buildCounterFetchThreatListUpdatesResponse++; | 182 buildCounterFetchThreatListUpdatesResponse++; |
183 if (buildCounterFetchThreatListUpdatesResponse < 3) { | 183 if (buildCounterFetchThreatListUpdatesResponse < 3) { |
184 o.listUpdateResponses = buildUnnamed1001(); | 184 o.listUpdateResponses = buildUnnamed992(); |
185 o.minimumWaitDuration = "foo"; | 185 o.minimumWaitDuration = "foo"; |
186 } | 186 } |
187 buildCounterFetchThreatListUpdatesResponse--; | 187 buildCounterFetchThreatListUpdatesResponse--; |
188 return o; | 188 return o; |
189 } | 189 } |
190 | 190 |
191 checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { | 191 checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { |
192 buildCounterFetchThreatListUpdatesResponse++; | 192 buildCounterFetchThreatListUpdatesResponse++; |
193 if (buildCounterFetchThreatListUpdatesResponse < 3) { | 193 if (buildCounterFetchThreatListUpdatesResponse < 3) { |
194 checkUnnamed1001(o.listUpdateResponses); | 194 checkUnnamed992(o.listUpdateResponses); |
195 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); | 195 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); |
196 } | 196 } |
197 buildCounterFetchThreatListUpdatesResponse--; | 197 buildCounterFetchThreatListUpdatesResponse--; |
198 } | 198 } |
199 | 199 |
200 buildUnnamed1002() { | 200 buildUnnamed993() { |
201 var o = new core.List<core.String>(); | 201 var o = new core.List<core.String>(); |
202 o.add("foo"); | 202 o.add("foo"); |
203 o.add("foo"); | 203 o.add("foo"); |
204 return o; | 204 return o; |
205 } | 205 } |
206 | 206 |
207 checkUnnamed1002(core.List<core.String> o) { | 207 checkUnnamed993(core.List<core.String> o) { |
208 unittest.expect(o, unittest.hasLength(2)); | 208 unittest.expect(o, unittest.hasLength(2)); |
209 unittest.expect(o[0], unittest.equals('foo')); | 209 unittest.expect(o[0], unittest.equals('foo')); |
210 unittest.expect(o[1], unittest.equals('foo')); | 210 unittest.expect(o[1], unittest.equals('foo')); |
211 } | 211 } |
212 | 212 |
213 core.int buildCounterFindFullHashesRequest = 0; | 213 core.int buildCounterFindFullHashesRequest = 0; |
214 buildFindFullHashesRequest() { | 214 buildFindFullHashesRequest() { |
215 var o = new api.FindFullHashesRequest(); | 215 var o = new api.FindFullHashesRequest(); |
216 buildCounterFindFullHashesRequest++; | 216 buildCounterFindFullHashesRequest++; |
217 if (buildCounterFindFullHashesRequest < 3) { | 217 if (buildCounterFindFullHashesRequest < 3) { |
218 o.apiClient = buildClientInfo(); | 218 o.apiClient = buildClientInfo(); |
219 o.client = buildClientInfo(); | 219 o.client = buildClientInfo(); |
220 o.clientStates = buildUnnamed1002(); | 220 o.clientStates = buildUnnamed993(); |
221 o.threatInfo = buildThreatInfo(); | 221 o.threatInfo = buildThreatInfo(); |
222 } | 222 } |
223 buildCounterFindFullHashesRequest--; | 223 buildCounterFindFullHashesRequest--; |
224 return o; | 224 return o; |
225 } | 225 } |
226 | 226 |
227 checkFindFullHashesRequest(api.FindFullHashesRequest o) { | 227 checkFindFullHashesRequest(api.FindFullHashesRequest o) { |
228 buildCounterFindFullHashesRequest++; | 228 buildCounterFindFullHashesRequest++; |
229 if (buildCounterFindFullHashesRequest < 3) { | 229 if (buildCounterFindFullHashesRequest < 3) { |
230 checkClientInfo(o.apiClient); | 230 checkClientInfo(o.apiClient); |
231 checkClientInfo(o.client); | 231 checkClientInfo(o.client); |
232 checkUnnamed1002(o.clientStates); | 232 checkUnnamed993(o.clientStates); |
233 checkThreatInfo(o.threatInfo); | 233 checkThreatInfo(o.threatInfo); |
234 } | 234 } |
235 buildCounterFindFullHashesRequest--; | 235 buildCounterFindFullHashesRequest--; |
236 } | 236 } |
237 | 237 |
238 buildUnnamed1003() { | 238 buildUnnamed994() { |
239 var o = new core.List<api.ThreatMatch>(); | 239 var o = new core.List<api.ThreatMatch>(); |
240 o.add(buildThreatMatch()); | 240 o.add(buildThreatMatch()); |
241 o.add(buildThreatMatch()); | 241 o.add(buildThreatMatch()); |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkUnnamed1003(core.List<api.ThreatMatch> o) { | 245 checkUnnamed994(core.List<api.ThreatMatch> o) { |
246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
247 checkThreatMatch(o[0]); | 247 checkThreatMatch(o[0]); |
248 checkThreatMatch(o[1]); | 248 checkThreatMatch(o[1]); |
249 } | 249 } |
250 | 250 |
251 core.int buildCounterFindFullHashesResponse = 0; | 251 core.int buildCounterFindFullHashesResponse = 0; |
252 buildFindFullHashesResponse() { | 252 buildFindFullHashesResponse() { |
253 var o = new api.FindFullHashesResponse(); | 253 var o = new api.FindFullHashesResponse(); |
254 buildCounterFindFullHashesResponse++; | 254 buildCounterFindFullHashesResponse++; |
255 if (buildCounterFindFullHashesResponse < 3) { | 255 if (buildCounterFindFullHashesResponse < 3) { |
256 o.matches = buildUnnamed1003(); | 256 o.matches = buildUnnamed994(); |
257 o.minimumWaitDuration = "foo"; | 257 o.minimumWaitDuration = "foo"; |
258 o.negativeCacheDuration = "foo"; | 258 o.negativeCacheDuration = "foo"; |
259 } | 259 } |
260 buildCounterFindFullHashesResponse--; | 260 buildCounterFindFullHashesResponse--; |
261 return o; | 261 return o; |
262 } | 262 } |
263 | 263 |
264 checkFindFullHashesResponse(api.FindFullHashesResponse o) { | 264 checkFindFullHashesResponse(api.FindFullHashesResponse o) { |
265 buildCounterFindFullHashesResponse++; | 265 buildCounterFindFullHashesResponse++; |
266 if (buildCounterFindFullHashesResponse < 3) { | 266 if (buildCounterFindFullHashesResponse < 3) { |
267 checkUnnamed1003(o.matches); | 267 checkUnnamed994(o.matches); |
268 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); | 268 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); |
269 unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); | 269 unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); |
270 } | 270 } |
271 buildCounterFindFullHashesResponse--; | 271 buildCounterFindFullHashesResponse--; |
272 } | 272 } |
273 | 273 |
274 core.int buildCounterFindThreatMatchesRequest = 0; | 274 core.int buildCounterFindThreatMatchesRequest = 0; |
275 buildFindThreatMatchesRequest() { | 275 buildFindThreatMatchesRequest() { |
276 var o = new api.FindThreatMatchesRequest(); | 276 var o = new api.FindThreatMatchesRequest(); |
277 buildCounterFindThreatMatchesRequest++; | 277 buildCounterFindThreatMatchesRequest++; |
278 if (buildCounterFindThreatMatchesRequest < 3) { | 278 if (buildCounterFindThreatMatchesRequest < 3) { |
279 o.client = buildClientInfo(); | 279 o.client = buildClientInfo(); |
280 o.threatInfo = buildThreatInfo(); | 280 o.threatInfo = buildThreatInfo(); |
281 } | 281 } |
282 buildCounterFindThreatMatchesRequest--; | 282 buildCounterFindThreatMatchesRequest--; |
283 return o; | 283 return o; |
284 } | 284 } |
285 | 285 |
286 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) { | 286 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) { |
287 buildCounterFindThreatMatchesRequest++; | 287 buildCounterFindThreatMatchesRequest++; |
288 if (buildCounterFindThreatMatchesRequest < 3) { | 288 if (buildCounterFindThreatMatchesRequest < 3) { |
289 checkClientInfo(o.client); | 289 checkClientInfo(o.client); |
290 checkThreatInfo(o.threatInfo); | 290 checkThreatInfo(o.threatInfo); |
291 } | 291 } |
292 buildCounterFindThreatMatchesRequest--; | 292 buildCounterFindThreatMatchesRequest--; |
293 } | 293 } |
294 | 294 |
295 buildUnnamed1004() { | 295 buildUnnamed995() { |
296 var o = new core.List<api.ThreatMatch>(); | 296 var o = new core.List<api.ThreatMatch>(); |
297 o.add(buildThreatMatch()); | 297 o.add(buildThreatMatch()); |
298 o.add(buildThreatMatch()); | 298 o.add(buildThreatMatch()); |
299 return o; | 299 return o; |
300 } | 300 } |
301 | 301 |
302 checkUnnamed1004(core.List<api.ThreatMatch> o) { | 302 checkUnnamed995(core.List<api.ThreatMatch> o) { |
303 unittest.expect(o, unittest.hasLength(2)); | 303 unittest.expect(o, unittest.hasLength(2)); |
304 checkThreatMatch(o[0]); | 304 checkThreatMatch(o[0]); |
305 checkThreatMatch(o[1]); | 305 checkThreatMatch(o[1]); |
306 } | 306 } |
307 | 307 |
308 core.int buildCounterFindThreatMatchesResponse = 0; | 308 core.int buildCounterFindThreatMatchesResponse = 0; |
309 buildFindThreatMatchesResponse() { | 309 buildFindThreatMatchesResponse() { |
310 var o = new api.FindThreatMatchesResponse(); | 310 var o = new api.FindThreatMatchesResponse(); |
311 buildCounterFindThreatMatchesResponse++; | 311 buildCounterFindThreatMatchesResponse++; |
312 if (buildCounterFindThreatMatchesResponse < 3) { | 312 if (buildCounterFindThreatMatchesResponse < 3) { |
313 o.matches = buildUnnamed1004(); | 313 o.matches = buildUnnamed995(); |
314 } | 314 } |
315 buildCounterFindThreatMatchesResponse--; | 315 buildCounterFindThreatMatchesResponse--; |
316 return o; | 316 return o; |
317 } | 317 } |
318 | 318 |
319 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { | 319 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { |
320 buildCounterFindThreatMatchesResponse++; | 320 buildCounterFindThreatMatchesResponse++; |
321 if (buildCounterFindThreatMatchesResponse < 3) { | 321 if (buildCounterFindThreatMatchesResponse < 3) { |
322 checkUnnamed1004(o.matches); | 322 checkUnnamed995(o.matches); |
323 } | 323 } |
324 buildCounterFindThreatMatchesResponse--; | 324 buildCounterFindThreatMatchesResponse--; |
325 } | 325 } |
326 | 326 |
327 buildUnnamed1005() { | 327 buildUnnamed996() { |
328 var o = new core.List<api.ThreatListDescriptor>(); | 328 var o = new core.List<api.ThreatListDescriptor>(); |
329 o.add(buildThreatListDescriptor()); | 329 o.add(buildThreatListDescriptor()); |
330 o.add(buildThreatListDescriptor()); | 330 o.add(buildThreatListDescriptor()); |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkUnnamed1005(core.List<api.ThreatListDescriptor> o) { | 334 checkUnnamed996(core.List<api.ThreatListDescriptor> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
336 checkThreatListDescriptor(o[0]); | 336 checkThreatListDescriptor(o[0]); |
337 checkThreatListDescriptor(o[1]); | 337 checkThreatListDescriptor(o[1]); |
338 } | 338 } |
339 | 339 |
340 core.int buildCounterListThreatListsResponse = 0; | 340 core.int buildCounterListThreatListsResponse = 0; |
341 buildListThreatListsResponse() { | 341 buildListThreatListsResponse() { |
342 var o = new api.ListThreatListsResponse(); | 342 var o = new api.ListThreatListsResponse(); |
343 buildCounterListThreatListsResponse++; | 343 buildCounterListThreatListsResponse++; |
344 if (buildCounterListThreatListsResponse < 3) { | 344 if (buildCounterListThreatListsResponse < 3) { |
345 o.threatLists = buildUnnamed1005(); | 345 o.threatLists = buildUnnamed996(); |
346 } | 346 } |
347 buildCounterListThreatListsResponse--; | 347 buildCounterListThreatListsResponse--; |
348 return o; | 348 return o; |
349 } | 349 } |
350 | 350 |
351 checkListThreatListsResponse(api.ListThreatListsResponse o) { | 351 checkListThreatListsResponse(api.ListThreatListsResponse o) { |
352 buildCounterListThreatListsResponse++; | 352 buildCounterListThreatListsResponse++; |
353 if (buildCounterListThreatListsResponse < 3) { | 353 if (buildCounterListThreatListsResponse < 3) { |
354 checkUnnamed1005(o.threatLists); | 354 checkUnnamed996(o.threatLists); |
355 } | 355 } |
356 buildCounterListThreatListsResponse--; | 356 buildCounterListThreatListsResponse--; |
357 } | 357 } |
358 | 358 |
359 core.int buildCounterListUpdateRequest = 0; | 359 core.int buildCounterListUpdateRequest = 0; |
360 buildListUpdateRequest() { | 360 buildListUpdateRequest() { |
361 var o = new api.ListUpdateRequest(); | 361 var o = new api.ListUpdateRequest(); |
362 buildCounterListUpdateRequest++; | 362 buildCounterListUpdateRequest++; |
363 if (buildCounterListUpdateRequest < 3) { | 363 if (buildCounterListUpdateRequest < 3) { |
364 o.constraints = buildConstraints(); | 364 o.constraints = buildConstraints(); |
(...skipping 11 matching lines...) Expand all Loading... |
376 if (buildCounterListUpdateRequest < 3) { | 376 if (buildCounterListUpdateRequest < 3) { |
377 checkConstraints(o.constraints); | 377 checkConstraints(o.constraints); |
378 unittest.expect(o.platformType, unittest.equals('foo')); | 378 unittest.expect(o.platformType, unittest.equals('foo')); |
379 unittest.expect(o.state, unittest.equals('foo')); | 379 unittest.expect(o.state, unittest.equals('foo')); |
380 unittest.expect(o.threatEntryType, unittest.equals('foo')); | 380 unittest.expect(o.threatEntryType, unittest.equals('foo')); |
381 unittest.expect(o.threatType, unittest.equals('foo')); | 381 unittest.expect(o.threatType, unittest.equals('foo')); |
382 } | 382 } |
383 buildCounterListUpdateRequest--; | 383 buildCounterListUpdateRequest--; |
384 } | 384 } |
385 | 385 |
386 buildUnnamed1006() { | 386 buildUnnamed997() { |
387 var o = new core.List<api.ThreatEntrySet>(); | 387 var o = new core.List<api.ThreatEntrySet>(); |
388 o.add(buildThreatEntrySet()); | 388 o.add(buildThreatEntrySet()); |
389 o.add(buildThreatEntrySet()); | 389 o.add(buildThreatEntrySet()); |
390 return o; | 390 return o; |
391 } | 391 } |
392 | 392 |
393 checkUnnamed1006(core.List<api.ThreatEntrySet> o) { | 393 checkUnnamed997(core.List<api.ThreatEntrySet> o) { |
394 unittest.expect(o, unittest.hasLength(2)); | 394 unittest.expect(o, unittest.hasLength(2)); |
395 checkThreatEntrySet(o[0]); | 395 checkThreatEntrySet(o[0]); |
396 checkThreatEntrySet(o[1]); | 396 checkThreatEntrySet(o[1]); |
397 } | 397 } |
398 | 398 |
399 buildUnnamed1007() { | 399 buildUnnamed998() { |
400 var o = new core.List<api.ThreatEntrySet>(); | 400 var o = new core.List<api.ThreatEntrySet>(); |
401 o.add(buildThreatEntrySet()); | 401 o.add(buildThreatEntrySet()); |
402 o.add(buildThreatEntrySet()); | 402 o.add(buildThreatEntrySet()); |
403 return o; | 403 return o; |
404 } | 404 } |
405 | 405 |
406 checkUnnamed1007(core.List<api.ThreatEntrySet> o) { | 406 checkUnnamed998(core.List<api.ThreatEntrySet> o) { |
407 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
408 checkThreatEntrySet(o[0]); | 408 checkThreatEntrySet(o[0]); |
409 checkThreatEntrySet(o[1]); | 409 checkThreatEntrySet(o[1]); |
410 } | 410 } |
411 | 411 |
412 core.int buildCounterListUpdateResponse = 0; | 412 core.int buildCounterListUpdateResponse = 0; |
413 buildListUpdateResponse() { | 413 buildListUpdateResponse() { |
414 var o = new api.ListUpdateResponse(); | 414 var o = new api.ListUpdateResponse(); |
415 buildCounterListUpdateResponse++; | 415 buildCounterListUpdateResponse++; |
416 if (buildCounterListUpdateResponse < 3) { | 416 if (buildCounterListUpdateResponse < 3) { |
417 o.additions = buildUnnamed1006(); | 417 o.additions = buildUnnamed997(); |
418 o.checksum = buildChecksum(); | 418 o.checksum = buildChecksum(); |
419 o.newClientState = "foo"; | 419 o.newClientState = "foo"; |
420 o.platformType = "foo"; | 420 o.platformType = "foo"; |
421 o.removals = buildUnnamed1007(); | 421 o.removals = buildUnnamed998(); |
422 o.responseType = "foo"; | 422 o.responseType = "foo"; |
423 o.threatEntryType = "foo"; | 423 o.threatEntryType = "foo"; |
424 o.threatType = "foo"; | 424 o.threatType = "foo"; |
425 } | 425 } |
426 buildCounterListUpdateResponse--; | 426 buildCounterListUpdateResponse--; |
427 return o; | 427 return o; |
428 } | 428 } |
429 | 429 |
430 checkListUpdateResponse(api.ListUpdateResponse o) { | 430 checkListUpdateResponse(api.ListUpdateResponse o) { |
431 buildCounterListUpdateResponse++; | 431 buildCounterListUpdateResponse++; |
432 if (buildCounterListUpdateResponse < 3) { | 432 if (buildCounterListUpdateResponse < 3) { |
433 checkUnnamed1006(o.additions); | 433 checkUnnamed997(o.additions); |
434 checkChecksum(o.checksum); | 434 checkChecksum(o.checksum); |
435 unittest.expect(o.newClientState, unittest.equals('foo')); | 435 unittest.expect(o.newClientState, unittest.equals('foo')); |
436 unittest.expect(o.platformType, unittest.equals('foo')); | 436 unittest.expect(o.platformType, unittest.equals('foo')); |
437 checkUnnamed1007(o.removals); | 437 checkUnnamed998(o.removals); |
438 unittest.expect(o.responseType, unittest.equals('foo')); | 438 unittest.expect(o.responseType, unittest.equals('foo')); |
439 unittest.expect(o.threatEntryType, unittest.equals('foo')); | 439 unittest.expect(o.threatEntryType, unittest.equals('foo')); |
440 unittest.expect(o.threatType, unittest.equals('foo')); | 440 unittest.expect(o.threatType, unittest.equals('foo')); |
441 } | 441 } |
442 buildCounterListUpdateResponse--; | 442 buildCounterListUpdateResponse--; |
443 } | 443 } |
444 | 444 |
445 core.int buildCounterMetadataEntry = 0; | 445 core.int buildCounterMetadataEntry = 0; |
446 buildMetadataEntry() { | 446 buildMetadataEntry() { |
447 var o = new api.MetadataEntry(); | 447 var o = new api.MetadataEntry(); |
(...skipping 29 matching lines...) Expand all Loading... |
477 | 477 |
478 checkRawHashes(api.RawHashes o) { | 478 checkRawHashes(api.RawHashes o) { |
479 buildCounterRawHashes++; | 479 buildCounterRawHashes++; |
480 if (buildCounterRawHashes < 3) { | 480 if (buildCounterRawHashes < 3) { |
481 unittest.expect(o.prefixSize, unittest.equals(42)); | 481 unittest.expect(o.prefixSize, unittest.equals(42)); |
482 unittest.expect(o.rawHashes, unittest.equals('foo')); | 482 unittest.expect(o.rawHashes, unittest.equals('foo')); |
483 } | 483 } |
484 buildCounterRawHashes--; | 484 buildCounterRawHashes--; |
485 } | 485 } |
486 | 486 |
487 buildUnnamed1008() { | 487 buildUnnamed999() { |
488 var o = new core.List<core.int>(); | 488 var o = new core.List<core.int>(); |
489 o.add(42); | 489 o.add(42); |
490 o.add(42); | 490 o.add(42); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed1008(core.List<core.int> o) { | 494 checkUnnamed999(core.List<core.int> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 unittest.expect(o[0], unittest.equals(42)); | 496 unittest.expect(o[0], unittest.equals(42)); |
497 unittest.expect(o[1], unittest.equals(42)); | 497 unittest.expect(o[1], unittest.equals(42)); |
498 } | 498 } |
499 | 499 |
500 core.int buildCounterRawIndices = 0; | 500 core.int buildCounterRawIndices = 0; |
501 buildRawIndices() { | 501 buildRawIndices() { |
502 var o = new api.RawIndices(); | 502 var o = new api.RawIndices(); |
503 buildCounterRawIndices++; | 503 buildCounterRawIndices++; |
504 if (buildCounterRawIndices < 3) { | 504 if (buildCounterRawIndices < 3) { |
505 o.indices = buildUnnamed1008(); | 505 o.indices = buildUnnamed999(); |
506 } | 506 } |
507 buildCounterRawIndices--; | 507 buildCounterRawIndices--; |
508 return o; | 508 return o; |
509 } | 509 } |
510 | 510 |
511 checkRawIndices(api.RawIndices o) { | 511 checkRawIndices(api.RawIndices o) { |
512 buildCounterRawIndices++; | 512 buildCounterRawIndices++; |
513 if (buildCounterRawIndices < 3) { | 513 if (buildCounterRawIndices < 3) { |
514 checkUnnamed1008(o.indices); | 514 checkUnnamed999(o.indices); |
515 } | 515 } |
516 buildCounterRawIndices--; | 516 buildCounterRawIndices--; |
517 } | 517 } |
518 | 518 |
519 core.int buildCounterRiceDeltaEncoding = 0; | 519 core.int buildCounterRiceDeltaEncoding = 0; |
520 buildRiceDeltaEncoding() { | 520 buildRiceDeltaEncoding() { |
521 var o = new api.RiceDeltaEncoding(); | 521 var o = new api.RiceDeltaEncoding(); |
522 buildCounterRiceDeltaEncoding++; | 522 buildCounterRiceDeltaEncoding++; |
523 if (buildCounterRiceDeltaEncoding < 3) { | 523 if (buildCounterRiceDeltaEncoding < 3) { |
524 o.encodedData = "foo"; | 524 o.encodedData = "foo"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 checkThreatEntry(api.ThreatEntry o) { | 557 checkThreatEntry(api.ThreatEntry o) { |
558 buildCounterThreatEntry++; | 558 buildCounterThreatEntry++; |
559 if (buildCounterThreatEntry < 3) { | 559 if (buildCounterThreatEntry < 3) { |
560 unittest.expect(o.digest, unittest.equals('foo')); | 560 unittest.expect(o.digest, unittest.equals('foo')); |
561 unittest.expect(o.hash, unittest.equals('foo')); | 561 unittest.expect(o.hash, unittest.equals('foo')); |
562 unittest.expect(o.url, unittest.equals('foo')); | 562 unittest.expect(o.url, unittest.equals('foo')); |
563 } | 563 } |
564 buildCounterThreatEntry--; | 564 buildCounterThreatEntry--; |
565 } | 565 } |
566 | 566 |
567 buildUnnamed1009() { | 567 buildUnnamed1000() { |
568 var o = new core.List<api.MetadataEntry>(); | 568 var o = new core.List<api.MetadataEntry>(); |
569 o.add(buildMetadataEntry()); | 569 o.add(buildMetadataEntry()); |
570 o.add(buildMetadataEntry()); | 570 o.add(buildMetadataEntry()); |
571 return o; | 571 return o; |
572 } | 572 } |
573 | 573 |
574 checkUnnamed1009(core.List<api.MetadataEntry> o) { | 574 checkUnnamed1000(core.List<api.MetadataEntry> o) { |
575 unittest.expect(o, unittest.hasLength(2)); | 575 unittest.expect(o, unittest.hasLength(2)); |
576 checkMetadataEntry(o[0]); | 576 checkMetadataEntry(o[0]); |
577 checkMetadataEntry(o[1]); | 577 checkMetadataEntry(o[1]); |
578 } | 578 } |
579 | 579 |
580 core.int buildCounterThreatEntryMetadata = 0; | 580 core.int buildCounterThreatEntryMetadata = 0; |
581 buildThreatEntryMetadata() { | 581 buildThreatEntryMetadata() { |
582 var o = new api.ThreatEntryMetadata(); | 582 var o = new api.ThreatEntryMetadata(); |
583 buildCounterThreatEntryMetadata++; | 583 buildCounterThreatEntryMetadata++; |
584 if (buildCounterThreatEntryMetadata < 3) { | 584 if (buildCounterThreatEntryMetadata < 3) { |
585 o.entries = buildUnnamed1009(); | 585 o.entries = buildUnnamed1000(); |
586 } | 586 } |
587 buildCounterThreatEntryMetadata--; | 587 buildCounterThreatEntryMetadata--; |
588 return o; | 588 return o; |
589 } | 589 } |
590 | 590 |
591 checkThreatEntryMetadata(api.ThreatEntryMetadata o) { | 591 checkThreatEntryMetadata(api.ThreatEntryMetadata o) { |
592 buildCounterThreatEntryMetadata++; | 592 buildCounterThreatEntryMetadata++; |
593 if (buildCounterThreatEntryMetadata < 3) { | 593 if (buildCounterThreatEntryMetadata < 3) { |
594 checkUnnamed1009(o.entries); | 594 checkUnnamed1000(o.entries); |
595 } | 595 } |
596 buildCounterThreatEntryMetadata--; | 596 buildCounterThreatEntryMetadata--; |
597 } | 597 } |
598 | 598 |
599 core.int buildCounterThreatEntrySet = 0; | 599 core.int buildCounterThreatEntrySet = 0; |
600 buildThreatEntrySet() { | 600 buildThreatEntrySet() { |
601 var o = new api.ThreatEntrySet(); | 601 var o = new api.ThreatEntrySet(); |
602 buildCounterThreatEntrySet++; | 602 buildCounterThreatEntrySet++; |
603 if (buildCounterThreatEntrySet < 3) { | 603 if (buildCounterThreatEntrySet < 3) { |
604 o.compressionType = "foo"; | 604 o.compressionType = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
616 if (buildCounterThreatEntrySet < 3) { | 616 if (buildCounterThreatEntrySet < 3) { |
617 unittest.expect(o.compressionType, unittest.equals('foo')); | 617 unittest.expect(o.compressionType, unittest.equals('foo')); |
618 checkRawHashes(o.rawHashes); | 618 checkRawHashes(o.rawHashes); |
619 checkRawIndices(o.rawIndices); | 619 checkRawIndices(o.rawIndices); |
620 checkRiceDeltaEncoding(o.riceHashes); | 620 checkRiceDeltaEncoding(o.riceHashes); |
621 checkRiceDeltaEncoding(o.riceIndices); | 621 checkRiceDeltaEncoding(o.riceIndices); |
622 } | 622 } |
623 buildCounterThreatEntrySet--; | 623 buildCounterThreatEntrySet--; |
624 } | 624 } |
625 | 625 |
626 buildUnnamed1010() { | 626 buildUnnamed1001() { |
627 var o = new core.List<core.String>(); | 627 var o = new core.List<core.String>(); |
628 o.add("foo"); | 628 o.add("foo"); |
629 o.add("foo"); | 629 o.add("foo"); |
630 return o; | 630 return o; |
631 } | 631 } |
632 | 632 |
633 checkUnnamed1010(core.List<core.String> o) { | 633 checkUnnamed1001(core.List<core.String> o) { |
634 unittest.expect(o, unittest.hasLength(2)); | 634 unittest.expect(o, unittest.hasLength(2)); |
635 unittest.expect(o[0], unittest.equals('foo')); | 635 unittest.expect(o[0], unittest.equals('foo')); |
636 unittest.expect(o[1], unittest.equals('foo')); | 636 unittest.expect(o[1], unittest.equals('foo')); |
637 } | 637 } |
638 | 638 |
639 buildUnnamed1011() { | 639 buildUnnamed1002() { |
640 var o = new core.List<api.ThreatEntry>(); | 640 var o = new core.List<api.ThreatEntry>(); |
641 o.add(buildThreatEntry()); | 641 o.add(buildThreatEntry()); |
642 o.add(buildThreatEntry()); | 642 o.add(buildThreatEntry()); |
643 return o; | 643 return o; |
644 } | 644 } |
645 | 645 |
646 checkUnnamed1011(core.List<api.ThreatEntry> o) { | 646 checkUnnamed1002(core.List<api.ThreatEntry> o) { |
647 unittest.expect(o, unittest.hasLength(2)); | 647 unittest.expect(o, unittest.hasLength(2)); |
648 checkThreatEntry(o[0]); | 648 checkThreatEntry(o[0]); |
649 checkThreatEntry(o[1]); | 649 checkThreatEntry(o[1]); |
650 } | 650 } |
651 | 651 |
652 buildUnnamed1012() { | 652 buildUnnamed1003() { |
653 var o = new core.List<core.String>(); | 653 var o = new core.List<core.String>(); |
654 o.add("foo"); | 654 o.add("foo"); |
655 o.add("foo"); | 655 o.add("foo"); |
656 return o; | 656 return o; |
657 } | 657 } |
658 | 658 |
659 checkUnnamed1012(core.List<core.String> o) { | 659 checkUnnamed1003(core.List<core.String> o) { |
660 unittest.expect(o, unittest.hasLength(2)); | 660 unittest.expect(o, unittest.hasLength(2)); |
661 unittest.expect(o[0], unittest.equals('foo')); | 661 unittest.expect(o[0], unittest.equals('foo')); |
662 unittest.expect(o[1], unittest.equals('foo')); | 662 unittest.expect(o[1], unittest.equals('foo')); |
663 } | 663 } |
664 | 664 |
665 buildUnnamed1013() { | 665 buildUnnamed1004() { |
666 var o = new core.List<core.String>(); | 666 var o = new core.List<core.String>(); |
667 o.add("foo"); | 667 o.add("foo"); |
668 o.add("foo"); | 668 o.add("foo"); |
669 return o; | 669 return o; |
670 } | 670 } |
671 | 671 |
672 checkUnnamed1013(core.List<core.String> o) { | 672 checkUnnamed1004(core.List<core.String> o) { |
673 unittest.expect(o, unittest.hasLength(2)); | 673 unittest.expect(o, unittest.hasLength(2)); |
674 unittest.expect(o[0], unittest.equals('foo')); | 674 unittest.expect(o[0], unittest.equals('foo')); |
675 unittest.expect(o[1], unittest.equals('foo')); | 675 unittest.expect(o[1], unittest.equals('foo')); |
676 } | 676 } |
677 | 677 |
678 core.int buildCounterThreatInfo = 0; | 678 core.int buildCounterThreatInfo = 0; |
679 buildThreatInfo() { | 679 buildThreatInfo() { |
680 var o = new api.ThreatInfo(); | 680 var o = new api.ThreatInfo(); |
681 buildCounterThreatInfo++; | 681 buildCounterThreatInfo++; |
682 if (buildCounterThreatInfo < 3) { | 682 if (buildCounterThreatInfo < 3) { |
683 o.platformTypes = buildUnnamed1010(); | 683 o.platformTypes = buildUnnamed1001(); |
684 o.threatEntries = buildUnnamed1011(); | 684 o.threatEntries = buildUnnamed1002(); |
685 o.threatEntryTypes = buildUnnamed1012(); | 685 o.threatEntryTypes = buildUnnamed1003(); |
686 o.threatTypes = buildUnnamed1013(); | 686 o.threatTypes = buildUnnamed1004(); |
687 } | 687 } |
688 buildCounterThreatInfo--; | 688 buildCounterThreatInfo--; |
689 return o; | 689 return o; |
690 } | 690 } |
691 | 691 |
692 checkThreatInfo(api.ThreatInfo o) { | 692 checkThreatInfo(api.ThreatInfo o) { |
693 buildCounterThreatInfo++; | 693 buildCounterThreatInfo++; |
694 if (buildCounterThreatInfo < 3) { | 694 if (buildCounterThreatInfo < 3) { |
695 checkUnnamed1010(o.platformTypes); | 695 checkUnnamed1001(o.platformTypes); |
696 checkUnnamed1011(o.threatEntries); | 696 checkUnnamed1002(o.threatEntries); |
697 checkUnnamed1012(o.threatEntryTypes); | 697 checkUnnamed1003(o.threatEntryTypes); |
698 checkUnnamed1013(o.threatTypes); | 698 checkUnnamed1004(o.threatTypes); |
699 } | 699 } |
700 buildCounterThreatInfo--; | 700 buildCounterThreatInfo--; |
701 } | 701 } |
702 | 702 |
703 core.int buildCounterThreatListDescriptor = 0; | 703 core.int buildCounterThreatListDescriptor = 0; |
704 buildThreatListDescriptor() { | 704 buildThreatListDescriptor() { |
705 var o = new api.ThreatListDescriptor(); | 705 var o = new api.ThreatListDescriptor(); |
706 buildCounterThreatListDescriptor++; | 706 buildCounterThreatListDescriptor++; |
707 if (buildCounterThreatListDescriptor < 3) { | 707 if (buildCounterThreatListDescriptor < 3) { |
708 o.platformType = "foo"; | 708 o.platformType = "foo"; |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes
ponse response) { | 1257 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes
ponse response) { |
1258 checkFindThreatMatchesResponse(response); | 1258 checkFindThreatMatchesResponse(response); |
1259 }))); | 1259 }))); |
1260 }); | 1260 }); |
1261 | 1261 |
1262 }); | 1262 }); |
1263 | 1263 |
1264 | 1264 |
1265 } | 1265 } |
1266 | 1266 |
OLD | NEW |