OLD | NEW |
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 Loading... |
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 buildUnnamed3532() { | 94 buildUnnamed3564() { |
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 checkUnnamed3532(core.List<core.String> o) { | 101 checkUnnamed3564(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 = buildUnnamed3532(); | 112 o.appTypes = buildUnnamed3564(); |
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 checkUnnamed3532(o.appTypes); | 121 checkUnnamed3564(o.appTypes); |
122 } | 122 } |
123 buildCounterAppContext--; | 123 buildCounterAppContext--; |
124 } | 124 } |
125 | 125 |
126 buildUnnamed3533() { | 126 buildUnnamed3565() { |
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 checkUnnamed3533(core.List<core.String> o) { | 133 checkUnnamed3565(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 = buildUnnamed3533(); | 144 o.auctionTypes = buildUnnamed3565(); |
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 checkUnnamed3533(o.auctionTypes); | 153 checkUnnamed3565(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 Loading... |
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 buildUnnamed3534() { | 316 buildUnnamed3566() { |
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 checkUnnamed3534(core.List<api.ServingContext> o) { | 323 checkUnnamed3566(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 buildUnnamed3535() { | 329 buildUnnamed3567() { |
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 checkUnnamed3535(core.List<core.String> o) { | 336 checkUnnamed3567(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 = buildUnnamed3534(); | 347 o.contexts = buildUnnamed3566(); |
348 o.details = buildUnnamed3535(); | 348 o.details = buildUnnamed3567(); |
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 checkUnnamed3534(o.contexts); | 358 checkUnnamed3566(o.contexts); |
359 checkUnnamed3535(o.details); | 359 checkUnnamed3567(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() { | 365 buildUnnamed3568() { |
366 var o = new core.List<core.String>(); | 366 var o = new core.List<core.String>(); |
367 o.add("foo"); | 367 o.add("foo"); |
368 o.add("foo"); | 368 o.add("foo"); |
369 return o; | 369 return o; |
370 } | 370 } |
371 | 371 |
372 checkUnnamed3536(core.List<core.String> o) { | 372 checkUnnamed3568(core.List<core.String> o) { |
373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
374 unittest.expect(o[0], unittest.equals('foo')); | 374 unittest.expect(o[0], unittest.equals('foo')); |
375 unittest.expect(o[1], unittest.equals('foo')); | 375 unittest.expect(o[1], unittest.equals('foo')); |
376 } | 376 } |
377 | 377 |
378 buildUnnamed3537() { | 378 buildUnnamed3569() { |
379 var o = new core.List<core.String>(); | 379 var o = new core.List<core.String>(); |
380 o.add("foo"); | 380 o.add("foo"); |
381 o.add("foo"); | 381 o.add("foo"); |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkUnnamed3537(core.List<core.String> o) { | 385 checkUnnamed3569(core.List<core.String> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
387 unittest.expect(o[0], unittest.equals('foo')); | 387 unittest.expect(o[0], unittest.equals('foo')); |
388 unittest.expect(o[1], unittest.equals('foo')); | 388 unittest.expect(o[1], unittest.equals('foo')); |
389 } | 389 } |
390 | 390 |
391 buildUnnamed3538() { | 391 buildUnnamed3570() { |
392 var o = new core.List<api.Correction>(); | 392 var o = new core.List<api.Correction>(); |
393 o.add(buildCorrection()); | 393 o.add(buildCorrection()); |
394 o.add(buildCorrection()); | 394 o.add(buildCorrection()); |
395 return o; | 395 return o; |
396 } | 396 } |
397 | 397 |
398 checkUnnamed3538(core.List<api.Correction> o) { | 398 checkUnnamed3570(core.List<api.Correction> o) { |
399 unittest.expect(o, unittest.hasLength(2)); | 399 unittest.expect(o, unittest.hasLength(2)); |
400 checkCorrection(o[0]); | 400 checkCorrection(o[0]); |
401 checkCorrection(o[1]); | 401 checkCorrection(o[1]); |
402 } | 402 } |
403 | 403 |
404 buildUnnamed3539() { | 404 buildUnnamed3571() { |
405 var o = new core.List<core.String>(); | 405 var o = new core.List<core.String>(); |
406 o.add("foo"); | 406 o.add("foo"); |
407 o.add("foo"); | 407 o.add("foo"); |
408 return o; | 408 return o; |
409 } | 409 } |
410 | 410 |
411 checkUnnamed3539(core.List<core.String> o) { | 411 checkUnnamed3571(core.List<core.String> o) { |
412 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
413 unittest.expect(o[0], unittest.equals('foo')); | 413 unittest.expect(o[0], unittest.equals('foo')); |
414 unittest.expect(o[1], unittest.equals('foo')); | 414 unittest.expect(o[1], unittest.equals('foo')); |
415 } | 415 } |
416 | 416 |
417 buildUnnamed3540() { | 417 buildUnnamed3572() { |
418 var o = new core.List<core.String>(); | 418 var o = new core.List<core.String>(); |
419 o.add("foo"); | 419 o.add("foo"); |
420 o.add("foo"); | 420 o.add("foo"); |
421 return o; | 421 return o; |
422 } | 422 } |
423 | 423 |
424 checkUnnamed3540(core.List<core.String> o) { | 424 checkUnnamed3572(core.List<core.String> o) { |
425 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
426 unittest.expect(o[0], unittest.equals('foo')); | 426 unittest.expect(o[0], unittest.equals('foo')); |
427 unittest.expect(o[1], unittest.equals('foo')); | 427 unittest.expect(o[1], unittest.equals('foo')); |
428 } | 428 } |
429 | 429 |
430 buildUnnamed3541() { | 430 buildUnnamed3573() { |
431 var o = new core.List<core.String>(); | 431 var o = new core.List<core.String>(); |
432 o.add("foo"); | 432 o.add("foo"); |
433 o.add("foo"); | 433 o.add("foo"); |
434 return o; | 434 return o; |
435 } | 435 } |
436 | 436 |
437 checkUnnamed3541(core.List<core.String> o) { | 437 checkUnnamed3573(core.List<core.String> o) { |
438 unittest.expect(o, unittest.hasLength(2)); | 438 unittest.expect(o, unittest.hasLength(2)); |
439 unittest.expect(o[0], unittest.equals('foo')); | 439 unittest.expect(o[0], unittest.equals('foo')); |
440 unittest.expect(o[1], unittest.equals('foo')); | 440 unittest.expect(o[1], unittest.equals('foo')); |
441 } | 441 } |
442 | 442 |
443 buildUnnamed3542() { | 443 buildUnnamed3574() { |
444 var o = new core.List<core.int>(); | 444 var o = new core.List<core.int>(); |
445 o.add(42); | 445 o.add(42); |
446 o.add(42); | 446 o.add(42); |
447 return o; | 447 return o; |
448 } | 448 } |
449 | 449 |
450 checkUnnamed3542(core.List<core.int> o) { | 450 checkUnnamed3574(core.List<core.int> o) { |
451 unittest.expect(o, unittest.hasLength(2)); | 451 unittest.expect(o, unittest.hasLength(2)); |
452 unittest.expect(o[0], unittest.equals(42)); | 452 unittest.expect(o[0], unittest.equals(42)); |
453 unittest.expect(o[1], unittest.equals(42)); | 453 unittest.expect(o[1], unittest.equals(42)); |
454 } | 454 } |
455 | 455 |
456 buildUnnamed3543() { | 456 buildUnnamed3575() { |
457 var o = new core.List<core.int>(); | 457 var o = new core.List<core.int>(); |
458 o.add(42); | 458 o.add(42); |
459 o.add(42); | 459 o.add(42); |
460 return o; | 460 return o; |
461 } | 461 } |
462 | 462 |
463 checkUnnamed3543(core.List<core.int> o) { | 463 checkUnnamed3575(core.List<core.int> o) { |
464 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
465 unittest.expect(o[0], unittest.equals(42)); | 465 unittest.expect(o[0], unittest.equals(42)); |
466 unittest.expect(o[1], unittest.equals(42)); | 466 unittest.expect(o[1], unittest.equals(42)); |
467 } | 467 } |
468 | 468 |
469 buildUnnamed3544() { | 469 buildUnnamed3576() { |
470 var o = new core.List<core.String>(); | 470 var o = new core.List<core.String>(); |
471 o.add("foo"); | 471 o.add("foo"); |
472 o.add("foo"); | 472 o.add("foo"); |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkUnnamed3544(core.List<core.String> o) { | 476 checkUnnamed3576(core.List<core.String> o) { |
477 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
478 unittest.expect(o[0], unittest.equals('foo')); | 478 unittest.expect(o[0], unittest.equals('foo')); |
479 unittest.expect(o[1], unittest.equals('foo')); | 479 unittest.expect(o[1], unittest.equals('foo')); |
480 } | 480 } |
481 | 481 |
482 buildUnnamed3545() { | 482 buildUnnamed3577() { |
483 var o = new core.List<core.String>(); | 483 var o = new core.List<core.String>(); |
484 o.add("foo"); | 484 o.add("foo"); |
485 o.add("foo"); | 485 o.add("foo"); |
486 return o; | 486 return o; |
487 } | 487 } |
488 | 488 |
489 checkUnnamed3545(core.List<core.String> o) { | 489 checkUnnamed3577(core.List<core.String> o) { |
490 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
491 unittest.expect(o[0], unittest.equals('foo')); | 491 unittest.expect(o[0], unittest.equals('foo')); |
492 unittest.expect(o[1], unittest.equals('foo')); | 492 unittest.expect(o[1], unittest.equals('foo')); |
493 } | 493 } |
494 | 494 |
495 buildUnnamed3546() { | 495 buildUnnamed3578() { |
496 var o = new core.List<api.ServingRestriction>(); | 496 var o = new core.List<api.ServingRestriction>(); |
497 o.add(buildServingRestriction()); | 497 o.add(buildServingRestriction()); |
498 o.add(buildServingRestriction()); | 498 o.add(buildServingRestriction()); |
499 return o; | 499 return o; |
500 } | 500 } |
501 | 501 |
502 checkUnnamed3546(core.List<api.ServingRestriction> o) { | 502 checkUnnamed3578(core.List<api.ServingRestriction> o) { |
503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
504 checkServingRestriction(o[0]); | 504 checkServingRestriction(o[0]); |
505 checkServingRestriction(o[1]); | 505 checkServingRestriction(o[1]); |
506 } | 506 } |
507 | 507 |
508 buildUnnamed3547() { | 508 buildUnnamed3579() { |
509 var o = new core.List<core.int>(); | 509 var o = new core.List<core.int>(); |
510 o.add(42); | 510 o.add(42); |
511 o.add(42); | 511 o.add(42); |
512 return o; | 512 return o; |
513 } | 513 } |
514 | 514 |
515 checkUnnamed3547(core.List<core.int> o) { | 515 checkUnnamed3579(core.List<core.int> o) { |
516 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
517 unittest.expect(o[0], unittest.equals(42)); | 517 unittest.expect(o[0], unittest.equals(42)); |
518 unittest.expect(o[1], 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 = buildUnnamed3536(); | 531 o.attributes = buildUnnamed3568(); |
532 o.clickThroughUrls = buildUnnamed3537(); | 532 o.clickThroughUrls = buildUnnamed3569(); |
533 o.corrections = buildUnnamed3538(); | 533 o.corrections = buildUnnamed3570(); |
534 o.creativeId = "foo"; | 534 o.creativeId = "foo"; |
535 o.dealsStatus = "foo"; | 535 o.dealsStatus = "foo"; |
536 o.detectedAdvertiserIds = buildUnnamed3539(); | 536 o.detectedAdvertiserIds = buildUnnamed3571(); |
537 o.detectedDomains = buildUnnamed3540(); | 537 o.detectedDomains = buildUnnamed3572(); |
538 o.detectedLanguages = buildUnnamed3541(); | 538 o.detectedLanguages = buildUnnamed3573(); |
539 o.detectedProductCategories = buildUnnamed3542(); | 539 o.detectedProductCategories = buildUnnamed3574(); |
540 o.detectedSensitiveCategories = buildUnnamed3543(); | 540 o.detectedSensitiveCategories = buildUnnamed3575(); |
541 o.filteringStats = buildFilteringStats(); | 541 o.filteringStats = buildFilteringStats(); |
542 o.html = buildHtmlContent(); | 542 o.html = buildHtmlContent(); |
543 o.impressionTrackingUrls = buildUnnamed3544(); | 543 o.impressionTrackingUrls = buildUnnamed3576(); |
544 o.native = buildNativeContent(); | 544 o.native = buildNativeContent(); |
545 o.openAuctionStatus = "foo"; | 545 o.openAuctionStatus = "foo"; |
546 o.restrictedCategories = buildUnnamed3545(); | 546 o.restrictedCategories = buildUnnamed3577(); |
547 o.servingRestrictions = buildUnnamed3546(); | 547 o.servingRestrictions = buildUnnamed3578(); |
548 o.vendorIds = buildUnnamed3547(); | 548 o.vendorIds = buildUnnamed3579(); |
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 checkUnnamed3536(o.attributes); | 564 checkUnnamed3568(o.attributes); |
565 checkUnnamed3537(o.clickThroughUrls); | 565 checkUnnamed3569(o.clickThroughUrls); |
566 checkUnnamed3538(o.corrections); | 566 checkUnnamed3570(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 checkUnnamed3539(o.detectedAdvertiserIds); | 569 checkUnnamed3571(o.detectedAdvertiserIds); |
570 checkUnnamed3540(o.detectedDomains); | 570 checkUnnamed3572(o.detectedDomains); |
571 checkUnnamed3541(o.detectedLanguages); | 571 checkUnnamed3573(o.detectedLanguages); |
572 checkUnnamed3542(o.detectedProductCategories); | 572 checkUnnamed3574(o.detectedProductCategories); |
573 checkUnnamed3543(o.detectedSensitiveCategories); | 573 checkUnnamed3575(o.detectedSensitiveCategories); |
574 checkFilteringStats(o.filteringStats); | 574 checkFilteringStats(o.filteringStats); |
575 checkHtmlContent(o.html); | 575 checkHtmlContent(o.html); |
576 checkUnnamed3544(o.impressionTrackingUrls); | 576 checkUnnamed3576(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 checkUnnamed3545(o.restrictedCategories); | 579 checkUnnamed3577(o.restrictedCategories); |
580 checkUnnamed3546(o.servingRestrictions); | 580 checkUnnamed3578(o.servingRestrictions); |
581 checkUnnamed3547(o.vendorIds); | 581 checkUnnamed3579(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 Loading... |
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 buildUnnamed3548() { | 657 buildUnnamed3580() { |
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 checkUnnamed3548(core.List<core.String> o) { | 664 checkUnnamed3580(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 = buildUnnamed3548(); | 675 o.details = buildUnnamed3580(); |
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 checkUnnamed3548(o.details); | 685 checkUnnamed3580(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 buildUnnamed3549() { | 708 buildUnnamed3581() { |
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 checkUnnamed3549(core.List<core.String> o) { | 715 checkUnnamed3581(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 buildUnnamed3550() { | 721 buildUnnamed3582() { |
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 checkUnnamed3550(core.List<core.int> o) { | 728 checkUnnamed3582(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 = buildUnnamed3549(); | 747 o.platforms = buildUnnamed3581(); |
748 o.realtimeTimeRange = buildRealtimeTimeRange(); | 748 o.realtimeTimeRange = buildRealtimeTimeRange(); |
749 o.relativeDateRange = buildRelativeDateRange(); | 749 o.relativeDateRange = buildRelativeDateRange(); |
750 o.sellerNetworkIds = buildUnnamed3550(); | 750 o.sellerNetworkIds = buildUnnamed3582(); |
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 checkUnnamed3549(o.platforms); | 768 checkUnnamed3581(o.platforms); |
769 checkRealtimeTimeRange(o.realtimeTimeRange); | 769 checkRealtimeTimeRange(o.realtimeTimeRange); |
770 checkRelativeDateRange(o.relativeDateRange); | 770 checkRelativeDateRange(o.relativeDateRange); |
771 checkUnnamed3550(o.sellerNetworkIds); | 771 checkUnnamed3582(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 Loading... |
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 buildUnnamed3551() { | 823 buildUnnamed3583() { |
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 checkUnnamed3551(core.List<api.Reason> o) { | 830 checkUnnamed3583(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 = buildUnnamed3551(); | 842 o.reasons = buildUnnamed3583(); |
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 checkUnnamed3551(o.reasons); | 852 checkUnnamed3583(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 Loading... |
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 buildUnnamed3552() { | 932 buildUnnamed3584() { |
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 checkUnnamed3552(core.List<api.BidMetricsRow> o) { | 939 checkUnnamed3584(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 = buildUnnamed3552(); | 950 o.bidMetricsRows = buildUnnamed3584(); |
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 checkUnnamed3552(o.bidMetricsRows); | 960 checkUnnamed3584(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 buildUnnamed3553() { | 966 buildUnnamed3585() { |
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 checkUnnamed3553(core.List<api.CalloutStatusRow> o) { | 973 checkUnnamed3585(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 = buildUnnamed3553(); | 984 o.calloutStatusRows = buildUnnamed3585(); |
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 checkUnnamed3553(o.calloutStatusRows); | 994 checkUnnamed3585(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 buildUnnamed3554() { | 1000 buildUnnamed3586() { |
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 checkUnnamed3554(core.List<api.BidResponseWithoutBidsStatusRow> o) { | 1007 checkUnnamed3586(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 = buildUnnamed3554(); | 1018 o.bidResponseWithoutBidsStatusRows = buildUnnamed3586(); |
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 checkUnnamed3554(o.bidResponseWithoutBidsStatusRows); | 1028 checkUnnamed3586(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 buildUnnamed3555() { | 1034 buildUnnamed3587() { |
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 checkUnnamed3555(core.List<api.ClientUserInvitation> o) { | 1041 checkUnnamed3587(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 = buildUnnamed3555(); | 1052 o.invitations = buildUnnamed3587(); |
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 checkUnnamed3555(o.invitations); | 1062 checkUnnamed3587(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 buildUnnamed3556() { | 1068 buildUnnamed3588() { |
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 checkUnnamed3556(core.List<api.ClientUser> o) { | 1075 checkUnnamed3588(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 = buildUnnamed3556(); | 1087 o.users = buildUnnamed3588(); |
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 checkUnnamed3556(o.users); | 1097 checkUnnamed3588(o.users); |
1098 } | 1098 } |
1099 buildCounterListClientUsersResponse--; | 1099 buildCounterListClientUsersResponse--; |
1100 } | 1100 } |
1101 | 1101 |
1102 buildUnnamed3557() { | 1102 buildUnnamed3589() { |
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 checkUnnamed3557(core.List<api.Client> o) { | 1109 checkUnnamed3589(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 = buildUnnamed3557(); | 1120 o.clients = buildUnnamed3589(); |
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 checkUnnamed3557(o.clients); | 1130 checkUnnamed3589(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 buildUnnamed3558() { | 1136 buildUnnamed3590() { |
1137 var o = new core.List<api.FilteredBidCreativeRow>(); | 1137 var o = new core.List<api.FilteredBidCreativeRow>(); |
1138 o.add(buildFilteredBidCreativeRow()); | 1138 o.add(buildFilteredBidCreativeRow()); |
1139 o.add(buildFilteredBidCreativeRow()); | 1139 o.add(buildFilteredBidCreativeRow()); |
1140 return o; | 1140 return o; |
1141 } | 1141 } |
1142 | 1142 |
1143 checkUnnamed3558(core.List<api.FilteredBidCreativeRow> o) { | 1143 checkUnnamed3590(core.List<api.FilteredBidCreativeRow> o) { |
1144 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
1145 checkFilteredBidCreativeRow(o[0]); | 1145 checkFilteredBidCreativeRow(o[0]); |
1146 checkFilteredBidCreativeRow(o[1]); | 1146 checkFilteredBidCreativeRow(o[1]); |
1147 } | 1147 } |
1148 | 1148 |
1149 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; | 1149 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; |
1150 buildListCreativeStatusBreakdownByCreativeResponse() { | 1150 buildListCreativeStatusBreakdownByCreativeResponse() { |
1151 var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); | 1151 var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); |
1152 buildCounterListCreativeStatusBreakdownByCreativeResponse++; | 1152 buildCounterListCreativeStatusBreakdownByCreativeResponse++; |
1153 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { | 1153 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { |
1154 o.filteredBidCreativeRows = buildUnnamed3558(); | 1154 o.filteredBidCreativeRows = buildUnnamed3590(); |
1155 o.nextPageToken = "foo"; | 1155 o.nextPageToken = "foo"; |
1156 } | 1156 } |
1157 buildCounterListCreativeStatusBreakdownByCreativeResponse--; | 1157 buildCounterListCreativeStatusBreakdownByCreativeResponse--; |
1158 return o; | 1158 return o; |
1159 } | 1159 } |
1160 | 1160 |
1161 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo
wnByCreativeResponse o) { | 1161 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo
wnByCreativeResponse o) { |
1162 buildCounterListCreativeStatusBreakdownByCreativeResponse++; | 1162 buildCounterListCreativeStatusBreakdownByCreativeResponse++; |
1163 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { | 1163 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { |
1164 checkUnnamed3558(o.filteredBidCreativeRows); | 1164 checkUnnamed3590(o.filteredBidCreativeRows); |
1165 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1165 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1166 } | 1166 } |
1167 buildCounterListCreativeStatusBreakdownByCreativeResponse--; | 1167 buildCounterListCreativeStatusBreakdownByCreativeResponse--; |
1168 } | 1168 } |
1169 | 1169 |
1170 buildUnnamed3559() { | 1170 buildUnnamed3591() { |
1171 var o = new core.List<api.FilteredBidDetailRow>(); | 1171 var o = new core.List<api.FilteredBidDetailRow>(); |
1172 o.add(buildFilteredBidDetailRow()); | 1172 o.add(buildFilteredBidDetailRow()); |
1173 o.add(buildFilteredBidDetailRow()); | 1173 o.add(buildFilteredBidDetailRow()); |
1174 return o; | 1174 return o; |
1175 } | 1175 } |
1176 | 1176 |
1177 checkUnnamed3559(core.List<api.FilteredBidDetailRow> o) { | 1177 checkUnnamed3591(core.List<api.FilteredBidDetailRow> o) { |
1178 unittest.expect(o, unittest.hasLength(2)); | 1178 unittest.expect(o, unittest.hasLength(2)); |
1179 checkFilteredBidDetailRow(o[0]); | 1179 checkFilteredBidDetailRow(o[0]); |
1180 checkFilteredBidDetailRow(o[1]); | 1180 checkFilteredBidDetailRow(o[1]); |
1181 } | 1181 } |
1182 | 1182 |
1183 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; | 1183 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; |
1184 buildListCreativeStatusBreakdownByDetailResponse() { | 1184 buildListCreativeStatusBreakdownByDetailResponse() { |
1185 var o = new api.ListCreativeStatusBreakdownByDetailResponse(); | 1185 var o = new api.ListCreativeStatusBreakdownByDetailResponse(); |
1186 buildCounterListCreativeStatusBreakdownByDetailResponse++; | 1186 buildCounterListCreativeStatusBreakdownByDetailResponse++; |
1187 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { | 1187 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { |
1188 o.detailType = "foo"; | 1188 o.detailType = "foo"; |
1189 o.filteredBidDetailRows = buildUnnamed3559(); | 1189 o.filteredBidDetailRows = buildUnnamed3591(); |
1190 o.nextPageToken = "foo"; | 1190 o.nextPageToken = "foo"; |
1191 } | 1191 } |
1192 buildCounterListCreativeStatusBreakdownByDetailResponse--; | 1192 buildCounterListCreativeStatusBreakdownByDetailResponse--; |
1193 return o; | 1193 return o; |
1194 } | 1194 } |
1195 | 1195 |
1196 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown
ByDetailResponse o) { | 1196 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown
ByDetailResponse o) { |
1197 buildCounterListCreativeStatusBreakdownByDetailResponse++; | 1197 buildCounterListCreativeStatusBreakdownByDetailResponse++; |
1198 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { | 1198 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { |
1199 unittest.expect(o.detailType, unittest.equals('foo')); | 1199 unittest.expect(o.detailType, unittest.equals('foo')); |
1200 checkUnnamed3559(o.filteredBidDetailRows); | 1200 checkUnnamed3591(o.filteredBidDetailRows); |
1201 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1201 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1202 } | 1202 } |
1203 buildCounterListCreativeStatusBreakdownByDetailResponse--; | 1203 buildCounterListCreativeStatusBreakdownByDetailResponse--; |
1204 } | 1204 } |
1205 | 1205 |
1206 buildUnnamed3560() { | 1206 buildUnnamed3592() { |
1207 var o = new core.List<api.Creative>(); | 1207 var o = new core.List<api.Creative>(); |
1208 o.add(buildCreative()); | 1208 o.add(buildCreative()); |
1209 o.add(buildCreative()); | 1209 o.add(buildCreative()); |
1210 return o; | 1210 return o; |
1211 } | 1211 } |
1212 | 1212 |
1213 checkUnnamed3560(core.List<api.Creative> o) { | 1213 checkUnnamed3592(core.List<api.Creative> o) { |
1214 unittest.expect(o, unittest.hasLength(2)); | 1214 unittest.expect(o, unittest.hasLength(2)); |
1215 checkCreative(o[0]); | 1215 checkCreative(o[0]); |
1216 checkCreative(o[1]); | 1216 checkCreative(o[1]); |
1217 } | 1217 } |
1218 | 1218 |
1219 core.int buildCounterListCreativesResponse = 0; | 1219 core.int buildCounterListCreativesResponse = 0; |
1220 buildListCreativesResponse() { | 1220 buildListCreativesResponse() { |
1221 var o = new api.ListCreativesResponse(); | 1221 var o = new api.ListCreativesResponse(); |
1222 buildCounterListCreativesResponse++; | 1222 buildCounterListCreativesResponse++; |
1223 if (buildCounterListCreativesResponse < 3) { | 1223 if (buildCounterListCreativesResponse < 3) { |
1224 o.creatives = buildUnnamed3560(); | 1224 o.creatives = buildUnnamed3592(); |
1225 o.nextPageToken = "foo"; | 1225 o.nextPageToken = "foo"; |
1226 } | 1226 } |
1227 buildCounterListCreativesResponse--; | 1227 buildCounterListCreativesResponse--; |
1228 return o; | 1228 return o; |
1229 } | 1229 } |
1230 | 1230 |
1231 checkListCreativesResponse(api.ListCreativesResponse o) { | 1231 checkListCreativesResponse(api.ListCreativesResponse o) { |
1232 buildCounterListCreativesResponse++; | 1232 buildCounterListCreativesResponse++; |
1233 if (buildCounterListCreativesResponse < 3) { | 1233 if (buildCounterListCreativesResponse < 3) { |
1234 checkUnnamed3560(o.creatives); | 1234 checkUnnamed3592(o.creatives); |
1235 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1235 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1236 } | 1236 } |
1237 buildCounterListCreativesResponse--; | 1237 buildCounterListCreativesResponse--; |
1238 } | 1238 } |
1239 | 1239 |
1240 buildUnnamed3561() { | 1240 buildUnnamed3593() { |
1241 var o = new core.List<api.CreativeDealAssociation>(); | 1241 var o = new core.List<api.CreativeDealAssociation>(); |
1242 o.add(buildCreativeDealAssociation()); | 1242 o.add(buildCreativeDealAssociation()); |
1243 o.add(buildCreativeDealAssociation()); | 1243 o.add(buildCreativeDealAssociation()); |
1244 return o; | 1244 return o; |
1245 } | 1245 } |
1246 | 1246 |
1247 checkUnnamed3561(core.List<api.CreativeDealAssociation> o) { | 1247 checkUnnamed3593(core.List<api.CreativeDealAssociation> o) { |
1248 unittest.expect(o, unittest.hasLength(2)); | 1248 unittest.expect(o, unittest.hasLength(2)); |
1249 checkCreativeDealAssociation(o[0]); | 1249 checkCreativeDealAssociation(o[0]); |
1250 checkCreativeDealAssociation(o[1]); | 1250 checkCreativeDealAssociation(o[1]); |
1251 } | 1251 } |
1252 | 1252 |
1253 core.int buildCounterListDealAssociationsResponse = 0; | 1253 core.int buildCounterListDealAssociationsResponse = 0; |
1254 buildListDealAssociationsResponse() { | 1254 buildListDealAssociationsResponse() { |
1255 var o = new api.ListDealAssociationsResponse(); | 1255 var o = new api.ListDealAssociationsResponse(); |
1256 buildCounterListDealAssociationsResponse++; | 1256 buildCounterListDealAssociationsResponse++; |
1257 if (buildCounterListDealAssociationsResponse < 3) { | 1257 if (buildCounterListDealAssociationsResponse < 3) { |
1258 o.associations = buildUnnamed3561(); | 1258 o.associations = buildUnnamed3593(); |
1259 o.nextPageToken = "foo"; | 1259 o.nextPageToken = "foo"; |
1260 } | 1260 } |
1261 buildCounterListDealAssociationsResponse--; | 1261 buildCounterListDealAssociationsResponse--; |
1262 return o; | 1262 return o; |
1263 } | 1263 } |
1264 | 1264 |
1265 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { | 1265 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { |
1266 buildCounterListDealAssociationsResponse++; | 1266 buildCounterListDealAssociationsResponse++; |
1267 if (buildCounterListDealAssociationsResponse < 3) { | 1267 if (buildCounterListDealAssociationsResponse < 3) { |
1268 checkUnnamed3561(o.associations); | 1268 checkUnnamed3593(o.associations); |
1269 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1269 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1270 } | 1270 } |
1271 buildCounterListDealAssociationsResponse--; | 1271 buildCounterListDealAssociationsResponse--; |
1272 } | 1272 } |
1273 | 1273 |
1274 buildUnnamed3562() { | 1274 buildUnnamed3594() { |
1275 var o = new core.List<api.FilterSet>(); | 1275 var o = new core.List<api.FilterSet>(); |
1276 o.add(buildFilterSet()); | 1276 o.add(buildFilterSet()); |
1277 o.add(buildFilterSet()); | 1277 o.add(buildFilterSet()); |
1278 return o; | 1278 return o; |
1279 } | 1279 } |
1280 | 1280 |
1281 checkUnnamed3562(core.List<api.FilterSet> o) { | 1281 checkUnnamed3594(core.List<api.FilterSet> o) { |
1282 unittest.expect(o, unittest.hasLength(2)); | 1282 unittest.expect(o, unittest.hasLength(2)); |
1283 checkFilterSet(o[0]); | 1283 checkFilterSet(o[0]); |
1284 checkFilterSet(o[1]); | 1284 checkFilterSet(o[1]); |
1285 } | 1285 } |
1286 | 1286 |
1287 core.int buildCounterListFilterSetsResponse = 0; | 1287 core.int buildCounterListFilterSetsResponse = 0; |
1288 buildListFilterSetsResponse() { | 1288 buildListFilterSetsResponse() { |
1289 var o = new api.ListFilterSetsResponse(); | 1289 var o = new api.ListFilterSetsResponse(); |
1290 buildCounterListFilterSetsResponse++; | 1290 buildCounterListFilterSetsResponse++; |
1291 if (buildCounterListFilterSetsResponse < 3) { | 1291 if (buildCounterListFilterSetsResponse < 3) { |
1292 o.filterSets = buildUnnamed3562(); | 1292 o.filterSets = buildUnnamed3594(); |
1293 o.nextPageToken = "foo"; | 1293 o.nextPageToken = "foo"; |
1294 } | 1294 } |
1295 buildCounterListFilterSetsResponse--; | 1295 buildCounterListFilterSetsResponse--; |
1296 return o; | 1296 return o; |
1297 } | 1297 } |
1298 | 1298 |
1299 checkListFilterSetsResponse(api.ListFilterSetsResponse o) { | 1299 checkListFilterSetsResponse(api.ListFilterSetsResponse o) { |
1300 buildCounterListFilterSetsResponse++; | 1300 buildCounterListFilterSetsResponse++; |
1301 if (buildCounterListFilterSetsResponse < 3) { | 1301 if (buildCounterListFilterSetsResponse < 3) { |
1302 checkUnnamed3562(o.filterSets); | 1302 checkUnnamed3594(o.filterSets); |
1303 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1303 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1304 } | 1304 } |
1305 buildCounterListFilterSetsResponse--; | 1305 buildCounterListFilterSetsResponse--; |
1306 } | 1306 } |
1307 | 1307 |
1308 buildUnnamed3563() { | 1308 buildUnnamed3595() { |
1309 var o = new core.List<api.CalloutStatusRow>(); | 1309 var o = new core.List<api.CalloutStatusRow>(); |
1310 o.add(buildCalloutStatusRow()); | 1310 o.add(buildCalloutStatusRow()); |
1311 o.add(buildCalloutStatusRow()); | 1311 o.add(buildCalloutStatusRow()); |
1312 return o; | 1312 return o; |
1313 } | 1313 } |
1314 | 1314 |
1315 checkUnnamed3563(core.List<api.CalloutStatusRow> o) { | 1315 checkUnnamed3595(core.List<api.CalloutStatusRow> o) { |
1316 unittest.expect(o, unittest.hasLength(2)); | 1316 unittest.expect(o, unittest.hasLength(2)); |
1317 checkCalloutStatusRow(o[0]); | 1317 checkCalloutStatusRow(o[0]); |
1318 checkCalloutStatusRow(o[1]); | 1318 checkCalloutStatusRow(o[1]); |
1319 } | 1319 } |
1320 | 1320 |
1321 core.int buildCounterListFilteredBidRequestsResponse = 0; | 1321 core.int buildCounterListFilteredBidRequestsResponse = 0; |
1322 buildListFilteredBidRequestsResponse() { | 1322 buildListFilteredBidRequestsResponse() { |
1323 var o = new api.ListFilteredBidRequestsResponse(); | 1323 var o = new api.ListFilteredBidRequestsResponse(); |
1324 buildCounterListFilteredBidRequestsResponse++; | 1324 buildCounterListFilteredBidRequestsResponse++; |
1325 if (buildCounterListFilteredBidRequestsResponse < 3) { | 1325 if (buildCounterListFilteredBidRequestsResponse < 3) { |
1326 o.calloutStatusRows = buildUnnamed3563(); | 1326 o.calloutStatusRows = buildUnnamed3595(); |
1327 o.nextPageToken = "foo"; | 1327 o.nextPageToken = "foo"; |
1328 } | 1328 } |
1329 buildCounterListFilteredBidRequestsResponse--; | 1329 buildCounterListFilteredBidRequestsResponse--; |
1330 return o; | 1330 return o; |
1331 } | 1331 } |
1332 | 1332 |
1333 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { | 1333 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { |
1334 buildCounterListFilteredBidRequestsResponse++; | 1334 buildCounterListFilteredBidRequestsResponse++; |
1335 if (buildCounterListFilteredBidRequestsResponse < 3) { | 1335 if (buildCounterListFilteredBidRequestsResponse < 3) { |
1336 checkUnnamed3563(o.calloutStatusRows); | 1336 checkUnnamed3595(o.calloutStatusRows); |
1337 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1337 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1338 } | 1338 } |
1339 buildCounterListFilteredBidRequestsResponse--; | 1339 buildCounterListFilteredBidRequestsResponse--; |
1340 } | 1340 } |
1341 | 1341 |
1342 buildUnnamed3564() { | 1342 buildUnnamed3596() { |
1343 var o = new core.List<api.CreativeStatusRow>(); | 1343 var o = new core.List<api.CreativeStatusRow>(); |
1344 o.add(buildCreativeStatusRow()); | 1344 o.add(buildCreativeStatusRow()); |
1345 o.add(buildCreativeStatusRow()); | 1345 o.add(buildCreativeStatusRow()); |
1346 return o; | 1346 return o; |
1347 } | 1347 } |
1348 | 1348 |
1349 checkUnnamed3564(core.List<api.CreativeStatusRow> o) { | 1349 checkUnnamed3596(core.List<api.CreativeStatusRow> o) { |
1350 unittest.expect(o, unittest.hasLength(2)); | 1350 unittest.expect(o, unittest.hasLength(2)); |
1351 checkCreativeStatusRow(o[0]); | 1351 checkCreativeStatusRow(o[0]); |
1352 checkCreativeStatusRow(o[1]); | 1352 checkCreativeStatusRow(o[1]); |
1353 } | 1353 } |
1354 | 1354 |
1355 core.int buildCounterListFilteredBidsResponse = 0; | 1355 core.int buildCounterListFilteredBidsResponse = 0; |
1356 buildListFilteredBidsResponse() { | 1356 buildListFilteredBidsResponse() { |
1357 var o = new api.ListFilteredBidsResponse(); | 1357 var o = new api.ListFilteredBidsResponse(); |
1358 buildCounterListFilteredBidsResponse++; | 1358 buildCounterListFilteredBidsResponse++; |
1359 if (buildCounterListFilteredBidsResponse < 3) { | 1359 if (buildCounterListFilteredBidsResponse < 3) { |
1360 o.creativeStatusRows = buildUnnamed3564(); | 1360 o.creativeStatusRows = buildUnnamed3596(); |
1361 o.nextPageToken = "foo"; | 1361 o.nextPageToken = "foo"; |
1362 } | 1362 } |
1363 buildCounterListFilteredBidsResponse--; | 1363 buildCounterListFilteredBidsResponse--; |
1364 return o; | 1364 return o; |
1365 } | 1365 } |
1366 | 1366 |
1367 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { | 1367 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { |
1368 buildCounterListFilteredBidsResponse++; | 1368 buildCounterListFilteredBidsResponse++; |
1369 if (buildCounterListFilteredBidsResponse < 3) { | 1369 if (buildCounterListFilteredBidsResponse < 3) { |
1370 checkUnnamed3564(o.creativeStatusRows); | 1370 checkUnnamed3596(o.creativeStatusRows); |
1371 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1371 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1372 } | 1372 } |
1373 buildCounterListFilteredBidsResponse--; | 1373 buildCounterListFilteredBidsResponse--; |
1374 } | 1374 } |
1375 | 1375 |
1376 buildUnnamed3565() { | 1376 buildUnnamed3597() { |
1377 var o = new core.List<api.ImpressionMetricsRow>(); | 1377 var o = new core.List<api.ImpressionMetricsRow>(); |
1378 o.add(buildImpressionMetricsRow()); | 1378 o.add(buildImpressionMetricsRow()); |
1379 o.add(buildImpressionMetricsRow()); | 1379 o.add(buildImpressionMetricsRow()); |
1380 return o; | 1380 return o; |
1381 } | 1381 } |
1382 | 1382 |
1383 checkUnnamed3565(core.List<api.ImpressionMetricsRow> o) { | 1383 checkUnnamed3597(core.List<api.ImpressionMetricsRow> o) { |
1384 unittest.expect(o, unittest.hasLength(2)); | 1384 unittest.expect(o, unittest.hasLength(2)); |
1385 checkImpressionMetricsRow(o[0]); | 1385 checkImpressionMetricsRow(o[0]); |
1386 checkImpressionMetricsRow(o[1]); | 1386 checkImpressionMetricsRow(o[1]); |
1387 } | 1387 } |
1388 | 1388 |
1389 core.int buildCounterListImpressionMetricsResponse = 0; | 1389 core.int buildCounterListImpressionMetricsResponse = 0; |
1390 buildListImpressionMetricsResponse() { | 1390 buildListImpressionMetricsResponse() { |
1391 var o = new api.ListImpressionMetricsResponse(); | 1391 var o = new api.ListImpressionMetricsResponse(); |
1392 buildCounterListImpressionMetricsResponse++; | 1392 buildCounterListImpressionMetricsResponse++; |
1393 if (buildCounterListImpressionMetricsResponse < 3) { | 1393 if (buildCounterListImpressionMetricsResponse < 3) { |
1394 o.impressionMetricsRows = buildUnnamed3565(); | 1394 o.impressionMetricsRows = buildUnnamed3597(); |
1395 o.nextPageToken = "foo"; | 1395 o.nextPageToken = "foo"; |
1396 } | 1396 } |
1397 buildCounterListImpressionMetricsResponse--; | 1397 buildCounterListImpressionMetricsResponse--; |
1398 return o; | 1398 return o; |
1399 } | 1399 } |
1400 | 1400 |
1401 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { | 1401 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { |
1402 buildCounterListImpressionMetricsResponse++; | 1402 buildCounterListImpressionMetricsResponse++; |
1403 if (buildCounterListImpressionMetricsResponse < 3) { | 1403 if (buildCounterListImpressionMetricsResponse < 3) { |
1404 checkUnnamed3565(o.impressionMetricsRows); | 1404 checkUnnamed3597(o.impressionMetricsRows); |
1405 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1405 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1406 } | 1406 } |
1407 buildCounterListImpressionMetricsResponse--; | 1407 buildCounterListImpressionMetricsResponse--; |
1408 } | 1408 } |
1409 | 1409 |
1410 buildUnnamed3566() { | 1410 buildUnnamed3598() { |
1411 var o = new core.List<api.CreativeStatusRow>(); | 1411 var o = new core.List<api.CreativeStatusRow>(); |
1412 o.add(buildCreativeStatusRow()); | 1412 o.add(buildCreativeStatusRow()); |
1413 o.add(buildCreativeStatusRow()); | 1413 o.add(buildCreativeStatusRow()); |
1414 return o; | 1414 return o; |
1415 } | 1415 } |
1416 | 1416 |
1417 checkUnnamed3566(core.List<api.CreativeStatusRow> o) { | 1417 checkUnnamed3598(core.List<api.CreativeStatusRow> o) { |
1418 unittest.expect(o, unittest.hasLength(2)); | 1418 unittest.expect(o, unittest.hasLength(2)); |
1419 checkCreativeStatusRow(o[0]); | 1419 checkCreativeStatusRow(o[0]); |
1420 checkCreativeStatusRow(o[1]); | 1420 checkCreativeStatusRow(o[1]); |
1421 } | 1421 } |
1422 | 1422 |
1423 core.int buildCounterListLosingBidsResponse = 0; | 1423 core.int buildCounterListLosingBidsResponse = 0; |
1424 buildListLosingBidsResponse() { | 1424 buildListLosingBidsResponse() { |
1425 var o = new api.ListLosingBidsResponse(); | 1425 var o = new api.ListLosingBidsResponse(); |
1426 buildCounterListLosingBidsResponse++; | 1426 buildCounterListLosingBidsResponse++; |
1427 if (buildCounterListLosingBidsResponse < 3) { | 1427 if (buildCounterListLosingBidsResponse < 3) { |
1428 o.creativeStatusRows = buildUnnamed3566(); | 1428 o.creativeStatusRows = buildUnnamed3598(); |
1429 o.nextPageToken = "foo"; | 1429 o.nextPageToken = "foo"; |
1430 } | 1430 } |
1431 buildCounterListLosingBidsResponse--; | 1431 buildCounterListLosingBidsResponse--; |
1432 return o; | 1432 return o; |
1433 } | 1433 } |
1434 | 1434 |
1435 checkListLosingBidsResponse(api.ListLosingBidsResponse o) { | 1435 checkListLosingBidsResponse(api.ListLosingBidsResponse o) { |
1436 buildCounterListLosingBidsResponse++; | 1436 buildCounterListLosingBidsResponse++; |
1437 if (buildCounterListLosingBidsResponse < 3) { | 1437 if (buildCounterListLosingBidsResponse < 3) { |
1438 checkUnnamed3566(o.creativeStatusRows); | 1438 checkUnnamed3598(o.creativeStatusRows); |
1439 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1439 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1440 } | 1440 } |
1441 buildCounterListLosingBidsResponse--; | 1441 buildCounterListLosingBidsResponse--; |
1442 } | 1442 } |
1443 | 1443 |
1444 buildUnnamed3567() { | 1444 buildUnnamed3599() { |
1445 var o = new core.List<api.NonBillableWinningBidStatusRow>(); | 1445 var o = new core.List<api.NonBillableWinningBidStatusRow>(); |
1446 o.add(buildNonBillableWinningBidStatusRow()); | 1446 o.add(buildNonBillableWinningBidStatusRow()); |
1447 o.add(buildNonBillableWinningBidStatusRow()); | 1447 o.add(buildNonBillableWinningBidStatusRow()); |
1448 return o; | 1448 return o; |
1449 } | 1449 } |
1450 | 1450 |
1451 checkUnnamed3567(core.List<api.NonBillableWinningBidStatusRow> o) { | 1451 checkUnnamed3599(core.List<api.NonBillableWinningBidStatusRow> o) { |
1452 unittest.expect(o, unittest.hasLength(2)); | 1452 unittest.expect(o, unittest.hasLength(2)); |
1453 checkNonBillableWinningBidStatusRow(o[0]); | 1453 checkNonBillableWinningBidStatusRow(o[0]); |
1454 checkNonBillableWinningBidStatusRow(o[1]); | 1454 checkNonBillableWinningBidStatusRow(o[1]); |
1455 } | 1455 } |
1456 | 1456 |
1457 core.int buildCounterListNonBillableWinningBidsResponse = 0; | 1457 core.int buildCounterListNonBillableWinningBidsResponse = 0; |
1458 buildListNonBillableWinningBidsResponse() { | 1458 buildListNonBillableWinningBidsResponse() { |
1459 var o = new api.ListNonBillableWinningBidsResponse(); | 1459 var o = new api.ListNonBillableWinningBidsResponse(); |
1460 buildCounterListNonBillableWinningBidsResponse++; | 1460 buildCounterListNonBillableWinningBidsResponse++; |
1461 if (buildCounterListNonBillableWinningBidsResponse < 3) { | 1461 if (buildCounterListNonBillableWinningBidsResponse < 3) { |
1462 o.nextPageToken = "foo"; | 1462 o.nextPageToken = "foo"; |
1463 o.nonBillableWinningBidStatusRows = buildUnnamed3567(); | 1463 o.nonBillableWinningBidStatusRows = buildUnnamed3599(); |
1464 } | 1464 } |
1465 buildCounterListNonBillableWinningBidsResponse--; | 1465 buildCounterListNonBillableWinningBidsResponse--; |
1466 return o; | 1466 return o; |
1467 } | 1467 } |
1468 | 1468 |
1469 checkListNonBillableWinningBidsResponse(api.ListNonBillableWinningBidsResponse o
) { | 1469 checkListNonBillableWinningBidsResponse(api.ListNonBillableWinningBidsResponse o
) { |
1470 buildCounterListNonBillableWinningBidsResponse++; | 1470 buildCounterListNonBillableWinningBidsResponse++; |
1471 if (buildCounterListNonBillableWinningBidsResponse < 3) { | 1471 if (buildCounterListNonBillableWinningBidsResponse < 3) { |
1472 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1472 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1473 checkUnnamed3567(o.nonBillableWinningBidStatusRows); | 1473 checkUnnamed3599(o.nonBillableWinningBidStatusRows); |
1474 } | 1474 } |
1475 buildCounterListNonBillableWinningBidsResponse--; | 1475 buildCounterListNonBillableWinningBidsResponse--; |
1476 } | 1476 } |
1477 | 1477 |
1478 buildUnnamed3568() { | 1478 buildUnnamed3600() { |
1479 var o = new core.List<core.int>(); | 1479 var o = new core.List<core.int>(); |
1480 o.add(42); | 1480 o.add(42); |
1481 o.add(42); | 1481 o.add(42); |
1482 return o; | 1482 return o; |
1483 } | 1483 } |
1484 | 1484 |
1485 checkUnnamed3568(core.List<core.int> o) { | 1485 checkUnnamed3600(core.List<core.int> o) { |
1486 unittest.expect(o, unittest.hasLength(2)); | 1486 unittest.expect(o, unittest.hasLength(2)); |
1487 unittest.expect(o[0], unittest.equals(42)); | 1487 unittest.expect(o[0], unittest.equals(42)); |
1488 unittest.expect(o[1], unittest.equals(42)); | 1488 unittest.expect(o[1], unittest.equals(42)); |
1489 } | 1489 } |
1490 | 1490 |
1491 core.int buildCounterLocationContext = 0; | 1491 core.int buildCounterLocationContext = 0; |
1492 buildLocationContext() { | 1492 buildLocationContext() { |
1493 var o = new api.LocationContext(); | 1493 var o = new api.LocationContext(); |
1494 buildCounterLocationContext++; | 1494 buildCounterLocationContext++; |
1495 if (buildCounterLocationContext < 3) { | 1495 if (buildCounterLocationContext < 3) { |
1496 o.geoCriteriaIds = buildUnnamed3568(); | 1496 o.geoCriteriaIds = buildUnnamed3600(); |
1497 } | 1497 } |
1498 buildCounterLocationContext--; | 1498 buildCounterLocationContext--; |
1499 return o; | 1499 return o; |
1500 } | 1500 } |
1501 | 1501 |
1502 checkLocationContext(api.LocationContext o) { | 1502 checkLocationContext(api.LocationContext o) { |
1503 buildCounterLocationContext++; | 1503 buildCounterLocationContext++; |
1504 if (buildCounterLocationContext < 3) { | 1504 if (buildCounterLocationContext < 3) { |
1505 checkUnnamed3568(o.geoCriteriaIds); | 1505 checkUnnamed3600(o.geoCriteriaIds); |
1506 } | 1506 } |
1507 buildCounterLocationContext--; | 1507 buildCounterLocationContext--; |
1508 } | 1508 } |
1509 | 1509 |
1510 core.int buildCounterMetricValue = 0; | 1510 core.int buildCounterMetricValue = 0; |
1511 buildMetricValue() { | 1511 buildMetricValue() { |
1512 var o = new api.MetricValue(); | 1512 var o = new api.MetricValue(); |
1513 buildCounterMetricValue++; | 1513 buildCounterMetricValue++; |
1514 if (buildCounterMetricValue < 3) { | 1514 if (buildCounterMetricValue < 3) { |
1515 o.value = "foo"; | 1515 o.value = "foo"; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 checkNonBillableWinningBidStatusRow(api.NonBillableWinningBidStatusRow o) { | 1587 checkNonBillableWinningBidStatusRow(api.NonBillableWinningBidStatusRow o) { |
1588 buildCounterNonBillableWinningBidStatusRow++; | 1588 buildCounterNonBillableWinningBidStatusRow++; |
1589 if (buildCounterNonBillableWinningBidStatusRow < 3) { | 1589 if (buildCounterNonBillableWinningBidStatusRow < 3) { |
1590 checkMetricValue(o.bidCount); | 1590 checkMetricValue(o.bidCount); |
1591 checkRowDimensions(o.rowDimensions); | 1591 checkRowDimensions(o.rowDimensions); |
1592 unittest.expect(o.status, unittest.equals('foo')); | 1592 unittest.expect(o.status, unittest.equals('foo')); |
1593 } | 1593 } |
1594 buildCounterNonBillableWinningBidStatusRow--; | 1594 buildCounterNonBillableWinningBidStatusRow--; |
1595 } | 1595 } |
1596 | 1596 |
1597 buildUnnamed3569() { | 1597 buildUnnamed3601() { |
1598 var o = new core.List<core.String>(); | 1598 var o = new core.List<core.String>(); |
1599 o.add("foo"); | 1599 o.add("foo"); |
1600 o.add("foo"); | 1600 o.add("foo"); |
1601 return o; | 1601 return o; |
1602 } | 1602 } |
1603 | 1603 |
1604 checkUnnamed3569(core.List<core.String> o) { | 1604 checkUnnamed3601(core.List<core.String> o) { |
1605 unittest.expect(o, unittest.hasLength(2)); | 1605 unittest.expect(o, unittest.hasLength(2)); |
1606 unittest.expect(o[0], unittest.equals('foo')); | 1606 unittest.expect(o[0], unittest.equals('foo')); |
1607 unittest.expect(o[1], unittest.equals('foo')); | 1607 unittest.expect(o[1], unittest.equals('foo')); |
1608 } | 1608 } |
1609 | 1609 |
1610 core.int buildCounterPlatformContext = 0; | 1610 core.int buildCounterPlatformContext = 0; |
1611 buildPlatformContext() { | 1611 buildPlatformContext() { |
1612 var o = new api.PlatformContext(); | 1612 var o = new api.PlatformContext(); |
1613 buildCounterPlatformContext++; | 1613 buildCounterPlatformContext++; |
1614 if (buildCounterPlatformContext < 3) { | 1614 if (buildCounterPlatformContext < 3) { |
1615 o.platforms = buildUnnamed3569(); | 1615 o.platforms = buildUnnamed3601(); |
1616 } | 1616 } |
1617 buildCounterPlatformContext--; | 1617 buildCounterPlatformContext--; |
1618 return o; | 1618 return o; |
1619 } | 1619 } |
1620 | 1620 |
1621 checkPlatformContext(api.PlatformContext o) { | 1621 checkPlatformContext(api.PlatformContext o) { |
1622 buildCounterPlatformContext++; | 1622 buildCounterPlatformContext++; |
1623 if (buildCounterPlatformContext < 3) { | 1623 if (buildCounterPlatformContext < 3) { |
1624 checkUnnamed3569(o.platforms); | 1624 checkUnnamed3601(o.platforms); |
1625 } | 1625 } |
1626 buildCounterPlatformContext--; | 1626 buildCounterPlatformContext--; |
1627 } | 1627 } |
1628 | 1628 |
1629 core.int buildCounterRealtimeTimeRange = 0; | 1629 core.int buildCounterRealtimeTimeRange = 0; |
1630 buildRealtimeTimeRange() { | 1630 buildRealtimeTimeRange() { |
1631 var o = new api.RealtimeTimeRange(); | 1631 var o = new api.RealtimeTimeRange(); |
1632 buildCounterRealtimeTimeRange++; | 1632 buildCounterRealtimeTimeRange++; |
1633 if (buildCounterRealtimeTimeRange < 3) { | 1633 if (buildCounterRealtimeTimeRange < 3) { |
1634 o.startTimestamp = "foo"; | 1634 o.startTimestamp = "foo"; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 } | 1718 } |
1719 | 1719 |
1720 checkRowDimensions(api.RowDimensions o) { | 1720 checkRowDimensions(api.RowDimensions o) { |
1721 buildCounterRowDimensions++; | 1721 buildCounterRowDimensions++; |
1722 if (buildCounterRowDimensions < 3) { | 1722 if (buildCounterRowDimensions < 3) { |
1723 checkTimeInterval(o.timeInterval); | 1723 checkTimeInterval(o.timeInterval); |
1724 } | 1724 } |
1725 buildCounterRowDimensions--; | 1725 buildCounterRowDimensions--; |
1726 } | 1726 } |
1727 | 1727 |
1728 buildUnnamed3570() { | 1728 buildUnnamed3602() { |
1729 var o = new core.List<core.String>(); | 1729 var o = new core.List<core.String>(); |
1730 o.add("foo"); | 1730 o.add("foo"); |
1731 o.add("foo"); | 1731 o.add("foo"); |
1732 return o; | 1732 return o; |
1733 } | 1733 } |
1734 | 1734 |
1735 checkUnnamed3570(core.List<core.String> o) { | 1735 checkUnnamed3602(core.List<core.String> o) { |
1736 unittest.expect(o, unittest.hasLength(2)); | 1736 unittest.expect(o, unittest.hasLength(2)); |
1737 unittest.expect(o[0], unittest.equals('foo')); | 1737 unittest.expect(o[0], unittest.equals('foo')); |
1738 unittest.expect(o[1], unittest.equals('foo')); | 1738 unittest.expect(o[1], unittest.equals('foo')); |
1739 } | 1739 } |
1740 | 1740 |
1741 core.int buildCounterSecurityContext = 0; | 1741 core.int buildCounterSecurityContext = 0; |
1742 buildSecurityContext() { | 1742 buildSecurityContext() { |
1743 var o = new api.SecurityContext(); | 1743 var o = new api.SecurityContext(); |
1744 buildCounterSecurityContext++; | 1744 buildCounterSecurityContext++; |
1745 if (buildCounterSecurityContext < 3) { | 1745 if (buildCounterSecurityContext < 3) { |
1746 o.securities = buildUnnamed3570(); | 1746 o.securities = buildUnnamed3602(); |
1747 } | 1747 } |
1748 buildCounterSecurityContext--; | 1748 buildCounterSecurityContext--; |
1749 return o; | 1749 return o; |
1750 } | 1750 } |
1751 | 1751 |
1752 checkSecurityContext(api.SecurityContext o) { | 1752 checkSecurityContext(api.SecurityContext o) { |
1753 buildCounterSecurityContext++; | 1753 buildCounterSecurityContext++; |
1754 if (buildCounterSecurityContext < 3) { | 1754 if (buildCounterSecurityContext < 3) { |
1755 checkUnnamed3570(o.securities); | 1755 checkUnnamed3602(o.securities); |
1756 } | 1756 } |
1757 buildCounterSecurityContext--; | 1757 buildCounterSecurityContext--; |
1758 } | 1758 } |
1759 | 1759 |
1760 core.int buildCounterServingContext = 0; | 1760 core.int buildCounterServingContext = 0; |
1761 buildServingContext() { | 1761 buildServingContext() { |
1762 var o = new api.ServingContext(); | 1762 var o = new api.ServingContext(); |
1763 buildCounterServingContext++; | 1763 buildCounterServingContext++; |
1764 if (buildCounterServingContext < 3) { | 1764 if (buildCounterServingContext < 3) { |
1765 o.all = "foo"; | 1765 o.all = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
1779 unittest.expect(o.all, unittest.equals('foo')); | 1779 unittest.expect(o.all, unittest.equals('foo')); |
1780 checkAppContext(o.appType); | 1780 checkAppContext(o.appType); |
1781 checkAuctionContext(o.auctionType); | 1781 checkAuctionContext(o.auctionType); |
1782 checkLocationContext(o.location); | 1782 checkLocationContext(o.location); |
1783 checkPlatformContext(o.platform); | 1783 checkPlatformContext(o.platform); |
1784 checkSecurityContext(o.securityType); | 1784 checkSecurityContext(o.securityType); |
1785 } | 1785 } |
1786 buildCounterServingContext--; | 1786 buildCounterServingContext--; |
1787 } | 1787 } |
1788 | 1788 |
1789 buildUnnamed3571() { | 1789 buildUnnamed3603() { |
1790 var o = new core.List<api.ServingContext>(); | 1790 var o = new core.List<api.ServingContext>(); |
1791 o.add(buildServingContext()); | 1791 o.add(buildServingContext()); |
1792 o.add(buildServingContext()); | 1792 o.add(buildServingContext()); |
1793 return o; | 1793 return o; |
1794 } | 1794 } |
1795 | 1795 |
1796 checkUnnamed3571(core.List<api.ServingContext> o) { | 1796 checkUnnamed3603(core.List<api.ServingContext> o) { |
1797 unittest.expect(o, unittest.hasLength(2)); | 1797 unittest.expect(o, unittest.hasLength(2)); |
1798 checkServingContext(o[0]); | 1798 checkServingContext(o[0]); |
1799 checkServingContext(o[1]); | 1799 checkServingContext(o[1]); |
1800 } | 1800 } |
1801 | 1801 |
1802 buildUnnamed3572() { | 1802 buildUnnamed3604() { |
1803 var o = new core.List<api.Disapproval>(); | 1803 var o = new core.List<api.Disapproval>(); |
1804 o.add(buildDisapproval()); | 1804 o.add(buildDisapproval()); |
1805 o.add(buildDisapproval()); | 1805 o.add(buildDisapproval()); |
1806 return o; | 1806 return o; |
1807 } | 1807 } |
1808 | 1808 |
1809 checkUnnamed3572(core.List<api.Disapproval> o) { | 1809 checkUnnamed3604(core.List<api.Disapproval> o) { |
1810 unittest.expect(o, unittest.hasLength(2)); | 1810 unittest.expect(o, unittest.hasLength(2)); |
1811 checkDisapproval(o[0]); | 1811 checkDisapproval(o[0]); |
1812 checkDisapproval(o[1]); | 1812 checkDisapproval(o[1]); |
1813 } | 1813 } |
1814 | 1814 |
1815 core.int buildCounterServingRestriction = 0; | 1815 core.int buildCounterServingRestriction = 0; |
1816 buildServingRestriction() { | 1816 buildServingRestriction() { |
1817 var o = new api.ServingRestriction(); | 1817 var o = new api.ServingRestriction(); |
1818 buildCounterServingRestriction++; | 1818 buildCounterServingRestriction++; |
1819 if (buildCounterServingRestriction < 3) { | 1819 if (buildCounterServingRestriction < 3) { |
1820 o.contexts = buildUnnamed3571(); | 1820 o.contexts = buildUnnamed3603(); |
1821 o.disapprovalReasons = buildUnnamed3572(); | 1821 o.disapprovalReasons = buildUnnamed3604(); |
1822 o.status = "foo"; | 1822 o.status = "foo"; |
1823 } | 1823 } |
1824 buildCounterServingRestriction--; | 1824 buildCounterServingRestriction--; |
1825 return o; | 1825 return o; |
1826 } | 1826 } |
1827 | 1827 |
1828 checkServingRestriction(api.ServingRestriction o) { | 1828 checkServingRestriction(api.ServingRestriction o) { |
1829 buildCounterServingRestriction++; | 1829 buildCounterServingRestriction++; |
1830 if (buildCounterServingRestriction < 3) { | 1830 if (buildCounterServingRestriction < 3) { |
1831 checkUnnamed3571(o.contexts); | 1831 checkUnnamed3603(o.contexts); |
1832 checkUnnamed3572(o.disapprovalReasons); | 1832 checkUnnamed3604(o.disapprovalReasons); |
1833 unittest.expect(o.status, unittest.equals('foo')); | 1833 unittest.expect(o.status, unittest.equals('foo')); |
1834 } | 1834 } |
1835 buildCounterServingRestriction--; | 1835 buildCounterServingRestriction--; |
1836 } | 1836 } |
1837 | 1837 |
1838 core.int buildCounterStopWatchingCreativeRequest = 0; | 1838 core.int buildCounterStopWatchingCreativeRequest = 0; |
1839 buildStopWatchingCreativeRequest() { | 1839 buildStopWatchingCreativeRequest() { |
1840 var o = new api.StopWatchingCreativeRequest(); | 1840 var o = new api.StopWatchingCreativeRequest(); |
1841 buildCounterStopWatchingCreativeRequest++; | 1841 buildCounterStopWatchingCreativeRequest++; |
1842 if (buildCounterStopWatchingCreativeRequest < 3) { | 1842 if (buildCounterStopWatchingCreativeRequest < 3) { |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2535 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) { |
2536 checkClient(response); | 2536 checkClient(response); |
2537 }))); | 2537 }))); |
2538 }); | 2538 }); |
2539 | 2539 |
2540 unittest.test("method--list", () { | 2540 unittest.test("method--list", () { |
2541 | 2541 |
2542 var mock = new HttpServerMock(); | 2542 var mock = new HttpServerMock(); |
2543 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; | 2543 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; |
2544 var arg_accountId = "foo"; | 2544 var arg_accountId = "foo"; |
| 2545 var arg_pageSize = 42; |
2545 var arg_pageToken = "foo"; | 2546 var arg_pageToken = "foo"; |
2546 var arg_pageSize = 42; | |
2547 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2547 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2548 var path = (req.url).path; | 2548 var path = (req.url).path; |
2549 var pathOffset = 0; | 2549 var pathOffset = 0; |
2550 var index; | 2550 var index; |
2551 var subPart; | 2551 var subPart; |
2552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2553 pathOffset += 1; | 2553 pathOffset += 1; |
2554 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/")); |
2555 pathOffset += 17; | 2555 pathOffset += 17; |
2556 index = path.indexOf("/clients", pathOffset); | 2556 index = path.indexOf("/clients", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2570 if (n == "false") return false; | 2570 if (n == "false") return false; |
2571 if (n == null) return null; | 2571 if (n == null) return null; |
2572 throw new core.ArgumentError("Invalid boolean: $n"); | 2572 throw new core.ArgumentError("Invalid boolean: $n"); |
2573 } | 2573 } |
2574 if (query.length > 0) { | 2574 if (query.length > 0) { |
2575 for (var part in query.split("&")) { | 2575 for (var part in query.split("&")) { |
2576 var keyvalue = part.split("="); | 2576 var keyvalue = part.split("="); |
2577 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])); |
2578 } | 2578 } |
2579 } | 2579 } |
| 2580 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2580 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2581 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2581 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2582 | 2582 |
2583 | 2583 |
2584 var h = { | 2584 var h = { |
2585 "content-type" : "application/json; charset=utf-8", | 2585 "content-type" : "application/json; charset=utf-8", |
2586 }; | 2586 }; |
2587 var resp = convert.JSON.encode(buildListClientsResponse()); | 2587 var resp = convert.JSON.encode(buildListClientsResponse()); |
2588 return new async.Future.value(stringResponse(200, h, resp)); | 2588 return new async.Future.value(stringResponse(200, h, resp)); |
2589 }), true); | 2589 }), true); |
2590 res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).
then(unittest.expectAsync1(((api.ListClientsResponse response) { | 2590 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken).
then(unittest.expectAsync1(((api.ListClientsResponse response) { |
2591 checkListClientsResponse(response); | 2591 checkListClientsResponse(response); |
2592 }))); | 2592 }))); |
2593 }); | 2593 }); |
2594 | 2594 |
2595 unittest.test("method--update", () { | 2595 unittest.test("method--update", () { |
2596 | 2596 |
2597 var mock = new HttpServerMock(); | 2597 var mock = new HttpServerMock(); |
2598 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; | 2598 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; |
2599 var arg_request = buildClient(); | 2599 var arg_request = buildClient(); |
2600 var arg_accountId = "foo"; | 2600 var arg_accountId = "foo"; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 checkClientUser(response); | 2910 checkClientUser(response); |
2911 }))); | 2911 }))); |
2912 }); | 2912 }); |
2913 | 2913 |
2914 unittest.test("method--list", () { | 2914 unittest.test("method--list", () { |
2915 | 2915 |
2916 var mock = new HttpServerMock(); | 2916 var mock = new HttpServerMock(); |
2917 api.AccountsClientsUsersResourceApi res = new api.Adexchangebuyer2Api(mock
).accounts.clients.users; | 2917 api.AccountsClientsUsersResourceApi res = new api.Adexchangebuyer2Api(mock
).accounts.clients.users; |
2918 var arg_accountId = "foo"; | 2918 var arg_accountId = "foo"; |
2919 var arg_clientAccountId = "foo"; | 2919 var arg_clientAccountId = "foo"; |
| 2920 var arg_pageSize = 42; |
2920 var arg_pageToken = "foo"; | 2921 var arg_pageToken = "foo"; |
2921 var arg_pageSize = 42; | |
2922 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2922 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2923 var path = (req.url).path; | 2923 var path = (req.url).path; |
2924 var pathOffset = 0; | 2924 var pathOffset = 0; |
2925 var index; | 2925 var index; |
2926 var subPart; | 2926 var subPart; |
2927 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2927 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2928 pathOffset += 1; | 2928 pathOffset += 1; |
2929 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 2929 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
2930 pathOffset += 17; | 2930 pathOffset += 17; |
2931 index = path.indexOf("/clients/", pathOffset); | 2931 index = path.indexOf("/clients/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
2952 if (n == "false") return false; | 2952 if (n == "false") return false; |
2953 if (n == null) return null; | 2953 if (n == null) return null; |
2954 throw new core.ArgumentError("Invalid boolean: $n"); | 2954 throw new core.ArgumentError("Invalid boolean: $n"); |
2955 } | 2955 } |
2956 if (query.length > 0) { | 2956 if (query.length > 0) { |
2957 for (var part in query.split("&")) { | 2957 for (var part in query.split("&")) { |
2958 var keyvalue = part.split("="); | 2958 var keyvalue = part.split("="); |
2959 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2959 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2960 } | 2960 } |
2961 } | 2961 } |
| 2962 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2962 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2963 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2963 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2964 | 2964 |
2965 | 2965 |
2966 var h = { | 2966 var h = { |
2967 "content-type" : "application/json; charset=utf-8", | 2967 "content-type" : "application/json; charset=utf-8", |
2968 }; | 2968 }; |
2969 var resp = convert.JSON.encode(buildListClientUsersResponse()); | 2969 var resp = convert.JSON.encode(buildListClientUsersResponse()); |
2970 return new async.Future.value(stringResponse(200, h, resp)); | 2970 return new async.Future.value(stringResponse(200, h, resp)); |
2971 }), true); | 2971 }), true); |
2972 res.list(arg_accountId, arg_clientAccountId, pageToken: arg_pageToken, pag
eSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClientUsersResponse re
sponse) { | 2972 res.list(arg_accountId, arg_clientAccountId, pageSize: arg_pageSize, pageT
oken: arg_pageToken).then(unittest.expectAsync1(((api.ListClientUsersResponse re
sponse) { |
2973 checkListClientUsersResponse(response); | 2973 checkListClientUsersResponse(response); |
2974 }))); | 2974 }))); |
2975 }); | 2975 }); |
2976 | 2976 |
2977 unittest.test("method--update", () { | 2977 unittest.test("method--update", () { |
2978 | 2978 |
2979 var mock = new HttpServerMock(); | 2979 var mock = new HttpServerMock(); |
2980 api.AccountsClientsUsersResourceApi res = new api.Adexchangebuyer2Api(mock
).accounts.clients.users; | 2980 api.AccountsClientsUsersResourceApi res = new api.Adexchangebuyer2Api(mock
).accounts.clients.users; |
2981 var arg_request = buildClientUser(); | 2981 var arg_request = buildClientUser(); |
2982 var arg_accountId = "foo"; | 2982 var arg_accountId = "foo"; |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3465 checkEmpty(response); | 3465 checkEmpty(response); |
3466 }))); | 3466 }))); |
3467 }); | 3467 }); |
3468 | 3468 |
3469 unittest.test("method--list", () { | 3469 unittest.test("method--list", () { |
3470 | 3470 |
3471 var mock = new HttpServerMock(); | 3471 var mock = new HttpServerMock(); |
3472 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; | 3472 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; |
3473 var arg_accountId = "foo"; | 3473 var arg_accountId = "foo"; |
3474 var arg_creativeId = "foo"; | 3474 var arg_creativeId = "foo"; |
3475 var arg_pageToken = "foo"; | |
3476 var arg_pageSize = 42; | 3475 var arg_pageSize = 42; |
3477 var arg_query = "foo"; | 3476 var arg_query = "foo"; |
| 3477 var arg_pageToken = "foo"; |
3478 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3478 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3479 var path = (req.url).path; | 3479 var path = (req.url).path; |
3480 var pathOffset = 0; | 3480 var pathOffset = 0; |
3481 var index; | 3481 var index; |
3482 var subPart; | 3482 var subPart; |
3483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3484 pathOffset += 1; | 3484 pathOffset += 1; |
3485 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/")); |
3486 pathOffset += 17; | 3486 pathOffset += 17; |
3487 index = path.indexOf("/creatives/", pathOffset); | 3487 index = path.indexOf("/creatives/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
3508 if (n == "false") return false; | 3508 if (n == "false") return false; |
3509 if (n == null) return null; | 3509 if (n == null) return null; |
3510 throw new core.ArgumentError("Invalid boolean: $n"); | 3510 throw new core.ArgumentError("Invalid boolean: $n"); |
3511 } | 3511 } |
3512 if (query.length > 0) { | 3512 if (query.length > 0) { |
3513 for (var part in query.split("&")) { | 3513 for (var part in query.split("&")) { |
3514 var keyvalue = part.split("="); | 3514 var keyvalue = part.split("="); |
3515 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])); |
3516 } | 3516 } |
3517 } | 3517 } |
3518 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3519 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3518 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3520 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); | 3519 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); |
| 3520 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3521 | 3521 |
3522 | 3522 |
3523 var h = { | 3523 var h = { |
3524 "content-type" : "application/json; charset=utf-8", | 3524 "content-type" : "application/json; charset=utf-8", |
3525 }; | 3525 }; |
3526 var resp = convert.JSON.encode(buildListDealAssociationsResponse()); | 3526 var resp = convert.JSON.encode(buildListDealAssociationsResponse()); |
3527 return new async.Future.value(stringResponse(200, h, resp)); | 3527 return new async.Future.value(stringResponse(200, h, resp)); |
3528 }), true); | 3528 }), true); |
3529 res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize
: arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListDealAssoc
iationsResponse response) { | 3529 res.list(arg_accountId, arg_creativeId, pageSize: arg_pageSize, query: arg
_query, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListDealAssoc
iationsResponse response) { |
3530 checkListDealAssociationsResponse(response); | 3530 checkListDealAssociationsResponse(response); |
3531 }))); | 3531 }))); |
3532 }); | 3532 }); |
3533 | 3533 |
3534 unittest.test("method--remove", () { | 3534 unittest.test("method--remove", () { |
3535 | 3535 |
3536 var mock = new HttpServerMock(); | 3536 var mock = new HttpServerMock(); |
3537 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; | 3537 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; |
3538 var arg_request = buildRemoveDealAssociationRequest(); | 3538 var arg_request = buildRemoveDealAssociationRequest(); |
3539 var arg_accountId = "foo"; | 3539 var arg_accountId = "foo"; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3823 }); | 3823 }); |
3824 | 3824 |
3825 | 3825 |
3826 unittest.group("resource-AccountsFilterSetsBidMetricsResourceApi", () { | 3826 unittest.group("resource-AccountsFilterSetsBidMetricsResourceApi", () { |
3827 unittest.test("method--list", () { | 3827 unittest.test("method--list", () { |
3828 | 3828 |
3829 var mock = new HttpServerMock(); | 3829 var mock = new HttpServerMock(); |
3830 api.AccountsFilterSetsBidMetricsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.bidMetrics; | 3830 api.AccountsFilterSetsBidMetricsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.bidMetrics; |
3831 var arg_accountId = "foo"; | 3831 var arg_accountId = "foo"; |
3832 var arg_filterSetId = "foo"; | 3832 var arg_filterSetId = "foo"; |
| 3833 var arg_pageSize = 42; |
3833 var arg_pageToken = "foo"; | 3834 var arg_pageToken = "foo"; |
3834 var arg_pageSize = 42; | |
3835 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3835 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3836 var path = (req.url).path; | 3836 var path = (req.url).path; |
3837 var pathOffset = 0; | 3837 var pathOffset = 0; |
3838 var index; | 3838 var index; |
3839 var subPart; | 3839 var subPart; |
3840 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3840 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3841 pathOffset += 1; | 3841 pathOffset += 1; |
3842 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 3842 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
3843 pathOffset += 17; | 3843 pathOffset += 17; |
3844 index = path.indexOf("/filterSets/", pathOffset); | 3844 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
3865 if (n == "false") return false; | 3865 if (n == "false") return false; |
3866 if (n == null) return null; | 3866 if (n == null) return null; |
3867 throw new core.ArgumentError("Invalid boolean: $n"); | 3867 throw new core.ArgumentError("Invalid boolean: $n"); |
3868 } | 3868 } |
3869 if (query.length > 0) { | 3869 if (query.length > 0) { |
3870 for (var part in query.split("&")) { | 3870 for (var part in query.split("&")) { |
3871 var keyvalue = part.split("="); | 3871 var keyvalue = part.split("="); |
3872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3873 } | 3873 } |
3874 } | 3874 } |
| 3875 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3875 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3876 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3876 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3877 | 3877 |
3878 | 3878 |
3879 var h = { | 3879 var h = { |
3880 "content-type" : "application/json; charset=utf-8", | 3880 "content-type" : "application/json; charset=utf-8", |
3881 }; | 3881 }; |
3882 var resp = convert.JSON.encode(buildListBidMetricsResponse()); | 3882 var resp = convert.JSON.encode(buildListBidMetricsResponse()); |
3883 return new async.Future.value(stringResponse(200, h, resp)); | 3883 return new async.Future.value(stringResponse(200, h, resp)); |
3884 }), true); | 3884 }), true); |
3885 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListBidMetricsResponse respons
e) { | 3885 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListBidMetricsResponse respons
e) { |
3886 checkListBidMetricsResponse(response); | 3886 checkListBidMetricsResponse(response); |
3887 }))); | 3887 }))); |
3888 }); | 3888 }); |
3889 | 3889 |
3890 }); | 3890 }); |
3891 | 3891 |
3892 | 3892 |
3893 unittest.group("resource-AccountsFilterSetsBidResponseErrorsResourceApi", () { | 3893 unittest.group("resource-AccountsFilterSetsBidResponseErrorsResourceApi", () { |
3894 unittest.test("method--list", () { | 3894 unittest.test("method--list", () { |
3895 | 3895 |
3896 var mock = new HttpServerMock(); | 3896 var mock = new HttpServerMock(); |
3897 api.AccountsFilterSetsBidResponseErrorsResourceApi res = new api.Adexchang
ebuyer2Api(mock).accounts.filterSets.bidResponseErrors; | 3897 api.AccountsFilterSetsBidResponseErrorsResourceApi res = new api.Adexchang
ebuyer2Api(mock).accounts.filterSets.bidResponseErrors; |
3898 var arg_accountId = "foo"; | 3898 var arg_accountId = "foo"; |
3899 var arg_filterSetId = "foo"; | 3899 var arg_filterSetId = "foo"; |
| 3900 var arg_pageSize = 42; |
3900 var arg_pageToken = "foo"; | 3901 var arg_pageToken = "foo"; |
3901 var arg_pageSize = 42; | |
3902 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3902 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3903 var path = (req.url).path; | 3903 var path = (req.url).path; |
3904 var pathOffset = 0; | 3904 var pathOffset = 0; |
3905 var index; | 3905 var index; |
3906 var subPart; | 3906 var subPart; |
3907 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3907 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3908 pathOffset += 1; | 3908 pathOffset += 1; |
3909 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 3909 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
3910 pathOffset += 17; | 3910 pathOffset += 17; |
3911 index = path.indexOf("/filterSets/", pathOffset); | 3911 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
3932 if (n == "false") return false; | 3932 if (n == "false") return false; |
3933 if (n == null) return null; | 3933 if (n == null) return null; |
3934 throw new core.ArgumentError("Invalid boolean: $n"); | 3934 throw new core.ArgumentError("Invalid boolean: $n"); |
3935 } | 3935 } |
3936 if (query.length > 0) { | 3936 if (query.length > 0) { |
3937 for (var part in query.split("&")) { | 3937 for (var part in query.split("&")) { |
3938 var keyvalue = part.split("="); | 3938 var keyvalue = part.split("="); |
3939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3940 } | 3940 } |
3941 } | 3941 } |
| 3942 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3942 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3943 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3943 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3944 | 3944 |
3945 | 3945 |
3946 var h = { | 3946 var h = { |
3947 "content-type" : "application/json; charset=utf-8", | 3947 "content-type" : "application/json; charset=utf-8", |
3948 }; | 3948 }; |
3949 var resp = convert.JSON.encode(buildListBidResponseErrorsResponse()); | 3949 var resp = convert.JSON.encode(buildListBidResponseErrorsResponse()); |
3950 return new async.Future.value(stringResponse(200, h, resp)); | 3950 return new async.Future.value(stringResponse(200, h, resp)); |
3951 }), true); | 3951 }), true); |
3952 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListBidResponseErrorsResponse
response) { | 3952 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListBidResponseErrorsResponse
response) { |
3953 checkListBidResponseErrorsResponse(response); | 3953 checkListBidResponseErrorsResponse(response); |
3954 }))); | 3954 }))); |
3955 }); | 3955 }); |
3956 | 3956 |
3957 }); | 3957 }); |
3958 | 3958 |
3959 | 3959 |
3960 unittest.group("resource-AccountsFilterSetsBidResponsesWithoutBidsResourceApi"
, () { | 3960 unittest.group("resource-AccountsFilterSetsBidResponsesWithoutBidsResourceApi"
, () { |
3961 unittest.test("method--list", () { | 3961 unittest.test("method--list", () { |
3962 | 3962 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4024 }); | 4024 }); |
4025 | 4025 |
4026 | 4026 |
4027 unittest.group("resource-AccountsFilterSetsFilteredBidRequestsResourceApi", ()
{ | 4027 unittest.group("resource-AccountsFilterSetsFilteredBidRequestsResourceApi", ()
{ |
4028 unittest.test("method--list", () { | 4028 unittest.test("method--list", () { |
4029 | 4029 |
4030 var mock = new HttpServerMock(); | 4030 var mock = new HttpServerMock(); |
4031 api.AccountsFilterSetsFilteredBidRequestsResourceApi res = new api.Adexcha
ngebuyer2Api(mock).accounts.filterSets.filteredBidRequests; | 4031 api.AccountsFilterSetsFilteredBidRequestsResourceApi res = new api.Adexcha
ngebuyer2Api(mock).accounts.filterSets.filteredBidRequests; |
4032 var arg_accountId = "foo"; | 4032 var arg_accountId = "foo"; |
4033 var arg_filterSetId = "foo"; | 4033 var arg_filterSetId = "foo"; |
| 4034 var arg_pageSize = 42; |
4034 var arg_pageToken = "foo"; | 4035 var arg_pageToken = "foo"; |
4035 var arg_pageSize = 42; | |
4036 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4036 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4037 var path = (req.url).path; | 4037 var path = (req.url).path; |
4038 var pathOffset = 0; | 4038 var pathOffset = 0; |
4039 var index; | 4039 var index; |
4040 var subPart; | 4040 var subPart; |
4041 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4041 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4042 pathOffset += 1; | 4042 pathOffset += 1; |
4043 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4043 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4044 pathOffset += 17; | 4044 pathOffset += 17; |
4045 index = path.indexOf("/filterSets/", pathOffset); | 4045 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
4066 if (n == "false") return false; | 4066 if (n == "false") return false; |
4067 if (n == null) return null; | 4067 if (n == null) return null; |
4068 throw new core.ArgumentError("Invalid boolean: $n"); | 4068 throw new core.ArgumentError("Invalid boolean: $n"); |
4069 } | 4069 } |
4070 if (query.length > 0) { | 4070 if (query.length > 0) { |
4071 for (var part in query.split("&")) { | 4071 for (var part in query.split("&")) { |
4072 var keyvalue = part.split("="); | 4072 var keyvalue = part.split("="); |
4073 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4073 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4074 } | 4074 } |
4075 } | 4075 } |
| 4076 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4076 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4077 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4077 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4078 | 4078 |
4079 | 4079 |
4080 var h = { | 4080 var h = { |
4081 "content-type" : "application/json; charset=utf-8", | 4081 "content-type" : "application/json; charset=utf-8", |
4082 }; | 4082 }; |
4083 var resp = convert.JSON.encode(buildListFilteredBidRequestsResponse()); | 4083 var resp = convert.JSON.encode(buildListFilteredBidRequestsResponse()); |
4084 return new async.Future.value(stringResponse(200, h, resp)); | 4084 return new async.Future.value(stringResponse(200, h, resp)); |
4085 }), true); | 4085 }), true); |
4086 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidRequestsRespons
e response) { | 4086 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListFilteredBidRequestsRespons
e response) { |
4087 checkListFilteredBidRequestsResponse(response); | 4087 checkListFilteredBidRequestsResponse(response); |
4088 }))); | 4088 }))); |
4089 }); | 4089 }); |
4090 | 4090 |
4091 }); | 4091 }); |
4092 | 4092 |
4093 | 4093 |
4094 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { | 4094 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { |
4095 unittest.test("method--list", () { | 4095 unittest.test("method--list", () { |
4096 | 4096 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4375 }); | 4375 }); |
4376 | 4376 |
4377 | 4377 |
4378 unittest.group("resource-AccountsFilterSetsLosingBidsResourceApi", () { | 4378 unittest.group("resource-AccountsFilterSetsLosingBidsResourceApi", () { |
4379 unittest.test("method--list", () { | 4379 unittest.test("method--list", () { |
4380 | 4380 |
4381 var mock = new HttpServerMock(); | 4381 var mock = new HttpServerMock(); |
4382 api.AccountsFilterSetsLosingBidsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.losingBids; | 4382 api.AccountsFilterSetsLosingBidsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.losingBids; |
4383 var arg_accountId = "foo"; | 4383 var arg_accountId = "foo"; |
4384 var arg_filterSetId = "foo"; | 4384 var arg_filterSetId = "foo"; |
| 4385 var arg_pageSize = 42; |
4385 var arg_pageToken = "foo"; | 4386 var arg_pageToken = "foo"; |
4386 var arg_pageSize = 42; | |
4387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4388 var path = (req.url).path; | 4388 var path = (req.url).path; |
4389 var pathOffset = 0; | 4389 var pathOffset = 0; |
4390 var index; | 4390 var index; |
4391 var subPart; | 4391 var subPart; |
4392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4393 pathOffset += 1; | 4393 pathOffset += 1; |
4394 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4394 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4395 pathOffset += 17; | 4395 pathOffset += 17; |
4396 index = path.indexOf("/filterSets/", pathOffset); | 4396 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
4417 if (n == "false") return false; | 4417 if (n == "false") return false; |
4418 if (n == null) return null; | 4418 if (n == null) return null; |
4419 throw new core.ArgumentError("Invalid boolean: $n"); | 4419 throw new core.ArgumentError("Invalid boolean: $n"); |
4420 } | 4420 } |
4421 if (query.length > 0) { | 4421 if (query.length > 0) { |
4422 for (var part in query.split("&")) { | 4422 for (var part in query.split("&")) { |
4423 var keyvalue = part.split("="); | 4423 var keyvalue = part.split("="); |
4424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4425 } | 4425 } |
4426 } | 4426 } |
| 4427 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4427 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4428 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4428 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4429 | 4429 |
4430 | 4430 |
4431 var h = { | 4431 var h = { |
4432 "content-type" : "application/json; charset=utf-8", | 4432 "content-type" : "application/json; charset=utf-8", |
4433 }; | 4433 }; |
4434 var resp = convert.JSON.encode(buildListLosingBidsResponse()); | 4434 var resp = convert.JSON.encode(buildListLosingBidsResponse()); |
4435 return new async.Future.value(stringResponse(200, h, resp)); | 4435 return new async.Future.value(stringResponse(200, h, resp)); |
4436 }), true); | 4436 }), true); |
4437 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListLosingBidsResponse respons
e) { | 4437 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListLosingBidsResponse respons
e) { |
4438 checkListLosingBidsResponse(response); | 4438 checkListLosingBidsResponse(response); |
4439 }))); | 4439 }))); |
4440 }); | 4440 }); |
4441 | 4441 |
4442 }); | 4442 }); |
4443 | 4443 |
4444 | 4444 |
4445 unittest.group("resource-AccountsFilterSetsNonBillableWinningBidsResourceApi",
() { | 4445 unittest.group("resource-AccountsFilterSetsNonBillableWinningBidsResourceApi",
() { |
4446 unittest.test("method--list", () { | 4446 unittest.test("method--list", () { |
4447 | 4447 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4504 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) { |
4505 checkListNonBillableWinningBidsResponse(response); | 4505 checkListNonBillableWinningBidsResponse(response); |
4506 }))); | 4506 }))); |
4507 }); | 4507 }); |
4508 | 4508 |
4509 }); | 4509 }); |
4510 | 4510 |
4511 | 4511 |
4512 } | 4512 } |
4513 | 4513 |
OLD | NEW |