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

Side by Side Diff: generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 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_beta.adexchangebuyer2.v2beta1.test; 1 library googleapis_beta.adexchangebuyer2.v2beta1.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:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 checkAddDealAssociationRequest(api.AddDealAssociationRequest o) { 86 checkAddDealAssociationRequest(api.AddDealAssociationRequest o) {
87 buildCounterAddDealAssociationRequest++; 87 buildCounterAddDealAssociationRequest++;
88 if (buildCounterAddDealAssociationRequest < 3) { 88 if (buildCounterAddDealAssociationRequest < 3) {
89 checkCreativeDealAssociation(o.association); 89 checkCreativeDealAssociation(o.association);
90 } 90 }
91 buildCounterAddDealAssociationRequest--; 91 buildCounterAddDealAssociationRequest--;
92 } 92 }
93 93
94 buildUnnamed3535() { 94 buildUnnamed3532() {
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 checkUnnamed3535(core.List<core.String> o) { 101 checkUnnamed3532(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 buildCounterAppContext = 0; 107 core.int buildCounterAppContext = 0;
108 buildAppContext() { 108 buildAppContext() {
109 var o = new api.AppContext(); 109 var o = new api.AppContext();
110 buildCounterAppContext++; 110 buildCounterAppContext++;
111 if (buildCounterAppContext < 3) { 111 if (buildCounterAppContext < 3) {
112 o.appTypes = buildUnnamed3535(); 112 o.appTypes = buildUnnamed3532();
113 } 113 }
114 buildCounterAppContext--; 114 buildCounterAppContext--;
115 return o; 115 return o;
116 } 116 }
117 117
118 checkAppContext(api.AppContext o) { 118 checkAppContext(api.AppContext o) {
119 buildCounterAppContext++; 119 buildCounterAppContext++;
120 if (buildCounterAppContext < 3) { 120 if (buildCounterAppContext < 3) {
121 checkUnnamed3535(o.appTypes); 121 checkUnnamed3532(o.appTypes);
122 } 122 }
123 buildCounterAppContext--; 123 buildCounterAppContext--;
124 } 124 }
125 125
126 buildUnnamed3536() { 126 buildUnnamed3533() {
127 var o = new core.List<core.String>(); 127 var o = new core.List<core.String>();
128 o.add("foo"); 128 o.add("foo");
129 o.add("foo"); 129 o.add("foo");
130 return o; 130 return o;
131 } 131 }
132 132
133 checkUnnamed3536(core.List<core.String> o) { 133 checkUnnamed3533(core.List<core.String> o) {
134 unittest.expect(o, unittest.hasLength(2)); 134 unittest.expect(o, unittest.hasLength(2));
135 unittest.expect(o[0], unittest.equals('foo')); 135 unittest.expect(o[0], unittest.equals('foo'));
136 unittest.expect(o[1], unittest.equals('foo')); 136 unittest.expect(o[1], unittest.equals('foo'));
137 } 137 }
138 138
139 core.int buildCounterAuctionContext = 0; 139 core.int buildCounterAuctionContext = 0;
140 buildAuctionContext() { 140 buildAuctionContext() {
141 var o = new api.AuctionContext(); 141 var o = new api.AuctionContext();
142 buildCounterAuctionContext++; 142 buildCounterAuctionContext++;
143 if (buildCounterAuctionContext < 3) { 143 if (buildCounterAuctionContext < 3) {
144 o.auctionTypes = buildUnnamed3536(); 144 o.auctionTypes = buildUnnamed3533();
145 } 145 }
146 buildCounterAuctionContext--; 146 buildCounterAuctionContext--;
147 return o; 147 return o;
148 } 148 }
149 149
150 checkAuctionContext(api.AuctionContext o) { 150 checkAuctionContext(api.AuctionContext o) {
151 buildCounterAuctionContext++; 151 buildCounterAuctionContext++;
152 if (buildCounterAuctionContext < 3) { 152 if (buildCounterAuctionContext < 3) {
153 checkUnnamed3536(o.auctionTypes); 153 checkUnnamed3533(o.auctionTypes);
154 } 154 }
155 buildCounterAuctionContext--; 155 buildCounterAuctionContext--;
156 } 156 }
157 157
158 core.int buildCounterBidMetricsRow = 0; 158 core.int buildCounterBidMetricsRow = 0;
159 buildBidMetricsRow() { 159 buildBidMetricsRow() {
160 var o = new api.BidMetricsRow(); 160 var o = new api.BidMetricsRow();
161 buildCounterBidMetricsRow++; 161 buildCounterBidMetricsRow++;
162 if (buildCounterBidMetricsRow < 3) { 162 if (buildCounterBidMetricsRow < 3) {
163 o.bids = buildMetricValue(); 163 o.bids = buildMetricValue();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 checkClientUserInvitation(api.ClientUserInvitation o) { 306 checkClientUserInvitation(api.ClientUserInvitation o) {
307 buildCounterClientUserInvitation++; 307 buildCounterClientUserInvitation++;
308 if (buildCounterClientUserInvitation < 3) { 308 if (buildCounterClientUserInvitation < 3) {
309 unittest.expect(o.clientAccountId, unittest.equals('foo')); 309 unittest.expect(o.clientAccountId, unittest.equals('foo'));
310 unittest.expect(o.email, unittest.equals('foo')); 310 unittest.expect(o.email, unittest.equals('foo'));
311 unittest.expect(o.invitationId, unittest.equals('foo')); 311 unittest.expect(o.invitationId, unittest.equals('foo'));
312 } 312 }
313 buildCounterClientUserInvitation--; 313 buildCounterClientUserInvitation--;
314 } 314 }
315 315
316 buildUnnamed3537() { 316 buildUnnamed3534() {
317 var o = new core.List<api.ServingContext>(); 317 var o = new core.List<api.ServingContext>();
318 o.add(buildServingContext()); 318 o.add(buildServingContext());
319 o.add(buildServingContext()); 319 o.add(buildServingContext());
320 return o; 320 return o;
321 } 321 }
322 322
323 checkUnnamed3537(core.List<api.ServingContext> o) { 323 checkUnnamed3534(core.List<api.ServingContext> o) {
324 unittest.expect(o, unittest.hasLength(2)); 324 unittest.expect(o, unittest.hasLength(2));
325 checkServingContext(o[0]); 325 checkServingContext(o[0]);
326 checkServingContext(o[1]); 326 checkServingContext(o[1]);
327 } 327 }
328 328
329 buildUnnamed3538() { 329 buildUnnamed3535() {
330 var o = new core.List<core.String>(); 330 var o = new core.List<core.String>();
331 o.add("foo"); 331 o.add("foo");
332 o.add("foo"); 332 o.add("foo");
333 return o; 333 return o;
334 } 334 }
335 335
336 checkUnnamed3538(core.List<core.String> o) { 336 checkUnnamed3535(core.List<core.String> o) {
337 unittest.expect(o, unittest.hasLength(2)); 337 unittest.expect(o, unittest.hasLength(2));
338 unittest.expect(o[0], unittest.equals('foo')); 338 unittest.expect(o[0], unittest.equals('foo'));
339 unittest.expect(o[1], unittest.equals('foo')); 339 unittest.expect(o[1], unittest.equals('foo'));
340 } 340 }
341 341
342 core.int buildCounterCorrection = 0; 342 core.int buildCounterCorrection = 0;
343 buildCorrection() { 343 buildCorrection() {
344 var o = new api.Correction(); 344 var o = new api.Correction();
345 buildCounterCorrection++; 345 buildCounterCorrection++;
346 if (buildCounterCorrection < 3) { 346 if (buildCounterCorrection < 3) {
347 o.contexts = buildUnnamed3537(); 347 o.contexts = buildUnnamed3534();
348 o.details = buildUnnamed3538(); 348 o.details = buildUnnamed3535();
349 o.type = "foo"; 349 o.type = "foo";
350 } 350 }
351 buildCounterCorrection--; 351 buildCounterCorrection--;
352 return o; 352 return o;
353 } 353 }
354 354
355 checkCorrection(api.Correction o) { 355 checkCorrection(api.Correction o) {
356 buildCounterCorrection++; 356 buildCounterCorrection++;
357 if (buildCounterCorrection < 3) { 357 if (buildCounterCorrection < 3) {
358 checkUnnamed3537(o.contexts); 358 checkUnnamed3534(o.contexts);
359 checkUnnamed3538(o.details); 359 checkUnnamed3535(o.details);
360 unittest.expect(o.type, unittest.equals('foo')); 360 unittest.expect(o.type, unittest.equals('foo'));
361 } 361 }
362 buildCounterCorrection--; 362 buildCounterCorrection--;
363 } 363 }
364 364
365 buildUnnamed3536() {
366 var o = new core.List<core.String>();
367 o.add("foo");
368 o.add("foo");
369 return o;
370 }
371
372 checkUnnamed3536(core.List<core.String> o) {
373 unittest.expect(o, unittest.hasLength(2));
374 unittest.expect(o[0], unittest.equals('foo'));
375 unittest.expect(o[1], unittest.equals('foo'));
376 }
377
378 buildUnnamed3537() {
379 var o = new core.List<core.String>();
380 o.add("foo");
381 o.add("foo");
382 return o;
383 }
384
385 checkUnnamed3537(core.List<core.String> o) {
386 unittest.expect(o, unittest.hasLength(2));
387 unittest.expect(o[0], unittest.equals('foo'));
388 unittest.expect(o[1], unittest.equals('foo'));
389 }
390
391 buildUnnamed3538() {
392 var o = new core.List<api.Correction>();
393 o.add(buildCorrection());
394 o.add(buildCorrection());
395 return o;
396 }
397
398 checkUnnamed3538(core.List<api.Correction> o) {
399 unittest.expect(o, unittest.hasLength(2));
400 checkCorrection(o[0]);
401 checkCorrection(o[1]);
402 }
403
365 buildUnnamed3539() { 404 buildUnnamed3539() {
366 var o = new core.List<core.String>(); 405 var o = new core.List<core.String>();
367 o.add("foo"); 406 o.add("foo");
368 o.add("foo"); 407 o.add("foo");
369 return o; 408 return o;
370 } 409 }
371 410
372 checkUnnamed3539(core.List<core.String> o) { 411 checkUnnamed3539(core.List<core.String> o) {
373 unittest.expect(o, unittest.hasLength(2)); 412 unittest.expect(o, unittest.hasLength(2));
374 unittest.expect(o[0], unittest.equals('foo')); 413 unittest.expect(o[0], unittest.equals('foo'));
375 unittest.expect(o[1], unittest.equals('foo')); 414 unittest.expect(o[1], unittest.equals('foo'));
376 } 415 }
377 416
378 buildUnnamed3540() { 417 buildUnnamed3540() {
379 var o = new core.List<core.String>(); 418 var o = new core.List<core.String>();
380 o.add("foo"); 419 o.add("foo");
381 o.add("foo"); 420 o.add("foo");
382 return o; 421 return o;
383 } 422 }
384 423
385 checkUnnamed3540(core.List<core.String> o) { 424 checkUnnamed3540(core.List<core.String> o) {
386 unittest.expect(o, unittest.hasLength(2)); 425 unittest.expect(o, unittest.hasLength(2));
387 unittest.expect(o[0], unittest.equals('foo')); 426 unittest.expect(o[0], unittest.equals('foo'));
388 unittest.expect(o[1], unittest.equals('foo')); 427 unittest.expect(o[1], unittest.equals('foo'));
389 } 428 }
390 429
391 buildUnnamed3541() { 430 buildUnnamed3541() {
392 var o = new core.List<api.Correction>();
393 o.add(buildCorrection());
394 o.add(buildCorrection());
395 return o;
396 }
397
398 checkUnnamed3541(core.List<api.Correction> o) {
399 unittest.expect(o, unittest.hasLength(2));
400 checkCorrection(o[0]);
401 checkCorrection(o[1]);
402 }
403
404 buildUnnamed3542() {
405 var o = new core.List<core.String>(); 431 var o = new core.List<core.String>();
406 o.add("foo"); 432 o.add("foo");
407 o.add("foo"); 433 o.add("foo");
408 return o; 434 return o;
409 } 435 }
410 436
411 checkUnnamed3542(core.List<core.String> o) { 437 checkUnnamed3541(core.List<core.String> o) {
412 unittest.expect(o, unittest.hasLength(2)); 438 unittest.expect(o, unittest.hasLength(2));
413 unittest.expect(o[0], unittest.equals('foo')); 439 unittest.expect(o[0], unittest.equals('foo'));
414 unittest.expect(o[1], unittest.equals('foo')); 440 unittest.expect(o[1], unittest.equals('foo'));
415 } 441 }
416 442
417 buildUnnamed3543() { 443 buildUnnamed3542() {
418 var o = new core.List<core.String>(); 444 var o = new core.List<core.int>();
419 o.add("foo"); 445 o.add(42);
420 o.add("foo"); 446 o.add(42);
421 return o; 447 return o;
422 } 448 }
423 449
424 checkUnnamed3543(core.List<core.String> o) { 450 checkUnnamed3542(core.List<core.int> o) {
425 unittest.expect(o, unittest.hasLength(2)); 451 unittest.expect(o, unittest.hasLength(2));
426 unittest.expect(o[0], unittest.equals('foo')); 452 unittest.expect(o[0], unittest.equals(42));
427 unittest.expect(o[1], unittest.equals('foo')); 453 unittest.expect(o[1], unittest.equals(42));
454 }
455
456 buildUnnamed3543() {
457 var o = new core.List<core.int>();
458 o.add(42);
459 o.add(42);
460 return o;
461 }
462
463 checkUnnamed3543(core.List<core.int> o) {
464 unittest.expect(o, unittest.hasLength(2));
465 unittest.expect(o[0], unittest.equals(42));
466 unittest.expect(o[1], unittest.equals(42));
428 } 467 }
429 468
430 buildUnnamed3544() { 469 buildUnnamed3544() {
431 var o = new core.List<core.String>(); 470 var o = new core.List<core.String>();
432 o.add("foo"); 471 o.add("foo");
433 o.add("foo"); 472 o.add("foo");
434 return o; 473 return o;
435 } 474 }
436 475
437 checkUnnamed3544(core.List<core.String> o) { 476 checkUnnamed3544(core.List<core.String> o) {
438 unittest.expect(o, unittest.hasLength(2)); 477 unittest.expect(o, unittest.hasLength(2));
439 unittest.expect(o[0], unittest.equals('foo')); 478 unittest.expect(o[0], unittest.equals('foo'));
440 unittest.expect(o[1], unittest.equals('foo')); 479 unittest.expect(o[1], unittest.equals('foo'));
441 } 480 }
442 481
443 buildUnnamed3545() { 482 buildUnnamed3545() {
483 var o = new core.List<core.String>();
484 o.add("foo");
485 o.add("foo");
486 return o;
487 }
488
489 checkUnnamed3545(core.List<core.String> o) {
490 unittest.expect(o, unittest.hasLength(2));
491 unittest.expect(o[0], unittest.equals('foo'));
492 unittest.expect(o[1], unittest.equals('foo'));
493 }
494
495 buildUnnamed3546() {
496 var o = new core.List<api.ServingRestriction>();
497 o.add(buildServingRestriction());
498 o.add(buildServingRestriction());
499 return o;
500 }
501
502 checkUnnamed3546(core.List<api.ServingRestriction> o) {
503 unittest.expect(o, unittest.hasLength(2));
504 checkServingRestriction(o[0]);
505 checkServingRestriction(o[1]);
506 }
507
508 buildUnnamed3547() {
444 var o = new core.List<core.int>(); 509 var o = new core.List<core.int>();
445 o.add(42); 510 o.add(42);
446 o.add(42); 511 o.add(42);
447 return o; 512 return o;
448 } 513 }
449 514
450 checkUnnamed3545(core.List<core.int> o) { 515 checkUnnamed3547(core.List<core.int> o) {
451 unittest.expect(o, unittest.hasLength(2)); 516 unittest.expect(o, unittest.hasLength(2));
452 unittest.expect(o[0], unittest.equals(42)); 517 unittest.expect(o[0], unittest.equals(42));
453 unittest.expect(o[1], unittest.equals(42)); 518 unittest.expect(o[1], unittest.equals(42));
454 }
455
456 buildUnnamed3546() {
457 var o = new core.List<core.int>();
458 o.add(42);
459 o.add(42);
460 return o;
461 }
462
463 checkUnnamed3546(core.List<core.int> o) {
464 unittest.expect(o, unittest.hasLength(2));
465 unittest.expect(o[0], unittest.equals(42));
466 unittest.expect(o[1], unittest.equals(42));
467 }
468
469 buildUnnamed3547() {
470 var o = new core.List<core.String>();
471 o.add("foo");
472 o.add("foo");
473 return o;
474 }
475
476 checkUnnamed3547(core.List<core.String> o) {
477 unittest.expect(o, unittest.hasLength(2));
478 unittest.expect(o[0], unittest.equals('foo'));
479 unittest.expect(o[1], unittest.equals('foo'));
480 }
481
482 buildUnnamed3548() {
483 var o = new core.List<core.String>();
484 o.add("foo");
485 o.add("foo");
486 return o;
487 }
488
489 checkUnnamed3548(core.List<core.String> o) {
490 unittest.expect(o, unittest.hasLength(2));
491 unittest.expect(o[0], unittest.equals('foo'));
492 unittest.expect(o[1], unittest.equals('foo'));
493 }
494
495 buildUnnamed3549() {
496 var o = new core.List<api.ServingRestriction>();
497 o.add(buildServingRestriction());
498 o.add(buildServingRestriction());
499 return o;
500 }
501
502 checkUnnamed3549(core.List<api.ServingRestriction> o) {
503 unittest.expect(o, unittest.hasLength(2));
504 checkServingRestriction(o[0]);
505 checkServingRestriction(o[1]);
506 }
507
508 buildUnnamed3550() {
509 var o = new core.List<core.int>();
510 o.add(42);
511 o.add(42);
512 return o;
513 }
514
515 checkUnnamed3550(core.List<core.int> o) {
516 unittest.expect(o, unittest.hasLength(2));
517 unittest.expect(o[0], unittest.equals(42));
518 unittest.expect(o[1], unittest.equals(42));
519 } 519 }
520 520
521 core.int buildCounterCreative = 0; 521 core.int buildCounterCreative = 0;
522 buildCreative() { 522 buildCreative() {
523 var o = new api.Creative(); 523 var o = new api.Creative();
524 buildCounterCreative++; 524 buildCounterCreative++;
525 if (buildCounterCreative < 3) { 525 if (buildCounterCreative < 3) {
526 o.accountId = "foo"; 526 o.accountId = "foo";
527 o.adChoicesDestinationUrl = "foo"; 527 o.adChoicesDestinationUrl = "foo";
528 o.advertiserName = "foo"; 528 o.advertiserName = "foo";
529 o.agencyId = "foo"; 529 o.agencyId = "foo";
530 o.apiUpdateTime = "foo"; 530 o.apiUpdateTime = "foo";
531 o.attributes = buildUnnamed3539(); 531 o.attributes = buildUnnamed3536();
532 o.clickThroughUrls = buildUnnamed3540(); 532 o.clickThroughUrls = buildUnnamed3537();
533 o.corrections = buildUnnamed3541(); 533 o.corrections = buildUnnamed3538();
534 o.creativeId = "foo"; 534 o.creativeId = "foo";
535 o.dealsStatus = "foo"; 535 o.dealsStatus = "foo";
536 o.detectedAdvertiserIds = buildUnnamed3542(); 536 o.detectedAdvertiserIds = buildUnnamed3539();
537 o.detectedDomains = buildUnnamed3543(); 537 o.detectedDomains = buildUnnamed3540();
538 o.detectedLanguages = buildUnnamed3544(); 538 o.detectedLanguages = buildUnnamed3541();
539 o.detectedProductCategories = buildUnnamed3545(); 539 o.detectedProductCategories = buildUnnamed3542();
540 o.detectedSensitiveCategories = buildUnnamed3546(); 540 o.detectedSensitiveCategories = buildUnnamed3543();
541 o.filteringStats = buildFilteringStats(); 541 o.filteringStats = buildFilteringStats();
542 o.html = buildHtmlContent(); 542 o.html = buildHtmlContent();
543 o.impressionTrackingUrls = buildUnnamed3547(); 543 o.impressionTrackingUrls = buildUnnamed3544();
544 o.native = buildNativeContent(); 544 o.native = buildNativeContent();
545 o.openAuctionStatus = "foo"; 545 o.openAuctionStatus = "foo";
546 o.restrictedCategories = buildUnnamed3548(); 546 o.restrictedCategories = buildUnnamed3545();
547 o.servingRestrictions = buildUnnamed3549(); 547 o.servingRestrictions = buildUnnamed3546();
548 o.vendorIds = buildUnnamed3550(); 548 o.vendorIds = buildUnnamed3547();
549 o.version = 42; 549 o.version = 42;
550 o.video = buildVideoContent(); 550 o.video = buildVideoContent();
551 } 551 }
552 buildCounterCreative--; 552 buildCounterCreative--;
553 return o; 553 return o;
554 } 554 }
555 555
556 checkCreative(api.Creative o) { 556 checkCreative(api.Creative o) {
557 buildCounterCreative++; 557 buildCounterCreative++;
558 if (buildCounterCreative < 3) { 558 if (buildCounterCreative < 3) {
559 unittest.expect(o.accountId, unittest.equals('foo')); 559 unittest.expect(o.accountId, unittest.equals('foo'));
560 unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); 560 unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo'));
561 unittest.expect(o.advertiserName, unittest.equals('foo')); 561 unittest.expect(o.advertiserName, unittest.equals('foo'));
562 unittest.expect(o.agencyId, unittest.equals('foo')); 562 unittest.expect(o.agencyId, unittest.equals('foo'));
563 unittest.expect(o.apiUpdateTime, unittest.equals('foo')); 563 unittest.expect(o.apiUpdateTime, unittest.equals('foo'));
564 checkUnnamed3539(o.attributes); 564 checkUnnamed3536(o.attributes);
565 checkUnnamed3540(o.clickThroughUrls); 565 checkUnnamed3537(o.clickThroughUrls);
566 checkUnnamed3541(o.corrections); 566 checkUnnamed3538(o.corrections);
567 unittest.expect(o.creativeId, unittest.equals('foo')); 567 unittest.expect(o.creativeId, unittest.equals('foo'));
568 unittest.expect(o.dealsStatus, unittest.equals('foo')); 568 unittest.expect(o.dealsStatus, unittest.equals('foo'));
569 checkUnnamed3542(o.detectedAdvertiserIds); 569 checkUnnamed3539(o.detectedAdvertiserIds);
570 checkUnnamed3543(o.detectedDomains); 570 checkUnnamed3540(o.detectedDomains);
571 checkUnnamed3544(o.detectedLanguages); 571 checkUnnamed3541(o.detectedLanguages);
572 checkUnnamed3545(o.detectedProductCategories); 572 checkUnnamed3542(o.detectedProductCategories);
573 checkUnnamed3546(o.detectedSensitiveCategories); 573 checkUnnamed3543(o.detectedSensitiveCategories);
574 checkFilteringStats(o.filteringStats); 574 checkFilteringStats(o.filteringStats);
575 checkHtmlContent(o.html); 575 checkHtmlContent(o.html);
576 checkUnnamed3547(o.impressionTrackingUrls); 576 checkUnnamed3544(o.impressionTrackingUrls);
577 checkNativeContent(o.native); 577 checkNativeContent(o.native);
578 unittest.expect(o.openAuctionStatus, unittest.equals('foo')); 578 unittest.expect(o.openAuctionStatus, unittest.equals('foo'));
579 checkUnnamed3548(o.restrictedCategories); 579 checkUnnamed3545(o.restrictedCategories);
580 checkUnnamed3549(o.servingRestrictions); 580 checkUnnamed3546(o.servingRestrictions);
581 checkUnnamed3550(o.vendorIds); 581 checkUnnamed3547(o.vendorIds);
582 unittest.expect(o.version, unittest.equals(42)); 582 unittest.expect(o.version, unittest.equals(42));
583 checkVideoContent(o.video); 583 checkVideoContent(o.video);
584 } 584 }
585 buildCounterCreative--; 585 buildCounterCreative--;
586 } 586 }
587 587
588 core.int buildCounterCreativeDealAssociation = 0; 588 core.int buildCounterCreativeDealAssociation = 0;
589 buildCreativeDealAssociation() { 589 buildCreativeDealAssociation() {
590 var o = new api.CreativeDealAssociation(); 590 var o = new api.CreativeDealAssociation();
591 buildCounterCreativeDealAssociation++; 591 buildCounterCreativeDealAssociation++;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 checkDate(api.Date o) { 647 checkDate(api.Date o) {
648 buildCounterDate++; 648 buildCounterDate++;
649 if (buildCounterDate < 3) { 649 if (buildCounterDate < 3) {
650 unittest.expect(o.day, unittest.equals(42)); 650 unittest.expect(o.day, unittest.equals(42));
651 unittest.expect(o.month, unittest.equals(42)); 651 unittest.expect(o.month, unittest.equals(42));
652 unittest.expect(o.year, unittest.equals(42)); 652 unittest.expect(o.year, unittest.equals(42));
653 } 653 }
654 buildCounterDate--; 654 buildCounterDate--;
655 } 655 }
656 656
657 buildUnnamed3551() { 657 buildUnnamed3548() {
658 var o = new core.List<core.String>(); 658 var o = new core.List<core.String>();
659 o.add("foo"); 659 o.add("foo");
660 o.add("foo"); 660 o.add("foo");
661 return o; 661 return o;
662 } 662 }
663 663
664 checkUnnamed3551(core.List<core.String> o) { 664 checkUnnamed3548(core.List<core.String> o) {
665 unittest.expect(o, unittest.hasLength(2)); 665 unittest.expect(o, unittest.hasLength(2));
666 unittest.expect(o[0], unittest.equals('foo')); 666 unittest.expect(o[0], unittest.equals('foo'));
667 unittest.expect(o[1], unittest.equals('foo')); 667 unittest.expect(o[1], unittest.equals('foo'));
668 } 668 }
669 669
670 core.int buildCounterDisapproval = 0; 670 core.int buildCounterDisapproval = 0;
671 buildDisapproval() { 671 buildDisapproval() {
672 var o = new api.Disapproval(); 672 var o = new api.Disapproval();
673 buildCounterDisapproval++; 673 buildCounterDisapproval++;
674 if (buildCounterDisapproval < 3) { 674 if (buildCounterDisapproval < 3) {
675 o.details = buildUnnamed3551(); 675 o.details = buildUnnamed3548();
676 o.reason = "foo"; 676 o.reason = "foo";
677 } 677 }
678 buildCounterDisapproval--; 678 buildCounterDisapproval--;
679 return o; 679 return o;
680 } 680 }
681 681
682 checkDisapproval(api.Disapproval o) { 682 checkDisapproval(api.Disapproval o) {
683 buildCounterDisapproval++; 683 buildCounterDisapproval++;
684 if (buildCounterDisapproval < 3) { 684 if (buildCounterDisapproval < 3) {
685 checkUnnamed3551(o.details); 685 checkUnnamed3548(o.details);
686 unittest.expect(o.reason, unittest.equals('foo')); 686 unittest.expect(o.reason, unittest.equals('foo'));
687 } 687 }
688 buildCounterDisapproval--; 688 buildCounterDisapproval--;
689 } 689 }
690 690
691 core.int buildCounterEmpty = 0; 691 core.int buildCounterEmpty = 0;
692 buildEmpty() { 692 buildEmpty() {
693 var o = new api.Empty(); 693 var o = new api.Empty();
694 buildCounterEmpty++; 694 buildCounterEmpty++;
695 if (buildCounterEmpty < 3) { 695 if (buildCounterEmpty < 3) {
696 } 696 }
697 buildCounterEmpty--; 697 buildCounterEmpty--;
698 return o; 698 return o;
699 } 699 }
700 700
701 checkEmpty(api.Empty o) { 701 checkEmpty(api.Empty o) {
702 buildCounterEmpty++; 702 buildCounterEmpty++;
703 if (buildCounterEmpty < 3) { 703 if (buildCounterEmpty < 3) {
704 } 704 }
705 buildCounterEmpty--; 705 buildCounterEmpty--;
706 } 706 }
707 707
708 buildUnnamed3552() { 708 buildUnnamed3549() {
709 var o = new core.List<core.String>(); 709 var o = new core.List<core.String>();
710 o.add("foo"); 710 o.add("foo");
711 o.add("foo"); 711 o.add("foo");
712 return o; 712 return o;
713 } 713 }
714 714
715 checkUnnamed3552(core.List<core.String> o) { 715 checkUnnamed3549(core.List<core.String> o) {
716 unittest.expect(o, unittest.hasLength(2)); 716 unittest.expect(o, unittest.hasLength(2));
717 unittest.expect(o[0], unittest.equals('foo')); 717 unittest.expect(o[0], unittest.equals('foo'));
718 unittest.expect(o[1], unittest.equals('foo')); 718 unittest.expect(o[1], unittest.equals('foo'));
719 } 719 }
720 720
721 buildUnnamed3553() { 721 buildUnnamed3550() {
722 var o = new core.List<core.int>(); 722 var o = new core.List<core.int>();
723 o.add(42); 723 o.add(42);
724 o.add(42); 724 o.add(42);
725 return o; 725 return o;
726 } 726 }
727 727
728 checkUnnamed3553(core.List<core.int> o) { 728 checkUnnamed3550(core.List<core.int> o) {
729 unittest.expect(o, unittest.hasLength(2)); 729 unittest.expect(o, unittest.hasLength(2));
730 unittest.expect(o[0], unittest.equals(42)); 730 unittest.expect(o[0], unittest.equals(42));
731 unittest.expect(o[1], unittest.equals(42)); 731 unittest.expect(o[1], unittest.equals(42));
732 } 732 }
733 733
734 core.int buildCounterFilterSet = 0; 734 core.int buildCounterFilterSet = 0;
735 buildFilterSet() { 735 buildFilterSet() {
736 var o = new api.FilterSet(); 736 var o = new api.FilterSet();
737 buildCounterFilterSet++; 737 buildCounterFilterSet++;
738 if (buildCounterFilterSet < 3) { 738 if (buildCounterFilterSet < 3) {
739 o.absoluteDateRange = buildAbsoluteDateRange(); 739 o.absoluteDateRange = buildAbsoluteDateRange();
740 o.buyerAccountId = "foo"; 740 o.buyerAccountId = "foo";
741 o.creativeId = "foo"; 741 o.creativeId = "foo";
742 o.dealId = "foo"; 742 o.dealId = "foo";
743 o.environment = "foo"; 743 o.environment = "foo";
744 o.filterSetId = "foo"; 744 o.filterSetId = "foo";
745 o.format = "foo"; 745 o.format = "foo";
746 o.ownerAccountId = "foo"; 746 o.ownerAccountId = "foo";
747 o.platforms = buildUnnamed3552(); 747 o.platforms = buildUnnamed3549();
748 o.realtimeTimeRange = buildRealtimeTimeRange(); 748 o.realtimeTimeRange = buildRealtimeTimeRange();
749 o.relativeDateRange = buildRelativeDateRange(); 749 o.relativeDateRange = buildRelativeDateRange();
750 o.sellerNetworkIds = buildUnnamed3553(); 750 o.sellerNetworkIds = buildUnnamed3550();
751 o.timeSeriesGranularity = "foo"; 751 o.timeSeriesGranularity = "foo";
752 } 752 }
753 buildCounterFilterSet--; 753 buildCounterFilterSet--;
754 return o; 754 return o;
755 } 755 }
756 756
757 checkFilterSet(api.FilterSet o) { 757 checkFilterSet(api.FilterSet o) {
758 buildCounterFilterSet++; 758 buildCounterFilterSet++;
759 if (buildCounterFilterSet < 3) { 759 if (buildCounterFilterSet < 3) {
760 checkAbsoluteDateRange(o.absoluteDateRange); 760 checkAbsoluteDateRange(o.absoluteDateRange);
761 unittest.expect(o.buyerAccountId, unittest.equals('foo')); 761 unittest.expect(o.buyerAccountId, unittest.equals('foo'));
762 unittest.expect(o.creativeId, unittest.equals('foo')); 762 unittest.expect(o.creativeId, unittest.equals('foo'));
763 unittest.expect(o.dealId, unittest.equals('foo')); 763 unittest.expect(o.dealId, unittest.equals('foo'));
764 unittest.expect(o.environment, unittest.equals('foo')); 764 unittest.expect(o.environment, unittest.equals('foo'));
765 unittest.expect(o.filterSetId, unittest.equals('foo')); 765 unittest.expect(o.filterSetId, unittest.equals('foo'));
766 unittest.expect(o.format, unittest.equals('foo')); 766 unittest.expect(o.format, unittest.equals('foo'));
767 unittest.expect(o.ownerAccountId, unittest.equals('foo')); 767 unittest.expect(o.ownerAccountId, unittest.equals('foo'));
768 checkUnnamed3552(o.platforms); 768 checkUnnamed3549(o.platforms);
769 checkRealtimeTimeRange(o.realtimeTimeRange); 769 checkRealtimeTimeRange(o.realtimeTimeRange);
770 checkRelativeDateRange(o.relativeDateRange); 770 checkRelativeDateRange(o.relativeDateRange);
771 checkUnnamed3553(o.sellerNetworkIds); 771 checkUnnamed3550(o.sellerNetworkIds);
772 unittest.expect(o.timeSeriesGranularity, unittest.equals('foo')); 772 unittest.expect(o.timeSeriesGranularity, unittest.equals('foo'));
773 } 773 }
774 buildCounterFilterSet--; 774 buildCounterFilterSet--;
775 } 775 }
776 776
777 core.int buildCounterFilteredBidCreativeRow = 0; 777 core.int buildCounterFilteredBidCreativeRow = 0;
778 buildFilteredBidCreativeRow() { 778 buildFilteredBidCreativeRow() {
779 var o = new api.FilteredBidCreativeRow(); 779 var o = new api.FilteredBidCreativeRow();
780 buildCounterFilteredBidCreativeRow++; 780 buildCounterFilteredBidCreativeRow++;
781 if (buildCounterFilteredBidCreativeRow < 3) { 781 if (buildCounterFilteredBidCreativeRow < 3) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 checkFilteredBidDetailRow(api.FilteredBidDetailRow o) { 813 checkFilteredBidDetailRow(api.FilteredBidDetailRow o) {
814 buildCounterFilteredBidDetailRow++; 814 buildCounterFilteredBidDetailRow++;
815 if (buildCounterFilteredBidDetailRow < 3) { 815 if (buildCounterFilteredBidDetailRow < 3) {
816 checkMetricValue(o.bidCount); 816 checkMetricValue(o.bidCount);
817 unittest.expect(o.detailId, unittest.equals(42)); 817 unittest.expect(o.detailId, unittest.equals(42));
818 checkRowDimensions(o.rowDimensions); 818 checkRowDimensions(o.rowDimensions);
819 } 819 }
820 buildCounterFilteredBidDetailRow--; 820 buildCounterFilteredBidDetailRow--;
821 } 821 }
822 822
823 buildUnnamed3554() { 823 buildUnnamed3551() {
824 var o = new core.List<api.Reason>(); 824 var o = new core.List<api.Reason>();
825 o.add(buildReason()); 825 o.add(buildReason());
826 o.add(buildReason()); 826 o.add(buildReason());
827 return o; 827 return o;
828 } 828 }
829 829
830 checkUnnamed3554(core.List<api.Reason> o) { 830 checkUnnamed3551(core.List<api.Reason> o) {
831 unittest.expect(o, unittest.hasLength(2)); 831 unittest.expect(o, unittest.hasLength(2));
832 checkReason(o[0]); 832 checkReason(o[0]);
833 checkReason(o[1]); 833 checkReason(o[1]);
834 } 834 }
835 835
836 core.int buildCounterFilteringStats = 0; 836 core.int buildCounterFilteringStats = 0;
837 buildFilteringStats() { 837 buildFilteringStats() {
838 var o = new api.FilteringStats(); 838 var o = new api.FilteringStats();
839 buildCounterFilteringStats++; 839 buildCounterFilteringStats++;
840 if (buildCounterFilteringStats < 3) { 840 if (buildCounterFilteringStats < 3) {
841 o.date = buildDate(); 841 o.date = buildDate();
842 o.reasons = buildUnnamed3554(); 842 o.reasons = buildUnnamed3551();
843 } 843 }
844 buildCounterFilteringStats--; 844 buildCounterFilteringStats--;
845 return o; 845 return o;
846 } 846 }
847 847
848 checkFilteringStats(api.FilteringStats o) { 848 checkFilteringStats(api.FilteringStats o) {
849 buildCounterFilteringStats++; 849 buildCounterFilteringStats++;
850 if (buildCounterFilteringStats < 3) { 850 if (buildCounterFilteringStats < 3) {
851 checkDate(o.date); 851 checkDate(o.date);
852 checkUnnamed3554(o.reasons); 852 checkUnnamed3551(o.reasons);
853 } 853 }
854 buildCounterFilteringStats--; 854 buildCounterFilteringStats--;
855 } 855 }
856 856
857 core.int buildCounterHtmlContent = 0; 857 core.int buildCounterHtmlContent = 0;
858 buildHtmlContent() { 858 buildHtmlContent() {
859 var o = new api.HtmlContent(); 859 var o = new api.HtmlContent();
860 buildCounterHtmlContent++; 860 buildCounterHtmlContent++;
861 if (buildCounterHtmlContent < 3) { 861 if (buildCounterHtmlContent < 3) {
862 o.height = 42; 862 o.height = 42;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 checkMetricValue(o.availableImpressions); 922 checkMetricValue(o.availableImpressions);
923 checkMetricValue(o.bidRequests); 923 checkMetricValue(o.bidRequests);
924 checkMetricValue(o.inventoryMatches); 924 checkMetricValue(o.inventoryMatches);
925 checkMetricValue(o.responsesWithBids); 925 checkMetricValue(o.responsesWithBids);
926 checkRowDimensions(o.rowDimensions); 926 checkRowDimensions(o.rowDimensions);
927 checkMetricValue(o.successfulResponses); 927 checkMetricValue(o.successfulResponses);
928 } 928 }
929 buildCounterImpressionMetricsRow--; 929 buildCounterImpressionMetricsRow--;
930 } 930 }
931 931
932 buildUnnamed3555() { 932 buildUnnamed3552() {
933 var o = new core.List<api.BidMetricsRow>(); 933 var o = new core.List<api.BidMetricsRow>();
934 o.add(buildBidMetricsRow()); 934 o.add(buildBidMetricsRow());
935 o.add(buildBidMetricsRow()); 935 o.add(buildBidMetricsRow());
936 return o; 936 return o;
937 } 937 }
938 938
939 checkUnnamed3555(core.List<api.BidMetricsRow> o) { 939 checkUnnamed3552(core.List<api.BidMetricsRow> o) {
940 unittest.expect(o, unittest.hasLength(2)); 940 unittest.expect(o, unittest.hasLength(2));
941 checkBidMetricsRow(o[0]); 941 checkBidMetricsRow(o[0]);
942 checkBidMetricsRow(o[1]); 942 checkBidMetricsRow(o[1]);
943 } 943 }
944 944
945 core.int buildCounterListBidMetricsResponse = 0; 945 core.int buildCounterListBidMetricsResponse = 0;
946 buildListBidMetricsResponse() { 946 buildListBidMetricsResponse() {
947 var o = new api.ListBidMetricsResponse(); 947 var o = new api.ListBidMetricsResponse();
948 buildCounterListBidMetricsResponse++; 948 buildCounterListBidMetricsResponse++;
949 if (buildCounterListBidMetricsResponse < 3) { 949 if (buildCounterListBidMetricsResponse < 3) {
950 o.bidMetricsRows = buildUnnamed3555(); 950 o.bidMetricsRows = buildUnnamed3552();
951 o.nextPageToken = "foo"; 951 o.nextPageToken = "foo";
952 } 952 }
953 buildCounterListBidMetricsResponse--; 953 buildCounterListBidMetricsResponse--;
954 return o; 954 return o;
955 } 955 }
956 956
957 checkListBidMetricsResponse(api.ListBidMetricsResponse o) { 957 checkListBidMetricsResponse(api.ListBidMetricsResponse o) {
958 buildCounterListBidMetricsResponse++; 958 buildCounterListBidMetricsResponse++;
959 if (buildCounterListBidMetricsResponse < 3) { 959 if (buildCounterListBidMetricsResponse < 3) {
960 checkUnnamed3555(o.bidMetricsRows); 960 checkUnnamed3552(o.bidMetricsRows);
961 unittest.expect(o.nextPageToken, unittest.equals('foo')); 961 unittest.expect(o.nextPageToken, unittest.equals('foo'));
962 } 962 }
963 buildCounterListBidMetricsResponse--; 963 buildCounterListBidMetricsResponse--;
964 } 964 }
965 965
966 buildUnnamed3556() { 966 buildUnnamed3553() {
967 var o = new core.List<api.CalloutStatusRow>(); 967 var o = new core.List<api.CalloutStatusRow>();
968 o.add(buildCalloutStatusRow()); 968 o.add(buildCalloutStatusRow());
969 o.add(buildCalloutStatusRow()); 969 o.add(buildCalloutStatusRow());
970 return o; 970 return o;
971 } 971 }
972 972
973 checkUnnamed3556(core.List<api.CalloutStatusRow> o) { 973 checkUnnamed3553(core.List<api.CalloutStatusRow> o) {
974 unittest.expect(o, unittest.hasLength(2)); 974 unittest.expect(o, unittest.hasLength(2));
975 checkCalloutStatusRow(o[0]); 975 checkCalloutStatusRow(o[0]);
976 checkCalloutStatusRow(o[1]); 976 checkCalloutStatusRow(o[1]);
977 } 977 }
978 978
979 core.int buildCounterListBidResponseErrorsResponse = 0; 979 core.int buildCounterListBidResponseErrorsResponse = 0;
980 buildListBidResponseErrorsResponse() { 980 buildListBidResponseErrorsResponse() {
981 var o = new api.ListBidResponseErrorsResponse(); 981 var o = new api.ListBidResponseErrorsResponse();
982 buildCounterListBidResponseErrorsResponse++; 982 buildCounterListBidResponseErrorsResponse++;
983 if (buildCounterListBidResponseErrorsResponse < 3) { 983 if (buildCounterListBidResponseErrorsResponse < 3) {
984 o.calloutStatusRows = buildUnnamed3556(); 984 o.calloutStatusRows = buildUnnamed3553();
985 o.nextPageToken = "foo"; 985 o.nextPageToken = "foo";
986 } 986 }
987 buildCounterListBidResponseErrorsResponse--; 987 buildCounterListBidResponseErrorsResponse--;
988 return o; 988 return o;
989 } 989 }
990 990
991 checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) { 991 checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) {
992 buildCounterListBidResponseErrorsResponse++; 992 buildCounterListBidResponseErrorsResponse++;
993 if (buildCounterListBidResponseErrorsResponse < 3) { 993 if (buildCounterListBidResponseErrorsResponse < 3) {
994 checkUnnamed3556(o.calloutStatusRows); 994 checkUnnamed3553(o.calloutStatusRows);
995 unittest.expect(o.nextPageToken, unittest.equals('foo')); 995 unittest.expect(o.nextPageToken, unittest.equals('foo'));
996 } 996 }
997 buildCounterListBidResponseErrorsResponse--; 997 buildCounterListBidResponseErrorsResponse--;
998 } 998 }
999 999
1000 buildUnnamed3557() { 1000 buildUnnamed3554() {
1001 var o = new core.List<api.BidResponseWithoutBidsStatusRow>(); 1001 var o = new core.List<api.BidResponseWithoutBidsStatusRow>();
1002 o.add(buildBidResponseWithoutBidsStatusRow()); 1002 o.add(buildBidResponseWithoutBidsStatusRow());
1003 o.add(buildBidResponseWithoutBidsStatusRow()); 1003 o.add(buildBidResponseWithoutBidsStatusRow());
1004 return o; 1004 return o;
1005 } 1005 }
1006 1006
1007 checkUnnamed3557(core.List<api.BidResponseWithoutBidsStatusRow> o) { 1007 checkUnnamed3554(core.List<api.BidResponseWithoutBidsStatusRow> o) {
1008 unittest.expect(o, unittest.hasLength(2)); 1008 unittest.expect(o, unittest.hasLength(2));
1009 checkBidResponseWithoutBidsStatusRow(o[0]); 1009 checkBidResponseWithoutBidsStatusRow(o[0]);
1010 checkBidResponseWithoutBidsStatusRow(o[1]); 1010 checkBidResponseWithoutBidsStatusRow(o[1]);
1011 } 1011 }
1012 1012
1013 core.int buildCounterListBidResponsesWithoutBidsResponse = 0; 1013 core.int buildCounterListBidResponsesWithoutBidsResponse = 0;
1014 buildListBidResponsesWithoutBidsResponse() { 1014 buildListBidResponsesWithoutBidsResponse() {
1015 var o = new api.ListBidResponsesWithoutBidsResponse(); 1015 var o = new api.ListBidResponsesWithoutBidsResponse();
1016 buildCounterListBidResponsesWithoutBidsResponse++; 1016 buildCounterListBidResponsesWithoutBidsResponse++;
1017 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { 1017 if (buildCounterListBidResponsesWithoutBidsResponse < 3) {
1018 o.bidResponseWithoutBidsStatusRows = buildUnnamed3557(); 1018 o.bidResponseWithoutBidsStatusRows = buildUnnamed3554();
1019 o.nextPageToken = "foo"; 1019 o.nextPageToken = "foo";
1020 } 1020 }
1021 buildCounterListBidResponsesWithoutBidsResponse--; 1021 buildCounterListBidResponsesWithoutBidsResponse--;
1022 return o; 1022 return o;
1023 } 1023 }
1024 1024
1025 checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse o) { 1025 checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse o) {
1026 buildCounterListBidResponsesWithoutBidsResponse++; 1026 buildCounterListBidResponsesWithoutBidsResponse++;
1027 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { 1027 if (buildCounterListBidResponsesWithoutBidsResponse < 3) {
1028 checkUnnamed3557(o.bidResponseWithoutBidsStatusRows); 1028 checkUnnamed3554(o.bidResponseWithoutBidsStatusRows);
1029 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1029 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1030 } 1030 }
1031 buildCounterListBidResponsesWithoutBidsResponse--; 1031 buildCounterListBidResponsesWithoutBidsResponse--;
1032 } 1032 }
1033 1033
1034 buildUnnamed3558() { 1034 buildUnnamed3555() {
1035 var o = new core.List<api.ClientUserInvitation>(); 1035 var o = new core.List<api.ClientUserInvitation>();
1036 o.add(buildClientUserInvitation()); 1036 o.add(buildClientUserInvitation());
1037 o.add(buildClientUserInvitation()); 1037 o.add(buildClientUserInvitation());
1038 return o; 1038 return o;
1039 } 1039 }
1040 1040
1041 checkUnnamed3558(core.List<api.ClientUserInvitation> o) { 1041 checkUnnamed3555(core.List<api.ClientUserInvitation> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1042 unittest.expect(o, unittest.hasLength(2));
1043 checkClientUserInvitation(o[0]); 1043 checkClientUserInvitation(o[0]);
1044 checkClientUserInvitation(o[1]); 1044 checkClientUserInvitation(o[1]);
1045 } 1045 }
1046 1046
1047 core.int buildCounterListClientUserInvitationsResponse = 0; 1047 core.int buildCounterListClientUserInvitationsResponse = 0;
1048 buildListClientUserInvitationsResponse() { 1048 buildListClientUserInvitationsResponse() {
1049 var o = new api.ListClientUserInvitationsResponse(); 1049 var o = new api.ListClientUserInvitationsResponse();
1050 buildCounterListClientUserInvitationsResponse++; 1050 buildCounterListClientUserInvitationsResponse++;
1051 if (buildCounterListClientUserInvitationsResponse < 3) { 1051 if (buildCounterListClientUserInvitationsResponse < 3) {
1052 o.invitations = buildUnnamed3558(); 1052 o.invitations = buildUnnamed3555();
1053 o.nextPageToken = "foo"; 1053 o.nextPageToken = "foo";
1054 } 1054 }
1055 buildCounterListClientUserInvitationsResponse--; 1055 buildCounterListClientUserInvitationsResponse--;
1056 return o; 1056 return o;
1057 } 1057 }
1058 1058
1059 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o) { 1059 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o) {
1060 buildCounterListClientUserInvitationsResponse++; 1060 buildCounterListClientUserInvitationsResponse++;
1061 if (buildCounterListClientUserInvitationsResponse < 3) { 1061 if (buildCounterListClientUserInvitationsResponse < 3) {
1062 checkUnnamed3558(o.invitations); 1062 checkUnnamed3555(o.invitations);
1063 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1063 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1064 } 1064 }
1065 buildCounterListClientUserInvitationsResponse--; 1065 buildCounterListClientUserInvitationsResponse--;
1066 } 1066 }
1067 1067
1068 buildUnnamed3559() { 1068 buildUnnamed3556() {
1069 var o = new core.List<api.ClientUser>(); 1069 var o = new core.List<api.ClientUser>();
1070 o.add(buildClientUser()); 1070 o.add(buildClientUser());
1071 o.add(buildClientUser()); 1071 o.add(buildClientUser());
1072 return o; 1072 return o;
1073 } 1073 }
1074 1074
1075 checkUnnamed3559(core.List<api.ClientUser> o) { 1075 checkUnnamed3556(core.List<api.ClientUser> o) {
1076 unittest.expect(o, unittest.hasLength(2)); 1076 unittest.expect(o, unittest.hasLength(2));
1077 checkClientUser(o[0]); 1077 checkClientUser(o[0]);
1078 checkClientUser(o[1]); 1078 checkClientUser(o[1]);
1079 } 1079 }
1080 1080
1081 core.int buildCounterListClientUsersResponse = 0; 1081 core.int buildCounterListClientUsersResponse = 0;
1082 buildListClientUsersResponse() { 1082 buildListClientUsersResponse() {
1083 var o = new api.ListClientUsersResponse(); 1083 var o = new api.ListClientUsersResponse();
1084 buildCounterListClientUsersResponse++; 1084 buildCounterListClientUsersResponse++;
1085 if (buildCounterListClientUsersResponse < 3) { 1085 if (buildCounterListClientUsersResponse < 3) {
1086 o.nextPageToken = "foo"; 1086 o.nextPageToken = "foo";
1087 o.users = buildUnnamed3559(); 1087 o.users = buildUnnamed3556();
1088 } 1088 }
1089 buildCounterListClientUsersResponse--; 1089 buildCounterListClientUsersResponse--;
1090 return o; 1090 return o;
1091 } 1091 }
1092 1092
1093 checkListClientUsersResponse(api.ListClientUsersResponse o) { 1093 checkListClientUsersResponse(api.ListClientUsersResponse o) {
1094 buildCounterListClientUsersResponse++; 1094 buildCounterListClientUsersResponse++;
1095 if (buildCounterListClientUsersResponse < 3) { 1095 if (buildCounterListClientUsersResponse < 3) {
1096 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1096 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1097 checkUnnamed3559(o.users); 1097 checkUnnamed3556(o.users);
1098 } 1098 }
1099 buildCounterListClientUsersResponse--; 1099 buildCounterListClientUsersResponse--;
1100 } 1100 }
1101 1101
1102 buildUnnamed3560() { 1102 buildUnnamed3557() {
1103 var o = new core.List<api.Client>(); 1103 var o = new core.List<api.Client>();
1104 o.add(buildClient()); 1104 o.add(buildClient());
1105 o.add(buildClient()); 1105 o.add(buildClient());
1106 return o; 1106 return o;
1107 } 1107 }
1108 1108
1109 checkUnnamed3560(core.List<api.Client> o) { 1109 checkUnnamed3557(core.List<api.Client> o) {
1110 unittest.expect(o, unittest.hasLength(2)); 1110 unittest.expect(o, unittest.hasLength(2));
1111 checkClient(o[0]); 1111 checkClient(o[0]);
1112 checkClient(o[1]); 1112 checkClient(o[1]);
1113 } 1113 }
1114 1114
1115 core.int buildCounterListClientsResponse = 0; 1115 core.int buildCounterListClientsResponse = 0;
1116 buildListClientsResponse() { 1116 buildListClientsResponse() {
1117 var o = new api.ListClientsResponse(); 1117 var o = new api.ListClientsResponse();
1118 buildCounterListClientsResponse++; 1118 buildCounterListClientsResponse++;
1119 if (buildCounterListClientsResponse < 3) { 1119 if (buildCounterListClientsResponse < 3) {
1120 o.clients = buildUnnamed3560(); 1120 o.clients = buildUnnamed3557();
1121 o.nextPageToken = "foo"; 1121 o.nextPageToken = "foo";
1122 } 1122 }
1123 buildCounterListClientsResponse--; 1123 buildCounterListClientsResponse--;
1124 return o; 1124 return o;
1125 } 1125 }
1126 1126
1127 checkListClientsResponse(api.ListClientsResponse o) { 1127 checkListClientsResponse(api.ListClientsResponse o) {
1128 buildCounterListClientsResponse++; 1128 buildCounterListClientsResponse++;
1129 if (buildCounterListClientsResponse < 3) { 1129 if (buildCounterListClientsResponse < 3) {
1130 checkUnnamed3560(o.clients); 1130 checkUnnamed3557(o.clients);
1131 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1131 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1132 } 1132 }
1133 buildCounterListClientsResponse--; 1133 buildCounterListClientsResponse--;
1134 } 1134 }
1135 1135
1136 buildUnnamed3561() { 1136 buildUnnamed3558() {
1137 var o = new core.List<api.FilteredBidDetailRow>();
1138 o.add(buildFilteredBidDetailRow());
1139 o.add(buildFilteredBidDetailRow());
1140 return o;
1141 }
1142
1143 checkUnnamed3561(core.List<api.FilteredBidDetailRow> o) {
1144 unittest.expect(o, unittest.hasLength(2));
1145 checkFilteredBidDetailRow(o[0]);
1146 checkFilteredBidDetailRow(o[1]);
1147 }
1148
1149 core.int buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse = 0;
1150 buildListCreativeStatusAndCreativeBreakdownByDetailResponse() {
1151 var o = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse();
1152 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++;
1153 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) {
1154 o.detailType = "foo";
1155 o.filteredBidDetailRows = buildUnnamed3561();
1156 o.nextPageToken = "foo";
1157 }
1158 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--;
1159 return o;
1160 }
1161
1162 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(api.ListCreativeStat usAndCreativeBreakdownByDetailResponse o) {
1163 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++;
1164 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) {
1165 unittest.expect(o.detailType, unittest.equals('foo'));
1166 checkUnnamed3561(o.filteredBidDetailRows);
1167 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1168 }
1169 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--;
1170 }
1171
1172 buildUnnamed3562() {
1173 var o = new core.List<api.FilteredBidCreativeRow>(); 1137 var o = new core.List<api.FilteredBidCreativeRow>();
1174 o.add(buildFilteredBidCreativeRow()); 1138 o.add(buildFilteredBidCreativeRow());
1175 o.add(buildFilteredBidCreativeRow()); 1139 o.add(buildFilteredBidCreativeRow());
1176 return o; 1140 return o;
1177 } 1141 }
1178 1142
1179 checkUnnamed3562(core.List<api.FilteredBidCreativeRow> o) { 1143 checkUnnamed3558(core.List<api.FilteredBidCreativeRow> o) {
1180 unittest.expect(o, unittest.hasLength(2)); 1144 unittest.expect(o, unittest.hasLength(2));
1181 checkFilteredBidCreativeRow(o[0]); 1145 checkFilteredBidCreativeRow(o[0]);
1182 checkFilteredBidCreativeRow(o[1]); 1146 checkFilteredBidCreativeRow(o[1]);
1183 } 1147 }
1184 1148
1185 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; 1149 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0;
1186 buildListCreativeStatusBreakdownByCreativeResponse() { 1150 buildListCreativeStatusBreakdownByCreativeResponse() {
1187 var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); 1151 var o = new api.ListCreativeStatusBreakdownByCreativeResponse();
1188 buildCounterListCreativeStatusBreakdownByCreativeResponse++; 1152 buildCounterListCreativeStatusBreakdownByCreativeResponse++;
1189 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { 1153 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) {
1190 o.filteredBidCreativeRows = buildUnnamed3562(); 1154 o.filteredBidCreativeRows = buildUnnamed3558();
1191 o.nextPageToken = "foo"; 1155 o.nextPageToken = "foo";
1192 } 1156 }
1193 buildCounterListCreativeStatusBreakdownByCreativeResponse--; 1157 buildCounterListCreativeStatusBreakdownByCreativeResponse--;
1194 return o; 1158 return o;
1195 } 1159 }
1196 1160
1197 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo wnByCreativeResponse o) { 1161 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo wnByCreativeResponse o) {
1198 buildCounterListCreativeStatusBreakdownByCreativeResponse++; 1162 buildCounterListCreativeStatusBreakdownByCreativeResponse++;
1199 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { 1163 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) {
1200 checkUnnamed3562(o.filteredBidCreativeRows); 1164 checkUnnamed3558(o.filteredBidCreativeRows);
1201 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1165 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1202 } 1166 }
1203 buildCounterListCreativeStatusBreakdownByCreativeResponse--; 1167 buildCounterListCreativeStatusBreakdownByCreativeResponse--;
1204 } 1168 }
1205 1169
1206 buildUnnamed3563() { 1170 buildUnnamed3559() {
1207 var o = new core.List<api.FilteredBidDetailRow>(); 1171 var o = new core.List<api.FilteredBidDetailRow>();
1208 o.add(buildFilteredBidDetailRow()); 1172 o.add(buildFilteredBidDetailRow());
1209 o.add(buildFilteredBidDetailRow()); 1173 o.add(buildFilteredBidDetailRow());
1210 return o; 1174 return o;
1211 } 1175 }
1212 1176
1213 checkUnnamed3563(core.List<api.FilteredBidDetailRow> o) { 1177 checkUnnamed3559(core.List<api.FilteredBidDetailRow> o) {
1214 unittest.expect(o, unittest.hasLength(2)); 1178 unittest.expect(o, unittest.hasLength(2));
1215 checkFilteredBidDetailRow(o[0]); 1179 checkFilteredBidDetailRow(o[0]);
1216 checkFilteredBidDetailRow(o[1]); 1180 checkFilteredBidDetailRow(o[1]);
1217 } 1181 }
1218 1182
1219 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; 1183 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0;
1220 buildListCreativeStatusBreakdownByDetailResponse() { 1184 buildListCreativeStatusBreakdownByDetailResponse() {
1221 var o = new api.ListCreativeStatusBreakdownByDetailResponse(); 1185 var o = new api.ListCreativeStatusBreakdownByDetailResponse();
1222 buildCounterListCreativeStatusBreakdownByDetailResponse++; 1186 buildCounterListCreativeStatusBreakdownByDetailResponse++;
1223 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { 1187 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) {
1224 o.detailType = "foo"; 1188 o.detailType = "foo";
1225 o.filteredBidDetailRows = buildUnnamed3563(); 1189 o.filteredBidDetailRows = buildUnnamed3559();
1226 o.nextPageToken = "foo"; 1190 o.nextPageToken = "foo";
1227 } 1191 }
1228 buildCounterListCreativeStatusBreakdownByDetailResponse--; 1192 buildCounterListCreativeStatusBreakdownByDetailResponse--;
1229 return o; 1193 return o;
1230 } 1194 }
1231 1195
1232 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown ByDetailResponse o) { 1196 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown ByDetailResponse o) {
1233 buildCounterListCreativeStatusBreakdownByDetailResponse++; 1197 buildCounterListCreativeStatusBreakdownByDetailResponse++;
1234 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { 1198 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) {
1235 unittest.expect(o.detailType, unittest.equals('foo')); 1199 unittest.expect(o.detailType, unittest.equals('foo'));
1236 checkUnnamed3563(o.filteredBidDetailRows); 1200 checkUnnamed3559(o.filteredBidDetailRows);
1237 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1201 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1238 } 1202 }
1239 buildCounterListCreativeStatusBreakdownByDetailResponse--; 1203 buildCounterListCreativeStatusBreakdownByDetailResponse--;
1240 } 1204 }
1241 1205
1242 buildUnnamed3564() { 1206 buildUnnamed3560() {
1243 var o = new core.List<api.Creative>(); 1207 var o = new core.List<api.Creative>();
1244 o.add(buildCreative()); 1208 o.add(buildCreative());
1245 o.add(buildCreative()); 1209 o.add(buildCreative());
1246 return o; 1210 return o;
1247 } 1211 }
1248 1212
1249 checkUnnamed3564(core.List<api.Creative> o) { 1213 checkUnnamed3560(core.List<api.Creative> o) {
1250 unittest.expect(o, unittest.hasLength(2)); 1214 unittest.expect(o, unittest.hasLength(2));
1251 checkCreative(o[0]); 1215 checkCreative(o[0]);
1252 checkCreative(o[1]); 1216 checkCreative(o[1]);
1253 } 1217 }
1254 1218
1255 core.int buildCounterListCreativesResponse = 0; 1219 core.int buildCounterListCreativesResponse = 0;
1256 buildListCreativesResponse() { 1220 buildListCreativesResponse() {
1257 var o = new api.ListCreativesResponse(); 1221 var o = new api.ListCreativesResponse();
1258 buildCounterListCreativesResponse++; 1222 buildCounterListCreativesResponse++;
1259 if (buildCounterListCreativesResponse < 3) { 1223 if (buildCounterListCreativesResponse < 3) {
1260 o.creatives = buildUnnamed3564(); 1224 o.creatives = buildUnnamed3560();
1261 o.nextPageToken = "foo"; 1225 o.nextPageToken = "foo";
1262 } 1226 }
1263 buildCounterListCreativesResponse--; 1227 buildCounterListCreativesResponse--;
1264 return o; 1228 return o;
1265 } 1229 }
1266 1230
1267 checkListCreativesResponse(api.ListCreativesResponse o) { 1231 checkListCreativesResponse(api.ListCreativesResponse o) {
1268 buildCounterListCreativesResponse++; 1232 buildCounterListCreativesResponse++;
1269 if (buildCounterListCreativesResponse < 3) { 1233 if (buildCounterListCreativesResponse < 3) {
1270 checkUnnamed3564(o.creatives); 1234 checkUnnamed3560(o.creatives);
1271 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1235 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1272 } 1236 }
1273 buildCounterListCreativesResponse--; 1237 buildCounterListCreativesResponse--;
1274 } 1238 }
1275 1239
1276 buildUnnamed3565() { 1240 buildUnnamed3561() {
1277 var o = new core.List<api.CreativeDealAssociation>(); 1241 var o = new core.List<api.CreativeDealAssociation>();
1278 o.add(buildCreativeDealAssociation()); 1242 o.add(buildCreativeDealAssociation());
1279 o.add(buildCreativeDealAssociation()); 1243 o.add(buildCreativeDealAssociation());
1280 return o; 1244 return o;
1281 } 1245 }
1282 1246
1283 checkUnnamed3565(core.List<api.CreativeDealAssociation> o) { 1247 checkUnnamed3561(core.List<api.CreativeDealAssociation> o) {
1284 unittest.expect(o, unittest.hasLength(2)); 1248 unittest.expect(o, unittest.hasLength(2));
1285 checkCreativeDealAssociation(o[0]); 1249 checkCreativeDealAssociation(o[0]);
1286 checkCreativeDealAssociation(o[1]); 1250 checkCreativeDealAssociation(o[1]);
1287 } 1251 }
1288 1252
1289 core.int buildCounterListDealAssociationsResponse = 0; 1253 core.int buildCounterListDealAssociationsResponse = 0;
1290 buildListDealAssociationsResponse() { 1254 buildListDealAssociationsResponse() {
1291 var o = new api.ListDealAssociationsResponse(); 1255 var o = new api.ListDealAssociationsResponse();
1292 buildCounterListDealAssociationsResponse++; 1256 buildCounterListDealAssociationsResponse++;
1293 if (buildCounterListDealAssociationsResponse < 3) { 1257 if (buildCounterListDealAssociationsResponse < 3) {
1294 o.associations = buildUnnamed3565(); 1258 o.associations = buildUnnamed3561();
1295 o.nextPageToken = "foo"; 1259 o.nextPageToken = "foo";
1296 } 1260 }
1297 buildCounterListDealAssociationsResponse--; 1261 buildCounterListDealAssociationsResponse--;
1298 return o; 1262 return o;
1299 } 1263 }
1300 1264
1301 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { 1265 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) {
1302 buildCounterListDealAssociationsResponse++; 1266 buildCounterListDealAssociationsResponse++;
1303 if (buildCounterListDealAssociationsResponse < 3) { 1267 if (buildCounterListDealAssociationsResponse < 3) {
1304 checkUnnamed3565(o.associations); 1268 checkUnnamed3561(o.associations);
1305 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1269 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1306 } 1270 }
1307 buildCounterListDealAssociationsResponse--; 1271 buildCounterListDealAssociationsResponse--;
1308 } 1272 }
1309 1273
1310 buildUnnamed3566() { 1274 buildUnnamed3562() {
1311 var o = new core.List<api.FilterSet>(); 1275 var o = new core.List<api.FilterSet>();
1312 o.add(buildFilterSet()); 1276 o.add(buildFilterSet());
1313 o.add(buildFilterSet()); 1277 o.add(buildFilterSet());
1314 return o; 1278 return o;
1315 } 1279 }
1316 1280
1317 checkUnnamed3566(core.List<api.FilterSet> o) { 1281 checkUnnamed3562(core.List<api.FilterSet> o) {
1318 unittest.expect(o, unittest.hasLength(2)); 1282 unittest.expect(o, unittest.hasLength(2));
1319 checkFilterSet(o[0]); 1283 checkFilterSet(o[0]);
1320 checkFilterSet(o[1]); 1284 checkFilterSet(o[1]);
1321 } 1285 }
1322 1286
1323 core.int buildCounterListFilterSetsResponse = 0; 1287 core.int buildCounterListFilterSetsResponse = 0;
1324 buildListFilterSetsResponse() { 1288 buildListFilterSetsResponse() {
1325 var o = new api.ListFilterSetsResponse(); 1289 var o = new api.ListFilterSetsResponse();
1326 buildCounterListFilterSetsResponse++; 1290 buildCounterListFilterSetsResponse++;
1327 if (buildCounterListFilterSetsResponse < 3) { 1291 if (buildCounterListFilterSetsResponse < 3) {
1328 o.filterSets = buildUnnamed3566(); 1292 o.filterSets = buildUnnamed3562();
1329 o.nextPageToken = "foo"; 1293 o.nextPageToken = "foo";
1330 } 1294 }
1331 buildCounterListFilterSetsResponse--; 1295 buildCounterListFilterSetsResponse--;
1332 return o; 1296 return o;
1333 } 1297 }
1334 1298
1335 checkListFilterSetsResponse(api.ListFilterSetsResponse o) { 1299 checkListFilterSetsResponse(api.ListFilterSetsResponse o) {
1336 buildCounterListFilterSetsResponse++; 1300 buildCounterListFilterSetsResponse++;
1337 if (buildCounterListFilterSetsResponse < 3) { 1301 if (buildCounterListFilterSetsResponse < 3) {
1338 checkUnnamed3566(o.filterSets); 1302 checkUnnamed3562(o.filterSets);
1339 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1303 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1340 } 1304 }
1341 buildCounterListFilterSetsResponse--; 1305 buildCounterListFilterSetsResponse--;
1342 } 1306 }
1343 1307
1344 buildUnnamed3567() { 1308 buildUnnamed3563() {
1345 var o = new core.List<api.CalloutStatusRow>(); 1309 var o = new core.List<api.CalloutStatusRow>();
1346 o.add(buildCalloutStatusRow()); 1310 o.add(buildCalloutStatusRow());
1347 o.add(buildCalloutStatusRow()); 1311 o.add(buildCalloutStatusRow());
1348 return o; 1312 return o;
1349 } 1313 }
1350 1314
1351 checkUnnamed3567(core.List<api.CalloutStatusRow> o) { 1315 checkUnnamed3563(core.List<api.CalloutStatusRow> o) {
1352 unittest.expect(o, unittest.hasLength(2)); 1316 unittest.expect(o, unittest.hasLength(2));
1353 checkCalloutStatusRow(o[0]); 1317 checkCalloutStatusRow(o[0]);
1354 checkCalloutStatusRow(o[1]); 1318 checkCalloutStatusRow(o[1]);
1355 } 1319 }
1356 1320
1357 core.int buildCounterListFilteredBidRequestsResponse = 0; 1321 core.int buildCounterListFilteredBidRequestsResponse = 0;
1358 buildListFilteredBidRequestsResponse() { 1322 buildListFilteredBidRequestsResponse() {
1359 var o = new api.ListFilteredBidRequestsResponse(); 1323 var o = new api.ListFilteredBidRequestsResponse();
1360 buildCounterListFilteredBidRequestsResponse++; 1324 buildCounterListFilteredBidRequestsResponse++;
1361 if (buildCounterListFilteredBidRequestsResponse < 3) { 1325 if (buildCounterListFilteredBidRequestsResponse < 3) {
1362 o.calloutStatusRows = buildUnnamed3567(); 1326 o.calloutStatusRows = buildUnnamed3563();
1363 o.nextPageToken = "foo"; 1327 o.nextPageToken = "foo";
1364 } 1328 }
1365 buildCounterListFilteredBidRequestsResponse--; 1329 buildCounterListFilteredBidRequestsResponse--;
1366 return o; 1330 return o;
1367 } 1331 }
1368 1332
1369 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { 1333 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) {
1370 buildCounterListFilteredBidRequestsResponse++; 1334 buildCounterListFilteredBidRequestsResponse++;
1371 if (buildCounterListFilteredBidRequestsResponse < 3) { 1335 if (buildCounterListFilteredBidRequestsResponse < 3) {
1372 checkUnnamed3567(o.calloutStatusRows); 1336 checkUnnamed3563(o.calloutStatusRows);
1373 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1337 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1374 } 1338 }
1375 buildCounterListFilteredBidRequestsResponse--; 1339 buildCounterListFilteredBidRequestsResponse--;
1376 } 1340 }
1377 1341
1378 buildUnnamed3568() { 1342 buildUnnamed3564() {
1379 var o = new core.List<api.CreativeStatusRow>(); 1343 var o = new core.List<api.CreativeStatusRow>();
1380 o.add(buildCreativeStatusRow()); 1344 o.add(buildCreativeStatusRow());
1381 o.add(buildCreativeStatusRow()); 1345 o.add(buildCreativeStatusRow());
1382 return o; 1346 return o;
1383 } 1347 }
1384 1348
1385 checkUnnamed3568(core.List<api.CreativeStatusRow> o) { 1349 checkUnnamed3564(core.List<api.CreativeStatusRow> o) {
1386 unittest.expect(o, unittest.hasLength(2)); 1350 unittest.expect(o, unittest.hasLength(2));
1387 checkCreativeStatusRow(o[0]); 1351 checkCreativeStatusRow(o[0]);
1388 checkCreativeStatusRow(o[1]); 1352 checkCreativeStatusRow(o[1]);
1389 } 1353 }
1390 1354
1391 core.int buildCounterListFilteredBidsResponse = 0; 1355 core.int buildCounterListFilteredBidsResponse = 0;
1392 buildListFilteredBidsResponse() { 1356 buildListFilteredBidsResponse() {
1393 var o = new api.ListFilteredBidsResponse(); 1357 var o = new api.ListFilteredBidsResponse();
1394 buildCounterListFilteredBidsResponse++; 1358 buildCounterListFilteredBidsResponse++;
1395 if (buildCounterListFilteredBidsResponse < 3) { 1359 if (buildCounterListFilteredBidsResponse < 3) {
1396 o.creativeStatusRows = buildUnnamed3568(); 1360 o.creativeStatusRows = buildUnnamed3564();
1397 o.nextPageToken = "foo"; 1361 o.nextPageToken = "foo";
1398 } 1362 }
1399 buildCounterListFilteredBidsResponse--; 1363 buildCounterListFilteredBidsResponse--;
1400 return o; 1364 return o;
1401 } 1365 }
1402 1366
1403 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { 1367 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) {
1404 buildCounterListFilteredBidsResponse++; 1368 buildCounterListFilteredBidsResponse++;
1405 if (buildCounterListFilteredBidsResponse < 3) { 1369 if (buildCounterListFilteredBidsResponse < 3) {
1406 checkUnnamed3568(o.creativeStatusRows); 1370 checkUnnamed3564(o.creativeStatusRows);
1407 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1371 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1408 } 1372 }
1409 buildCounterListFilteredBidsResponse--; 1373 buildCounterListFilteredBidsResponse--;
1410 } 1374 }
1411 1375
1412 buildUnnamed3569() { 1376 buildUnnamed3565() {
1413 var o = new core.List<api.ImpressionMetricsRow>(); 1377 var o = new core.List<api.ImpressionMetricsRow>();
1414 o.add(buildImpressionMetricsRow()); 1378 o.add(buildImpressionMetricsRow());
1415 o.add(buildImpressionMetricsRow()); 1379 o.add(buildImpressionMetricsRow());
1416 return o; 1380 return o;
1417 } 1381 }
1418 1382
1419 checkUnnamed3569(core.List<api.ImpressionMetricsRow> o) { 1383 checkUnnamed3565(core.List<api.ImpressionMetricsRow> o) {
1420 unittest.expect(o, unittest.hasLength(2)); 1384 unittest.expect(o, unittest.hasLength(2));
1421 checkImpressionMetricsRow(o[0]); 1385 checkImpressionMetricsRow(o[0]);
1422 checkImpressionMetricsRow(o[1]); 1386 checkImpressionMetricsRow(o[1]);
1423 } 1387 }
1424 1388
1425 core.int buildCounterListImpressionMetricsResponse = 0; 1389 core.int buildCounterListImpressionMetricsResponse = 0;
1426 buildListImpressionMetricsResponse() { 1390 buildListImpressionMetricsResponse() {
1427 var o = new api.ListImpressionMetricsResponse(); 1391 var o = new api.ListImpressionMetricsResponse();
1428 buildCounterListImpressionMetricsResponse++; 1392 buildCounterListImpressionMetricsResponse++;
1429 if (buildCounterListImpressionMetricsResponse < 3) { 1393 if (buildCounterListImpressionMetricsResponse < 3) {
1430 o.impressionMetricsRows = buildUnnamed3569(); 1394 o.impressionMetricsRows = buildUnnamed3565();
1431 o.nextPageToken = "foo"; 1395 o.nextPageToken = "foo";
1432 } 1396 }
1433 buildCounterListImpressionMetricsResponse--; 1397 buildCounterListImpressionMetricsResponse--;
1434 return o; 1398 return o;
1435 } 1399 }
1436 1400
1437 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { 1401 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) {
1438 buildCounterListImpressionMetricsResponse++; 1402 buildCounterListImpressionMetricsResponse++;
1439 if (buildCounterListImpressionMetricsResponse < 3) { 1403 if (buildCounterListImpressionMetricsResponse < 3) {
1440 checkUnnamed3569(o.impressionMetricsRows); 1404 checkUnnamed3565(o.impressionMetricsRows);
1441 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1405 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1442 } 1406 }
1443 buildCounterListImpressionMetricsResponse--; 1407 buildCounterListImpressionMetricsResponse--;
1444 } 1408 }
1445 1409
1446 buildUnnamed3570() { 1410 buildUnnamed3566() {
1447 var o = new core.List<api.CreativeStatusRow>(); 1411 var o = new core.List<api.CreativeStatusRow>();
1448 o.add(buildCreativeStatusRow()); 1412 o.add(buildCreativeStatusRow());
1449 o.add(buildCreativeStatusRow()); 1413 o.add(buildCreativeStatusRow());
1450 return o; 1414 return o;
1451 } 1415 }
1452 1416
1453 checkUnnamed3570(core.List<api.CreativeStatusRow> o) { 1417 checkUnnamed3566(core.List<api.CreativeStatusRow> o) {
1454 unittest.expect(o, unittest.hasLength(2)); 1418 unittest.expect(o, unittest.hasLength(2));
1455 checkCreativeStatusRow(o[0]); 1419 checkCreativeStatusRow(o[0]);
1456 checkCreativeStatusRow(o[1]); 1420 checkCreativeStatusRow(o[1]);
1457 } 1421 }
1458 1422
1459 core.int buildCounterListLosingBidsResponse = 0; 1423 core.int buildCounterListLosingBidsResponse = 0;
1460 buildListLosingBidsResponse() { 1424 buildListLosingBidsResponse() {
1461 var o = new api.ListLosingBidsResponse(); 1425 var o = new api.ListLosingBidsResponse();
1462 buildCounterListLosingBidsResponse++; 1426 buildCounterListLosingBidsResponse++;
1463 if (buildCounterListLosingBidsResponse < 3) { 1427 if (buildCounterListLosingBidsResponse < 3) {
1464 o.creativeStatusRows = buildUnnamed3570(); 1428 o.creativeStatusRows = buildUnnamed3566();
1465 o.nextPageToken = "foo"; 1429 o.nextPageToken = "foo";
1466 } 1430 }
1467 buildCounterListLosingBidsResponse--; 1431 buildCounterListLosingBidsResponse--;
1468 return o; 1432 return o;
1469 } 1433 }
1470 1434
1471 checkListLosingBidsResponse(api.ListLosingBidsResponse o) { 1435 checkListLosingBidsResponse(api.ListLosingBidsResponse o) {
1472 buildCounterListLosingBidsResponse++; 1436 buildCounterListLosingBidsResponse++;
1473 if (buildCounterListLosingBidsResponse < 3) { 1437 if (buildCounterListLosingBidsResponse < 3) {
1474 checkUnnamed3570(o.creativeStatusRows); 1438 checkUnnamed3566(o.creativeStatusRows);
1475 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1439 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1476 } 1440 }
1477 buildCounterListLosingBidsResponse--; 1441 buildCounterListLosingBidsResponse--;
1478 } 1442 }
1479 1443
1480 buildUnnamed3571() { 1444 buildUnnamed3567() {
1481 var o = new core.List<api.NonBillableWinningBidStatusRow>(); 1445 var o = new core.List<api.NonBillableWinningBidStatusRow>();
1482 o.add(buildNonBillableWinningBidStatusRow()); 1446 o.add(buildNonBillableWinningBidStatusRow());
1483 o.add(buildNonBillableWinningBidStatusRow()); 1447 o.add(buildNonBillableWinningBidStatusRow());
1484 return o; 1448 return o;
1485 } 1449 }
1486 1450
1487 checkUnnamed3571(core.List<api.NonBillableWinningBidStatusRow> o) { 1451 checkUnnamed3567(core.List<api.NonBillableWinningBidStatusRow> o) {
1488 unittest.expect(o, unittest.hasLength(2)); 1452 unittest.expect(o, unittest.hasLength(2));
1489 checkNonBillableWinningBidStatusRow(o[0]); 1453 checkNonBillableWinningBidStatusRow(o[0]);
1490 checkNonBillableWinningBidStatusRow(o[1]); 1454 checkNonBillableWinningBidStatusRow(o[1]);
1491 } 1455 }
1492 1456
1493 core.int buildCounterListNonBillableWinningBidsResponse = 0; 1457 core.int buildCounterListNonBillableWinningBidsResponse = 0;
1494 buildListNonBillableWinningBidsResponse() { 1458 buildListNonBillableWinningBidsResponse() {
1495 var o = new api.ListNonBillableWinningBidsResponse(); 1459 var o = new api.ListNonBillableWinningBidsResponse();
1496 buildCounterListNonBillableWinningBidsResponse++; 1460 buildCounterListNonBillableWinningBidsResponse++;
1497 if (buildCounterListNonBillableWinningBidsResponse < 3) { 1461 if (buildCounterListNonBillableWinningBidsResponse < 3) {
1498 o.nextPageToken = "foo"; 1462 o.nextPageToken = "foo";
1499 o.nonBillableWinningBidStatusRows = buildUnnamed3571(); 1463 o.nonBillableWinningBidStatusRows = buildUnnamed3567();
1500 } 1464 }
1501 buildCounterListNonBillableWinningBidsResponse--; 1465 buildCounterListNonBillableWinningBidsResponse--;
1502 return o; 1466 return o;
1503 } 1467 }
1504 1468
1505 checkListNonBillableWinningBidsResponse(api.ListNonBillableWinningBidsResponse o ) { 1469 checkListNonBillableWinningBidsResponse(api.ListNonBillableWinningBidsResponse o ) {
1506 buildCounterListNonBillableWinningBidsResponse++; 1470 buildCounterListNonBillableWinningBidsResponse++;
1507 if (buildCounterListNonBillableWinningBidsResponse < 3) { 1471 if (buildCounterListNonBillableWinningBidsResponse < 3) {
1508 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1472 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1509 checkUnnamed3571(o.nonBillableWinningBidStatusRows); 1473 checkUnnamed3567(o.nonBillableWinningBidStatusRows);
1510 } 1474 }
1511 buildCounterListNonBillableWinningBidsResponse--; 1475 buildCounterListNonBillableWinningBidsResponse--;
1512 } 1476 }
1513 1477
1514 buildUnnamed3572() { 1478 buildUnnamed3568() {
1515 var o = new core.List<core.int>(); 1479 var o = new core.List<core.int>();
1516 o.add(42); 1480 o.add(42);
1517 o.add(42); 1481 o.add(42);
1518 return o; 1482 return o;
1519 } 1483 }
1520 1484
1521 checkUnnamed3572(core.List<core.int> o) { 1485 checkUnnamed3568(core.List<core.int> o) {
1522 unittest.expect(o, unittest.hasLength(2)); 1486 unittest.expect(o, unittest.hasLength(2));
1523 unittest.expect(o[0], unittest.equals(42)); 1487 unittest.expect(o[0], unittest.equals(42));
1524 unittest.expect(o[1], unittest.equals(42)); 1488 unittest.expect(o[1], unittest.equals(42));
1525 } 1489 }
1526 1490
1527 core.int buildCounterLocationContext = 0; 1491 core.int buildCounterLocationContext = 0;
1528 buildLocationContext() { 1492 buildLocationContext() {
1529 var o = new api.LocationContext(); 1493 var o = new api.LocationContext();
1530 buildCounterLocationContext++; 1494 buildCounterLocationContext++;
1531 if (buildCounterLocationContext < 3) { 1495 if (buildCounterLocationContext < 3) {
1532 o.geoCriteriaIds = buildUnnamed3572(); 1496 o.geoCriteriaIds = buildUnnamed3568();
1533 } 1497 }
1534 buildCounterLocationContext--; 1498 buildCounterLocationContext--;
1535 return o; 1499 return o;
1536 } 1500 }
1537 1501
1538 checkLocationContext(api.LocationContext o) { 1502 checkLocationContext(api.LocationContext o) {
1539 buildCounterLocationContext++; 1503 buildCounterLocationContext++;
1540 if (buildCounterLocationContext < 3) { 1504 if (buildCounterLocationContext < 3) {
1541 checkUnnamed3572(o.geoCriteriaIds); 1505 checkUnnamed3568(o.geoCriteriaIds);
1542 } 1506 }
1543 buildCounterLocationContext--; 1507 buildCounterLocationContext--;
1544 } 1508 }
1545 1509
1546 core.int buildCounterMetricValue = 0; 1510 core.int buildCounterMetricValue = 0;
1547 buildMetricValue() { 1511 buildMetricValue() {
1548 var o = new api.MetricValue(); 1512 var o = new api.MetricValue();
1549 buildCounterMetricValue++; 1513 buildCounterMetricValue++;
1550 if (buildCounterMetricValue < 3) { 1514 if (buildCounterMetricValue < 3) {
1551 o.value = "foo"; 1515 o.value = "foo";
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 checkNonBillableWinningBidStatusRow(api.NonBillableWinningBidStatusRow o) { 1587 checkNonBillableWinningBidStatusRow(api.NonBillableWinningBidStatusRow o) {
1624 buildCounterNonBillableWinningBidStatusRow++; 1588 buildCounterNonBillableWinningBidStatusRow++;
1625 if (buildCounterNonBillableWinningBidStatusRow < 3) { 1589 if (buildCounterNonBillableWinningBidStatusRow < 3) {
1626 checkMetricValue(o.bidCount); 1590 checkMetricValue(o.bidCount);
1627 checkRowDimensions(o.rowDimensions); 1591 checkRowDimensions(o.rowDimensions);
1628 unittest.expect(o.status, unittest.equals('foo')); 1592 unittest.expect(o.status, unittest.equals('foo'));
1629 } 1593 }
1630 buildCounterNonBillableWinningBidStatusRow--; 1594 buildCounterNonBillableWinningBidStatusRow--;
1631 } 1595 }
1632 1596
1633 buildUnnamed3573() { 1597 buildUnnamed3569() {
1634 var o = new core.List<core.String>(); 1598 var o = new core.List<core.String>();
1635 o.add("foo"); 1599 o.add("foo");
1636 o.add("foo"); 1600 o.add("foo");
1637 return o; 1601 return o;
1638 } 1602 }
1639 1603
1640 checkUnnamed3573(core.List<core.String> o) { 1604 checkUnnamed3569(core.List<core.String> o) {
1641 unittest.expect(o, unittest.hasLength(2)); 1605 unittest.expect(o, unittest.hasLength(2));
1642 unittest.expect(o[0], unittest.equals('foo')); 1606 unittest.expect(o[0], unittest.equals('foo'));
1643 unittest.expect(o[1], unittest.equals('foo')); 1607 unittest.expect(o[1], unittest.equals('foo'));
1644 } 1608 }
1645 1609
1646 core.int buildCounterPlatformContext = 0; 1610 core.int buildCounterPlatformContext = 0;
1647 buildPlatformContext() { 1611 buildPlatformContext() {
1648 var o = new api.PlatformContext(); 1612 var o = new api.PlatformContext();
1649 buildCounterPlatformContext++; 1613 buildCounterPlatformContext++;
1650 if (buildCounterPlatformContext < 3) { 1614 if (buildCounterPlatformContext < 3) {
1651 o.platforms = buildUnnamed3573(); 1615 o.platforms = buildUnnamed3569();
1652 } 1616 }
1653 buildCounterPlatformContext--; 1617 buildCounterPlatformContext--;
1654 return o; 1618 return o;
1655 } 1619 }
1656 1620
1657 checkPlatformContext(api.PlatformContext o) { 1621 checkPlatformContext(api.PlatformContext o) {
1658 buildCounterPlatformContext++; 1622 buildCounterPlatformContext++;
1659 if (buildCounterPlatformContext < 3) { 1623 if (buildCounterPlatformContext < 3) {
1660 checkUnnamed3573(o.platforms); 1624 checkUnnamed3569(o.platforms);
1661 } 1625 }
1662 buildCounterPlatformContext--; 1626 buildCounterPlatformContext--;
1663 } 1627 }
1664 1628
1665 core.int buildCounterRealtimeTimeRange = 0; 1629 core.int buildCounterRealtimeTimeRange = 0;
1666 buildRealtimeTimeRange() { 1630 buildRealtimeTimeRange() {
1667 var o = new api.RealtimeTimeRange(); 1631 var o = new api.RealtimeTimeRange();
1668 buildCounterRealtimeTimeRange++; 1632 buildCounterRealtimeTimeRange++;
1669 if (buildCounterRealtimeTimeRange < 3) { 1633 if (buildCounterRealtimeTimeRange < 3) {
1670 o.startTimestamp = "foo"; 1634 o.startTimestamp = "foo";
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 } 1718 }
1755 1719
1756 checkRowDimensions(api.RowDimensions o) { 1720 checkRowDimensions(api.RowDimensions o) {
1757 buildCounterRowDimensions++; 1721 buildCounterRowDimensions++;
1758 if (buildCounterRowDimensions < 3) { 1722 if (buildCounterRowDimensions < 3) {
1759 checkTimeInterval(o.timeInterval); 1723 checkTimeInterval(o.timeInterval);
1760 } 1724 }
1761 buildCounterRowDimensions--; 1725 buildCounterRowDimensions--;
1762 } 1726 }
1763 1727
1764 buildUnnamed3574() { 1728 buildUnnamed3570() {
1765 var o = new core.List<core.String>(); 1729 var o = new core.List<core.String>();
1766 o.add("foo"); 1730 o.add("foo");
1767 o.add("foo"); 1731 o.add("foo");
1768 return o; 1732 return o;
1769 } 1733 }
1770 1734
1771 checkUnnamed3574(core.List<core.String> o) { 1735 checkUnnamed3570(core.List<core.String> o) {
1772 unittest.expect(o, unittest.hasLength(2)); 1736 unittest.expect(o, unittest.hasLength(2));
1773 unittest.expect(o[0], unittest.equals('foo')); 1737 unittest.expect(o[0], unittest.equals('foo'));
1774 unittest.expect(o[1], unittest.equals('foo')); 1738 unittest.expect(o[1], unittest.equals('foo'));
1775 } 1739 }
1776 1740
1777 core.int buildCounterSecurityContext = 0; 1741 core.int buildCounterSecurityContext = 0;
1778 buildSecurityContext() { 1742 buildSecurityContext() {
1779 var o = new api.SecurityContext(); 1743 var o = new api.SecurityContext();
1780 buildCounterSecurityContext++; 1744 buildCounterSecurityContext++;
1781 if (buildCounterSecurityContext < 3) { 1745 if (buildCounterSecurityContext < 3) {
1782 o.securities = buildUnnamed3574(); 1746 o.securities = buildUnnamed3570();
1783 } 1747 }
1784 buildCounterSecurityContext--; 1748 buildCounterSecurityContext--;
1785 return o; 1749 return o;
1786 } 1750 }
1787 1751
1788 checkSecurityContext(api.SecurityContext o) { 1752 checkSecurityContext(api.SecurityContext o) {
1789 buildCounterSecurityContext++; 1753 buildCounterSecurityContext++;
1790 if (buildCounterSecurityContext < 3) { 1754 if (buildCounterSecurityContext < 3) {
1791 checkUnnamed3574(o.securities); 1755 checkUnnamed3570(o.securities);
1792 } 1756 }
1793 buildCounterSecurityContext--; 1757 buildCounterSecurityContext--;
1794 } 1758 }
1795 1759
1796 core.int buildCounterServingContext = 0; 1760 core.int buildCounterServingContext = 0;
1797 buildServingContext() { 1761 buildServingContext() {
1798 var o = new api.ServingContext(); 1762 var o = new api.ServingContext();
1799 buildCounterServingContext++; 1763 buildCounterServingContext++;
1800 if (buildCounterServingContext < 3) { 1764 if (buildCounterServingContext < 3) {
1801 o.all = "foo"; 1765 o.all = "foo";
(...skipping 13 matching lines...) Expand all
1815 unittest.expect(o.all, unittest.equals('foo')); 1779 unittest.expect(o.all, unittest.equals('foo'));
1816 checkAppContext(o.appType); 1780 checkAppContext(o.appType);
1817 checkAuctionContext(o.auctionType); 1781 checkAuctionContext(o.auctionType);
1818 checkLocationContext(o.location); 1782 checkLocationContext(o.location);
1819 checkPlatformContext(o.platform); 1783 checkPlatformContext(o.platform);
1820 checkSecurityContext(o.securityType); 1784 checkSecurityContext(o.securityType);
1821 } 1785 }
1822 buildCounterServingContext--; 1786 buildCounterServingContext--;
1823 } 1787 }
1824 1788
1825 buildUnnamed3575() { 1789 buildUnnamed3571() {
1826 var o = new core.List<api.ServingContext>(); 1790 var o = new core.List<api.ServingContext>();
1827 o.add(buildServingContext()); 1791 o.add(buildServingContext());
1828 o.add(buildServingContext()); 1792 o.add(buildServingContext());
1829 return o; 1793 return o;
1830 } 1794 }
1831 1795
1832 checkUnnamed3575(core.List<api.ServingContext> o) { 1796 checkUnnamed3571(core.List<api.ServingContext> o) {
1833 unittest.expect(o, unittest.hasLength(2)); 1797 unittest.expect(o, unittest.hasLength(2));
1834 checkServingContext(o[0]); 1798 checkServingContext(o[0]);
1835 checkServingContext(o[1]); 1799 checkServingContext(o[1]);
1836 } 1800 }
1837 1801
1838 buildUnnamed3576() { 1802 buildUnnamed3572() {
1839 var o = new core.List<api.Disapproval>(); 1803 var o = new core.List<api.Disapproval>();
1840 o.add(buildDisapproval()); 1804 o.add(buildDisapproval());
1841 o.add(buildDisapproval()); 1805 o.add(buildDisapproval());
1842 return o; 1806 return o;
1843 } 1807 }
1844 1808
1845 checkUnnamed3576(core.List<api.Disapproval> o) { 1809 checkUnnamed3572(core.List<api.Disapproval> o) {
1846 unittest.expect(o, unittest.hasLength(2)); 1810 unittest.expect(o, unittest.hasLength(2));
1847 checkDisapproval(o[0]); 1811 checkDisapproval(o[0]);
1848 checkDisapproval(o[1]); 1812 checkDisapproval(o[1]);
1849 } 1813 }
1850 1814
1851 core.int buildCounterServingRestriction = 0; 1815 core.int buildCounterServingRestriction = 0;
1852 buildServingRestriction() { 1816 buildServingRestriction() {
1853 var o = new api.ServingRestriction(); 1817 var o = new api.ServingRestriction();
1854 buildCounterServingRestriction++; 1818 buildCounterServingRestriction++;
1855 if (buildCounterServingRestriction < 3) { 1819 if (buildCounterServingRestriction < 3) {
1856 o.contexts = buildUnnamed3575(); 1820 o.contexts = buildUnnamed3571();
1857 o.disapprovalReasons = buildUnnamed3576(); 1821 o.disapprovalReasons = buildUnnamed3572();
1858 o.status = "foo"; 1822 o.status = "foo";
1859 } 1823 }
1860 buildCounterServingRestriction--; 1824 buildCounterServingRestriction--;
1861 return o; 1825 return o;
1862 } 1826 }
1863 1827
1864 checkServingRestriction(api.ServingRestriction o) { 1828 checkServingRestriction(api.ServingRestriction o) {
1865 buildCounterServingRestriction++; 1829 buildCounterServingRestriction++;
1866 if (buildCounterServingRestriction < 3) { 1830 if (buildCounterServingRestriction < 3) {
1867 checkUnnamed3575(o.contexts); 1831 checkUnnamed3571(o.contexts);
1868 checkUnnamed3576(o.disapprovalReasons); 1832 checkUnnamed3572(o.disapprovalReasons);
1869 unittest.expect(o.status, unittest.equals('foo')); 1833 unittest.expect(o.status, unittest.equals('foo'));
1870 } 1834 }
1871 buildCounterServingRestriction--; 1835 buildCounterServingRestriction--;
1872 } 1836 }
1873 1837
1874 core.int buildCounterStopWatchingCreativeRequest = 0; 1838 core.int buildCounterStopWatchingCreativeRequest = 0;
1875 buildStopWatchingCreativeRequest() { 1839 buildStopWatchingCreativeRequest() {
1876 var o = new api.StopWatchingCreativeRequest(); 1840 var o = new api.StopWatchingCreativeRequest();
1877 buildCounterStopWatchingCreativeRequest++; 1841 buildCounterStopWatchingCreativeRequest++;
1878 if (buildCounterStopWatchingCreativeRequest < 3) { 1842 if (buildCounterStopWatchingCreativeRequest < 3) {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 2176
2213 unittest.group("obj-schema-ListClientsResponse", () { 2177 unittest.group("obj-schema-ListClientsResponse", () {
2214 unittest.test("to-json--from-json", () { 2178 unittest.test("to-json--from-json", () {
2215 var o = buildListClientsResponse(); 2179 var o = buildListClientsResponse();
2216 var od = new api.ListClientsResponse.fromJson(o.toJson()); 2180 var od = new api.ListClientsResponse.fromJson(o.toJson());
2217 checkListClientsResponse(od); 2181 checkListClientsResponse(od);
2218 }); 2182 });
2219 }); 2183 });
2220 2184
2221 2185
2222 unittest.group("obj-schema-ListCreativeStatusAndCreativeBreakdownByDetailRespo nse", () {
2223 unittest.test("to-json--from-json", () {
2224 var o = buildListCreativeStatusAndCreativeBreakdownByDetailResponse();
2225 var od = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse.fr omJson(o.toJson());
2226 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(od);
2227 });
2228 });
2229
2230
2231 unittest.group("obj-schema-ListCreativeStatusBreakdownByCreativeResponse", () { 2186 unittest.group("obj-schema-ListCreativeStatusBreakdownByCreativeResponse", () {
2232 unittest.test("to-json--from-json", () { 2187 unittest.test("to-json--from-json", () {
2233 var o = buildListCreativeStatusBreakdownByCreativeResponse(); 2188 var o = buildListCreativeStatusBreakdownByCreativeResponse();
2234 var od = new api.ListCreativeStatusBreakdownByCreativeResponse.fromJson(o. toJson()); 2189 var od = new api.ListCreativeStatusBreakdownByCreativeResponse.fromJson(o. toJson());
2235 checkListCreativeStatusBreakdownByCreativeResponse(od); 2190 checkListCreativeStatusBreakdownByCreativeResponse(od);
2236 }); 2191 });
2237 }); 2192 });
2238 2193
2239 2194
2240 unittest.group("obj-schema-ListCreativeStatusBreakdownByDetailResponse", () { 2195 unittest.group("obj-schema-ListCreativeStatusBreakdownByDetailResponse", () {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2580 res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((a pi.Client response) { 2535 res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((a pi.Client response) {
2581 checkClient(response); 2536 checkClient(response);
2582 }))); 2537 })));
2583 }); 2538 });
2584 2539
2585 unittest.test("method--list", () { 2540 unittest.test("method--list", () {
2586 2541
2587 var mock = new HttpServerMock(); 2542 var mock = new HttpServerMock();
2588 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc ounts.clients; 2543 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc ounts.clients;
2589 var arg_accountId = "foo"; 2544 var arg_accountId = "foo";
2545 var arg_pageToken = "foo";
2590 var arg_pageSize = 42; 2546 var arg_pageSize = 42;
2591 var arg_pageToken = "foo";
2592 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2547 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2593 var path = (req.url).path; 2548 var path = (req.url).path;
2594 var pathOffset = 0; 2549 var pathOffset = 0;
2595 var index; 2550 var index;
2596 var subPart; 2551 var subPart;
2597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2598 pathOffset += 1; 2553 pathOffset += 1;
2599 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/")); 2554 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/"));
2600 pathOffset += 17; 2555 pathOffset += 17;
2601 index = path.indexOf("/clients", pathOffset); 2556 index = path.indexOf("/clients", pathOffset);
(...skipping 13 matching lines...) Expand all
2615 if (n == "false") return false; 2570 if (n == "false") return false;
2616 if (n == null) return null; 2571 if (n == null) return null;
2617 throw new core.ArgumentError("Invalid boolean: $n"); 2572 throw new core.ArgumentError("Invalid boolean: $n");
2618 } 2573 }
2619 if (query.length > 0) { 2574 if (query.length > 0) {
2620 for (var part in query.split("&")) { 2575 for (var part in query.split("&")) {
2621 var keyvalue = part.split("="); 2576 var keyvalue = part.split("=");
2622 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2577 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2623 } 2578 }
2624 } 2579 }
2580 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2625 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2581 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2626 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2627 2582
2628 2583
2629 var h = { 2584 var h = {
2630 "content-type" : "application/json; charset=utf-8", 2585 "content-type" : "application/json; charset=utf-8",
2631 }; 2586 };
2632 var resp = convert.JSON.encode(buildListClientsResponse()); 2587 var resp = convert.JSON.encode(buildListClientsResponse());
2633 return new async.Future.value(stringResponse(200, h, resp)); 2588 return new async.Future.value(stringResponse(200, h, resp));
2634 }), true); 2589 }), true);
2635 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken). then(unittest.expectAsync1(((api.ListClientsResponse response) { 2590 res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize). then(unittest.expectAsync1(((api.ListClientsResponse response) {
2636 checkListClientsResponse(response); 2591 checkListClientsResponse(response);
2637 }))); 2592 })));
2638 }); 2593 });
2639 2594
2640 unittest.test("method--update", () { 2595 unittest.test("method--update", () {
2641 2596
2642 var mock = new HttpServerMock(); 2597 var mock = new HttpServerMock();
2643 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc ounts.clients; 2598 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc ounts.clients;
2644 var arg_request = buildClient(); 2599 var arg_request = buildClient();
2645 var arg_accountId = "foo"; 2600 var arg_accountId = "foo";
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
3510 checkEmpty(response); 3465 checkEmpty(response);
3511 }))); 3466 })));
3512 }); 3467 });
3513 3468
3514 unittest.test("method--list", () { 3469 unittest.test("method--list", () {
3515 3470
3516 var mock = new HttpServerMock(); 3471 var mock = new HttpServerMock();
3517 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb uyer2Api(mock).accounts.creatives.dealAssociations; 3472 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb uyer2Api(mock).accounts.creatives.dealAssociations;
3518 var arg_accountId = "foo"; 3473 var arg_accountId = "foo";
3519 var arg_creativeId = "foo"; 3474 var arg_creativeId = "foo";
3520 var arg_query = "foo";
3521 var arg_pageToken = "foo"; 3475 var arg_pageToken = "foo";
3522 var arg_pageSize = 42; 3476 var arg_pageSize = 42;
3477 var arg_query = "foo";
3523 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3478 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3524 var path = (req.url).path; 3479 var path = (req.url).path;
3525 var pathOffset = 0; 3480 var pathOffset = 0;
3526 var index; 3481 var index;
3527 var subPart; 3482 var subPart;
3528 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3529 pathOffset += 1; 3484 pathOffset += 1;
3530 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/")); 3485 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/"));
3531 pathOffset += 17; 3486 pathOffset += 17;
3532 index = path.indexOf("/creatives/", pathOffset); 3487 index = path.indexOf("/creatives/", pathOffset);
(...skipping 20 matching lines...) Expand all
3553 if (n == "false") return false; 3508 if (n == "false") return false;
3554 if (n == null) return null; 3509 if (n == null) return null;
3555 throw new core.ArgumentError("Invalid boolean: $n"); 3510 throw new core.ArgumentError("Invalid boolean: $n");
3556 } 3511 }
3557 if (query.length > 0) { 3512 if (query.length > 0) {
3558 for (var part in query.split("&")) { 3513 for (var part in query.split("&")) {
3559 var keyvalue = part.split("="); 3514 var keyvalue = part.split("=");
3560 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3515 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3561 } 3516 }
3562 } 3517 }
3563 unittest.expect(queryMap["query"].first, unittest.equals(arg_query));
3564 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3518 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3565 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3519 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3520 unittest.expect(queryMap["query"].first, unittest.equals(arg_query));
3566 3521
3567 3522
3568 var h = { 3523 var h = {
3569 "content-type" : "application/json; charset=utf-8", 3524 "content-type" : "application/json; charset=utf-8",
3570 }; 3525 };
3571 var resp = convert.JSON.encode(buildListDealAssociationsResponse()); 3526 var resp = convert.JSON.encode(buildListDealAssociationsResponse());
3572 return new async.Future.value(stringResponse(200, h, resp)); 3527 return new async.Future.value(stringResponse(200, h, resp));
3573 }), true); 3528 }), true);
3574 res.list(arg_accountId, arg_creativeId, query: arg_query, pageToken: arg_p ageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDealAssoc iationsResponse response) { 3529 res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize : arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListDealAssoc iationsResponse response) {
3575 checkListDealAssociationsResponse(response); 3530 checkListDealAssociationsResponse(response);
3576 }))); 3531 })));
3577 }); 3532 });
3578 3533
3579 unittest.test("method--remove", () { 3534 unittest.test("method--remove", () {
3580 3535
3581 var mock = new HttpServerMock(); 3536 var mock = new HttpServerMock();
3582 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb uyer2Api(mock).accounts.creatives.dealAssociations; 3537 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb uyer2Api(mock).accounts.creatives.dealAssociations;
3583 var arg_request = buildRemoveDealAssociationRequest(); 3538 var arg_request = buildRemoveDealAssociationRequest();
3584 var arg_accountId = "foo"; 3539 var arg_accountId = "foo";
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
4136 }); 4091 });
4137 4092
4138 4093
4139 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { 4094 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () {
4140 unittest.test("method--list", () { 4095 unittest.test("method--list", () {
4141 4096
4142 var mock = new HttpServerMock(); 4097 var mock = new HttpServerMock();
4143 api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuye r2Api(mock).accounts.filterSets.filteredBids; 4098 api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuye r2Api(mock).accounts.filterSets.filteredBids;
4144 var arg_accountId = "foo"; 4099 var arg_accountId = "foo";
4145 var arg_filterSetId = "foo"; 4100 var arg_filterSetId = "foo";
4101 var arg_pageToken = "foo";
4146 var arg_pageSize = 42; 4102 var arg_pageSize = 42;
4147 var arg_pageToken = "foo";
4148 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4103 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4149 var path = (req.url).path; 4104 var path = (req.url).path;
4150 var pathOffset = 0; 4105 var pathOffset = 0;
4151 var index; 4106 var index;
4152 var subPart; 4107 var subPart;
4153 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4108 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4154 pathOffset += 1; 4109 pathOffset += 1;
4155 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/")); 4110 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/"));
4156 pathOffset += 17; 4111 pathOffset += 17;
4157 index = path.indexOf("/filterSets/", pathOffset); 4112 index = path.indexOf("/filterSets/", pathOffset);
(...skipping 20 matching lines...) Expand all
4178 if (n == "false") return false; 4133 if (n == "false") return false;
4179 if (n == null) return null; 4134 if (n == null) return null;
4180 throw new core.ArgumentError("Invalid boolean: $n"); 4135 throw new core.ArgumentError("Invalid boolean: $n");
4181 } 4136 }
4182 if (query.length > 0) { 4137 if (query.length > 0) {
4183 for (var part in query.split("&")) { 4138 for (var part in query.split("&")) {
4184 var keyvalue = part.split("="); 4139 var keyvalue = part.split("=");
4185 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4140 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4186 } 4141 }
4187 } 4142 }
4143 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4188 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4144 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4189 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4190 4145
4191 4146
4192 var h = { 4147 var h = {
4193 "content-type" : "application/json; charset=utf-8", 4148 "content-type" : "application/json; charset=utf-8",
4194 }; 4149 };
4195 var resp = convert.JSON.encode(buildListFilteredBidsResponse()); 4150 var resp = convert.JSON.encode(buildListFilteredBidsResponse());
4196 return new async.Future.value(stringResponse(200, h, resp)); 4151 return new async.Future.value(stringResponse(200, h, resp));
4197 }), true); 4152 }), true);
4198 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListFilteredBidsResponse respo nse) { 4153 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidsResponse respo nse) {
4199 checkListFilteredBidsResponse(response); 4154 checkListFilteredBidsResponse(response);
4200 }))); 4155 })));
4201 }); 4156 });
4202 4157
4203 }); 4158 });
4204 4159
4205 4160
4206 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesResourceApi", () { 4161 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesResourceApi", () {
4207 unittest.test("method--list", () { 4162 unittest.test("method--list", () {
4208 4163
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
4271 return new async.Future.value(stringResponse(200, h, resp)); 4226 return new async.Future.value(stringResponse(200, h, resp));
4272 }), true); 4227 }), true);
4273 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCrea tiveStatusBreakdownByCreativeResponse response) { 4228 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCrea tiveStatusBreakdownByCreativeResponse response) {
4274 checkListCreativeStatusBreakdownByCreativeResponse(response); 4229 checkListCreativeStatusBreakdownByCreativeResponse(response);
4275 }))); 4230 })));
4276 }); 4231 });
4277 4232
4278 }); 4233 });
4279 4234
4280 4235
4281 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesDetailsResourc eApi", () {
4282 unittest.test("method--list", () {
4283
4284 var mock = new HttpServerMock();
4285 api.AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi res = new ap i.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives.details;
4286 var arg_accountId = "foo";
4287 var arg_filterSetId = "foo";
4288 var arg_creativeStatusId = 42;
4289 var arg_creativeId = "foo";
4290 var arg_pageToken = "foo";
4291 var arg_pageSize = 42;
4292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4293 var path = (req.url).path;
4294 var pathOffset = 0;
4295 var index;
4296 var subPart;
4297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4298 pathOffset += 1;
4299 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("v2beta1/accounts/"));
4300 pathOffset += 17;
4301 index = path.indexOf("/filterSets/", pathOffset);
4302 unittest.expect(index >= 0, unittest.isTrue);
4303 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4304 pathOffset = index;
4305 unittest.expect(subPart, unittest.equals("$arg_accountId"));
4306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/filterSets/"));
4307 pathOffset += 12;
4308 index = path.indexOf("/filteredBids/", pathOffset);
4309 unittest.expect(index >= 0, unittest.isTrue);
4310 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4311 pathOffset = index;
4312 unittest.expect(subPart, unittest.equals("$arg_filterSetId"));
4313 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("/filteredBids/"));
4314 pathOffset += 14;
4315 index = path.indexOf("/creatives/", pathOffset);
4316 unittest.expect(index >= 0, unittest.isTrue);
4317 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4318 pathOffset = index;
4319 unittest.expect(subPart, unittest.equals("$arg_creativeStatusId"));
4320 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/creatives/"));
4321 pathOffset += 11;
4322 index = path.indexOf("/details", pathOffset);
4323 unittest.expect(index >= 0, unittest.isTrue);
4324 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4325 pathOffset = index;
4326 unittest.expect(subPart, unittest.equals("$arg_creativeId"));
4327 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/details"));
4328 pathOffset += 8;
4329
4330 var query = (req.url).query;
4331 var queryOffset = 0;
4332 var queryMap = {};
4333 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4334 parseBool(n) {
4335 if (n == "true") return true;
4336 if (n == "false") return false;
4337 if (n == null) return null;
4338 throw new core.ArgumentError("Invalid boolean: $n");
4339 }
4340 if (query.length > 0) {
4341 for (var part in query.split("&")) {
4342 var keyvalue = part.split("=");
4343 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4344 }
4345 }
4346 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4347 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4348
4349
4350 var h = {
4351 "content-type" : "application/json; charset=utf-8",
4352 };
4353 var resp = convert.JSON.encode(buildListCreativeStatusAndCreativeBreakdo wnByDetailResponse());
4354 return new async.Future.value(stringResponse(200, h, resp));
4355 }), true);
4356 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, arg_creativ eId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync 1(((api.ListCreativeStatusAndCreativeBreakdownByDetailResponse response) {
4357 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(response);
4358 })));
4359 });
4360
4361 });
4362
4363
4364 unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", () { 4236 unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", () {
4365 unittest.test("method--list", () { 4237 unittest.test("method--list", () {
4366 4238
4367 var mock = new HttpServerMock(); 4239 var mock = new HttpServerMock();
4368 api.AccountsFilterSetsFilteredBidsDetailsResourceApi res = new api.Adexcha ngebuyer2Api(mock).accounts.filterSets.filteredBids.details; 4240 api.AccountsFilterSetsFilteredBidsDetailsResourceApi res = new api.Adexcha ngebuyer2Api(mock).accounts.filterSets.filteredBids.details;
4369 var arg_accountId = "foo"; 4241 var arg_accountId = "foo";
4370 var arg_filterSetId = "foo"; 4242 var arg_filterSetId = "foo";
4371 var arg_creativeStatusId = 42; 4243 var arg_creativeStatusId = 42;
4372 var arg_pageToken = "foo"; 4244 var arg_pageToken = "foo";
4373 var arg_pageSize = 42; 4245 var arg_pageSize = 42;
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
4632 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListNonBillableWinningBidsResp onse response) { 4504 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListNonBillableWinningBidsResp onse response) {
4633 checkListNonBillableWinningBidsResponse(response); 4505 checkListNonBillableWinningBidsResponse(response);
4634 }))); 4506 })));
4635 }); 4507 });
4636 4508
4637 }); 4509 });
4638 4510
4639 4511
4640 } 4512 }
4641 4513
OLDNEW
« no previous file with comments | « generated/googleapis_beta/pubspec.yaml ('k') | generated/googleapis_beta/test/appengine/v1beta4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698