Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: generated/googleapis/test/safebrowsing/v4_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 buildUnnamed946() { 94 buildUnnamed953() {
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 checkUnnamed946(core.List<core.String> o) { 101 checkUnnamed953(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 = buildUnnamed946(); 115 o.supportedCompressions = buildUnnamed953();
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 checkUnnamed946(o.supportedCompressions); 127 checkUnnamed953(o.supportedCompressions);
128 } 128 }
129 buildCounterConstraints--; 129 buildCounterConstraints--;
130 } 130 }
131 131
132 buildUnnamed947() { 132 buildUnnamed954() {
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 checkUnnamed947(core.List<api.ListUpdateRequest> o) { 139 checkUnnamed954(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 = buildUnnamed947(); 151 o.listUpdateRequests = buildUnnamed954();
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 checkUnnamed947(o.listUpdateRequests); 161 checkUnnamed954(o.listUpdateRequests);
162 } 162 }
163 buildCounterFetchThreatListUpdatesRequest--; 163 buildCounterFetchThreatListUpdatesRequest--;
164 } 164 }
165 165
166 buildUnnamed948() { 166 buildUnnamed955() {
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 checkUnnamed948(core.List<api.ListUpdateResponse> o) { 173 checkUnnamed955(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 = buildUnnamed948(); 184 o.listUpdateResponses = buildUnnamed955();
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 checkUnnamed948(o.listUpdateResponses); 194 checkUnnamed955(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 buildUnnamed949() { 200 buildUnnamed956() {
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 checkUnnamed949(core.List<core.String> o) { 207 checkUnnamed956(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.client = buildClientInfo(); 218 o.client = buildClientInfo();
219 o.clientStates = buildUnnamed949(); 219 o.clientStates = buildUnnamed956();
220 o.threatInfo = buildThreatInfo(); 220 o.threatInfo = buildThreatInfo();
221 } 221 }
222 buildCounterFindFullHashesRequest--; 222 buildCounterFindFullHashesRequest--;
223 return o; 223 return o;
224 } 224 }
225 225
226 checkFindFullHashesRequest(api.FindFullHashesRequest o) { 226 checkFindFullHashesRequest(api.FindFullHashesRequest o) {
227 buildCounterFindFullHashesRequest++; 227 buildCounterFindFullHashesRequest++;
228 if (buildCounterFindFullHashesRequest < 3) { 228 if (buildCounterFindFullHashesRequest < 3) {
229 checkClientInfo(o.client); 229 checkClientInfo(o.client);
230 checkUnnamed949(o.clientStates); 230 checkUnnamed956(o.clientStates);
231 checkThreatInfo(o.threatInfo); 231 checkThreatInfo(o.threatInfo);
232 } 232 }
233 buildCounterFindFullHashesRequest--; 233 buildCounterFindFullHashesRequest--;
234 } 234 }
235 235
236 buildUnnamed950() { 236 buildUnnamed957() {
237 var o = new core.List<api.ThreatMatch>(); 237 var o = new core.List<api.ThreatMatch>();
238 o.add(buildThreatMatch()); 238 o.add(buildThreatMatch());
239 o.add(buildThreatMatch()); 239 o.add(buildThreatMatch());
240 return o; 240 return o;
241 } 241 }
242 242
243 checkUnnamed950(core.List<api.ThreatMatch> o) { 243 checkUnnamed957(core.List<api.ThreatMatch> o) {
244 unittest.expect(o, unittest.hasLength(2)); 244 unittest.expect(o, unittest.hasLength(2));
245 checkThreatMatch(o[0]); 245 checkThreatMatch(o[0]);
246 checkThreatMatch(o[1]); 246 checkThreatMatch(o[1]);
247 } 247 }
248 248
249 core.int buildCounterFindFullHashesResponse = 0; 249 core.int buildCounterFindFullHashesResponse = 0;
250 buildFindFullHashesResponse() { 250 buildFindFullHashesResponse() {
251 var o = new api.FindFullHashesResponse(); 251 var o = new api.FindFullHashesResponse();
252 buildCounterFindFullHashesResponse++; 252 buildCounterFindFullHashesResponse++;
253 if (buildCounterFindFullHashesResponse < 3) { 253 if (buildCounterFindFullHashesResponse < 3) {
254 o.matches = buildUnnamed950(); 254 o.matches = buildUnnamed957();
255 o.minimumWaitDuration = "foo"; 255 o.minimumWaitDuration = "foo";
256 o.negativeCacheDuration = "foo"; 256 o.negativeCacheDuration = "foo";
257 } 257 }
258 buildCounterFindFullHashesResponse--; 258 buildCounterFindFullHashesResponse--;
259 return o; 259 return o;
260 } 260 }
261 261
262 checkFindFullHashesResponse(api.FindFullHashesResponse o) { 262 checkFindFullHashesResponse(api.FindFullHashesResponse o) {
263 buildCounterFindFullHashesResponse++; 263 buildCounterFindFullHashesResponse++;
264 if (buildCounterFindFullHashesResponse < 3) { 264 if (buildCounterFindFullHashesResponse < 3) {
265 checkUnnamed950(o.matches); 265 checkUnnamed957(o.matches);
266 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); 266 unittest.expect(o.minimumWaitDuration, unittest.equals('foo'));
267 unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); 267 unittest.expect(o.negativeCacheDuration, unittest.equals('foo'));
268 } 268 }
269 buildCounterFindFullHashesResponse--; 269 buildCounterFindFullHashesResponse--;
270 } 270 }
271 271
272 core.int buildCounterFindThreatMatchesRequest = 0; 272 core.int buildCounterFindThreatMatchesRequest = 0;
273 buildFindThreatMatchesRequest() { 273 buildFindThreatMatchesRequest() {
274 var o = new api.FindThreatMatchesRequest(); 274 var o = new api.FindThreatMatchesRequest();
275 buildCounterFindThreatMatchesRequest++; 275 buildCounterFindThreatMatchesRequest++;
276 if (buildCounterFindThreatMatchesRequest < 3) { 276 if (buildCounterFindThreatMatchesRequest < 3) {
277 o.client = buildClientInfo(); 277 o.client = buildClientInfo();
278 o.threatInfo = buildThreatInfo(); 278 o.threatInfo = buildThreatInfo();
279 } 279 }
280 buildCounterFindThreatMatchesRequest--; 280 buildCounterFindThreatMatchesRequest--;
281 return o; 281 return o;
282 } 282 }
283 283
284 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) { 284 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) {
285 buildCounterFindThreatMatchesRequest++; 285 buildCounterFindThreatMatchesRequest++;
286 if (buildCounterFindThreatMatchesRequest < 3) { 286 if (buildCounterFindThreatMatchesRequest < 3) {
287 checkClientInfo(o.client); 287 checkClientInfo(o.client);
288 checkThreatInfo(o.threatInfo); 288 checkThreatInfo(o.threatInfo);
289 } 289 }
290 buildCounterFindThreatMatchesRequest--; 290 buildCounterFindThreatMatchesRequest--;
291 } 291 }
292 292
293 buildUnnamed951() { 293 buildUnnamed958() {
294 var o = new core.List<api.ThreatMatch>(); 294 var o = new core.List<api.ThreatMatch>();
295 o.add(buildThreatMatch()); 295 o.add(buildThreatMatch());
296 o.add(buildThreatMatch()); 296 o.add(buildThreatMatch());
297 return o; 297 return o;
298 } 298 }
299 299
300 checkUnnamed951(core.List<api.ThreatMatch> o) { 300 checkUnnamed958(core.List<api.ThreatMatch> o) {
301 unittest.expect(o, unittest.hasLength(2)); 301 unittest.expect(o, unittest.hasLength(2));
302 checkThreatMatch(o[0]); 302 checkThreatMatch(o[0]);
303 checkThreatMatch(o[1]); 303 checkThreatMatch(o[1]);
304 } 304 }
305 305
306 core.int buildCounterFindThreatMatchesResponse = 0; 306 core.int buildCounterFindThreatMatchesResponse = 0;
307 buildFindThreatMatchesResponse() { 307 buildFindThreatMatchesResponse() {
308 var o = new api.FindThreatMatchesResponse(); 308 var o = new api.FindThreatMatchesResponse();
309 buildCounterFindThreatMatchesResponse++; 309 buildCounterFindThreatMatchesResponse++;
310 if (buildCounterFindThreatMatchesResponse < 3) { 310 if (buildCounterFindThreatMatchesResponse < 3) {
311 o.matches = buildUnnamed951(); 311 o.matches = buildUnnamed958();
312 } 312 }
313 buildCounterFindThreatMatchesResponse--; 313 buildCounterFindThreatMatchesResponse--;
314 return o; 314 return o;
315 } 315 }
316 316
317 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { 317 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) {
318 buildCounterFindThreatMatchesResponse++; 318 buildCounterFindThreatMatchesResponse++;
319 if (buildCounterFindThreatMatchesResponse < 3) { 319 if (buildCounterFindThreatMatchesResponse < 3) {
320 checkUnnamed951(o.matches); 320 checkUnnamed958(o.matches);
321 } 321 }
322 buildCounterFindThreatMatchesResponse--; 322 buildCounterFindThreatMatchesResponse--;
323 } 323 }
324 324
325 buildUnnamed952() { 325 buildUnnamed959() {
326 var o = new core.List<api.ThreatListDescriptor>(); 326 var o = new core.List<api.ThreatListDescriptor>();
327 o.add(buildThreatListDescriptor()); 327 o.add(buildThreatListDescriptor());
328 o.add(buildThreatListDescriptor()); 328 o.add(buildThreatListDescriptor());
329 return o; 329 return o;
330 } 330 }
331 331
332 checkUnnamed952(core.List<api.ThreatListDescriptor> o) { 332 checkUnnamed959(core.List<api.ThreatListDescriptor> o) {
333 unittest.expect(o, unittest.hasLength(2)); 333 unittest.expect(o, unittest.hasLength(2));
334 checkThreatListDescriptor(o[0]); 334 checkThreatListDescriptor(o[0]);
335 checkThreatListDescriptor(o[1]); 335 checkThreatListDescriptor(o[1]);
336 } 336 }
337 337
338 core.int buildCounterListThreatListsResponse = 0; 338 core.int buildCounterListThreatListsResponse = 0;
339 buildListThreatListsResponse() { 339 buildListThreatListsResponse() {
340 var o = new api.ListThreatListsResponse(); 340 var o = new api.ListThreatListsResponse();
341 buildCounterListThreatListsResponse++; 341 buildCounterListThreatListsResponse++;
342 if (buildCounterListThreatListsResponse < 3) { 342 if (buildCounterListThreatListsResponse < 3) {
343 o.threatLists = buildUnnamed952(); 343 o.threatLists = buildUnnamed959();
344 } 344 }
345 buildCounterListThreatListsResponse--; 345 buildCounterListThreatListsResponse--;
346 return o; 346 return o;
347 } 347 }
348 348
349 checkListThreatListsResponse(api.ListThreatListsResponse o) { 349 checkListThreatListsResponse(api.ListThreatListsResponse o) {
350 buildCounterListThreatListsResponse++; 350 buildCounterListThreatListsResponse++;
351 if (buildCounterListThreatListsResponse < 3) { 351 if (buildCounterListThreatListsResponse < 3) {
352 checkUnnamed952(o.threatLists); 352 checkUnnamed959(o.threatLists);
353 } 353 }
354 buildCounterListThreatListsResponse--; 354 buildCounterListThreatListsResponse--;
355 } 355 }
356 356
357 core.int buildCounterListUpdateRequest = 0; 357 core.int buildCounterListUpdateRequest = 0;
358 buildListUpdateRequest() { 358 buildListUpdateRequest() {
359 var o = new api.ListUpdateRequest(); 359 var o = new api.ListUpdateRequest();
360 buildCounterListUpdateRequest++; 360 buildCounterListUpdateRequest++;
361 if (buildCounterListUpdateRequest < 3) { 361 if (buildCounterListUpdateRequest < 3) {
362 o.constraints = buildConstraints(); 362 o.constraints = buildConstraints();
(...skipping 11 matching lines...) Expand all
374 if (buildCounterListUpdateRequest < 3) { 374 if (buildCounterListUpdateRequest < 3) {
375 checkConstraints(o.constraints); 375 checkConstraints(o.constraints);
376 unittest.expect(o.platformType, unittest.equals('foo')); 376 unittest.expect(o.platformType, unittest.equals('foo'));
377 unittest.expect(o.state, unittest.equals('foo')); 377 unittest.expect(o.state, unittest.equals('foo'));
378 unittest.expect(o.threatEntryType, unittest.equals('foo')); 378 unittest.expect(o.threatEntryType, unittest.equals('foo'));
379 unittest.expect(o.threatType, unittest.equals('foo')); 379 unittest.expect(o.threatType, unittest.equals('foo'));
380 } 380 }
381 buildCounterListUpdateRequest--; 381 buildCounterListUpdateRequest--;
382 } 382 }
383 383
384 buildUnnamed953() { 384 buildUnnamed960() {
385 var o = new core.List<api.ThreatEntrySet>(); 385 var o = new core.List<api.ThreatEntrySet>();
386 o.add(buildThreatEntrySet()); 386 o.add(buildThreatEntrySet());
387 o.add(buildThreatEntrySet()); 387 o.add(buildThreatEntrySet());
388 return o; 388 return o;
389 } 389 }
390 390
391 checkUnnamed953(core.List<api.ThreatEntrySet> o) { 391 checkUnnamed960(core.List<api.ThreatEntrySet> o) {
392 unittest.expect(o, unittest.hasLength(2)); 392 unittest.expect(o, unittest.hasLength(2));
393 checkThreatEntrySet(o[0]); 393 checkThreatEntrySet(o[0]);
394 checkThreatEntrySet(o[1]); 394 checkThreatEntrySet(o[1]);
395 } 395 }
396 396
397 buildUnnamed954() { 397 buildUnnamed961() {
398 var o = new core.List<api.ThreatEntrySet>(); 398 var o = new core.List<api.ThreatEntrySet>();
399 o.add(buildThreatEntrySet()); 399 o.add(buildThreatEntrySet());
400 o.add(buildThreatEntrySet()); 400 o.add(buildThreatEntrySet());
401 return o; 401 return o;
402 } 402 }
403 403
404 checkUnnamed954(core.List<api.ThreatEntrySet> o) { 404 checkUnnamed961(core.List<api.ThreatEntrySet> o) {
405 unittest.expect(o, unittest.hasLength(2)); 405 unittest.expect(o, unittest.hasLength(2));
406 checkThreatEntrySet(o[0]); 406 checkThreatEntrySet(o[0]);
407 checkThreatEntrySet(o[1]); 407 checkThreatEntrySet(o[1]);
408 } 408 }
409 409
410 core.int buildCounterListUpdateResponse = 0; 410 core.int buildCounterListUpdateResponse = 0;
411 buildListUpdateResponse() { 411 buildListUpdateResponse() {
412 var o = new api.ListUpdateResponse(); 412 var o = new api.ListUpdateResponse();
413 buildCounterListUpdateResponse++; 413 buildCounterListUpdateResponse++;
414 if (buildCounterListUpdateResponse < 3) { 414 if (buildCounterListUpdateResponse < 3) {
415 o.additions = buildUnnamed953(); 415 o.additions = buildUnnamed960();
416 o.checksum = buildChecksum(); 416 o.checksum = buildChecksum();
417 o.newClientState = "foo"; 417 o.newClientState = "foo";
418 o.platformType = "foo"; 418 o.platformType = "foo";
419 o.removals = buildUnnamed954(); 419 o.removals = buildUnnamed961();
420 o.responseType = "foo"; 420 o.responseType = "foo";
421 o.threatEntryType = "foo"; 421 o.threatEntryType = "foo";
422 o.threatType = "foo"; 422 o.threatType = "foo";
423 } 423 }
424 buildCounterListUpdateResponse--; 424 buildCounterListUpdateResponse--;
425 return o; 425 return o;
426 } 426 }
427 427
428 checkListUpdateResponse(api.ListUpdateResponse o) { 428 checkListUpdateResponse(api.ListUpdateResponse o) {
429 buildCounterListUpdateResponse++; 429 buildCounterListUpdateResponse++;
430 if (buildCounterListUpdateResponse < 3) { 430 if (buildCounterListUpdateResponse < 3) {
431 checkUnnamed953(o.additions); 431 checkUnnamed960(o.additions);
432 checkChecksum(o.checksum); 432 checkChecksum(o.checksum);
433 unittest.expect(o.newClientState, unittest.equals('foo')); 433 unittest.expect(o.newClientState, unittest.equals('foo'));
434 unittest.expect(o.platformType, unittest.equals('foo')); 434 unittest.expect(o.platformType, unittest.equals('foo'));
435 checkUnnamed954(o.removals); 435 checkUnnamed961(o.removals);
436 unittest.expect(o.responseType, unittest.equals('foo')); 436 unittest.expect(o.responseType, unittest.equals('foo'));
437 unittest.expect(o.threatEntryType, unittest.equals('foo')); 437 unittest.expect(o.threatEntryType, unittest.equals('foo'));
438 unittest.expect(o.threatType, unittest.equals('foo')); 438 unittest.expect(o.threatType, unittest.equals('foo'));
439 } 439 }
440 buildCounterListUpdateResponse--; 440 buildCounterListUpdateResponse--;
441 } 441 }
442 442
443 core.int buildCounterMetadataEntry = 0; 443 core.int buildCounterMetadataEntry = 0;
444 buildMetadataEntry() { 444 buildMetadataEntry() {
445 var o = new api.MetadataEntry(); 445 var o = new api.MetadataEntry();
(...skipping 29 matching lines...) Expand all
475 475
476 checkRawHashes(api.RawHashes o) { 476 checkRawHashes(api.RawHashes o) {
477 buildCounterRawHashes++; 477 buildCounterRawHashes++;
478 if (buildCounterRawHashes < 3) { 478 if (buildCounterRawHashes < 3) {
479 unittest.expect(o.prefixSize, unittest.equals(42)); 479 unittest.expect(o.prefixSize, unittest.equals(42));
480 unittest.expect(o.rawHashes, unittest.equals('foo')); 480 unittest.expect(o.rawHashes, unittest.equals('foo'));
481 } 481 }
482 buildCounterRawHashes--; 482 buildCounterRawHashes--;
483 } 483 }
484 484
485 buildUnnamed955() { 485 buildUnnamed962() {
486 var o = new core.List<core.int>(); 486 var o = new core.List<core.int>();
487 o.add(42); 487 o.add(42);
488 o.add(42); 488 o.add(42);
489 return o; 489 return o;
490 } 490 }
491 491
492 checkUnnamed955(core.List<core.int> o) { 492 checkUnnamed962(core.List<core.int> o) {
493 unittest.expect(o, unittest.hasLength(2)); 493 unittest.expect(o, unittest.hasLength(2));
494 unittest.expect(o[0], unittest.equals(42)); 494 unittest.expect(o[0], unittest.equals(42));
495 unittest.expect(o[1], unittest.equals(42)); 495 unittest.expect(o[1], unittest.equals(42));
496 } 496 }
497 497
498 core.int buildCounterRawIndices = 0; 498 core.int buildCounterRawIndices = 0;
499 buildRawIndices() { 499 buildRawIndices() {
500 var o = new api.RawIndices(); 500 var o = new api.RawIndices();
501 buildCounterRawIndices++; 501 buildCounterRawIndices++;
502 if (buildCounterRawIndices < 3) { 502 if (buildCounterRawIndices < 3) {
503 o.indices = buildUnnamed955(); 503 o.indices = buildUnnamed962();
504 } 504 }
505 buildCounterRawIndices--; 505 buildCounterRawIndices--;
506 return o; 506 return o;
507 } 507 }
508 508
509 checkRawIndices(api.RawIndices o) { 509 checkRawIndices(api.RawIndices o) {
510 buildCounterRawIndices++; 510 buildCounterRawIndices++;
511 if (buildCounterRawIndices < 3) { 511 if (buildCounterRawIndices < 3) {
512 checkUnnamed955(o.indices); 512 checkUnnamed962(o.indices);
513 } 513 }
514 buildCounterRawIndices--; 514 buildCounterRawIndices--;
515 } 515 }
516 516
517 core.int buildCounterRiceDeltaEncoding = 0; 517 core.int buildCounterRiceDeltaEncoding = 0;
518 buildRiceDeltaEncoding() { 518 buildRiceDeltaEncoding() {
519 var o = new api.RiceDeltaEncoding(); 519 var o = new api.RiceDeltaEncoding();
520 buildCounterRiceDeltaEncoding++; 520 buildCounterRiceDeltaEncoding++;
521 if (buildCounterRiceDeltaEncoding < 3) { 521 if (buildCounterRiceDeltaEncoding < 3) {
522 o.encodedData = "foo"; 522 o.encodedData = "foo";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 checkThreatEntry(api.ThreatEntry o) { 555 checkThreatEntry(api.ThreatEntry o) {
556 buildCounterThreatEntry++; 556 buildCounterThreatEntry++;
557 if (buildCounterThreatEntry < 3) { 557 if (buildCounterThreatEntry < 3) {
558 unittest.expect(o.digest, unittest.equals('foo')); 558 unittest.expect(o.digest, unittest.equals('foo'));
559 unittest.expect(o.hash, unittest.equals('foo')); 559 unittest.expect(o.hash, unittest.equals('foo'));
560 unittest.expect(o.url, unittest.equals('foo')); 560 unittest.expect(o.url, unittest.equals('foo'));
561 } 561 }
562 buildCounterThreatEntry--; 562 buildCounterThreatEntry--;
563 } 563 }
564 564
565 buildUnnamed956() { 565 buildUnnamed963() {
566 var o = new core.List<api.MetadataEntry>(); 566 var o = new core.List<api.MetadataEntry>();
567 o.add(buildMetadataEntry()); 567 o.add(buildMetadataEntry());
568 o.add(buildMetadataEntry()); 568 o.add(buildMetadataEntry());
569 return o; 569 return o;
570 } 570 }
571 571
572 checkUnnamed956(core.List<api.MetadataEntry> o) { 572 checkUnnamed963(core.List<api.MetadataEntry> o) {
573 unittest.expect(o, unittest.hasLength(2)); 573 unittest.expect(o, unittest.hasLength(2));
574 checkMetadataEntry(o[0]); 574 checkMetadataEntry(o[0]);
575 checkMetadataEntry(o[1]); 575 checkMetadataEntry(o[1]);
576 } 576 }
577 577
578 core.int buildCounterThreatEntryMetadata = 0; 578 core.int buildCounterThreatEntryMetadata = 0;
579 buildThreatEntryMetadata() { 579 buildThreatEntryMetadata() {
580 var o = new api.ThreatEntryMetadata(); 580 var o = new api.ThreatEntryMetadata();
581 buildCounterThreatEntryMetadata++; 581 buildCounterThreatEntryMetadata++;
582 if (buildCounterThreatEntryMetadata < 3) { 582 if (buildCounterThreatEntryMetadata < 3) {
583 o.entries = buildUnnamed956(); 583 o.entries = buildUnnamed963();
584 } 584 }
585 buildCounterThreatEntryMetadata--; 585 buildCounterThreatEntryMetadata--;
586 return o; 586 return o;
587 } 587 }
588 588
589 checkThreatEntryMetadata(api.ThreatEntryMetadata o) { 589 checkThreatEntryMetadata(api.ThreatEntryMetadata o) {
590 buildCounterThreatEntryMetadata++; 590 buildCounterThreatEntryMetadata++;
591 if (buildCounterThreatEntryMetadata < 3) { 591 if (buildCounterThreatEntryMetadata < 3) {
592 checkUnnamed956(o.entries); 592 checkUnnamed963(o.entries);
593 } 593 }
594 buildCounterThreatEntryMetadata--; 594 buildCounterThreatEntryMetadata--;
595 } 595 }
596 596
597 core.int buildCounterThreatEntrySet = 0; 597 core.int buildCounterThreatEntrySet = 0;
598 buildThreatEntrySet() { 598 buildThreatEntrySet() {
599 var o = new api.ThreatEntrySet(); 599 var o = new api.ThreatEntrySet();
600 buildCounterThreatEntrySet++; 600 buildCounterThreatEntrySet++;
601 if (buildCounterThreatEntrySet < 3) { 601 if (buildCounterThreatEntrySet < 3) {
602 o.compressionType = "foo"; 602 o.compressionType = "foo";
(...skipping 11 matching lines...) Expand all
614 if (buildCounterThreatEntrySet < 3) { 614 if (buildCounterThreatEntrySet < 3) {
615 unittest.expect(o.compressionType, unittest.equals('foo')); 615 unittest.expect(o.compressionType, unittest.equals('foo'));
616 checkRawHashes(o.rawHashes); 616 checkRawHashes(o.rawHashes);
617 checkRawIndices(o.rawIndices); 617 checkRawIndices(o.rawIndices);
618 checkRiceDeltaEncoding(o.riceHashes); 618 checkRiceDeltaEncoding(o.riceHashes);
619 checkRiceDeltaEncoding(o.riceIndices); 619 checkRiceDeltaEncoding(o.riceIndices);
620 } 620 }
621 buildCounterThreatEntrySet--; 621 buildCounterThreatEntrySet--;
622 } 622 }
623 623
624 buildUnnamed957() { 624 buildUnnamed964() {
625 var o = new core.List<core.String>(); 625 var o = new core.List<core.String>();
626 o.add("foo"); 626 o.add("foo");
627 o.add("foo"); 627 o.add("foo");
628 return o; 628 return o;
629 } 629 }
630 630
631 checkUnnamed957(core.List<core.String> o) { 631 checkUnnamed964(core.List<core.String> o) {
632 unittest.expect(o, unittest.hasLength(2)); 632 unittest.expect(o, unittest.hasLength(2));
633 unittest.expect(o[0], unittest.equals('foo')); 633 unittest.expect(o[0], unittest.equals('foo'));
634 unittest.expect(o[1], unittest.equals('foo')); 634 unittest.expect(o[1], unittest.equals('foo'));
635 } 635 }
636 636
637 buildUnnamed958() { 637 buildUnnamed965() {
638 var o = new core.List<api.ThreatEntry>(); 638 var o = new core.List<api.ThreatEntry>();
639 o.add(buildThreatEntry()); 639 o.add(buildThreatEntry());
640 o.add(buildThreatEntry()); 640 o.add(buildThreatEntry());
641 return o; 641 return o;
642 } 642 }
643 643
644 checkUnnamed958(core.List<api.ThreatEntry> o) { 644 checkUnnamed965(core.List<api.ThreatEntry> o) {
645 unittest.expect(o, unittest.hasLength(2)); 645 unittest.expect(o, unittest.hasLength(2));
646 checkThreatEntry(o[0]); 646 checkThreatEntry(o[0]);
647 checkThreatEntry(o[1]); 647 checkThreatEntry(o[1]);
648 } 648 }
649 649
650 buildUnnamed959() { 650 buildUnnamed966() {
651 var o = new core.List<core.String>(); 651 var o = new core.List<core.String>();
652 o.add("foo"); 652 o.add("foo");
653 o.add("foo"); 653 o.add("foo");
654 return o; 654 return o;
655 } 655 }
656 656
657 checkUnnamed959(core.List<core.String> o) { 657 checkUnnamed966(core.List<core.String> o) {
658 unittest.expect(o, unittest.hasLength(2)); 658 unittest.expect(o, unittest.hasLength(2));
659 unittest.expect(o[0], unittest.equals('foo')); 659 unittest.expect(o[0], unittest.equals('foo'));
660 unittest.expect(o[1], unittest.equals('foo')); 660 unittest.expect(o[1], unittest.equals('foo'));
661 } 661 }
662 662
663 buildUnnamed960() { 663 buildUnnamed967() {
664 var o = new core.List<core.String>(); 664 var o = new core.List<core.String>();
665 o.add("foo"); 665 o.add("foo");
666 o.add("foo"); 666 o.add("foo");
667 return o; 667 return o;
668 } 668 }
669 669
670 checkUnnamed960(core.List<core.String> o) { 670 checkUnnamed967(core.List<core.String> o) {
671 unittest.expect(o, unittest.hasLength(2)); 671 unittest.expect(o, unittest.hasLength(2));
672 unittest.expect(o[0], unittest.equals('foo')); 672 unittest.expect(o[0], unittest.equals('foo'));
673 unittest.expect(o[1], unittest.equals('foo')); 673 unittest.expect(o[1], unittest.equals('foo'));
674 } 674 }
675 675
676 core.int buildCounterThreatInfo = 0; 676 core.int buildCounterThreatInfo = 0;
677 buildThreatInfo() { 677 buildThreatInfo() {
678 var o = new api.ThreatInfo(); 678 var o = new api.ThreatInfo();
679 buildCounterThreatInfo++; 679 buildCounterThreatInfo++;
680 if (buildCounterThreatInfo < 3) { 680 if (buildCounterThreatInfo < 3) {
681 o.platformTypes = buildUnnamed957(); 681 o.platformTypes = buildUnnamed964();
682 o.threatEntries = buildUnnamed958(); 682 o.threatEntries = buildUnnamed965();
683 o.threatEntryTypes = buildUnnamed959(); 683 o.threatEntryTypes = buildUnnamed966();
684 o.threatTypes = buildUnnamed960(); 684 o.threatTypes = buildUnnamed967();
685 } 685 }
686 buildCounterThreatInfo--; 686 buildCounterThreatInfo--;
687 return o; 687 return o;
688 } 688 }
689 689
690 checkThreatInfo(api.ThreatInfo o) { 690 checkThreatInfo(api.ThreatInfo o) {
691 buildCounterThreatInfo++; 691 buildCounterThreatInfo++;
692 if (buildCounterThreatInfo < 3) { 692 if (buildCounterThreatInfo < 3) {
693 checkUnnamed957(o.platformTypes); 693 checkUnnamed964(o.platformTypes);
694 checkUnnamed958(o.threatEntries); 694 checkUnnamed965(o.threatEntries);
695 checkUnnamed959(o.threatEntryTypes); 695 checkUnnamed966(o.threatEntryTypes);
696 checkUnnamed960(o.threatTypes); 696 checkUnnamed967(o.threatTypes);
697 } 697 }
698 buildCounterThreatInfo--; 698 buildCounterThreatInfo--;
699 } 699 }
700 700
701 core.int buildCounterThreatListDescriptor = 0; 701 core.int buildCounterThreatListDescriptor = 0;
702 buildThreatListDescriptor() { 702 buildThreatListDescriptor() {
703 var o = new api.ThreatListDescriptor(); 703 var o = new api.ThreatListDescriptor();
704 buildCounterThreatListDescriptor++; 704 buildCounterThreatListDescriptor++;
705 if (buildCounterThreatListDescriptor < 3) { 705 if (buildCounterThreatListDescriptor < 3) {
706 o.platformType = "foo"; 706 o.platformType = "foo";
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes ponse response) { 1145 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes ponse response) {
1146 checkFindThreatMatchesResponse(response); 1146 checkFindThreatMatchesResponse(response);
1147 }))); 1147 })));
1148 }); 1148 });
1149 1149
1150 }); 1150 });
1151 1151
1152 1152
1153 } 1153 }
1154 1154
OLDNEW
« no previous file with comments | « generated/googleapis/test/runtimeconfig/v1_test.dart ('k') | generated/googleapis/test/script/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698