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 buildUnnamed3407() { | 94 buildUnnamed3535() { |
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 checkUnnamed3407(core.List<core.String> o) { | 101 checkUnnamed3535(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 = buildUnnamed3407(); | 112 o.appTypes = buildUnnamed3535(); |
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 checkUnnamed3407(o.appTypes); | 121 checkUnnamed3535(o.appTypes); |
122 } | 122 } |
123 buildCounterAppContext--; | 123 buildCounterAppContext--; |
124 } | 124 } |
125 | 125 |
126 buildUnnamed3408() { | 126 buildUnnamed3536() { |
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 checkUnnamed3408(core.List<core.String> o) { | 133 checkUnnamed3536(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 = buildUnnamed3408(); | 144 o.auctionTypes = buildUnnamed3536(); |
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 checkUnnamed3408(o.auctionTypes); | 153 checkUnnamed3536(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(); |
164 o.bidsInAuction = buildMetricValue(); | 164 o.bidsInAuction = buildMetricValue(); |
165 o.billedImpressions = buildMetricValue(); | 165 o.billedImpressions = buildMetricValue(); |
166 o.impressionsWon = buildMetricValue(); | 166 o.impressionsWon = buildMetricValue(); |
| 167 o.measurableImpressions = buildMetricValue(); |
167 o.rowDimensions = buildRowDimensions(); | 168 o.rowDimensions = buildRowDimensions(); |
168 o.viewableImpressions = buildMetricValue(); | 169 o.viewableImpressions = buildMetricValue(); |
169 } | 170 } |
170 buildCounterBidMetricsRow--; | 171 buildCounterBidMetricsRow--; |
171 return o; | 172 return o; |
172 } | 173 } |
173 | 174 |
174 checkBidMetricsRow(api.BidMetricsRow o) { | 175 checkBidMetricsRow(api.BidMetricsRow o) { |
175 buildCounterBidMetricsRow++; | 176 buildCounterBidMetricsRow++; |
176 if (buildCounterBidMetricsRow < 3) { | 177 if (buildCounterBidMetricsRow < 3) { |
177 checkMetricValue(o.bids); | 178 checkMetricValue(o.bids); |
178 checkMetricValue(o.bidsInAuction); | 179 checkMetricValue(o.bidsInAuction); |
179 checkMetricValue(o.billedImpressions); | 180 checkMetricValue(o.billedImpressions); |
180 checkMetricValue(o.impressionsWon); | 181 checkMetricValue(o.impressionsWon); |
| 182 checkMetricValue(o.measurableImpressions); |
181 checkRowDimensions(o.rowDimensions); | 183 checkRowDimensions(o.rowDimensions); |
182 checkMetricValue(o.viewableImpressions); | 184 checkMetricValue(o.viewableImpressions); |
183 } | 185 } |
184 buildCounterBidMetricsRow--; | 186 buildCounterBidMetricsRow--; |
185 } | 187 } |
186 | 188 |
187 core.int buildCounterBidResponseWithoutBidsStatusRow = 0; | 189 core.int buildCounterBidResponseWithoutBidsStatusRow = 0; |
188 buildBidResponseWithoutBidsStatusRow() { | 190 buildBidResponseWithoutBidsStatusRow() { |
189 var o = new api.BidResponseWithoutBidsStatusRow(); | 191 var o = new api.BidResponseWithoutBidsStatusRow(); |
190 buildCounterBidResponseWithoutBidsStatusRow++; | 192 buildCounterBidResponseWithoutBidsStatusRow++; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 checkClientUserInvitation(api.ClientUserInvitation o) { | 306 checkClientUserInvitation(api.ClientUserInvitation o) { |
305 buildCounterClientUserInvitation++; | 307 buildCounterClientUserInvitation++; |
306 if (buildCounterClientUserInvitation < 3) { | 308 if (buildCounterClientUserInvitation < 3) { |
307 unittest.expect(o.clientAccountId, unittest.equals('foo')); | 309 unittest.expect(o.clientAccountId, unittest.equals('foo')); |
308 unittest.expect(o.email, unittest.equals('foo')); | 310 unittest.expect(o.email, unittest.equals('foo')); |
309 unittest.expect(o.invitationId, unittest.equals('foo')); | 311 unittest.expect(o.invitationId, unittest.equals('foo')); |
310 } | 312 } |
311 buildCounterClientUserInvitation--; | 313 buildCounterClientUserInvitation--; |
312 } | 314 } |
313 | 315 |
314 buildUnnamed3409() { | 316 buildUnnamed3537() { |
315 var o = new core.List<api.ServingContext>(); | 317 var o = new core.List<api.ServingContext>(); |
316 o.add(buildServingContext()); | 318 o.add(buildServingContext()); |
317 o.add(buildServingContext()); | 319 o.add(buildServingContext()); |
318 return o; | 320 return o; |
319 } | 321 } |
320 | 322 |
321 checkUnnamed3409(core.List<api.ServingContext> o) { | 323 checkUnnamed3537(core.List<api.ServingContext> o) { |
322 unittest.expect(o, unittest.hasLength(2)); | 324 unittest.expect(o, unittest.hasLength(2)); |
323 checkServingContext(o[0]); | 325 checkServingContext(o[0]); |
324 checkServingContext(o[1]); | 326 checkServingContext(o[1]); |
325 } | 327 } |
326 | 328 |
327 buildUnnamed3410() { | 329 buildUnnamed3538() { |
328 var o = new core.List<core.String>(); | 330 var o = new core.List<core.String>(); |
329 o.add("foo"); | 331 o.add("foo"); |
330 o.add("foo"); | 332 o.add("foo"); |
331 return o; | 333 return o; |
332 } | 334 } |
333 | 335 |
334 checkUnnamed3410(core.List<core.String> o) { | 336 checkUnnamed3538(core.List<core.String> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
336 unittest.expect(o[0], unittest.equals('foo')); | 338 unittest.expect(o[0], unittest.equals('foo')); |
337 unittest.expect(o[1], unittest.equals('foo')); | 339 unittest.expect(o[1], unittest.equals('foo')); |
338 } | 340 } |
339 | 341 |
340 core.int buildCounterCorrection = 0; | 342 core.int buildCounterCorrection = 0; |
341 buildCorrection() { | 343 buildCorrection() { |
342 var o = new api.Correction(); | 344 var o = new api.Correction(); |
343 buildCounterCorrection++; | 345 buildCounterCorrection++; |
344 if (buildCounterCorrection < 3) { | 346 if (buildCounterCorrection < 3) { |
345 o.contexts = buildUnnamed3409(); | 347 o.contexts = buildUnnamed3537(); |
346 o.details = buildUnnamed3410(); | 348 o.details = buildUnnamed3538(); |
347 o.type = "foo"; | 349 o.type = "foo"; |
348 } | 350 } |
349 buildCounterCorrection--; | 351 buildCounterCorrection--; |
350 return o; | 352 return o; |
351 } | 353 } |
352 | 354 |
353 checkCorrection(api.Correction o) { | 355 checkCorrection(api.Correction o) { |
354 buildCounterCorrection++; | 356 buildCounterCorrection++; |
355 if (buildCounterCorrection < 3) { | 357 if (buildCounterCorrection < 3) { |
356 checkUnnamed3409(o.contexts); | 358 checkUnnamed3537(o.contexts); |
357 checkUnnamed3410(o.details); | 359 checkUnnamed3538(o.details); |
358 unittest.expect(o.type, unittest.equals('foo')); | 360 unittest.expect(o.type, unittest.equals('foo')); |
359 } | 361 } |
360 buildCounterCorrection--; | 362 buildCounterCorrection--; |
361 } | 363 } |
362 | 364 |
363 buildUnnamed3411() { | 365 buildUnnamed3539() { |
364 var o = new core.List<core.String>(); | 366 var o = new core.List<core.String>(); |
365 o.add("foo"); | 367 o.add("foo"); |
366 o.add("foo"); | 368 o.add("foo"); |
367 return o; | 369 return o; |
368 } | 370 } |
369 | 371 |
370 checkUnnamed3411(core.List<core.String> o) { | 372 checkUnnamed3539(core.List<core.String> o) { |
371 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
372 unittest.expect(o[0], unittest.equals('foo')); | 374 unittest.expect(o[0], unittest.equals('foo')); |
373 unittest.expect(o[1], unittest.equals('foo')); | 375 unittest.expect(o[1], unittest.equals('foo')); |
374 } | 376 } |
375 | 377 |
376 buildUnnamed3412() { | 378 buildUnnamed3540() { |
377 var o = new core.List<core.String>(); | 379 var o = new core.List<core.String>(); |
378 o.add("foo"); | 380 o.add("foo"); |
379 o.add("foo"); | 381 o.add("foo"); |
380 return o; | 382 return o; |
381 } | 383 } |
382 | 384 |
383 checkUnnamed3412(core.List<core.String> o) { | 385 checkUnnamed3540(core.List<core.String> o) { |
384 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
385 unittest.expect(o[0], unittest.equals('foo')); | 387 unittest.expect(o[0], unittest.equals('foo')); |
386 unittest.expect(o[1], unittest.equals('foo')); | 388 unittest.expect(o[1], unittest.equals('foo')); |
387 } | 389 } |
388 | 390 |
389 buildUnnamed3413() { | 391 buildUnnamed3541() { |
390 var o = new core.List<api.Correction>(); | 392 var o = new core.List<api.Correction>(); |
391 o.add(buildCorrection()); | 393 o.add(buildCorrection()); |
392 o.add(buildCorrection()); | 394 o.add(buildCorrection()); |
393 return o; | 395 return o; |
394 } | 396 } |
395 | 397 |
396 checkUnnamed3413(core.List<api.Correction> o) { | 398 checkUnnamed3541(core.List<api.Correction> o) { |
397 unittest.expect(o, unittest.hasLength(2)); | 399 unittest.expect(o, unittest.hasLength(2)); |
398 checkCorrection(o[0]); | 400 checkCorrection(o[0]); |
399 checkCorrection(o[1]); | 401 checkCorrection(o[1]); |
400 } | 402 } |
401 | 403 |
402 buildUnnamed3414() { | 404 buildUnnamed3542() { |
403 var o = new core.List<core.String>(); | 405 var o = new core.List<core.String>(); |
404 o.add("foo"); | 406 o.add("foo"); |
405 o.add("foo"); | 407 o.add("foo"); |
406 return o; | 408 return o; |
407 } | 409 } |
408 | 410 |
409 checkUnnamed3414(core.List<core.String> o) { | 411 checkUnnamed3542(core.List<core.String> o) { |
410 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
411 unittest.expect(o[0], unittest.equals('foo')); | 413 unittest.expect(o[0], unittest.equals('foo')); |
412 unittest.expect(o[1], unittest.equals('foo')); | 414 unittest.expect(o[1], unittest.equals('foo')); |
413 } | 415 } |
414 | 416 |
415 buildUnnamed3415() { | 417 buildUnnamed3543() { |
416 var o = new core.List<core.String>(); | 418 var o = new core.List<core.String>(); |
417 o.add("foo"); | 419 o.add("foo"); |
418 o.add("foo"); | 420 o.add("foo"); |
419 return o; | 421 return o; |
420 } | 422 } |
421 | 423 |
422 checkUnnamed3415(core.List<core.String> o) { | 424 checkUnnamed3543(core.List<core.String> o) { |
423 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
424 unittest.expect(o[0], unittest.equals('foo')); | 426 unittest.expect(o[0], unittest.equals('foo')); |
425 unittest.expect(o[1], unittest.equals('foo')); | 427 unittest.expect(o[1], unittest.equals('foo')); |
426 } | 428 } |
427 | 429 |
428 buildUnnamed3416() { | 430 buildUnnamed3544() { |
429 var o = new core.List<core.String>(); | 431 var o = new core.List<core.String>(); |
430 o.add("foo"); | 432 o.add("foo"); |
431 o.add("foo"); | 433 o.add("foo"); |
432 return o; | 434 return o; |
433 } | 435 } |
434 | 436 |
435 checkUnnamed3416(core.List<core.String> o) { | 437 checkUnnamed3544(core.List<core.String> o) { |
436 unittest.expect(o, unittest.hasLength(2)); | 438 unittest.expect(o, unittest.hasLength(2)); |
437 unittest.expect(o[0], unittest.equals('foo')); | 439 unittest.expect(o[0], unittest.equals('foo')); |
438 unittest.expect(o[1], unittest.equals('foo')); | 440 unittest.expect(o[1], unittest.equals('foo')); |
439 } | 441 } |
440 | 442 |
441 buildUnnamed3417() { | 443 buildUnnamed3545() { |
442 var o = new core.List<core.int>(); | 444 var o = new core.List<core.int>(); |
443 o.add(42); | 445 o.add(42); |
444 o.add(42); | 446 o.add(42); |
445 return o; | 447 return o; |
446 } | 448 } |
447 | 449 |
448 checkUnnamed3417(core.List<core.int> o) { | 450 checkUnnamed3545(core.List<core.int> o) { |
449 unittest.expect(o, unittest.hasLength(2)); | 451 unittest.expect(o, unittest.hasLength(2)); |
450 unittest.expect(o[0], unittest.equals(42)); | 452 unittest.expect(o[0], unittest.equals(42)); |
451 unittest.expect(o[1], unittest.equals(42)); | 453 unittest.expect(o[1], unittest.equals(42)); |
452 } | 454 } |
453 | 455 |
454 buildUnnamed3418() { | 456 buildUnnamed3546() { |
455 var o = new core.List<core.int>(); | 457 var o = new core.List<core.int>(); |
456 o.add(42); | 458 o.add(42); |
457 o.add(42); | 459 o.add(42); |
458 return o; | 460 return o; |
459 } | 461 } |
460 | 462 |
461 checkUnnamed3418(core.List<core.int> o) { | 463 checkUnnamed3546(core.List<core.int> o) { |
462 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
463 unittest.expect(o[0], unittest.equals(42)); | 465 unittest.expect(o[0], unittest.equals(42)); |
464 unittest.expect(o[1], unittest.equals(42)); | 466 unittest.expect(o[1], unittest.equals(42)); |
465 } | 467 } |
466 | 468 |
467 buildUnnamed3419() { | 469 buildUnnamed3547() { |
468 var o = new core.List<core.String>(); | 470 var o = new core.List<core.String>(); |
469 o.add("foo"); | 471 o.add("foo"); |
470 o.add("foo"); | 472 o.add("foo"); |
471 return o; | 473 return o; |
472 } | 474 } |
473 | 475 |
474 checkUnnamed3419(core.List<core.String> o) { | 476 checkUnnamed3547(core.List<core.String> o) { |
475 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
476 unittest.expect(o[0], unittest.equals('foo')); | 478 unittest.expect(o[0], unittest.equals('foo')); |
477 unittest.expect(o[1], unittest.equals('foo')); | 479 unittest.expect(o[1], unittest.equals('foo')); |
478 } | 480 } |
479 | 481 |
480 buildUnnamed3420() { | 482 buildUnnamed3548() { |
481 var o = new core.List<core.String>(); | 483 var o = new core.List<core.String>(); |
482 o.add("foo"); | 484 o.add("foo"); |
483 o.add("foo"); | 485 o.add("foo"); |
484 return o; | 486 return o; |
485 } | 487 } |
486 | 488 |
487 checkUnnamed3420(core.List<core.String> o) { | 489 checkUnnamed3548(core.List<core.String> o) { |
488 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
489 unittest.expect(o[0], unittest.equals('foo')); | 491 unittest.expect(o[0], unittest.equals('foo')); |
490 unittest.expect(o[1], unittest.equals('foo')); | 492 unittest.expect(o[1], unittest.equals('foo')); |
491 } | 493 } |
492 | 494 |
493 buildUnnamed3421() { | 495 buildUnnamed3549() { |
494 var o = new core.List<api.ServingRestriction>(); | 496 var o = new core.List<api.ServingRestriction>(); |
495 o.add(buildServingRestriction()); | 497 o.add(buildServingRestriction()); |
496 o.add(buildServingRestriction()); | 498 o.add(buildServingRestriction()); |
497 return o; | 499 return o; |
498 } | 500 } |
499 | 501 |
500 checkUnnamed3421(core.List<api.ServingRestriction> o) { | 502 checkUnnamed3549(core.List<api.ServingRestriction> o) { |
501 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
502 checkServingRestriction(o[0]); | 504 checkServingRestriction(o[0]); |
503 checkServingRestriction(o[1]); | 505 checkServingRestriction(o[1]); |
504 } | 506 } |
505 | 507 |
506 buildUnnamed3422() { | 508 buildUnnamed3550() { |
507 var o = new core.List<core.int>(); | 509 var o = new core.List<core.int>(); |
508 o.add(42); | 510 o.add(42); |
509 o.add(42); | 511 o.add(42); |
510 return o; | 512 return o; |
511 } | 513 } |
512 | 514 |
513 checkUnnamed3422(core.List<core.int> o) { | 515 checkUnnamed3550(core.List<core.int> o) { |
514 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
515 unittest.expect(o[0], unittest.equals(42)); | 517 unittest.expect(o[0], unittest.equals(42)); |
516 unittest.expect(o[1], unittest.equals(42)); | 518 unittest.expect(o[1], unittest.equals(42)); |
517 } | 519 } |
518 | 520 |
519 core.int buildCounterCreative = 0; | 521 core.int buildCounterCreative = 0; |
520 buildCreative() { | 522 buildCreative() { |
521 var o = new api.Creative(); | 523 var o = new api.Creative(); |
522 buildCounterCreative++; | 524 buildCounterCreative++; |
523 if (buildCounterCreative < 3) { | 525 if (buildCounterCreative < 3) { |
524 o.accountId = "foo"; | 526 o.accountId = "foo"; |
525 o.adChoicesDestinationUrl = "foo"; | 527 o.adChoicesDestinationUrl = "foo"; |
526 o.advertiserName = "foo"; | 528 o.advertiserName = "foo"; |
527 o.agencyId = "foo"; | 529 o.agencyId = "foo"; |
528 o.apiUpdateTime = "foo"; | 530 o.apiUpdateTime = "foo"; |
529 o.attributes = buildUnnamed3411(); | 531 o.attributes = buildUnnamed3539(); |
530 o.clickThroughUrls = buildUnnamed3412(); | 532 o.clickThroughUrls = buildUnnamed3540(); |
531 o.corrections = buildUnnamed3413(); | 533 o.corrections = buildUnnamed3541(); |
532 o.creativeId = "foo"; | 534 o.creativeId = "foo"; |
533 o.dealsStatus = "foo"; | 535 o.dealsStatus = "foo"; |
534 o.detectedAdvertiserIds = buildUnnamed3414(); | 536 o.detectedAdvertiserIds = buildUnnamed3542(); |
535 o.detectedDomains = buildUnnamed3415(); | 537 o.detectedDomains = buildUnnamed3543(); |
536 o.detectedLanguages = buildUnnamed3416(); | 538 o.detectedLanguages = buildUnnamed3544(); |
537 o.detectedProductCategories = buildUnnamed3417(); | 539 o.detectedProductCategories = buildUnnamed3545(); |
538 o.detectedSensitiveCategories = buildUnnamed3418(); | 540 o.detectedSensitiveCategories = buildUnnamed3546(); |
539 o.filteringStats = buildFilteringStats(); | 541 o.filteringStats = buildFilteringStats(); |
540 o.html = buildHtmlContent(); | 542 o.html = buildHtmlContent(); |
541 o.impressionTrackingUrls = buildUnnamed3419(); | 543 o.impressionTrackingUrls = buildUnnamed3547(); |
542 o.native = buildNativeContent(); | 544 o.native = buildNativeContent(); |
543 o.openAuctionStatus = "foo"; | 545 o.openAuctionStatus = "foo"; |
544 o.restrictedCategories = buildUnnamed3420(); | 546 o.restrictedCategories = buildUnnamed3548(); |
545 o.servingRestrictions = buildUnnamed3421(); | 547 o.servingRestrictions = buildUnnamed3549(); |
546 o.vendorIds = buildUnnamed3422(); | 548 o.vendorIds = buildUnnamed3550(); |
547 o.version = 42; | 549 o.version = 42; |
548 o.video = buildVideoContent(); | 550 o.video = buildVideoContent(); |
549 } | 551 } |
550 buildCounterCreative--; | 552 buildCounterCreative--; |
551 return o; | 553 return o; |
552 } | 554 } |
553 | 555 |
554 checkCreative(api.Creative o) { | 556 checkCreative(api.Creative o) { |
555 buildCounterCreative++; | 557 buildCounterCreative++; |
556 if (buildCounterCreative < 3) { | 558 if (buildCounterCreative < 3) { |
557 unittest.expect(o.accountId, unittest.equals('foo')); | 559 unittest.expect(o.accountId, unittest.equals('foo')); |
558 unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); | 560 unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); |
559 unittest.expect(o.advertiserName, unittest.equals('foo')); | 561 unittest.expect(o.advertiserName, unittest.equals('foo')); |
560 unittest.expect(o.agencyId, unittest.equals('foo')); | 562 unittest.expect(o.agencyId, unittest.equals('foo')); |
561 unittest.expect(o.apiUpdateTime, unittest.equals('foo')); | 563 unittest.expect(o.apiUpdateTime, unittest.equals('foo')); |
562 checkUnnamed3411(o.attributes); | 564 checkUnnamed3539(o.attributes); |
563 checkUnnamed3412(o.clickThroughUrls); | 565 checkUnnamed3540(o.clickThroughUrls); |
564 checkUnnamed3413(o.corrections); | 566 checkUnnamed3541(o.corrections); |
565 unittest.expect(o.creativeId, unittest.equals('foo')); | 567 unittest.expect(o.creativeId, unittest.equals('foo')); |
566 unittest.expect(o.dealsStatus, unittest.equals('foo')); | 568 unittest.expect(o.dealsStatus, unittest.equals('foo')); |
567 checkUnnamed3414(o.detectedAdvertiserIds); | 569 checkUnnamed3542(o.detectedAdvertiserIds); |
568 checkUnnamed3415(o.detectedDomains); | 570 checkUnnamed3543(o.detectedDomains); |
569 checkUnnamed3416(o.detectedLanguages); | 571 checkUnnamed3544(o.detectedLanguages); |
570 checkUnnamed3417(o.detectedProductCategories); | 572 checkUnnamed3545(o.detectedProductCategories); |
571 checkUnnamed3418(o.detectedSensitiveCategories); | 573 checkUnnamed3546(o.detectedSensitiveCategories); |
572 checkFilteringStats(o.filteringStats); | 574 checkFilteringStats(o.filteringStats); |
573 checkHtmlContent(o.html); | 575 checkHtmlContent(o.html); |
574 checkUnnamed3419(o.impressionTrackingUrls); | 576 checkUnnamed3547(o.impressionTrackingUrls); |
575 checkNativeContent(o.native); | 577 checkNativeContent(o.native); |
576 unittest.expect(o.openAuctionStatus, unittest.equals('foo')); | 578 unittest.expect(o.openAuctionStatus, unittest.equals('foo')); |
577 checkUnnamed3420(o.restrictedCategories); | 579 checkUnnamed3548(o.restrictedCategories); |
578 checkUnnamed3421(o.servingRestrictions); | 580 checkUnnamed3549(o.servingRestrictions); |
579 checkUnnamed3422(o.vendorIds); | 581 checkUnnamed3550(o.vendorIds); |
580 unittest.expect(o.version, unittest.equals(42)); | 582 unittest.expect(o.version, unittest.equals(42)); |
581 checkVideoContent(o.video); | 583 checkVideoContent(o.video); |
582 } | 584 } |
583 buildCounterCreative--; | 585 buildCounterCreative--; |
584 } | 586 } |
585 | 587 |
586 core.int buildCounterCreativeDealAssociation = 0; | 588 core.int buildCounterCreativeDealAssociation = 0; |
587 buildCreativeDealAssociation() { | 589 buildCreativeDealAssociation() { |
588 var o = new api.CreativeDealAssociation(); | 590 var o = new api.CreativeDealAssociation(); |
589 buildCounterCreativeDealAssociation++; | 591 buildCounterCreativeDealAssociation++; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 checkDate(api.Date o) { | 647 checkDate(api.Date o) { |
646 buildCounterDate++; | 648 buildCounterDate++; |
647 if (buildCounterDate < 3) { | 649 if (buildCounterDate < 3) { |
648 unittest.expect(o.day, unittest.equals(42)); | 650 unittest.expect(o.day, unittest.equals(42)); |
649 unittest.expect(o.month, unittest.equals(42)); | 651 unittest.expect(o.month, unittest.equals(42)); |
650 unittest.expect(o.year, unittest.equals(42)); | 652 unittest.expect(o.year, unittest.equals(42)); |
651 } | 653 } |
652 buildCounterDate--; | 654 buildCounterDate--; |
653 } | 655 } |
654 | 656 |
655 buildUnnamed3423() { | 657 buildUnnamed3551() { |
656 var o = new core.List<core.String>(); | 658 var o = new core.List<core.String>(); |
657 o.add("foo"); | 659 o.add("foo"); |
658 o.add("foo"); | 660 o.add("foo"); |
659 return o; | 661 return o; |
660 } | 662 } |
661 | 663 |
662 checkUnnamed3423(core.List<core.String> o) { | 664 checkUnnamed3551(core.List<core.String> o) { |
663 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
664 unittest.expect(o[0], unittest.equals('foo')); | 666 unittest.expect(o[0], unittest.equals('foo')); |
665 unittest.expect(o[1], unittest.equals('foo')); | 667 unittest.expect(o[1], unittest.equals('foo')); |
666 } | 668 } |
667 | 669 |
668 core.int buildCounterDisapproval = 0; | 670 core.int buildCounterDisapproval = 0; |
669 buildDisapproval() { | 671 buildDisapproval() { |
670 var o = new api.Disapproval(); | 672 var o = new api.Disapproval(); |
671 buildCounterDisapproval++; | 673 buildCounterDisapproval++; |
672 if (buildCounterDisapproval < 3) { | 674 if (buildCounterDisapproval < 3) { |
673 o.details = buildUnnamed3423(); | 675 o.details = buildUnnamed3551(); |
674 o.reason = "foo"; | 676 o.reason = "foo"; |
675 } | 677 } |
676 buildCounterDisapproval--; | 678 buildCounterDisapproval--; |
677 return o; | 679 return o; |
678 } | 680 } |
679 | 681 |
680 checkDisapproval(api.Disapproval o) { | 682 checkDisapproval(api.Disapproval o) { |
681 buildCounterDisapproval++; | 683 buildCounterDisapproval++; |
682 if (buildCounterDisapproval < 3) { | 684 if (buildCounterDisapproval < 3) { |
683 checkUnnamed3423(o.details); | 685 checkUnnamed3551(o.details); |
684 unittest.expect(o.reason, unittest.equals('foo')); | 686 unittest.expect(o.reason, unittest.equals('foo')); |
685 } | 687 } |
686 buildCounterDisapproval--; | 688 buildCounterDisapproval--; |
687 } | 689 } |
688 | 690 |
689 core.int buildCounterEmpty = 0; | 691 core.int buildCounterEmpty = 0; |
690 buildEmpty() { | 692 buildEmpty() { |
691 var o = new api.Empty(); | 693 var o = new api.Empty(); |
692 buildCounterEmpty++; | 694 buildCounterEmpty++; |
693 if (buildCounterEmpty < 3) { | 695 if (buildCounterEmpty < 3) { |
694 } | 696 } |
695 buildCounterEmpty--; | 697 buildCounterEmpty--; |
696 return o; | 698 return o; |
697 } | 699 } |
698 | 700 |
699 checkEmpty(api.Empty o) { | 701 checkEmpty(api.Empty o) { |
700 buildCounterEmpty++; | 702 buildCounterEmpty++; |
701 if (buildCounterEmpty < 3) { | 703 if (buildCounterEmpty < 3) { |
702 } | 704 } |
703 buildCounterEmpty--; | 705 buildCounterEmpty--; |
704 } | 706 } |
705 | 707 |
706 buildUnnamed3424() { | 708 buildUnnamed3552() { |
707 var o = new core.List<core.String>(); | 709 var o = new core.List<core.String>(); |
708 o.add("foo"); | 710 o.add("foo"); |
709 o.add("foo"); | 711 o.add("foo"); |
710 return o; | 712 return o; |
711 } | 713 } |
712 | 714 |
713 checkUnnamed3424(core.List<core.String> o) { | 715 checkUnnamed3552(core.List<core.String> o) { |
714 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
715 unittest.expect(o[0], unittest.equals('foo')); | 717 unittest.expect(o[0], unittest.equals('foo')); |
716 unittest.expect(o[1], unittest.equals('foo')); | 718 unittest.expect(o[1], unittest.equals('foo')); |
717 } | 719 } |
718 | 720 |
719 buildUnnamed3425() { | 721 buildUnnamed3553() { |
720 var o = new core.List<core.int>(); | 722 var o = new core.List<core.int>(); |
721 o.add(42); | 723 o.add(42); |
722 o.add(42); | 724 o.add(42); |
723 return o; | 725 return o; |
724 } | 726 } |
725 | 727 |
726 checkUnnamed3425(core.List<core.int> o) { | 728 checkUnnamed3553(core.List<core.int> o) { |
727 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
728 unittest.expect(o[0], unittest.equals(42)); | 730 unittest.expect(o[0], unittest.equals(42)); |
729 unittest.expect(o[1], unittest.equals(42)); | 731 unittest.expect(o[1], unittest.equals(42)); |
730 } | 732 } |
731 | 733 |
732 core.int buildCounterFilterSet = 0; | 734 core.int buildCounterFilterSet = 0; |
733 buildFilterSet() { | 735 buildFilterSet() { |
734 var o = new api.FilterSet(); | 736 var o = new api.FilterSet(); |
735 buildCounterFilterSet++; | 737 buildCounterFilterSet++; |
736 if (buildCounterFilterSet < 3) { | 738 if (buildCounterFilterSet < 3) { |
737 o.absoluteDateRange = buildAbsoluteDateRange(); | 739 o.absoluteDateRange = buildAbsoluteDateRange(); |
738 o.buyerAccountId = "foo"; | 740 o.buyerAccountId = "foo"; |
739 o.creativeId = "foo"; | 741 o.creativeId = "foo"; |
740 o.dealId = "foo"; | 742 o.dealId = "foo"; |
741 o.environment = "foo"; | 743 o.environment = "foo"; |
742 o.filterSetId = "foo"; | 744 o.filterSetId = "foo"; |
743 o.format = "foo"; | 745 o.format = "foo"; |
744 o.ownerAccountId = "foo"; | 746 o.ownerAccountId = "foo"; |
745 o.platforms = buildUnnamed3424(); | 747 o.platforms = buildUnnamed3552(); |
746 o.realtimeTimeRange = buildRealtimeTimeRange(); | 748 o.realtimeTimeRange = buildRealtimeTimeRange(); |
747 o.relativeDateRange = buildRelativeDateRange(); | 749 o.relativeDateRange = buildRelativeDateRange(); |
748 o.sellerNetworkIds = buildUnnamed3425(); | 750 o.sellerNetworkIds = buildUnnamed3553(); |
749 o.timeSeriesGranularity = "foo"; | 751 o.timeSeriesGranularity = "foo"; |
750 } | 752 } |
751 buildCounterFilterSet--; | 753 buildCounterFilterSet--; |
752 return o; | 754 return o; |
753 } | 755 } |
754 | 756 |
755 checkFilterSet(api.FilterSet o) { | 757 checkFilterSet(api.FilterSet o) { |
756 buildCounterFilterSet++; | 758 buildCounterFilterSet++; |
757 if (buildCounterFilterSet < 3) { | 759 if (buildCounterFilterSet < 3) { |
758 checkAbsoluteDateRange(o.absoluteDateRange); | 760 checkAbsoluteDateRange(o.absoluteDateRange); |
759 unittest.expect(o.buyerAccountId, unittest.equals('foo')); | 761 unittest.expect(o.buyerAccountId, unittest.equals('foo')); |
760 unittest.expect(o.creativeId, unittest.equals('foo')); | 762 unittest.expect(o.creativeId, unittest.equals('foo')); |
761 unittest.expect(o.dealId, unittest.equals('foo')); | 763 unittest.expect(o.dealId, unittest.equals('foo')); |
762 unittest.expect(o.environment, unittest.equals('foo')); | 764 unittest.expect(o.environment, unittest.equals('foo')); |
763 unittest.expect(o.filterSetId, unittest.equals('foo')); | 765 unittest.expect(o.filterSetId, unittest.equals('foo')); |
764 unittest.expect(o.format, unittest.equals('foo')); | 766 unittest.expect(o.format, unittest.equals('foo')); |
765 unittest.expect(o.ownerAccountId, unittest.equals('foo')); | 767 unittest.expect(o.ownerAccountId, unittest.equals('foo')); |
766 checkUnnamed3424(o.platforms); | 768 checkUnnamed3552(o.platforms); |
767 checkRealtimeTimeRange(o.realtimeTimeRange); | 769 checkRealtimeTimeRange(o.realtimeTimeRange); |
768 checkRelativeDateRange(o.relativeDateRange); | 770 checkRelativeDateRange(o.relativeDateRange); |
769 checkUnnamed3425(o.sellerNetworkIds); | 771 checkUnnamed3553(o.sellerNetworkIds); |
770 unittest.expect(o.timeSeriesGranularity, unittest.equals('foo')); | 772 unittest.expect(o.timeSeriesGranularity, unittest.equals('foo')); |
771 } | 773 } |
772 buildCounterFilterSet--; | 774 buildCounterFilterSet--; |
773 } | 775 } |
774 | 776 |
775 core.int buildCounterFilteredBidCreativeRow = 0; | 777 core.int buildCounterFilteredBidCreativeRow = 0; |
776 buildFilteredBidCreativeRow() { | 778 buildFilteredBidCreativeRow() { |
777 var o = new api.FilteredBidCreativeRow(); | 779 var o = new api.FilteredBidCreativeRow(); |
778 buildCounterFilteredBidCreativeRow++; | 780 buildCounterFilteredBidCreativeRow++; |
779 if (buildCounterFilteredBidCreativeRow < 3) { | 781 if (buildCounterFilteredBidCreativeRow < 3) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 checkFilteredBidDetailRow(api.FilteredBidDetailRow o) { | 813 checkFilteredBidDetailRow(api.FilteredBidDetailRow o) { |
812 buildCounterFilteredBidDetailRow++; | 814 buildCounterFilteredBidDetailRow++; |
813 if (buildCounterFilteredBidDetailRow < 3) { | 815 if (buildCounterFilteredBidDetailRow < 3) { |
814 checkMetricValue(o.bidCount); | 816 checkMetricValue(o.bidCount); |
815 unittest.expect(o.detailId, unittest.equals(42)); | 817 unittest.expect(o.detailId, unittest.equals(42)); |
816 checkRowDimensions(o.rowDimensions); | 818 checkRowDimensions(o.rowDimensions); |
817 } | 819 } |
818 buildCounterFilteredBidDetailRow--; | 820 buildCounterFilteredBidDetailRow--; |
819 } | 821 } |
820 | 822 |
821 buildUnnamed3426() { | 823 buildUnnamed3554() { |
822 var o = new core.List<api.Reason>(); | 824 var o = new core.List<api.Reason>(); |
823 o.add(buildReason()); | 825 o.add(buildReason()); |
824 o.add(buildReason()); | 826 o.add(buildReason()); |
825 return o; | 827 return o; |
826 } | 828 } |
827 | 829 |
828 checkUnnamed3426(core.List<api.Reason> o) { | 830 checkUnnamed3554(core.List<api.Reason> o) { |
829 unittest.expect(o, unittest.hasLength(2)); | 831 unittest.expect(o, unittest.hasLength(2)); |
830 checkReason(o[0]); | 832 checkReason(o[0]); |
831 checkReason(o[1]); | 833 checkReason(o[1]); |
832 } | 834 } |
833 | 835 |
834 core.int buildCounterFilteringStats = 0; | 836 core.int buildCounterFilteringStats = 0; |
835 buildFilteringStats() { | 837 buildFilteringStats() { |
836 var o = new api.FilteringStats(); | 838 var o = new api.FilteringStats(); |
837 buildCounterFilteringStats++; | 839 buildCounterFilteringStats++; |
838 if (buildCounterFilteringStats < 3) { | 840 if (buildCounterFilteringStats < 3) { |
839 o.date = buildDate(); | 841 o.date = buildDate(); |
840 o.reasons = buildUnnamed3426(); | 842 o.reasons = buildUnnamed3554(); |
841 } | 843 } |
842 buildCounterFilteringStats--; | 844 buildCounterFilteringStats--; |
843 return o; | 845 return o; |
844 } | 846 } |
845 | 847 |
846 checkFilteringStats(api.FilteringStats o) { | 848 checkFilteringStats(api.FilteringStats o) { |
847 buildCounterFilteringStats++; | 849 buildCounterFilteringStats++; |
848 if (buildCounterFilteringStats < 3) { | 850 if (buildCounterFilteringStats < 3) { |
849 checkDate(o.date); | 851 checkDate(o.date); |
850 checkUnnamed3426(o.reasons); | 852 checkUnnamed3554(o.reasons); |
851 } | 853 } |
852 buildCounterFilteringStats--; | 854 buildCounterFilteringStats--; |
853 } | 855 } |
854 | 856 |
855 core.int buildCounterHtmlContent = 0; | 857 core.int buildCounterHtmlContent = 0; |
856 buildHtmlContent() { | 858 buildHtmlContent() { |
857 var o = new api.HtmlContent(); | 859 var o = new api.HtmlContent(); |
858 buildCounterHtmlContent++; | 860 buildCounterHtmlContent++; |
859 if (buildCounterHtmlContent < 3) { | 861 if (buildCounterHtmlContent < 3) { |
860 o.height = 42; | 862 o.height = 42; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 checkMetricValue(o.availableImpressions); | 922 checkMetricValue(o.availableImpressions); |
921 checkMetricValue(o.bidRequests); | 923 checkMetricValue(o.bidRequests); |
922 checkMetricValue(o.inventoryMatches); | 924 checkMetricValue(o.inventoryMatches); |
923 checkMetricValue(o.responsesWithBids); | 925 checkMetricValue(o.responsesWithBids); |
924 checkRowDimensions(o.rowDimensions); | 926 checkRowDimensions(o.rowDimensions); |
925 checkMetricValue(o.successfulResponses); | 927 checkMetricValue(o.successfulResponses); |
926 } | 928 } |
927 buildCounterImpressionMetricsRow--; | 929 buildCounterImpressionMetricsRow--; |
928 } | 930 } |
929 | 931 |
930 core.int buildCounterImpressionStatusRow = 0; | 932 buildUnnamed3555() { |
931 buildImpressionStatusRow() { | |
932 var o = new api.ImpressionStatusRow(); | |
933 buildCounterImpressionStatusRow++; | |
934 if (buildCounterImpressionStatusRow < 3) { | |
935 o.impressionCount = buildMetricValue(); | |
936 o.rowDimensions = buildRowDimensions(); | |
937 o.status = "foo"; | |
938 } | |
939 buildCounterImpressionStatusRow--; | |
940 return o; | |
941 } | |
942 | |
943 checkImpressionStatusRow(api.ImpressionStatusRow o) { | |
944 buildCounterImpressionStatusRow++; | |
945 if (buildCounterImpressionStatusRow < 3) { | |
946 checkMetricValue(o.impressionCount); | |
947 checkRowDimensions(o.rowDimensions); | |
948 unittest.expect(o.status, unittest.equals('foo')); | |
949 } | |
950 buildCounterImpressionStatusRow--; | |
951 } | |
952 | |
953 buildUnnamed3427() { | |
954 var o = new core.List<api.BidMetricsRow>(); | 933 var o = new core.List<api.BidMetricsRow>(); |
955 o.add(buildBidMetricsRow()); | 934 o.add(buildBidMetricsRow()); |
956 o.add(buildBidMetricsRow()); | 935 o.add(buildBidMetricsRow()); |
957 return o; | 936 return o; |
958 } | 937 } |
959 | 938 |
960 checkUnnamed3427(core.List<api.BidMetricsRow> o) { | 939 checkUnnamed3555(core.List<api.BidMetricsRow> o) { |
961 unittest.expect(o, unittest.hasLength(2)); | 940 unittest.expect(o, unittest.hasLength(2)); |
962 checkBidMetricsRow(o[0]); | 941 checkBidMetricsRow(o[0]); |
963 checkBidMetricsRow(o[1]); | 942 checkBidMetricsRow(o[1]); |
964 } | 943 } |
965 | 944 |
966 core.int buildCounterListBidMetricsResponse = 0; | 945 core.int buildCounterListBidMetricsResponse = 0; |
967 buildListBidMetricsResponse() { | 946 buildListBidMetricsResponse() { |
968 var o = new api.ListBidMetricsResponse(); | 947 var o = new api.ListBidMetricsResponse(); |
969 buildCounterListBidMetricsResponse++; | 948 buildCounterListBidMetricsResponse++; |
970 if (buildCounterListBidMetricsResponse < 3) { | 949 if (buildCounterListBidMetricsResponse < 3) { |
971 o.bidMetricsRows = buildUnnamed3427(); | 950 o.bidMetricsRows = buildUnnamed3555(); |
972 o.nextPageToken = "foo"; | 951 o.nextPageToken = "foo"; |
973 } | 952 } |
974 buildCounterListBidMetricsResponse--; | 953 buildCounterListBidMetricsResponse--; |
975 return o; | 954 return o; |
976 } | 955 } |
977 | 956 |
978 checkListBidMetricsResponse(api.ListBidMetricsResponse o) { | 957 checkListBidMetricsResponse(api.ListBidMetricsResponse o) { |
979 buildCounterListBidMetricsResponse++; | 958 buildCounterListBidMetricsResponse++; |
980 if (buildCounterListBidMetricsResponse < 3) { | 959 if (buildCounterListBidMetricsResponse < 3) { |
981 checkUnnamed3427(o.bidMetricsRows); | 960 checkUnnamed3555(o.bidMetricsRows); |
982 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 961 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
983 } | 962 } |
984 buildCounterListBidMetricsResponse--; | 963 buildCounterListBidMetricsResponse--; |
985 } | 964 } |
986 | 965 |
987 buildUnnamed3428() { | 966 buildUnnamed3556() { |
988 var o = new core.List<api.CalloutStatusRow>(); | 967 var o = new core.List<api.CalloutStatusRow>(); |
989 o.add(buildCalloutStatusRow()); | 968 o.add(buildCalloutStatusRow()); |
990 o.add(buildCalloutStatusRow()); | 969 o.add(buildCalloutStatusRow()); |
991 return o; | 970 return o; |
992 } | 971 } |
993 | 972 |
994 checkUnnamed3428(core.List<api.CalloutStatusRow> o) { | 973 checkUnnamed3556(core.List<api.CalloutStatusRow> o) { |
995 unittest.expect(o, unittest.hasLength(2)); | 974 unittest.expect(o, unittest.hasLength(2)); |
996 checkCalloutStatusRow(o[0]); | 975 checkCalloutStatusRow(o[0]); |
997 checkCalloutStatusRow(o[1]); | 976 checkCalloutStatusRow(o[1]); |
998 } | 977 } |
999 | 978 |
1000 core.int buildCounterListBidResponseErrorsResponse = 0; | 979 core.int buildCounterListBidResponseErrorsResponse = 0; |
1001 buildListBidResponseErrorsResponse() { | 980 buildListBidResponseErrorsResponse() { |
1002 var o = new api.ListBidResponseErrorsResponse(); | 981 var o = new api.ListBidResponseErrorsResponse(); |
1003 buildCounterListBidResponseErrorsResponse++; | 982 buildCounterListBidResponseErrorsResponse++; |
1004 if (buildCounterListBidResponseErrorsResponse < 3) { | 983 if (buildCounterListBidResponseErrorsResponse < 3) { |
1005 o.calloutStatusRows = buildUnnamed3428(); | 984 o.calloutStatusRows = buildUnnamed3556(); |
1006 o.nextPageToken = "foo"; | 985 o.nextPageToken = "foo"; |
1007 } | 986 } |
1008 buildCounterListBidResponseErrorsResponse--; | 987 buildCounterListBidResponseErrorsResponse--; |
1009 return o; | 988 return o; |
1010 } | 989 } |
1011 | 990 |
1012 checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) { | 991 checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) { |
1013 buildCounterListBidResponseErrorsResponse++; | 992 buildCounterListBidResponseErrorsResponse++; |
1014 if (buildCounterListBidResponseErrorsResponse < 3) { | 993 if (buildCounterListBidResponseErrorsResponse < 3) { |
1015 checkUnnamed3428(o.calloutStatusRows); | 994 checkUnnamed3556(o.calloutStatusRows); |
1016 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 995 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1017 } | 996 } |
1018 buildCounterListBidResponseErrorsResponse--; | 997 buildCounterListBidResponseErrorsResponse--; |
1019 } | 998 } |
1020 | 999 |
1021 buildUnnamed3429() { | 1000 buildUnnamed3557() { |
1022 var o = new core.List<api.BidResponseWithoutBidsStatusRow>(); | 1001 var o = new core.List<api.BidResponseWithoutBidsStatusRow>(); |
1023 o.add(buildBidResponseWithoutBidsStatusRow()); | 1002 o.add(buildBidResponseWithoutBidsStatusRow()); |
1024 o.add(buildBidResponseWithoutBidsStatusRow()); | 1003 o.add(buildBidResponseWithoutBidsStatusRow()); |
1025 return o; | 1004 return o; |
1026 } | 1005 } |
1027 | 1006 |
1028 checkUnnamed3429(core.List<api.BidResponseWithoutBidsStatusRow> o) { | 1007 checkUnnamed3557(core.List<api.BidResponseWithoutBidsStatusRow> o) { |
1029 unittest.expect(o, unittest.hasLength(2)); | 1008 unittest.expect(o, unittest.hasLength(2)); |
1030 checkBidResponseWithoutBidsStatusRow(o[0]); | 1009 checkBidResponseWithoutBidsStatusRow(o[0]); |
1031 checkBidResponseWithoutBidsStatusRow(o[1]); | 1010 checkBidResponseWithoutBidsStatusRow(o[1]); |
1032 } | 1011 } |
1033 | 1012 |
1034 core.int buildCounterListBidResponsesWithoutBidsResponse = 0; | 1013 core.int buildCounterListBidResponsesWithoutBidsResponse = 0; |
1035 buildListBidResponsesWithoutBidsResponse() { | 1014 buildListBidResponsesWithoutBidsResponse() { |
1036 var o = new api.ListBidResponsesWithoutBidsResponse(); | 1015 var o = new api.ListBidResponsesWithoutBidsResponse(); |
1037 buildCounterListBidResponsesWithoutBidsResponse++; | 1016 buildCounterListBidResponsesWithoutBidsResponse++; |
1038 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { | 1017 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { |
1039 o.bidResponseWithoutBidsStatusRows = buildUnnamed3429(); | 1018 o.bidResponseWithoutBidsStatusRows = buildUnnamed3557(); |
1040 o.nextPageToken = "foo"; | 1019 o.nextPageToken = "foo"; |
1041 } | 1020 } |
1042 buildCounterListBidResponsesWithoutBidsResponse--; | 1021 buildCounterListBidResponsesWithoutBidsResponse--; |
1043 return o; | 1022 return o; |
1044 } | 1023 } |
1045 | 1024 |
1046 checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse
o) { | 1025 checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse
o) { |
1047 buildCounterListBidResponsesWithoutBidsResponse++; | 1026 buildCounterListBidResponsesWithoutBidsResponse++; |
1048 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { | 1027 if (buildCounterListBidResponsesWithoutBidsResponse < 3) { |
1049 checkUnnamed3429(o.bidResponseWithoutBidsStatusRows); | 1028 checkUnnamed3557(o.bidResponseWithoutBidsStatusRows); |
1050 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1029 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1051 } | 1030 } |
1052 buildCounterListBidResponsesWithoutBidsResponse--; | 1031 buildCounterListBidResponsesWithoutBidsResponse--; |
1053 } | 1032 } |
1054 | 1033 |
1055 buildUnnamed3430() { | 1034 buildUnnamed3558() { |
1056 var o = new core.List<api.ClientUserInvitation>(); | 1035 var o = new core.List<api.ClientUserInvitation>(); |
1057 o.add(buildClientUserInvitation()); | 1036 o.add(buildClientUserInvitation()); |
1058 o.add(buildClientUserInvitation()); | 1037 o.add(buildClientUserInvitation()); |
1059 return o; | 1038 return o; |
1060 } | 1039 } |
1061 | 1040 |
1062 checkUnnamed3430(core.List<api.ClientUserInvitation> o) { | 1041 checkUnnamed3558(core.List<api.ClientUserInvitation> o) { |
1063 unittest.expect(o, unittest.hasLength(2)); | 1042 unittest.expect(o, unittest.hasLength(2)); |
1064 checkClientUserInvitation(o[0]); | 1043 checkClientUserInvitation(o[0]); |
1065 checkClientUserInvitation(o[1]); | 1044 checkClientUserInvitation(o[1]); |
1066 } | 1045 } |
1067 | 1046 |
1068 core.int buildCounterListClientUserInvitationsResponse = 0; | 1047 core.int buildCounterListClientUserInvitationsResponse = 0; |
1069 buildListClientUserInvitationsResponse() { | 1048 buildListClientUserInvitationsResponse() { |
1070 var o = new api.ListClientUserInvitationsResponse(); | 1049 var o = new api.ListClientUserInvitationsResponse(); |
1071 buildCounterListClientUserInvitationsResponse++; | 1050 buildCounterListClientUserInvitationsResponse++; |
1072 if (buildCounterListClientUserInvitationsResponse < 3) { | 1051 if (buildCounterListClientUserInvitationsResponse < 3) { |
1073 o.invitations = buildUnnamed3430(); | 1052 o.invitations = buildUnnamed3558(); |
1074 o.nextPageToken = "foo"; | 1053 o.nextPageToken = "foo"; |
1075 } | 1054 } |
1076 buildCounterListClientUserInvitationsResponse--; | 1055 buildCounterListClientUserInvitationsResponse--; |
1077 return o; | 1056 return o; |
1078 } | 1057 } |
1079 | 1058 |
1080 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o)
{ | 1059 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o)
{ |
1081 buildCounterListClientUserInvitationsResponse++; | 1060 buildCounterListClientUserInvitationsResponse++; |
1082 if (buildCounterListClientUserInvitationsResponse < 3) { | 1061 if (buildCounterListClientUserInvitationsResponse < 3) { |
1083 checkUnnamed3430(o.invitations); | 1062 checkUnnamed3558(o.invitations); |
1084 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1063 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1085 } | 1064 } |
1086 buildCounterListClientUserInvitationsResponse--; | 1065 buildCounterListClientUserInvitationsResponse--; |
1087 } | 1066 } |
1088 | 1067 |
1089 buildUnnamed3431() { | 1068 buildUnnamed3559() { |
1090 var o = new core.List<api.ClientUser>(); | 1069 var o = new core.List<api.ClientUser>(); |
1091 o.add(buildClientUser()); | 1070 o.add(buildClientUser()); |
1092 o.add(buildClientUser()); | 1071 o.add(buildClientUser()); |
1093 return o; | 1072 return o; |
1094 } | 1073 } |
1095 | 1074 |
1096 checkUnnamed3431(core.List<api.ClientUser> o) { | 1075 checkUnnamed3559(core.List<api.ClientUser> o) { |
1097 unittest.expect(o, unittest.hasLength(2)); | 1076 unittest.expect(o, unittest.hasLength(2)); |
1098 checkClientUser(o[0]); | 1077 checkClientUser(o[0]); |
1099 checkClientUser(o[1]); | 1078 checkClientUser(o[1]); |
1100 } | 1079 } |
1101 | 1080 |
1102 core.int buildCounterListClientUsersResponse = 0; | 1081 core.int buildCounterListClientUsersResponse = 0; |
1103 buildListClientUsersResponse() { | 1082 buildListClientUsersResponse() { |
1104 var o = new api.ListClientUsersResponse(); | 1083 var o = new api.ListClientUsersResponse(); |
1105 buildCounterListClientUsersResponse++; | 1084 buildCounterListClientUsersResponse++; |
1106 if (buildCounterListClientUsersResponse < 3) { | 1085 if (buildCounterListClientUsersResponse < 3) { |
1107 o.nextPageToken = "foo"; | 1086 o.nextPageToken = "foo"; |
1108 o.users = buildUnnamed3431(); | 1087 o.users = buildUnnamed3559(); |
1109 } | 1088 } |
1110 buildCounterListClientUsersResponse--; | 1089 buildCounterListClientUsersResponse--; |
1111 return o; | 1090 return o; |
1112 } | 1091 } |
1113 | 1092 |
1114 checkListClientUsersResponse(api.ListClientUsersResponse o) { | 1093 checkListClientUsersResponse(api.ListClientUsersResponse o) { |
1115 buildCounterListClientUsersResponse++; | 1094 buildCounterListClientUsersResponse++; |
1116 if (buildCounterListClientUsersResponse < 3) { | 1095 if (buildCounterListClientUsersResponse < 3) { |
1117 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1096 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1118 checkUnnamed3431(o.users); | 1097 checkUnnamed3559(o.users); |
1119 } | 1098 } |
1120 buildCounterListClientUsersResponse--; | 1099 buildCounterListClientUsersResponse--; |
1121 } | 1100 } |
1122 | 1101 |
1123 buildUnnamed3432() { | 1102 buildUnnamed3560() { |
1124 var o = new core.List<api.Client>(); | 1103 var o = new core.List<api.Client>(); |
1125 o.add(buildClient()); | 1104 o.add(buildClient()); |
1126 o.add(buildClient()); | 1105 o.add(buildClient()); |
1127 return o; | 1106 return o; |
1128 } | 1107 } |
1129 | 1108 |
1130 checkUnnamed3432(core.List<api.Client> o) { | 1109 checkUnnamed3560(core.List<api.Client> o) { |
1131 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
1132 checkClient(o[0]); | 1111 checkClient(o[0]); |
1133 checkClient(o[1]); | 1112 checkClient(o[1]); |
1134 } | 1113 } |
1135 | 1114 |
1136 core.int buildCounterListClientsResponse = 0; | 1115 core.int buildCounterListClientsResponse = 0; |
1137 buildListClientsResponse() { | 1116 buildListClientsResponse() { |
1138 var o = new api.ListClientsResponse(); | 1117 var o = new api.ListClientsResponse(); |
1139 buildCounterListClientsResponse++; | 1118 buildCounterListClientsResponse++; |
1140 if (buildCounterListClientsResponse < 3) { | 1119 if (buildCounterListClientsResponse < 3) { |
1141 o.clients = buildUnnamed3432(); | 1120 o.clients = buildUnnamed3560(); |
1142 o.nextPageToken = "foo"; | 1121 o.nextPageToken = "foo"; |
1143 } | 1122 } |
1144 buildCounterListClientsResponse--; | 1123 buildCounterListClientsResponse--; |
1145 return o; | 1124 return o; |
1146 } | 1125 } |
1147 | 1126 |
1148 checkListClientsResponse(api.ListClientsResponse o) { | 1127 checkListClientsResponse(api.ListClientsResponse o) { |
1149 buildCounterListClientsResponse++; | 1128 buildCounterListClientsResponse++; |
1150 if (buildCounterListClientsResponse < 3) { | 1129 if (buildCounterListClientsResponse < 3) { |
1151 checkUnnamed3432(o.clients); | 1130 checkUnnamed3560(o.clients); |
1152 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1131 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1153 } | 1132 } |
1154 buildCounterListClientsResponse--; | 1133 buildCounterListClientsResponse--; |
1155 } | 1134 } |
1156 | 1135 |
1157 buildUnnamed3433() { | 1136 buildUnnamed3561() { |
1158 var o = new core.List<api.FilteredBidDetailRow>(); | 1137 var o = new core.List<api.FilteredBidDetailRow>(); |
1159 o.add(buildFilteredBidDetailRow()); | 1138 o.add(buildFilteredBidDetailRow()); |
1160 o.add(buildFilteredBidDetailRow()); | 1139 o.add(buildFilteredBidDetailRow()); |
1161 return o; | 1140 return o; |
1162 } | 1141 } |
1163 | 1142 |
1164 checkUnnamed3433(core.List<api.FilteredBidDetailRow> o) { | 1143 checkUnnamed3561(core.List<api.FilteredBidDetailRow> o) { |
1165 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
1166 checkFilteredBidDetailRow(o[0]); | 1145 checkFilteredBidDetailRow(o[0]); |
1167 checkFilteredBidDetailRow(o[1]); | 1146 checkFilteredBidDetailRow(o[1]); |
1168 } | 1147 } |
1169 | 1148 |
1170 core.int buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse = 0; | 1149 core.int buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse = 0; |
1171 buildListCreativeStatusAndCreativeBreakdownByDetailResponse() { | 1150 buildListCreativeStatusAndCreativeBreakdownByDetailResponse() { |
1172 var o = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse(); | 1151 var o = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse(); |
1173 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; | 1152 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; |
1174 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { | 1153 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { |
1175 o.detailType = "foo"; | 1154 o.detailType = "foo"; |
1176 o.filteredBidDetailRows = buildUnnamed3433(); | 1155 o.filteredBidDetailRows = buildUnnamed3561(); |
1177 o.nextPageToken = "foo"; | 1156 o.nextPageToken = "foo"; |
1178 } | 1157 } |
1179 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; | 1158 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; |
1180 return o; | 1159 return o; |
1181 } | 1160 } |
1182 | 1161 |
1183 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(api.ListCreativeStat
usAndCreativeBreakdownByDetailResponse o) { | 1162 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(api.ListCreativeStat
usAndCreativeBreakdownByDetailResponse o) { |
1184 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; | 1163 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; |
1185 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { | 1164 if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { |
1186 unittest.expect(o.detailType, unittest.equals('foo')); | 1165 unittest.expect(o.detailType, unittest.equals('foo')); |
1187 checkUnnamed3433(o.filteredBidDetailRows); | 1166 checkUnnamed3561(o.filteredBidDetailRows); |
1188 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1167 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1189 } | 1168 } |
1190 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; | 1169 buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; |
1191 } | 1170 } |
1192 | 1171 |
1193 buildUnnamed3434() { | 1172 buildUnnamed3562() { |
1194 var o = new core.List<api.FilteredBidCreativeRow>(); | 1173 var o = new core.List<api.FilteredBidCreativeRow>(); |
1195 o.add(buildFilteredBidCreativeRow()); | 1174 o.add(buildFilteredBidCreativeRow()); |
1196 o.add(buildFilteredBidCreativeRow()); | 1175 o.add(buildFilteredBidCreativeRow()); |
1197 return o; | 1176 return o; |
1198 } | 1177 } |
1199 | 1178 |
1200 checkUnnamed3434(core.List<api.FilteredBidCreativeRow> o) { | 1179 checkUnnamed3562(core.List<api.FilteredBidCreativeRow> o) { |
1201 unittest.expect(o, unittest.hasLength(2)); | 1180 unittest.expect(o, unittest.hasLength(2)); |
1202 checkFilteredBidCreativeRow(o[0]); | 1181 checkFilteredBidCreativeRow(o[0]); |
1203 checkFilteredBidCreativeRow(o[1]); | 1182 checkFilteredBidCreativeRow(o[1]); |
1204 } | 1183 } |
1205 | 1184 |
1206 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; | 1185 core.int buildCounterListCreativeStatusBreakdownByCreativeResponse = 0; |
1207 buildListCreativeStatusBreakdownByCreativeResponse() { | 1186 buildListCreativeStatusBreakdownByCreativeResponse() { |
1208 var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); | 1187 var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); |
1209 buildCounterListCreativeStatusBreakdownByCreativeResponse++; | 1188 buildCounterListCreativeStatusBreakdownByCreativeResponse++; |
1210 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { | 1189 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { |
1211 o.filteredBidCreativeRows = buildUnnamed3434(); | 1190 o.filteredBidCreativeRows = buildUnnamed3562(); |
1212 o.nextPageToken = "foo"; | 1191 o.nextPageToken = "foo"; |
1213 } | 1192 } |
1214 buildCounterListCreativeStatusBreakdownByCreativeResponse--; | 1193 buildCounterListCreativeStatusBreakdownByCreativeResponse--; |
1215 return o; | 1194 return o; |
1216 } | 1195 } |
1217 | 1196 |
1218 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo
wnByCreativeResponse o) { | 1197 checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdo
wnByCreativeResponse o) { |
1219 buildCounterListCreativeStatusBreakdownByCreativeResponse++; | 1198 buildCounterListCreativeStatusBreakdownByCreativeResponse++; |
1220 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { | 1199 if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { |
1221 checkUnnamed3434(o.filteredBidCreativeRows); | 1200 checkUnnamed3562(o.filteredBidCreativeRows); |
1222 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1201 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1223 } | 1202 } |
1224 buildCounterListCreativeStatusBreakdownByCreativeResponse--; | 1203 buildCounterListCreativeStatusBreakdownByCreativeResponse--; |
1225 } | 1204 } |
1226 | 1205 |
1227 buildUnnamed3435() { | 1206 buildUnnamed3563() { |
1228 var o = new core.List<api.FilteredBidDetailRow>(); | 1207 var o = new core.List<api.FilteredBidDetailRow>(); |
1229 o.add(buildFilteredBidDetailRow()); | 1208 o.add(buildFilteredBidDetailRow()); |
1230 o.add(buildFilteredBidDetailRow()); | 1209 o.add(buildFilteredBidDetailRow()); |
1231 return o; | 1210 return o; |
1232 } | 1211 } |
1233 | 1212 |
1234 checkUnnamed3435(core.List<api.FilteredBidDetailRow> o) { | 1213 checkUnnamed3563(core.List<api.FilteredBidDetailRow> o) { |
1235 unittest.expect(o, unittest.hasLength(2)); | 1214 unittest.expect(o, unittest.hasLength(2)); |
1236 checkFilteredBidDetailRow(o[0]); | 1215 checkFilteredBidDetailRow(o[0]); |
1237 checkFilteredBidDetailRow(o[1]); | 1216 checkFilteredBidDetailRow(o[1]); |
1238 } | 1217 } |
1239 | 1218 |
1240 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; | 1219 core.int buildCounterListCreativeStatusBreakdownByDetailResponse = 0; |
1241 buildListCreativeStatusBreakdownByDetailResponse() { | 1220 buildListCreativeStatusBreakdownByDetailResponse() { |
1242 var o = new api.ListCreativeStatusBreakdownByDetailResponse(); | 1221 var o = new api.ListCreativeStatusBreakdownByDetailResponse(); |
1243 buildCounterListCreativeStatusBreakdownByDetailResponse++; | 1222 buildCounterListCreativeStatusBreakdownByDetailResponse++; |
1244 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { | 1223 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { |
1245 o.detailType = "foo"; | 1224 o.detailType = "foo"; |
1246 o.filteredBidDetailRows = buildUnnamed3435(); | 1225 o.filteredBidDetailRows = buildUnnamed3563(); |
1247 o.nextPageToken = "foo"; | 1226 o.nextPageToken = "foo"; |
1248 } | 1227 } |
1249 buildCounterListCreativeStatusBreakdownByDetailResponse--; | 1228 buildCounterListCreativeStatusBreakdownByDetailResponse--; |
1250 return o; | 1229 return o; |
1251 } | 1230 } |
1252 | 1231 |
1253 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown
ByDetailResponse o) { | 1232 checkListCreativeStatusBreakdownByDetailResponse(api.ListCreativeStatusBreakdown
ByDetailResponse o) { |
1254 buildCounterListCreativeStatusBreakdownByDetailResponse++; | 1233 buildCounterListCreativeStatusBreakdownByDetailResponse++; |
1255 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { | 1234 if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { |
1256 unittest.expect(o.detailType, unittest.equals('foo')); | 1235 unittest.expect(o.detailType, unittest.equals('foo')); |
1257 checkUnnamed3435(o.filteredBidDetailRows); | 1236 checkUnnamed3563(o.filteredBidDetailRows); |
1258 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1237 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1259 } | 1238 } |
1260 buildCounterListCreativeStatusBreakdownByDetailResponse--; | 1239 buildCounterListCreativeStatusBreakdownByDetailResponse--; |
1261 } | 1240 } |
1262 | 1241 |
1263 buildUnnamed3436() { | 1242 buildUnnamed3564() { |
1264 var o = new core.List<api.Creative>(); | 1243 var o = new core.List<api.Creative>(); |
1265 o.add(buildCreative()); | 1244 o.add(buildCreative()); |
1266 o.add(buildCreative()); | 1245 o.add(buildCreative()); |
1267 return o; | 1246 return o; |
1268 } | 1247 } |
1269 | 1248 |
1270 checkUnnamed3436(core.List<api.Creative> o) { | 1249 checkUnnamed3564(core.List<api.Creative> o) { |
1271 unittest.expect(o, unittest.hasLength(2)); | 1250 unittest.expect(o, unittest.hasLength(2)); |
1272 checkCreative(o[0]); | 1251 checkCreative(o[0]); |
1273 checkCreative(o[1]); | 1252 checkCreative(o[1]); |
1274 } | 1253 } |
1275 | 1254 |
1276 core.int buildCounterListCreativesResponse = 0; | 1255 core.int buildCounterListCreativesResponse = 0; |
1277 buildListCreativesResponse() { | 1256 buildListCreativesResponse() { |
1278 var o = new api.ListCreativesResponse(); | 1257 var o = new api.ListCreativesResponse(); |
1279 buildCounterListCreativesResponse++; | 1258 buildCounterListCreativesResponse++; |
1280 if (buildCounterListCreativesResponse < 3) { | 1259 if (buildCounterListCreativesResponse < 3) { |
1281 o.creatives = buildUnnamed3436(); | 1260 o.creatives = buildUnnamed3564(); |
1282 o.nextPageToken = "foo"; | 1261 o.nextPageToken = "foo"; |
1283 } | 1262 } |
1284 buildCounterListCreativesResponse--; | 1263 buildCounterListCreativesResponse--; |
1285 return o; | 1264 return o; |
1286 } | 1265 } |
1287 | 1266 |
1288 checkListCreativesResponse(api.ListCreativesResponse o) { | 1267 checkListCreativesResponse(api.ListCreativesResponse o) { |
1289 buildCounterListCreativesResponse++; | 1268 buildCounterListCreativesResponse++; |
1290 if (buildCounterListCreativesResponse < 3) { | 1269 if (buildCounterListCreativesResponse < 3) { |
1291 checkUnnamed3436(o.creatives); | 1270 checkUnnamed3564(o.creatives); |
1292 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1271 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1293 } | 1272 } |
1294 buildCounterListCreativesResponse--; | 1273 buildCounterListCreativesResponse--; |
1295 } | 1274 } |
1296 | 1275 |
1297 buildUnnamed3437() { | 1276 buildUnnamed3565() { |
1298 var o = new core.List<api.CreativeDealAssociation>(); | 1277 var o = new core.List<api.CreativeDealAssociation>(); |
1299 o.add(buildCreativeDealAssociation()); | 1278 o.add(buildCreativeDealAssociation()); |
1300 o.add(buildCreativeDealAssociation()); | 1279 o.add(buildCreativeDealAssociation()); |
1301 return o; | 1280 return o; |
1302 } | 1281 } |
1303 | 1282 |
1304 checkUnnamed3437(core.List<api.CreativeDealAssociation> o) { | 1283 checkUnnamed3565(core.List<api.CreativeDealAssociation> o) { |
1305 unittest.expect(o, unittest.hasLength(2)); | 1284 unittest.expect(o, unittest.hasLength(2)); |
1306 checkCreativeDealAssociation(o[0]); | 1285 checkCreativeDealAssociation(o[0]); |
1307 checkCreativeDealAssociation(o[1]); | 1286 checkCreativeDealAssociation(o[1]); |
1308 } | 1287 } |
1309 | 1288 |
1310 core.int buildCounterListDealAssociationsResponse = 0; | 1289 core.int buildCounterListDealAssociationsResponse = 0; |
1311 buildListDealAssociationsResponse() { | 1290 buildListDealAssociationsResponse() { |
1312 var o = new api.ListDealAssociationsResponse(); | 1291 var o = new api.ListDealAssociationsResponse(); |
1313 buildCounterListDealAssociationsResponse++; | 1292 buildCounterListDealAssociationsResponse++; |
1314 if (buildCounterListDealAssociationsResponse < 3) { | 1293 if (buildCounterListDealAssociationsResponse < 3) { |
1315 o.associations = buildUnnamed3437(); | 1294 o.associations = buildUnnamed3565(); |
1316 o.nextPageToken = "foo"; | 1295 o.nextPageToken = "foo"; |
1317 } | 1296 } |
1318 buildCounterListDealAssociationsResponse--; | 1297 buildCounterListDealAssociationsResponse--; |
1319 return o; | 1298 return o; |
1320 } | 1299 } |
1321 | 1300 |
1322 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { | 1301 checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { |
1323 buildCounterListDealAssociationsResponse++; | 1302 buildCounterListDealAssociationsResponse++; |
1324 if (buildCounterListDealAssociationsResponse < 3) { | 1303 if (buildCounterListDealAssociationsResponse < 3) { |
1325 checkUnnamed3437(o.associations); | 1304 checkUnnamed3565(o.associations); |
1326 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1305 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1327 } | 1306 } |
1328 buildCounterListDealAssociationsResponse--; | 1307 buildCounterListDealAssociationsResponse--; |
1329 } | 1308 } |
1330 | 1309 |
1331 buildUnnamed3438() { | 1310 buildUnnamed3566() { |
1332 var o = new core.List<api.FilterSet>(); | 1311 var o = new core.List<api.FilterSet>(); |
1333 o.add(buildFilterSet()); | 1312 o.add(buildFilterSet()); |
1334 o.add(buildFilterSet()); | 1313 o.add(buildFilterSet()); |
1335 return o; | 1314 return o; |
1336 } | 1315 } |
1337 | 1316 |
1338 checkUnnamed3438(core.List<api.FilterSet> o) { | 1317 checkUnnamed3566(core.List<api.FilterSet> o) { |
1339 unittest.expect(o, unittest.hasLength(2)); | 1318 unittest.expect(o, unittest.hasLength(2)); |
1340 checkFilterSet(o[0]); | 1319 checkFilterSet(o[0]); |
1341 checkFilterSet(o[1]); | 1320 checkFilterSet(o[1]); |
1342 } | 1321 } |
1343 | 1322 |
1344 core.int buildCounterListFilterSetsResponse = 0; | 1323 core.int buildCounterListFilterSetsResponse = 0; |
1345 buildListFilterSetsResponse() { | 1324 buildListFilterSetsResponse() { |
1346 var o = new api.ListFilterSetsResponse(); | 1325 var o = new api.ListFilterSetsResponse(); |
1347 buildCounterListFilterSetsResponse++; | 1326 buildCounterListFilterSetsResponse++; |
1348 if (buildCounterListFilterSetsResponse < 3) { | 1327 if (buildCounterListFilterSetsResponse < 3) { |
1349 o.filterSets = buildUnnamed3438(); | 1328 o.filterSets = buildUnnamed3566(); |
1350 o.nextPageToken = "foo"; | 1329 o.nextPageToken = "foo"; |
1351 } | 1330 } |
1352 buildCounterListFilterSetsResponse--; | 1331 buildCounterListFilterSetsResponse--; |
1353 return o; | 1332 return o; |
1354 } | 1333 } |
1355 | 1334 |
1356 checkListFilterSetsResponse(api.ListFilterSetsResponse o) { | 1335 checkListFilterSetsResponse(api.ListFilterSetsResponse o) { |
1357 buildCounterListFilterSetsResponse++; | 1336 buildCounterListFilterSetsResponse++; |
1358 if (buildCounterListFilterSetsResponse < 3) { | 1337 if (buildCounterListFilterSetsResponse < 3) { |
1359 checkUnnamed3438(o.filterSets); | 1338 checkUnnamed3566(o.filterSets); |
1360 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1339 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1361 } | 1340 } |
1362 buildCounterListFilterSetsResponse--; | 1341 buildCounterListFilterSetsResponse--; |
1363 } | 1342 } |
1364 | 1343 |
1365 buildUnnamed3439() { | 1344 buildUnnamed3567() { |
1366 var o = new core.List<api.CalloutStatusRow>(); | 1345 var o = new core.List<api.CalloutStatusRow>(); |
1367 o.add(buildCalloutStatusRow()); | 1346 o.add(buildCalloutStatusRow()); |
1368 o.add(buildCalloutStatusRow()); | 1347 o.add(buildCalloutStatusRow()); |
1369 return o; | 1348 return o; |
1370 } | 1349 } |
1371 | 1350 |
1372 checkUnnamed3439(core.List<api.CalloutStatusRow> o) { | 1351 checkUnnamed3567(core.List<api.CalloutStatusRow> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1352 unittest.expect(o, unittest.hasLength(2)); |
1374 checkCalloutStatusRow(o[0]); | 1353 checkCalloutStatusRow(o[0]); |
1375 checkCalloutStatusRow(o[1]); | 1354 checkCalloutStatusRow(o[1]); |
1376 } | 1355 } |
1377 | 1356 |
1378 core.int buildCounterListFilteredBidRequestsResponse = 0; | 1357 core.int buildCounterListFilteredBidRequestsResponse = 0; |
1379 buildListFilteredBidRequestsResponse() { | 1358 buildListFilteredBidRequestsResponse() { |
1380 var o = new api.ListFilteredBidRequestsResponse(); | 1359 var o = new api.ListFilteredBidRequestsResponse(); |
1381 buildCounterListFilteredBidRequestsResponse++; | 1360 buildCounterListFilteredBidRequestsResponse++; |
1382 if (buildCounterListFilteredBidRequestsResponse < 3) { | 1361 if (buildCounterListFilteredBidRequestsResponse < 3) { |
1383 o.calloutStatusRows = buildUnnamed3439(); | 1362 o.calloutStatusRows = buildUnnamed3567(); |
1384 o.nextPageToken = "foo"; | 1363 o.nextPageToken = "foo"; |
1385 } | 1364 } |
1386 buildCounterListFilteredBidRequestsResponse--; | 1365 buildCounterListFilteredBidRequestsResponse--; |
1387 return o; | 1366 return o; |
1388 } | 1367 } |
1389 | 1368 |
1390 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { | 1369 checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { |
1391 buildCounterListFilteredBidRequestsResponse++; | 1370 buildCounterListFilteredBidRequestsResponse++; |
1392 if (buildCounterListFilteredBidRequestsResponse < 3) { | 1371 if (buildCounterListFilteredBidRequestsResponse < 3) { |
1393 checkUnnamed3439(o.calloutStatusRows); | 1372 checkUnnamed3567(o.calloutStatusRows); |
1394 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1373 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1395 } | 1374 } |
1396 buildCounterListFilteredBidRequestsResponse--; | 1375 buildCounterListFilteredBidRequestsResponse--; |
1397 } | 1376 } |
1398 | 1377 |
1399 buildUnnamed3440() { | 1378 buildUnnamed3568() { |
1400 var o = new core.List<api.CreativeStatusRow>(); | 1379 var o = new core.List<api.CreativeStatusRow>(); |
1401 o.add(buildCreativeStatusRow()); | 1380 o.add(buildCreativeStatusRow()); |
1402 o.add(buildCreativeStatusRow()); | 1381 o.add(buildCreativeStatusRow()); |
1403 return o; | 1382 return o; |
1404 } | 1383 } |
1405 | 1384 |
1406 checkUnnamed3440(core.List<api.CreativeStatusRow> o) { | 1385 checkUnnamed3568(core.List<api.CreativeStatusRow> o) { |
1407 unittest.expect(o, unittest.hasLength(2)); | 1386 unittest.expect(o, unittest.hasLength(2)); |
1408 checkCreativeStatusRow(o[0]); | 1387 checkCreativeStatusRow(o[0]); |
1409 checkCreativeStatusRow(o[1]); | 1388 checkCreativeStatusRow(o[1]); |
1410 } | 1389 } |
1411 | 1390 |
1412 core.int buildCounterListFilteredBidsResponse = 0; | 1391 core.int buildCounterListFilteredBidsResponse = 0; |
1413 buildListFilteredBidsResponse() { | 1392 buildListFilteredBidsResponse() { |
1414 var o = new api.ListFilteredBidsResponse(); | 1393 var o = new api.ListFilteredBidsResponse(); |
1415 buildCounterListFilteredBidsResponse++; | 1394 buildCounterListFilteredBidsResponse++; |
1416 if (buildCounterListFilteredBidsResponse < 3) { | 1395 if (buildCounterListFilteredBidsResponse < 3) { |
1417 o.creativeStatusRows = buildUnnamed3440(); | 1396 o.creativeStatusRows = buildUnnamed3568(); |
1418 o.nextPageToken = "foo"; | 1397 o.nextPageToken = "foo"; |
1419 } | 1398 } |
1420 buildCounterListFilteredBidsResponse--; | 1399 buildCounterListFilteredBidsResponse--; |
1421 return o; | 1400 return o; |
1422 } | 1401 } |
1423 | 1402 |
1424 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { | 1403 checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { |
1425 buildCounterListFilteredBidsResponse++; | 1404 buildCounterListFilteredBidsResponse++; |
1426 if (buildCounterListFilteredBidsResponse < 3) { | 1405 if (buildCounterListFilteredBidsResponse < 3) { |
1427 checkUnnamed3440(o.creativeStatusRows); | 1406 checkUnnamed3568(o.creativeStatusRows); |
1428 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1407 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1429 } | 1408 } |
1430 buildCounterListFilteredBidsResponse--; | 1409 buildCounterListFilteredBidsResponse--; |
1431 } | 1410 } |
1432 | 1411 |
1433 buildUnnamed3441() { | 1412 buildUnnamed3569() { |
1434 var o = new core.List<api.ImpressionStatusRow>(); | |
1435 o.add(buildImpressionStatusRow()); | |
1436 o.add(buildImpressionStatusRow()); | |
1437 return o; | |
1438 } | |
1439 | |
1440 checkUnnamed3441(core.List<api.ImpressionStatusRow> o) { | |
1441 unittest.expect(o, unittest.hasLength(2)); | |
1442 checkImpressionStatusRow(o[0]); | |
1443 checkImpressionStatusRow(o[1]); | |
1444 } | |
1445 | |
1446 core.int buildCounterListFilteredImpressionsResponse = 0; | |
1447 buildListFilteredImpressionsResponse() { | |
1448 var o = new api.ListFilteredImpressionsResponse(); | |
1449 buildCounterListFilteredImpressionsResponse++; | |
1450 if (buildCounterListFilteredImpressionsResponse < 3) { | |
1451 o.impressionsStatusRows = buildUnnamed3441(); | |
1452 o.nextPageToken = "foo"; | |
1453 } | |
1454 buildCounterListFilteredImpressionsResponse--; | |
1455 return o; | |
1456 } | |
1457 | |
1458 checkListFilteredImpressionsResponse(api.ListFilteredImpressionsResponse o) { | |
1459 buildCounterListFilteredImpressionsResponse++; | |
1460 if (buildCounterListFilteredImpressionsResponse < 3) { | |
1461 checkUnnamed3441(o.impressionsStatusRows); | |
1462 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
1463 } | |
1464 buildCounterListFilteredImpressionsResponse--; | |
1465 } | |
1466 | |
1467 buildUnnamed3442() { | |
1468 var o = new core.List<api.ImpressionMetricsRow>(); | 1413 var o = new core.List<api.ImpressionMetricsRow>(); |
1469 o.add(buildImpressionMetricsRow()); | 1414 o.add(buildImpressionMetricsRow()); |
1470 o.add(buildImpressionMetricsRow()); | 1415 o.add(buildImpressionMetricsRow()); |
1471 return o; | 1416 return o; |
1472 } | 1417 } |
1473 | 1418 |
1474 checkUnnamed3442(core.List<api.ImpressionMetricsRow> o) { | 1419 checkUnnamed3569(core.List<api.ImpressionMetricsRow> o) { |
1475 unittest.expect(o, unittest.hasLength(2)); | 1420 unittest.expect(o, unittest.hasLength(2)); |
1476 checkImpressionMetricsRow(o[0]); | 1421 checkImpressionMetricsRow(o[0]); |
1477 checkImpressionMetricsRow(o[1]); | 1422 checkImpressionMetricsRow(o[1]); |
1478 } | 1423 } |
1479 | 1424 |
1480 core.int buildCounterListImpressionMetricsResponse = 0; | 1425 core.int buildCounterListImpressionMetricsResponse = 0; |
1481 buildListImpressionMetricsResponse() { | 1426 buildListImpressionMetricsResponse() { |
1482 var o = new api.ListImpressionMetricsResponse(); | 1427 var o = new api.ListImpressionMetricsResponse(); |
1483 buildCounterListImpressionMetricsResponse++; | 1428 buildCounterListImpressionMetricsResponse++; |
1484 if (buildCounterListImpressionMetricsResponse < 3) { | 1429 if (buildCounterListImpressionMetricsResponse < 3) { |
1485 o.impressionMetricsRows = buildUnnamed3442(); | 1430 o.impressionMetricsRows = buildUnnamed3569(); |
1486 o.nextPageToken = "foo"; | 1431 o.nextPageToken = "foo"; |
1487 } | 1432 } |
1488 buildCounterListImpressionMetricsResponse--; | 1433 buildCounterListImpressionMetricsResponse--; |
1489 return o; | 1434 return o; |
1490 } | 1435 } |
1491 | 1436 |
1492 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { | 1437 checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { |
1493 buildCounterListImpressionMetricsResponse++; | 1438 buildCounterListImpressionMetricsResponse++; |
1494 if (buildCounterListImpressionMetricsResponse < 3) { | 1439 if (buildCounterListImpressionMetricsResponse < 3) { |
1495 checkUnnamed3442(o.impressionMetricsRows); | 1440 checkUnnamed3569(o.impressionMetricsRows); |
1496 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1441 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1497 } | 1442 } |
1498 buildCounterListImpressionMetricsResponse--; | 1443 buildCounterListImpressionMetricsResponse--; |
1499 } | 1444 } |
1500 | 1445 |
1501 buildUnnamed3443() { | 1446 buildUnnamed3570() { |
1502 var o = new core.List<api.CreativeStatusRow>(); | 1447 var o = new core.List<api.CreativeStatusRow>(); |
1503 o.add(buildCreativeStatusRow()); | 1448 o.add(buildCreativeStatusRow()); |
1504 o.add(buildCreativeStatusRow()); | 1449 o.add(buildCreativeStatusRow()); |
1505 return o; | 1450 return o; |
1506 } | 1451 } |
1507 | 1452 |
1508 checkUnnamed3443(core.List<api.CreativeStatusRow> o) { | 1453 checkUnnamed3570(core.List<api.CreativeStatusRow> o) { |
1509 unittest.expect(o, unittest.hasLength(2)); | 1454 unittest.expect(o, unittest.hasLength(2)); |
1510 checkCreativeStatusRow(o[0]); | 1455 checkCreativeStatusRow(o[0]); |
1511 checkCreativeStatusRow(o[1]); | 1456 checkCreativeStatusRow(o[1]); |
1512 } | 1457 } |
1513 | 1458 |
1514 core.int buildCounterListLosingBidsResponse = 0; | 1459 core.int buildCounterListLosingBidsResponse = 0; |
1515 buildListLosingBidsResponse() { | 1460 buildListLosingBidsResponse() { |
1516 var o = new api.ListLosingBidsResponse(); | 1461 var o = new api.ListLosingBidsResponse(); |
1517 buildCounterListLosingBidsResponse++; | 1462 buildCounterListLosingBidsResponse++; |
1518 if (buildCounterListLosingBidsResponse < 3) { | 1463 if (buildCounterListLosingBidsResponse < 3) { |
1519 o.creativeStatusRows = buildUnnamed3443(); | 1464 o.creativeStatusRows = buildUnnamed3570(); |
1520 o.nextPageToken = "foo"; | 1465 o.nextPageToken = "foo"; |
1521 } | 1466 } |
1522 buildCounterListLosingBidsResponse--; | 1467 buildCounterListLosingBidsResponse--; |
1523 return o; | 1468 return o; |
1524 } | 1469 } |
1525 | 1470 |
1526 checkListLosingBidsResponse(api.ListLosingBidsResponse o) { | 1471 checkListLosingBidsResponse(api.ListLosingBidsResponse o) { |
1527 buildCounterListLosingBidsResponse++; | 1472 buildCounterListLosingBidsResponse++; |
1528 if (buildCounterListLosingBidsResponse < 3) { | 1473 if (buildCounterListLosingBidsResponse < 3) { |
1529 checkUnnamed3443(o.creativeStatusRows); | 1474 checkUnnamed3570(o.creativeStatusRows); |
1530 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1475 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1531 } | 1476 } |
1532 buildCounterListLosingBidsResponse--; | 1477 buildCounterListLosingBidsResponse--; |
1533 } | 1478 } |
1534 | 1479 |
1535 buildUnnamed3444() { | 1480 buildUnnamed3571() { |
| 1481 var o = new core.List<api.NonBillableWinningBidStatusRow>(); |
| 1482 o.add(buildNonBillableWinningBidStatusRow()); |
| 1483 o.add(buildNonBillableWinningBidStatusRow()); |
| 1484 return o; |
| 1485 } |
| 1486 |
| 1487 checkUnnamed3571(core.List<api.NonBillableWinningBidStatusRow> o) { |
| 1488 unittest.expect(o, unittest.hasLength(2)); |
| 1489 checkNonBillableWinningBidStatusRow(o[0]); |
| 1490 checkNonBillableWinningBidStatusRow(o[1]); |
| 1491 } |
| 1492 |
| 1493 core.int buildCounterListNonBillableWinningBidsResponse = 0; |
| 1494 buildListNonBillableWinningBidsResponse() { |
| 1495 var o = new api.ListNonBillableWinningBidsResponse(); |
| 1496 buildCounterListNonBillableWinningBidsResponse++; |
| 1497 if (buildCounterListNonBillableWinningBidsResponse < 3) { |
| 1498 o.nextPageToken = "foo"; |
| 1499 o.nonBillableWinningBidStatusRows = buildUnnamed3571(); |
| 1500 } |
| 1501 buildCounterListNonBillableWinningBidsResponse--; |
| 1502 return o; |
| 1503 } |
| 1504 |
| 1505 checkListNonBillableWinningBidsResponse(api.ListNonBillableWinningBidsResponse o
) { |
| 1506 buildCounterListNonBillableWinningBidsResponse++; |
| 1507 if (buildCounterListNonBillableWinningBidsResponse < 3) { |
| 1508 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1509 checkUnnamed3571(o.nonBillableWinningBidStatusRows); |
| 1510 } |
| 1511 buildCounterListNonBillableWinningBidsResponse--; |
| 1512 } |
| 1513 |
| 1514 buildUnnamed3572() { |
1536 var o = new core.List<core.int>(); | 1515 var o = new core.List<core.int>(); |
1537 o.add(42); | 1516 o.add(42); |
1538 o.add(42); | 1517 o.add(42); |
1539 return o; | 1518 return o; |
1540 } | 1519 } |
1541 | 1520 |
1542 checkUnnamed3444(core.List<core.int> o) { | 1521 checkUnnamed3572(core.List<core.int> o) { |
1543 unittest.expect(o, unittest.hasLength(2)); | 1522 unittest.expect(o, unittest.hasLength(2)); |
1544 unittest.expect(o[0], unittest.equals(42)); | 1523 unittest.expect(o[0], unittest.equals(42)); |
1545 unittest.expect(o[1], unittest.equals(42)); | 1524 unittest.expect(o[1], unittest.equals(42)); |
1546 } | 1525 } |
1547 | 1526 |
1548 core.int buildCounterLocationContext = 0; | 1527 core.int buildCounterLocationContext = 0; |
1549 buildLocationContext() { | 1528 buildLocationContext() { |
1550 var o = new api.LocationContext(); | 1529 var o = new api.LocationContext(); |
1551 buildCounterLocationContext++; | 1530 buildCounterLocationContext++; |
1552 if (buildCounterLocationContext < 3) { | 1531 if (buildCounterLocationContext < 3) { |
1553 o.geoCriteriaIds = buildUnnamed3444(); | 1532 o.geoCriteriaIds = buildUnnamed3572(); |
1554 } | 1533 } |
1555 buildCounterLocationContext--; | 1534 buildCounterLocationContext--; |
1556 return o; | 1535 return o; |
1557 } | 1536 } |
1558 | 1537 |
1559 checkLocationContext(api.LocationContext o) { | 1538 checkLocationContext(api.LocationContext o) { |
1560 buildCounterLocationContext++; | 1539 buildCounterLocationContext++; |
1561 if (buildCounterLocationContext < 3) { | 1540 if (buildCounterLocationContext < 3) { |
1562 checkUnnamed3444(o.geoCriteriaIds); | 1541 checkUnnamed3572(o.geoCriteriaIds); |
1563 } | 1542 } |
1564 buildCounterLocationContext--; | 1543 buildCounterLocationContext--; |
1565 } | 1544 } |
1566 | 1545 |
1567 core.int buildCounterMetricValue = 0; | 1546 core.int buildCounterMetricValue = 0; |
1568 buildMetricValue() { | 1547 buildMetricValue() { |
1569 var o = new api.MetricValue(); | 1548 var o = new api.MetricValue(); |
1570 buildCounterMetricValue++; | 1549 buildCounterMetricValue++; |
1571 if (buildCounterMetricValue < 3) { | 1550 if (buildCounterMetricValue < 3) { |
1572 o.value = "foo"; | 1551 o.value = "foo"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 checkImage(o.image); | 1600 checkImage(o.image); |
1622 checkImage(o.logo); | 1601 checkImage(o.logo); |
1623 unittest.expect(o.priceDisplayText, unittest.equals('foo')); | 1602 unittest.expect(o.priceDisplayText, unittest.equals('foo')); |
1624 unittest.expect(o.starRating, unittest.equals(42.0)); | 1603 unittest.expect(o.starRating, unittest.equals(42.0)); |
1625 unittest.expect(o.storeUrl, unittest.equals('foo')); | 1604 unittest.expect(o.storeUrl, unittest.equals('foo')); |
1626 unittest.expect(o.videoUrl, unittest.equals('foo')); | 1605 unittest.expect(o.videoUrl, unittest.equals('foo')); |
1627 } | 1606 } |
1628 buildCounterNativeContent--; | 1607 buildCounterNativeContent--; |
1629 } | 1608 } |
1630 | 1609 |
1631 buildUnnamed3445() { | 1610 core.int buildCounterNonBillableWinningBidStatusRow = 0; |
| 1611 buildNonBillableWinningBidStatusRow() { |
| 1612 var o = new api.NonBillableWinningBidStatusRow(); |
| 1613 buildCounterNonBillableWinningBidStatusRow++; |
| 1614 if (buildCounterNonBillableWinningBidStatusRow < 3) { |
| 1615 o.bidCount = buildMetricValue(); |
| 1616 o.rowDimensions = buildRowDimensions(); |
| 1617 o.status = "foo"; |
| 1618 } |
| 1619 buildCounterNonBillableWinningBidStatusRow--; |
| 1620 return o; |
| 1621 } |
| 1622 |
| 1623 checkNonBillableWinningBidStatusRow(api.NonBillableWinningBidStatusRow o) { |
| 1624 buildCounterNonBillableWinningBidStatusRow++; |
| 1625 if (buildCounterNonBillableWinningBidStatusRow < 3) { |
| 1626 checkMetricValue(o.bidCount); |
| 1627 checkRowDimensions(o.rowDimensions); |
| 1628 unittest.expect(o.status, unittest.equals('foo')); |
| 1629 } |
| 1630 buildCounterNonBillableWinningBidStatusRow--; |
| 1631 } |
| 1632 |
| 1633 buildUnnamed3573() { |
1632 var o = new core.List<core.String>(); | 1634 var o = new core.List<core.String>(); |
1633 o.add("foo"); | 1635 o.add("foo"); |
1634 o.add("foo"); | 1636 o.add("foo"); |
1635 return o; | 1637 return o; |
1636 } | 1638 } |
1637 | 1639 |
1638 checkUnnamed3445(core.List<core.String> o) { | 1640 checkUnnamed3573(core.List<core.String> o) { |
1639 unittest.expect(o, unittest.hasLength(2)); | 1641 unittest.expect(o, unittest.hasLength(2)); |
1640 unittest.expect(o[0], unittest.equals('foo')); | 1642 unittest.expect(o[0], unittest.equals('foo')); |
1641 unittest.expect(o[1], unittest.equals('foo')); | 1643 unittest.expect(o[1], unittest.equals('foo')); |
1642 } | 1644 } |
1643 | 1645 |
1644 core.int buildCounterPlatformContext = 0; | 1646 core.int buildCounterPlatformContext = 0; |
1645 buildPlatformContext() { | 1647 buildPlatformContext() { |
1646 var o = new api.PlatformContext(); | 1648 var o = new api.PlatformContext(); |
1647 buildCounterPlatformContext++; | 1649 buildCounterPlatformContext++; |
1648 if (buildCounterPlatformContext < 3) { | 1650 if (buildCounterPlatformContext < 3) { |
1649 o.platforms = buildUnnamed3445(); | 1651 o.platforms = buildUnnamed3573(); |
1650 } | 1652 } |
1651 buildCounterPlatformContext--; | 1653 buildCounterPlatformContext--; |
1652 return o; | 1654 return o; |
1653 } | 1655 } |
1654 | 1656 |
1655 checkPlatformContext(api.PlatformContext o) { | 1657 checkPlatformContext(api.PlatformContext o) { |
1656 buildCounterPlatformContext++; | 1658 buildCounterPlatformContext++; |
1657 if (buildCounterPlatformContext < 3) { | 1659 if (buildCounterPlatformContext < 3) { |
1658 checkUnnamed3445(o.platforms); | 1660 checkUnnamed3573(o.platforms); |
1659 } | 1661 } |
1660 buildCounterPlatformContext--; | 1662 buildCounterPlatformContext--; |
1661 } | 1663 } |
1662 | 1664 |
1663 core.int buildCounterRealtimeTimeRange = 0; | 1665 core.int buildCounterRealtimeTimeRange = 0; |
1664 buildRealtimeTimeRange() { | 1666 buildRealtimeTimeRange() { |
1665 var o = new api.RealtimeTimeRange(); | 1667 var o = new api.RealtimeTimeRange(); |
1666 buildCounterRealtimeTimeRange++; | 1668 buildCounterRealtimeTimeRange++; |
1667 if (buildCounterRealtimeTimeRange < 3) { | 1669 if (buildCounterRealtimeTimeRange < 3) { |
1668 o.startTimestamp = "foo"; | 1670 o.startTimestamp = "foo"; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 } | 1754 } |
1753 | 1755 |
1754 checkRowDimensions(api.RowDimensions o) { | 1756 checkRowDimensions(api.RowDimensions o) { |
1755 buildCounterRowDimensions++; | 1757 buildCounterRowDimensions++; |
1756 if (buildCounterRowDimensions < 3) { | 1758 if (buildCounterRowDimensions < 3) { |
1757 checkTimeInterval(o.timeInterval); | 1759 checkTimeInterval(o.timeInterval); |
1758 } | 1760 } |
1759 buildCounterRowDimensions--; | 1761 buildCounterRowDimensions--; |
1760 } | 1762 } |
1761 | 1763 |
1762 buildUnnamed3446() { | 1764 buildUnnamed3574() { |
1763 var o = new core.List<core.String>(); | 1765 var o = new core.List<core.String>(); |
1764 o.add("foo"); | 1766 o.add("foo"); |
1765 o.add("foo"); | 1767 o.add("foo"); |
1766 return o; | 1768 return o; |
1767 } | 1769 } |
1768 | 1770 |
1769 checkUnnamed3446(core.List<core.String> o) { | 1771 checkUnnamed3574(core.List<core.String> o) { |
1770 unittest.expect(o, unittest.hasLength(2)); | 1772 unittest.expect(o, unittest.hasLength(2)); |
1771 unittest.expect(o[0], unittest.equals('foo')); | 1773 unittest.expect(o[0], unittest.equals('foo')); |
1772 unittest.expect(o[1], unittest.equals('foo')); | 1774 unittest.expect(o[1], unittest.equals('foo')); |
1773 } | 1775 } |
1774 | 1776 |
1775 core.int buildCounterSecurityContext = 0; | 1777 core.int buildCounterSecurityContext = 0; |
1776 buildSecurityContext() { | 1778 buildSecurityContext() { |
1777 var o = new api.SecurityContext(); | 1779 var o = new api.SecurityContext(); |
1778 buildCounterSecurityContext++; | 1780 buildCounterSecurityContext++; |
1779 if (buildCounterSecurityContext < 3) { | 1781 if (buildCounterSecurityContext < 3) { |
1780 o.securities = buildUnnamed3446(); | 1782 o.securities = buildUnnamed3574(); |
1781 } | 1783 } |
1782 buildCounterSecurityContext--; | 1784 buildCounterSecurityContext--; |
1783 return o; | 1785 return o; |
1784 } | 1786 } |
1785 | 1787 |
1786 checkSecurityContext(api.SecurityContext o) { | 1788 checkSecurityContext(api.SecurityContext o) { |
1787 buildCounterSecurityContext++; | 1789 buildCounterSecurityContext++; |
1788 if (buildCounterSecurityContext < 3) { | 1790 if (buildCounterSecurityContext < 3) { |
1789 checkUnnamed3446(o.securities); | 1791 checkUnnamed3574(o.securities); |
1790 } | 1792 } |
1791 buildCounterSecurityContext--; | 1793 buildCounterSecurityContext--; |
1792 } | 1794 } |
1793 | 1795 |
1794 core.int buildCounterServingContext = 0; | 1796 core.int buildCounterServingContext = 0; |
1795 buildServingContext() { | 1797 buildServingContext() { |
1796 var o = new api.ServingContext(); | 1798 var o = new api.ServingContext(); |
1797 buildCounterServingContext++; | 1799 buildCounterServingContext++; |
1798 if (buildCounterServingContext < 3) { | 1800 if (buildCounterServingContext < 3) { |
1799 o.all = "foo"; | 1801 o.all = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
1813 unittest.expect(o.all, unittest.equals('foo')); | 1815 unittest.expect(o.all, unittest.equals('foo')); |
1814 checkAppContext(o.appType); | 1816 checkAppContext(o.appType); |
1815 checkAuctionContext(o.auctionType); | 1817 checkAuctionContext(o.auctionType); |
1816 checkLocationContext(o.location); | 1818 checkLocationContext(o.location); |
1817 checkPlatformContext(o.platform); | 1819 checkPlatformContext(o.platform); |
1818 checkSecurityContext(o.securityType); | 1820 checkSecurityContext(o.securityType); |
1819 } | 1821 } |
1820 buildCounterServingContext--; | 1822 buildCounterServingContext--; |
1821 } | 1823 } |
1822 | 1824 |
1823 buildUnnamed3447() { | 1825 buildUnnamed3575() { |
1824 var o = new core.List<api.ServingContext>(); | 1826 var o = new core.List<api.ServingContext>(); |
1825 o.add(buildServingContext()); | 1827 o.add(buildServingContext()); |
1826 o.add(buildServingContext()); | 1828 o.add(buildServingContext()); |
1827 return o; | 1829 return o; |
1828 } | 1830 } |
1829 | 1831 |
1830 checkUnnamed3447(core.List<api.ServingContext> o) { | 1832 checkUnnamed3575(core.List<api.ServingContext> o) { |
1831 unittest.expect(o, unittest.hasLength(2)); | 1833 unittest.expect(o, unittest.hasLength(2)); |
1832 checkServingContext(o[0]); | 1834 checkServingContext(o[0]); |
1833 checkServingContext(o[1]); | 1835 checkServingContext(o[1]); |
1834 } | 1836 } |
1835 | 1837 |
1836 buildUnnamed3448() { | 1838 buildUnnamed3576() { |
1837 var o = new core.List<api.Disapproval>(); | 1839 var o = new core.List<api.Disapproval>(); |
1838 o.add(buildDisapproval()); | 1840 o.add(buildDisapproval()); |
1839 o.add(buildDisapproval()); | 1841 o.add(buildDisapproval()); |
1840 return o; | 1842 return o; |
1841 } | 1843 } |
1842 | 1844 |
1843 checkUnnamed3448(core.List<api.Disapproval> o) { | 1845 checkUnnamed3576(core.List<api.Disapproval> o) { |
1844 unittest.expect(o, unittest.hasLength(2)); | 1846 unittest.expect(o, unittest.hasLength(2)); |
1845 checkDisapproval(o[0]); | 1847 checkDisapproval(o[0]); |
1846 checkDisapproval(o[1]); | 1848 checkDisapproval(o[1]); |
1847 } | 1849 } |
1848 | 1850 |
1849 core.int buildCounterServingRestriction = 0; | 1851 core.int buildCounterServingRestriction = 0; |
1850 buildServingRestriction() { | 1852 buildServingRestriction() { |
1851 var o = new api.ServingRestriction(); | 1853 var o = new api.ServingRestriction(); |
1852 buildCounterServingRestriction++; | 1854 buildCounterServingRestriction++; |
1853 if (buildCounterServingRestriction < 3) { | 1855 if (buildCounterServingRestriction < 3) { |
1854 o.contexts = buildUnnamed3447(); | 1856 o.contexts = buildUnnamed3575(); |
1855 o.disapprovalReasons = buildUnnamed3448(); | 1857 o.disapprovalReasons = buildUnnamed3576(); |
1856 o.status = "foo"; | 1858 o.status = "foo"; |
1857 } | 1859 } |
1858 buildCounterServingRestriction--; | 1860 buildCounterServingRestriction--; |
1859 return o; | 1861 return o; |
1860 } | 1862 } |
1861 | 1863 |
1862 checkServingRestriction(api.ServingRestriction o) { | 1864 checkServingRestriction(api.ServingRestriction o) { |
1863 buildCounterServingRestriction++; | 1865 buildCounterServingRestriction++; |
1864 if (buildCounterServingRestriction < 3) { | 1866 if (buildCounterServingRestriction < 3) { |
1865 checkUnnamed3447(o.contexts); | 1867 checkUnnamed3575(o.contexts); |
1866 checkUnnamed3448(o.disapprovalReasons); | 1868 checkUnnamed3576(o.disapprovalReasons); |
1867 unittest.expect(o.status, unittest.equals('foo')); | 1869 unittest.expect(o.status, unittest.equals('foo')); |
1868 } | 1870 } |
1869 buildCounterServingRestriction--; | 1871 buildCounterServingRestriction--; |
1870 } | 1872 } |
1871 | 1873 |
1872 core.int buildCounterStopWatchingCreativeRequest = 0; | 1874 core.int buildCounterStopWatchingCreativeRequest = 0; |
1873 buildStopWatchingCreativeRequest() { | 1875 buildStopWatchingCreativeRequest() { |
1874 var o = new api.StopWatchingCreativeRequest(); | 1876 var o = new api.StopWatchingCreativeRequest(); |
1875 buildCounterStopWatchingCreativeRequest++; | 1877 buildCounterStopWatchingCreativeRequest++; |
1876 if (buildCounterStopWatchingCreativeRequest < 3) { | 1878 if (buildCounterStopWatchingCreativeRequest < 3) { |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2156 | 2158 |
2157 unittest.group("obj-schema-ImpressionMetricsRow", () { | 2159 unittest.group("obj-schema-ImpressionMetricsRow", () { |
2158 unittest.test("to-json--from-json", () { | 2160 unittest.test("to-json--from-json", () { |
2159 var o = buildImpressionMetricsRow(); | 2161 var o = buildImpressionMetricsRow(); |
2160 var od = new api.ImpressionMetricsRow.fromJson(o.toJson()); | 2162 var od = new api.ImpressionMetricsRow.fromJson(o.toJson()); |
2161 checkImpressionMetricsRow(od); | 2163 checkImpressionMetricsRow(od); |
2162 }); | 2164 }); |
2163 }); | 2165 }); |
2164 | 2166 |
2165 | 2167 |
2166 unittest.group("obj-schema-ImpressionStatusRow", () { | |
2167 unittest.test("to-json--from-json", () { | |
2168 var o = buildImpressionStatusRow(); | |
2169 var od = new api.ImpressionStatusRow.fromJson(o.toJson()); | |
2170 checkImpressionStatusRow(od); | |
2171 }); | |
2172 }); | |
2173 | |
2174 | |
2175 unittest.group("obj-schema-ListBidMetricsResponse", () { | 2168 unittest.group("obj-schema-ListBidMetricsResponse", () { |
2176 unittest.test("to-json--from-json", () { | 2169 unittest.test("to-json--from-json", () { |
2177 var o = buildListBidMetricsResponse(); | 2170 var o = buildListBidMetricsResponse(); |
2178 var od = new api.ListBidMetricsResponse.fromJson(o.toJson()); | 2171 var od = new api.ListBidMetricsResponse.fromJson(o.toJson()); |
2179 checkListBidMetricsResponse(od); | 2172 checkListBidMetricsResponse(od); |
2180 }); | 2173 }); |
2181 }); | 2174 }); |
2182 | 2175 |
2183 | 2176 |
2184 unittest.group("obj-schema-ListBidResponseErrorsResponse", () { | 2177 unittest.group("obj-schema-ListBidResponseErrorsResponse", () { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 | 2284 |
2292 unittest.group("obj-schema-ListFilteredBidsResponse", () { | 2285 unittest.group("obj-schema-ListFilteredBidsResponse", () { |
2293 unittest.test("to-json--from-json", () { | 2286 unittest.test("to-json--from-json", () { |
2294 var o = buildListFilteredBidsResponse(); | 2287 var o = buildListFilteredBidsResponse(); |
2295 var od = new api.ListFilteredBidsResponse.fromJson(o.toJson()); | 2288 var od = new api.ListFilteredBidsResponse.fromJson(o.toJson()); |
2296 checkListFilteredBidsResponse(od); | 2289 checkListFilteredBidsResponse(od); |
2297 }); | 2290 }); |
2298 }); | 2291 }); |
2299 | 2292 |
2300 | 2293 |
2301 unittest.group("obj-schema-ListFilteredImpressionsResponse", () { | |
2302 unittest.test("to-json--from-json", () { | |
2303 var o = buildListFilteredImpressionsResponse(); | |
2304 var od = new api.ListFilteredImpressionsResponse.fromJson(o.toJson()); | |
2305 checkListFilteredImpressionsResponse(od); | |
2306 }); | |
2307 }); | |
2308 | |
2309 | |
2310 unittest.group("obj-schema-ListImpressionMetricsResponse", () { | 2294 unittest.group("obj-schema-ListImpressionMetricsResponse", () { |
2311 unittest.test("to-json--from-json", () { | 2295 unittest.test("to-json--from-json", () { |
2312 var o = buildListImpressionMetricsResponse(); | 2296 var o = buildListImpressionMetricsResponse(); |
2313 var od = new api.ListImpressionMetricsResponse.fromJson(o.toJson()); | 2297 var od = new api.ListImpressionMetricsResponse.fromJson(o.toJson()); |
2314 checkListImpressionMetricsResponse(od); | 2298 checkListImpressionMetricsResponse(od); |
2315 }); | 2299 }); |
2316 }); | 2300 }); |
2317 | 2301 |
2318 | 2302 |
2319 unittest.group("obj-schema-ListLosingBidsResponse", () { | 2303 unittest.group("obj-schema-ListLosingBidsResponse", () { |
2320 unittest.test("to-json--from-json", () { | 2304 unittest.test("to-json--from-json", () { |
2321 var o = buildListLosingBidsResponse(); | 2305 var o = buildListLosingBidsResponse(); |
2322 var od = new api.ListLosingBidsResponse.fromJson(o.toJson()); | 2306 var od = new api.ListLosingBidsResponse.fromJson(o.toJson()); |
2323 checkListLosingBidsResponse(od); | 2307 checkListLosingBidsResponse(od); |
2324 }); | 2308 }); |
2325 }); | 2309 }); |
2326 | 2310 |
2327 | 2311 |
| 2312 unittest.group("obj-schema-ListNonBillableWinningBidsResponse", () { |
| 2313 unittest.test("to-json--from-json", () { |
| 2314 var o = buildListNonBillableWinningBidsResponse(); |
| 2315 var od = new api.ListNonBillableWinningBidsResponse.fromJson(o.toJson()); |
| 2316 checkListNonBillableWinningBidsResponse(od); |
| 2317 }); |
| 2318 }); |
| 2319 |
| 2320 |
2328 unittest.group("obj-schema-LocationContext", () { | 2321 unittest.group("obj-schema-LocationContext", () { |
2329 unittest.test("to-json--from-json", () { | 2322 unittest.test("to-json--from-json", () { |
2330 var o = buildLocationContext(); | 2323 var o = buildLocationContext(); |
2331 var od = new api.LocationContext.fromJson(o.toJson()); | 2324 var od = new api.LocationContext.fromJson(o.toJson()); |
2332 checkLocationContext(od); | 2325 checkLocationContext(od); |
2333 }); | 2326 }); |
2334 }); | 2327 }); |
2335 | 2328 |
2336 | 2329 |
2337 unittest.group("obj-schema-MetricValue", () { | 2330 unittest.group("obj-schema-MetricValue", () { |
2338 unittest.test("to-json--from-json", () { | 2331 unittest.test("to-json--from-json", () { |
2339 var o = buildMetricValue(); | 2332 var o = buildMetricValue(); |
2340 var od = new api.MetricValue.fromJson(o.toJson()); | 2333 var od = new api.MetricValue.fromJson(o.toJson()); |
2341 checkMetricValue(od); | 2334 checkMetricValue(od); |
2342 }); | 2335 }); |
2343 }); | 2336 }); |
2344 | 2337 |
2345 | 2338 |
2346 unittest.group("obj-schema-NativeContent", () { | 2339 unittest.group("obj-schema-NativeContent", () { |
2347 unittest.test("to-json--from-json", () { | 2340 unittest.test("to-json--from-json", () { |
2348 var o = buildNativeContent(); | 2341 var o = buildNativeContent(); |
2349 var od = new api.NativeContent.fromJson(o.toJson()); | 2342 var od = new api.NativeContent.fromJson(o.toJson()); |
2350 checkNativeContent(od); | 2343 checkNativeContent(od); |
2351 }); | 2344 }); |
2352 }); | 2345 }); |
2353 | 2346 |
2354 | 2347 |
| 2348 unittest.group("obj-schema-NonBillableWinningBidStatusRow", () { |
| 2349 unittest.test("to-json--from-json", () { |
| 2350 var o = buildNonBillableWinningBidStatusRow(); |
| 2351 var od = new api.NonBillableWinningBidStatusRow.fromJson(o.toJson()); |
| 2352 checkNonBillableWinningBidStatusRow(od); |
| 2353 }); |
| 2354 }); |
| 2355 |
| 2356 |
2355 unittest.group("obj-schema-PlatformContext", () { | 2357 unittest.group("obj-schema-PlatformContext", () { |
2356 unittest.test("to-json--from-json", () { | 2358 unittest.test("to-json--from-json", () { |
2357 var o = buildPlatformContext(); | 2359 var o = buildPlatformContext(); |
2358 var od = new api.PlatformContext.fromJson(o.toJson()); | 2360 var od = new api.PlatformContext.fromJson(o.toJson()); |
2359 checkPlatformContext(od); | 2361 checkPlatformContext(od); |
2360 }); | 2362 }); |
2361 }); | 2363 }); |
2362 | 2364 |
2363 | 2365 |
2364 unittest.group("obj-schema-RealtimeTimeRange", () { | 2366 unittest.group("obj-schema-RealtimeTimeRange", () { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((a
pi.Client response) { | 2580 res.get(arg_accountId, arg_clientAccountId).then(unittest.expectAsync1(((a
pi.Client response) { |
2579 checkClient(response); | 2581 checkClient(response); |
2580 }))); | 2582 }))); |
2581 }); | 2583 }); |
2582 | 2584 |
2583 unittest.test("method--list", () { | 2585 unittest.test("method--list", () { |
2584 | 2586 |
2585 var mock = new HttpServerMock(); | 2587 var mock = new HttpServerMock(); |
2586 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; | 2588 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; |
2587 var arg_accountId = "foo"; | 2589 var arg_accountId = "foo"; |
| 2590 var arg_pageSize = 42; |
2588 var arg_pageToken = "foo"; | 2591 var arg_pageToken = "foo"; |
2589 var arg_pageSize = 42; | |
2590 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2592 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2591 var path = (req.url).path; | 2593 var path = (req.url).path; |
2592 var pathOffset = 0; | 2594 var pathOffset = 0; |
2593 var index; | 2595 var index; |
2594 var subPart; | 2596 var subPart; |
2595 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2596 pathOffset += 1; | 2598 pathOffset += 1; |
2597 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 2599 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
2598 pathOffset += 17; | 2600 pathOffset += 17; |
2599 index = path.indexOf("/clients", pathOffset); | 2601 index = path.indexOf("/clients", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2613 if (n == "false") return false; | 2615 if (n == "false") return false; |
2614 if (n == null) return null; | 2616 if (n == null) return null; |
2615 throw new core.ArgumentError("Invalid boolean: $n"); | 2617 throw new core.ArgumentError("Invalid boolean: $n"); |
2616 } | 2618 } |
2617 if (query.length > 0) { | 2619 if (query.length > 0) { |
2618 for (var part in query.split("&")) { | 2620 for (var part in query.split("&")) { |
2619 var keyvalue = part.split("="); | 2621 var keyvalue = part.split("="); |
2620 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2622 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2621 } | 2623 } |
2622 } | 2624 } |
| 2625 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2623 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2626 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2624 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2625 | 2627 |
2626 | 2628 |
2627 var h = { | 2629 var h = { |
2628 "content-type" : "application/json; charset=utf-8", | 2630 "content-type" : "application/json; charset=utf-8", |
2629 }; | 2631 }; |
2630 var resp = convert.JSON.encode(buildListClientsResponse()); | 2632 var resp = convert.JSON.encode(buildListClientsResponse()); |
2631 return new async.Future.value(stringResponse(200, h, resp)); | 2633 return new async.Future.value(stringResponse(200, h, resp)); |
2632 }), true); | 2634 }), true); |
2633 res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).
then(unittest.expectAsync1(((api.ListClientsResponse response) { | 2635 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken).
then(unittest.expectAsync1(((api.ListClientsResponse response) { |
2634 checkListClientsResponse(response); | 2636 checkListClientsResponse(response); |
2635 }))); | 2637 }))); |
2636 }); | 2638 }); |
2637 | 2639 |
2638 unittest.test("method--update", () { | 2640 unittest.test("method--update", () { |
2639 | 2641 |
2640 var mock = new HttpServerMock(); | 2642 var mock = new HttpServerMock(); |
2641 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; | 2643 api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).acc
ounts.clients; |
2642 var arg_request = buildClient(); | 2644 var arg_request = buildClient(); |
2643 var arg_accountId = "foo"; | 2645 var arg_accountId = "foo"; |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3508 checkEmpty(response); | 3510 checkEmpty(response); |
3509 }))); | 3511 }))); |
3510 }); | 3512 }); |
3511 | 3513 |
3512 unittest.test("method--list", () { | 3514 unittest.test("method--list", () { |
3513 | 3515 |
3514 var mock = new HttpServerMock(); | 3516 var mock = new HttpServerMock(); |
3515 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; | 3517 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; |
3516 var arg_accountId = "foo"; | 3518 var arg_accountId = "foo"; |
3517 var arg_creativeId = "foo"; | 3519 var arg_creativeId = "foo"; |
| 3520 var arg_query = "foo"; |
3518 var arg_pageToken = "foo"; | 3521 var arg_pageToken = "foo"; |
3519 var arg_pageSize = 42; | 3522 var arg_pageSize = 42; |
3520 var arg_query = "foo"; | |
3521 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3523 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3522 var path = (req.url).path; | 3524 var path = (req.url).path; |
3523 var pathOffset = 0; | 3525 var pathOffset = 0; |
3524 var index; | 3526 var index; |
3525 var subPart; | 3527 var subPart; |
3526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3528 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3527 pathOffset += 1; | 3529 pathOffset += 1; |
3528 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 3530 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
3529 pathOffset += 17; | 3531 pathOffset += 17; |
3530 index = path.indexOf("/creatives/", pathOffset); | 3532 index = path.indexOf("/creatives/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
3551 if (n == "false") return false; | 3553 if (n == "false") return false; |
3552 if (n == null) return null; | 3554 if (n == null) return null; |
3553 throw new core.ArgumentError("Invalid boolean: $n"); | 3555 throw new core.ArgumentError("Invalid boolean: $n"); |
3554 } | 3556 } |
3555 if (query.length > 0) { | 3557 if (query.length > 0) { |
3556 for (var part in query.split("&")) { | 3558 for (var part in query.split("&")) { |
3557 var keyvalue = part.split("="); | 3559 var keyvalue = part.split("="); |
3558 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3560 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3559 } | 3561 } |
3560 } | 3562 } |
| 3563 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); |
3561 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3564 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3562 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3565 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3563 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); | |
3564 | 3566 |
3565 | 3567 |
3566 var h = { | 3568 var h = { |
3567 "content-type" : "application/json; charset=utf-8", | 3569 "content-type" : "application/json; charset=utf-8", |
3568 }; | 3570 }; |
3569 var resp = convert.JSON.encode(buildListDealAssociationsResponse()); | 3571 var resp = convert.JSON.encode(buildListDealAssociationsResponse()); |
3570 return new async.Future.value(stringResponse(200, h, resp)); | 3572 return new async.Future.value(stringResponse(200, h, resp)); |
3571 }), true); | 3573 }), true); |
3572 res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize
: arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListDealAssoc
iationsResponse response) { | 3574 res.list(arg_accountId, arg_creativeId, query: arg_query, pageToken: arg_p
ageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDealAssoc
iationsResponse response) { |
3573 checkListDealAssociationsResponse(response); | 3575 checkListDealAssociationsResponse(response); |
3574 }))); | 3576 }))); |
3575 }); | 3577 }); |
3576 | 3578 |
3577 unittest.test("method--remove", () { | 3579 unittest.test("method--remove", () { |
3578 | 3580 |
3579 var mock = new HttpServerMock(); | 3581 var mock = new HttpServerMock(); |
3580 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; | 3582 api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangeb
uyer2Api(mock).accounts.creatives.dealAssociations; |
3581 var arg_request = buildRemoveDealAssociationRequest(); | 3583 var arg_request = buildRemoveDealAssociationRequest(); |
3582 var arg_accountId = "foo"; | 3584 var arg_accountId = "foo"; |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4134 }); | 4136 }); |
4135 | 4137 |
4136 | 4138 |
4137 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { | 4139 unittest.group("resource-AccountsFilterSetsFilteredBidsResourceApi", () { |
4138 unittest.test("method--list", () { | 4140 unittest.test("method--list", () { |
4139 | 4141 |
4140 var mock = new HttpServerMock(); | 4142 var mock = new HttpServerMock(); |
4141 api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuye
r2Api(mock).accounts.filterSets.filteredBids; | 4143 api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuye
r2Api(mock).accounts.filterSets.filteredBids; |
4142 var arg_accountId = "foo"; | 4144 var arg_accountId = "foo"; |
4143 var arg_filterSetId = "foo"; | 4145 var arg_filterSetId = "foo"; |
| 4146 var arg_pageSize = 42; |
4144 var arg_pageToken = "foo"; | 4147 var arg_pageToken = "foo"; |
4145 var arg_pageSize = 42; | |
4146 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4148 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4147 var path = (req.url).path; | 4149 var path = (req.url).path; |
4148 var pathOffset = 0; | 4150 var pathOffset = 0; |
4149 var index; | 4151 var index; |
4150 var subPart; | 4152 var subPart; |
4151 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4153 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4152 pathOffset += 1; | 4154 pathOffset += 1; |
4153 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4155 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4154 pathOffset += 17; | 4156 pathOffset += 17; |
4155 index = path.indexOf("/filterSets/", pathOffset); | 4157 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
4176 if (n == "false") return false; | 4178 if (n == "false") return false; |
4177 if (n == null) return null; | 4179 if (n == null) return null; |
4178 throw new core.ArgumentError("Invalid boolean: $n"); | 4180 throw new core.ArgumentError("Invalid boolean: $n"); |
4179 } | 4181 } |
4180 if (query.length > 0) { | 4182 if (query.length > 0) { |
4181 for (var part in query.split("&")) { | 4183 for (var part in query.split("&")) { |
4182 var keyvalue = part.split("="); | 4184 var keyvalue = part.split("="); |
4183 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4185 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4184 } | 4186 } |
4185 } | 4187 } |
| 4188 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4186 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4189 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4187 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4188 | 4190 |
4189 | 4191 |
4190 var h = { | 4192 var h = { |
4191 "content-type" : "application/json; charset=utf-8", | 4193 "content-type" : "application/json; charset=utf-8", |
4192 }; | 4194 }; |
4193 var resp = convert.JSON.encode(buildListFilteredBidsResponse()); | 4195 var resp = convert.JSON.encode(buildListFilteredBidsResponse()); |
4194 return new async.Future.value(stringResponse(200, h, resp)); | 4196 return new async.Future.value(stringResponse(200, h, resp)); |
4195 }), true); | 4197 }), true); |
4196 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidsResponse respo
nse) { | 4198 res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListFilteredBidsResponse respo
nse) { |
4197 checkListFilteredBidsResponse(response); | 4199 checkListFilteredBidsResponse(response); |
4198 }))); | 4200 }))); |
4199 }); | 4201 }); |
4200 | 4202 |
4201 }); | 4203 }); |
4202 | 4204 |
4203 | 4205 |
4204 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesResourceApi",
() { | 4206 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesResourceApi",
() { |
4205 unittest.test("method--list", () { | 4207 unittest.test("method--list", () { |
4206 | 4208 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4278 | 4280 |
4279 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesDetailsResourc
eApi", () { | 4281 unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesDetailsResourc
eApi", () { |
4280 unittest.test("method--list", () { | 4282 unittest.test("method--list", () { |
4281 | 4283 |
4282 var mock = new HttpServerMock(); | 4284 var mock = new HttpServerMock(); |
4283 api.AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi res = new ap
i.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives.details; | 4285 api.AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi res = new ap
i.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives.details; |
4284 var arg_accountId = "foo"; | 4286 var arg_accountId = "foo"; |
4285 var arg_filterSetId = "foo"; | 4287 var arg_filterSetId = "foo"; |
4286 var arg_creativeStatusId = 42; | 4288 var arg_creativeStatusId = 42; |
4287 var arg_creativeId = "foo"; | 4289 var arg_creativeId = "foo"; |
| 4290 var arg_pageToken = "foo"; |
4288 var arg_pageSize = 42; | 4291 var arg_pageSize = 42; |
4289 var arg_pageToken = "foo"; | |
4290 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4291 var path = (req.url).path; | 4293 var path = (req.url).path; |
4292 var pathOffset = 0; | 4294 var pathOffset = 0; |
4293 var index; | 4295 var index; |
4294 var subPart; | 4296 var subPart; |
4295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4296 pathOffset += 1; | 4298 pathOffset += 1; |
4297 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4299 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4298 pathOffset += 17; | 4300 pathOffset += 17; |
4299 index = path.indexOf("/filterSets/", pathOffset); | 4301 index = path.indexOf("/filterSets/", pathOffset); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4334 if (n == "false") return false; | 4336 if (n == "false") return false; |
4335 if (n == null) return null; | 4337 if (n == null) return null; |
4336 throw new core.ArgumentError("Invalid boolean: $n"); | 4338 throw new core.ArgumentError("Invalid boolean: $n"); |
4337 } | 4339 } |
4338 if (query.length > 0) { | 4340 if (query.length > 0) { |
4339 for (var part in query.split("&")) { | 4341 for (var part in query.split("&")) { |
4340 var keyvalue = part.split("="); | 4342 var keyvalue = part.split("="); |
4341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4343 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4342 } | 4344 } |
4343 } | 4345 } |
| 4346 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4344 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4347 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4345 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
4346 | 4348 |
4347 | 4349 |
4348 var h = { | 4350 var h = { |
4349 "content-type" : "application/json; charset=utf-8", | 4351 "content-type" : "application/json; charset=utf-8", |
4350 }; | 4352 }; |
4351 var resp = convert.JSON.encode(buildListCreativeStatusAndCreativeBreakdo
wnByDetailResponse()); | 4353 var resp = convert.JSON.encode(buildListCreativeStatusAndCreativeBreakdo
wnByDetailResponse()); |
4352 return new async.Future.value(stringResponse(200, h, resp)); | 4354 return new async.Future.value(stringResponse(200, h, resp)); |
4353 }), true); | 4355 }), true); |
4354 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, arg_creativ
eId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync
1(((api.ListCreativeStatusAndCreativeBreakdownByDetailResponse response) { | 4356 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, arg_creativ
eId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync
1(((api.ListCreativeStatusAndCreativeBreakdownByDetailResponse response) { |
4355 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(response); | 4357 checkListCreativeStatusAndCreativeBreakdownByDetailResponse(response); |
4356 }))); | 4358 }))); |
4357 }); | 4359 }); |
4358 | 4360 |
4359 }); | 4361 }); |
4360 | 4362 |
4361 | 4363 |
4362 unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", ()
{ | 4364 unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", ()
{ |
4363 unittest.test("method--list", () { | 4365 unittest.test("method--list", () { |
4364 | 4366 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4427 return new async.Future.value(stringResponse(200, h, resp)); | 4429 return new async.Future.value(stringResponse(200, h, resp)); |
4428 }), true); | 4430 }), true); |
4429 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken:
arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCrea
tiveStatusBreakdownByDetailResponse response) { | 4431 res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, pageToken:
arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCrea
tiveStatusBreakdownByDetailResponse response) { |
4430 checkListCreativeStatusBreakdownByDetailResponse(response); | 4432 checkListCreativeStatusBreakdownByDetailResponse(response); |
4431 }))); | 4433 }))); |
4432 }); | 4434 }); |
4433 | 4435 |
4434 }); | 4436 }); |
4435 | 4437 |
4436 | 4438 |
4437 unittest.group("resource-AccountsFilterSetsFilteredImpressionsResourceApi", ()
{ | 4439 unittest.group("resource-AccountsFilterSetsImpressionMetricsResourceApi", () { |
4438 unittest.test("method--list", () { | 4440 unittest.test("method--list", () { |
4439 | 4441 |
4440 var mock = new HttpServerMock(); | 4442 var mock = new HttpServerMock(); |
4441 api.AccountsFilterSetsFilteredImpressionsResourceApi res = new api.Adexcha
ngebuyer2Api(mock).accounts.filterSets.filteredImpressions; | 4443 api.AccountsFilterSetsImpressionMetricsResourceApi res = new api.Adexchang
ebuyer2Api(mock).accounts.filterSets.impressionMetrics; |
4442 var arg_accountId = "foo"; | 4444 var arg_accountId = "foo"; |
4443 var arg_filterSetId = "foo"; | 4445 var arg_filterSetId = "foo"; |
4444 var arg_pageToken = "foo"; | 4446 var arg_pageToken = "foo"; |
4445 var arg_pageSize = 42; | 4447 var arg_pageSize = 42; |
4446 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4448 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4447 var path = (req.url).path; | 4449 var path = (req.url).path; |
4448 var pathOffset = 0; | 4450 var pathOffset = 0; |
4449 var index; | 4451 var index; |
4450 var subPart; | 4452 var subPart; |
4451 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4453 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4452 pathOffset += 1; | 4454 pathOffset += 1; |
4453 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4455 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4454 pathOffset += 17; | 4456 pathOffset += 17; |
4455 index = path.indexOf("/filterSets/", pathOffset); | 4457 index = path.indexOf("/filterSets/", pathOffset); |
4456 unittest.expect(index >= 0, unittest.isTrue); | 4458 unittest.expect(index >= 0, unittest.isTrue); |
4457 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4459 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4458 pathOffset = index; | 4460 pathOffset = index; |
4459 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 4461 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
4460 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); | 4462 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); |
4461 pathOffset += 12; | 4463 pathOffset += 12; |
4462 index = path.indexOf("/filteredImpressions", pathOffset); | 4464 index = path.indexOf("/impressionMetrics", pathOffset); |
4463 unittest.expect(index >= 0, unittest.isTrue); | 4465 unittest.expect(index >= 0, unittest.isTrue); |
4464 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4466 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4465 pathOffset = index; | 4467 pathOffset = index; |
4466 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); | 4468 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); |
4467 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/filteredImpressions")); | 4469 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/impressionMetrics")); |
4468 pathOffset += 20; | 4470 pathOffset += 18; |
4469 | 4471 |
4470 var query = (req.url).query; | 4472 var query = (req.url).query; |
4471 var queryOffset = 0; | 4473 var queryOffset = 0; |
4472 var queryMap = {}; | 4474 var queryMap = {}; |
4473 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4475 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4474 parseBool(n) { | 4476 parseBool(n) { |
4475 if (n == "true") return true; | 4477 if (n == "true") return true; |
4476 if (n == "false") return false; | 4478 if (n == "false") return false; |
4477 if (n == null) return null; | 4479 if (n == null) return null; |
4478 throw new core.ArgumentError("Invalid boolean: $n"); | 4480 throw new core.ArgumentError("Invalid boolean: $n"); |
4479 } | 4481 } |
4480 if (query.length > 0) { | 4482 if (query.length > 0) { |
4481 for (var part in query.split("&")) { | 4483 for (var part in query.split("&")) { |
4482 var keyvalue = part.split("="); | 4484 var keyvalue = part.split("="); |
4483 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4485 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4484 } | 4486 } |
4485 } | 4487 } |
4486 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4488 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4487 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4489 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4488 | 4490 |
4489 | 4491 |
4490 var h = { | 4492 var h = { |
4491 "content-type" : "application/json; charset=utf-8", | 4493 "content-type" : "application/json; charset=utf-8", |
4492 }; | 4494 }; |
4493 var resp = convert.JSON.encode(buildListFilteredImpressionsResponse()); | 4495 var resp = convert.JSON.encode(buildListImpressionMetricsResponse()); |
4494 return new async.Future.value(stringResponse(200, h, resp)); | 4496 return new async.Future.value(stringResponse(200, h, resp)); |
4495 }), true); | 4497 }), true); |
4496 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredImpressionsRespons
e response) { | 4498 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListImpressionMetricsResponse
response) { |
4497 checkListFilteredImpressionsResponse(response); | 4499 checkListImpressionMetricsResponse(response); |
4498 }))); | 4500 }))); |
4499 }); | 4501 }); |
4500 | 4502 |
4501 }); | 4503 }); |
4502 | 4504 |
4503 | 4505 |
4504 unittest.group("resource-AccountsFilterSetsImpressionMetricsResourceApi", () { | 4506 unittest.group("resource-AccountsFilterSetsLosingBidsResourceApi", () { |
4505 unittest.test("method--list", () { | 4507 unittest.test("method--list", () { |
4506 | 4508 |
4507 var mock = new HttpServerMock(); | 4509 var mock = new HttpServerMock(); |
4508 api.AccountsFilterSetsImpressionMetricsResourceApi res = new api.Adexchang
ebuyer2Api(mock).accounts.filterSets.impressionMetrics; | 4510 api.AccountsFilterSetsLosingBidsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.losingBids; |
4509 var arg_accountId = "foo"; | 4511 var arg_accountId = "foo"; |
4510 var arg_filterSetId = "foo"; | 4512 var arg_filterSetId = "foo"; |
4511 var arg_pageToken = "foo"; | 4513 var arg_pageToken = "foo"; |
4512 var arg_pageSize = 42; | 4514 var arg_pageSize = 42; |
4513 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4515 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4514 var path = (req.url).path; | 4516 var path = (req.url).path; |
4515 var pathOffset = 0; | 4517 var pathOffset = 0; |
4516 var index; | 4518 var index; |
4517 var subPart; | 4519 var subPart; |
4518 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4520 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4519 pathOffset += 1; | 4521 pathOffset += 1; |
4520 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4522 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4521 pathOffset += 17; | 4523 pathOffset += 17; |
4522 index = path.indexOf("/filterSets/", pathOffset); | 4524 index = path.indexOf("/filterSets/", pathOffset); |
4523 unittest.expect(index >= 0, unittest.isTrue); | 4525 unittest.expect(index >= 0, unittest.isTrue); |
4524 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4526 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4525 pathOffset = index; | 4527 pathOffset = index; |
4526 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 4528 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
4527 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); | 4529 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); |
4528 pathOffset += 12; | 4530 pathOffset += 12; |
4529 index = path.indexOf("/impressionMetrics", pathOffset); | 4531 index = path.indexOf("/losingBids", pathOffset); |
4530 unittest.expect(index >= 0, unittest.isTrue); | 4532 unittest.expect(index >= 0, unittest.isTrue); |
4531 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4533 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4532 pathOffset = index; | 4534 pathOffset = index; |
4533 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); | 4535 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); |
4534 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/impressionMetrics")); | 4536 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/losingBids")); |
4535 pathOffset += 18; | 4537 pathOffset += 11; |
4536 | 4538 |
4537 var query = (req.url).query; | 4539 var query = (req.url).query; |
4538 var queryOffset = 0; | 4540 var queryOffset = 0; |
4539 var queryMap = {}; | 4541 var queryMap = {}; |
4540 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4542 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4541 parseBool(n) { | 4543 parseBool(n) { |
4542 if (n == "true") return true; | 4544 if (n == "true") return true; |
4543 if (n == "false") return false; | 4545 if (n == "false") return false; |
4544 if (n == null) return null; | 4546 if (n == null) return null; |
4545 throw new core.ArgumentError("Invalid boolean: $n"); | 4547 throw new core.ArgumentError("Invalid boolean: $n"); |
4546 } | 4548 } |
4547 if (query.length > 0) { | 4549 if (query.length > 0) { |
4548 for (var part in query.split("&")) { | 4550 for (var part in query.split("&")) { |
4549 var keyvalue = part.split("="); | 4551 var keyvalue = part.split("="); |
4550 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4552 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4551 } | 4553 } |
4552 } | 4554 } |
4553 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4555 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4554 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4556 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4555 | 4557 |
4556 | 4558 |
4557 var h = { | 4559 var h = { |
4558 "content-type" : "application/json; charset=utf-8", | 4560 "content-type" : "application/json; charset=utf-8", |
4559 }; | 4561 }; |
4560 var resp = convert.JSON.encode(buildListImpressionMetricsResponse()); | 4562 var resp = convert.JSON.encode(buildListLosingBidsResponse()); |
4561 return new async.Future.value(stringResponse(200, h, resp)); | 4563 return new async.Future.value(stringResponse(200, h, resp)); |
4562 }), true); | 4564 }), true); |
4563 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListImpressionMetricsResponse
response) { | 4565 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListLosingBidsResponse respons
e) { |
4564 checkListImpressionMetricsResponse(response); | 4566 checkListLosingBidsResponse(response); |
4565 }))); | 4567 }))); |
4566 }); | 4568 }); |
4567 | 4569 |
4568 }); | 4570 }); |
4569 | 4571 |
4570 | 4572 |
4571 unittest.group("resource-AccountsFilterSetsLosingBidsResourceApi", () { | 4573 unittest.group("resource-AccountsFilterSetsNonBillableWinningBidsResourceApi",
() { |
4572 unittest.test("method--list", () { | 4574 unittest.test("method--list", () { |
4573 | 4575 |
4574 var mock = new HttpServerMock(); | 4576 var mock = new HttpServerMock(); |
4575 api.AccountsFilterSetsLosingBidsResourceApi res = new api.Adexchangebuyer2
Api(mock).accounts.filterSets.losingBids; | 4577 api.AccountsFilterSetsNonBillableWinningBidsResourceApi res = new api.Adex
changebuyer2Api(mock).accounts.filterSets.nonBillableWinningBids; |
4576 var arg_accountId = "foo"; | 4578 var arg_accountId = "foo"; |
4577 var arg_filterSetId = "foo"; | 4579 var arg_filterSetId = "foo"; |
4578 var arg_pageToken = "foo"; | 4580 var arg_pageToken = "foo"; |
4579 var arg_pageSize = 42; | 4581 var arg_pageSize = 42; |
4580 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4582 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4581 var path = (req.url).path; | 4583 var path = (req.url).path; |
4582 var pathOffset = 0; | 4584 var pathOffset = 0; |
4583 var index; | 4585 var index; |
4584 var subPart; | 4586 var subPart; |
4585 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4586 pathOffset += 1; | 4588 pathOffset += 1; |
4587 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); | 4589 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v2beta1/accounts/")); |
4588 pathOffset += 17; | 4590 pathOffset += 17; |
4589 index = path.indexOf("/filterSets/", pathOffset); | 4591 index = path.indexOf("/filterSets/", pathOffset); |
4590 unittest.expect(index >= 0, unittest.isTrue); | 4592 unittest.expect(index >= 0, unittest.isTrue); |
4591 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4593 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4592 pathOffset = index; | 4594 pathOffset = index; |
4593 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 4595 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
4594 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); | 4596 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/filterSets/")); |
4595 pathOffset += 12; | 4597 pathOffset += 12; |
4596 index = path.indexOf("/losingBids", pathOffset); | 4598 index = path.indexOf("/nonBillableWinningBids", pathOffset); |
4597 unittest.expect(index >= 0, unittest.isTrue); | 4599 unittest.expect(index >= 0, unittest.isTrue); |
4598 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4600 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4599 pathOffset = index; | 4601 pathOffset = index; |
4600 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); | 4602 unittest.expect(subPart, unittest.equals("$arg_filterSetId")); |
4601 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/losingBids")); | 4603 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/nonBillableWinningBids")); |
4602 pathOffset += 11; | 4604 pathOffset += 23; |
4603 | 4605 |
4604 var query = (req.url).query; | 4606 var query = (req.url).query; |
4605 var queryOffset = 0; | 4607 var queryOffset = 0; |
4606 var queryMap = {}; | 4608 var queryMap = {}; |
4607 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4609 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4608 parseBool(n) { | 4610 parseBool(n) { |
4609 if (n == "true") return true; | 4611 if (n == "true") return true; |
4610 if (n == "false") return false; | 4612 if (n == "false") return false; |
4611 if (n == null) return null; | 4613 if (n == null) return null; |
4612 throw new core.ArgumentError("Invalid boolean: $n"); | 4614 throw new core.ArgumentError("Invalid boolean: $n"); |
4613 } | 4615 } |
4614 if (query.length > 0) { | 4616 if (query.length > 0) { |
4615 for (var part in query.split("&")) { | 4617 for (var part in query.split("&")) { |
4616 var keyvalue = part.split("="); | 4618 var keyvalue = part.split("="); |
4617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4619 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4618 } | 4620 } |
4619 } | 4621 } |
4620 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4622 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4621 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4623 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4622 | 4624 |
4623 | 4625 |
4624 var h = { | 4626 var h = { |
4625 "content-type" : "application/json; charset=utf-8", | 4627 "content-type" : "application/json; charset=utf-8", |
4626 }; | 4628 }; |
4627 var resp = convert.JSON.encode(buildListLosingBidsResponse()); | 4629 var resp = convert.JSON.encode(buildListNonBillableWinningBidsResponse()
); |
4628 return new async.Future.value(stringResponse(200, h, resp)); | 4630 return new async.Future.value(stringResponse(200, h, resp)); |
4629 }), true); | 4631 }), true); |
4630 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListLosingBidsResponse respons
e) { | 4632 res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListNonBillableWinningBidsResp
onse response) { |
4631 checkListLosingBidsResponse(response); | 4633 checkListNonBillableWinningBidsResponse(response); |
4632 }))); | 4634 }))); |
4633 }); | 4635 }); |
4634 | 4636 |
4635 }); | 4637 }); |
4636 | 4638 |
4637 | 4639 |
4638 } | 4640 } |
4639 | 4641 |
OLD | NEW |