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

Side by Side Diff: generated/googleapis/test/adsensehost/v4_1_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.adsensehost.v4_1.test; 1 library googleapis.adsensehost.v4_1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 buildCounterAccount++; 69 buildCounterAccount++;
70 if (buildCounterAccount < 3) { 70 if (buildCounterAccount < 3) {
71 unittest.expect(o.id, unittest.equals('foo')); 71 unittest.expect(o.id, unittest.equals('foo'));
72 unittest.expect(o.kind, unittest.equals('foo')); 72 unittest.expect(o.kind, unittest.equals('foo'));
73 unittest.expect(o.name, unittest.equals('foo')); 73 unittest.expect(o.name, unittest.equals('foo'));
74 unittest.expect(o.status, unittest.equals('foo')); 74 unittest.expect(o.status, unittest.equals('foo'));
75 } 75 }
76 buildCounterAccount--; 76 buildCounterAccount--;
77 } 77 }
78 78
79 buildUnnamed2904() { 79 buildUnnamed2995() {
80 var o = new core.List<api.Account>(); 80 var o = new core.List<api.Account>();
81 o.add(buildAccount()); 81 o.add(buildAccount());
82 o.add(buildAccount()); 82 o.add(buildAccount());
83 return o; 83 return o;
84 } 84 }
85 85
86 checkUnnamed2904(core.List<api.Account> o) { 86 checkUnnamed2995(core.List<api.Account> o) {
87 unittest.expect(o, unittest.hasLength(2)); 87 unittest.expect(o, unittest.hasLength(2));
88 checkAccount(o[0]); 88 checkAccount(o[0]);
89 checkAccount(o[1]); 89 checkAccount(o[1]);
90 } 90 }
91 91
92 core.int buildCounterAccounts = 0; 92 core.int buildCounterAccounts = 0;
93 buildAccounts() { 93 buildAccounts() {
94 var o = new api.Accounts(); 94 var o = new api.Accounts();
95 buildCounterAccounts++; 95 buildCounterAccounts++;
96 if (buildCounterAccounts < 3) { 96 if (buildCounterAccounts < 3) {
97 o.etag = "foo"; 97 o.etag = "foo";
98 o.items = buildUnnamed2904(); 98 o.items = buildUnnamed2995();
99 o.kind = "foo"; 99 o.kind = "foo";
100 } 100 }
101 buildCounterAccounts--; 101 buildCounterAccounts--;
102 return o; 102 return o;
103 } 103 }
104 104
105 checkAccounts(api.Accounts o) { 105 checkAccounts(api.Accounts o) {
106 buildCounterAccounts++; 106 buildCounterAccounts++;
107 if (buildCounterAccounts < 3) { 107 if (buildCounterAccounts < 3) {
108 unittest.expect(o.etag, unittest.equals('foo')); 108 unittest.expect(o.etag, unittest.equals('foo'));
109 checkUnnamed2904(o.items); 109 checkUnnamed2995(o.items);
110 unittest.expect(o.kind, unittest.equals('foo')); 110 unittest.expect(o.kind, unittest.equals('foo'));
111 } 111 }
112 buildCounterAccounts--; 112 buildCounterAccounts--;
113 } 113 }
114 114
115 core.int buildCounterAdClient = 0; 115 core.int buildCounterAdClient = 0;
116 buildAdClient() { 116 buildAdClient() {
117 var o = new api.AdClient(); 117 var o = new api.AdClient();
118 buildCounterAdClient++; 118 buildCounterAdClient++;
119 if (buildCounterAdClient < 3) { 119 if (buildCounterAdClient < 3) {
(...skipping 12 matching lines...) Expand all
132 if (buildCounterAdClient < 3) { 132 if (buildCounterAdClient < 3) {
133 unittest.expect(o.arcOptIn, unittest.isTrue); 133 unittest.expect(o.arcOptIn, unittest.isTrue);
134 unittest.expect(o.id, unittest.equals('foo')); 134 unittest.expect(o.id, unittest.equals('foo'));
135 unittest.expect(o.kind, unittest.equals('foo')); 135 unittest.expect(o.kind, unittest.equals('foo'));
136 unittest.expect(o.productCode, unittest.equals('foo')); 136 unittest.expect(o.productCode, unittest.equals('foo'));
137 unittest.expect(o.supportsReporting, unittest.isTrue); 137 unittest.expect(o.supportsReporting, unittest.isTrue);
138 } 138 }
139 buildCounterAdClient--; 139 buildCounterAdClient--;
140 } 140 }
141 141
142 buildUnnamed2905() { 142 buildUnnamed2996() {
143 var o = new core.List<api.AdClient>(); 143 var o = new core.List<api.AdClient>();
144 o.add(buildAdClient()); 144 o.add(buildAdClient());
145 o.add(buildAdClient()); 145 o.add(buildAdClient());
146 return o; 146 return o;
147 } 147 }
148 148
149 checkUnnamed2905(core.List<api.AdClient> o) { 149 checkUnnamed2996(core.List<api.AdClient> o) {
150 unittest.expect(o, unittest.hasLength(2)); 150 unittest.expect(o, unittest.hasLength(2));
151 checkAdClient(o[0]); 151 checkAdClient(o[0]);
152 checkAdClient(o[1]); 152 checkAdClient(o[1]);
153 } 153 }
154 154
155 core.int buildCounterAdClients = 0; 155 core.int buildCounterAdClients = 0;
156 buildAdClients() { 156 buildAdClients() {
157 var o = new api.AdClients(); 157 var o = new api.AdClients();
158 buildCounterAdClients++; 158 buildCounterAdClients++;
159 if (buildCounterAdClients < 3) { 159 if (buildCounterAdClients < 3) {
160 o.etag = "foo"; 160 o.etag = "foo";
161 o.items = buildUnnamed2905(); 161 o.items = buildUnnamed2996();
162 o.kind = "foo"; 162 o.kind = "foo";
163 o.nextPageToken = "foo"; 163 o.nextPageToken = "foo";
164 } 164 }
165 buildCounterAdClients--; 165 buildCounterAdClients--;
166 return o; 166 return o;
167 } 167 }
168 168
169 checkAdClients(api.AdClients o) { 169 checkAdClients(api.AdClients o) {
170 buildCounterAdClients++; 170 buildCounterAdClients++;
171 if (buildCounterAdClients < 3) { 171 if (buildCounterAdClients < 3) {
172 unittest.expect(o.etag, unittest.equals('foo')); 172 unittest.expect(o.etag, unittest.equals('foo'));
173 checkUnnamed2905(o.items); 173 checkUnnamed2996(o.items);
174 unittest.expect(o.kind, unittest.equals('foo')); 174 unittest.expect(o.kind, unittest.equals('foo'));
175 unittest.expect(o.nextPageToken, unittest.equals('foo')); 175 unittest.expect(o.nextPageToken, unittest.equals('foo'));
176 } 176 }
177 buildCounterAdClients--; 177 buildCounterAdClients--;
178 } 178 }
179 179
180 core.int buildCounterAdCode = 0; 180 core.int buildCounterAdCode = 0;
181 buildAdCode() { 181 buildAdCode() {
182 var o = new api.AdCode(); 182 var o = new api.AdCode();
183 buildCounterAdCode++; 183 buildCounterAdCode++;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 checkAdStyle(o.customStyle); 368 checkAdStyle(o.customStyle);
369 unittest.expect(o.id, unittest.equals('foo')); 369 unittest.expect(o.id, unittest.equals('foo'));
370 unittest.expect(o.kind, unittest.equals('foo')); 370 unittest.expect(o.kind, unittest.equals('foo'));
371 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); 371 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings);
372 unittest.expect(o.name, unittest.equals('foo')); 372 unittest.expect(o.name, unittest.equals('foo'));
373 unittest.expect(o.status, unittest.equals('foo')); 373 unittest.expect(o.status, unittest.equals('foo'));
374 } 374 }
375 buildCounterAdUnit--; 375 buildCounterAdUnit--;
376 } 376 }
377 377
378 buildUnnamed2906() { 378 buildUnnamed2997() {
379 var o = new core.List<api.AdUnit>(); 379 var o = new core.List<api.AdUnit>();
380 o.add(buildAdUnit()); 380 o.add(buildAdUnit());
381 o.add(buildAdUnit()); 381 o.add(buildAdUnit());
382 return o; 382 return o;
383 } 383 }
384 384
385 checkUnnamed2906(core.List<api.AdUnit> o) { 385 checkUnnamed2997(core.List<api.AdUnit> o) {
386 unittest.expect(o, unittest.hasLength(2)); 386 unittest.expect(o, unittest.hasLength(2));
387 checkAdUnit(o[0]); 387 checkAdUnit(o[0]);
388 checkAdUnit(o[1]); 388 checkAdUnit(o[1]);
389 } 389 }
390 390
391 core.int buildCounterAdUnits = 0; 391 core.int buildCounterAdUnits = 0;
392 buildAdUnits() { 392 buildAdUnits() {
393 var o = new api.AdUnits(); 393 var o = new api.AdUnits();
394 buildCounterAdUnits++; 394 buildCounterAdUnits++;
395 if (buildCounterAdUnits < 3) { 395 if (buildCounterAdUnits < 3) {
396 o.etag = "foo"; 396 o.etag = "foo";
397 o.items = buildUnnamed2906(); 397 o.items = buildUnnamed2997();
398 o.kind = "foo"; 398 o.kind = "foo";
399 o.nextPageToken = "foo"; 399 o.nextPageToken = "foo";
400 } 400 }
401 buildCounterAdUnits--; 401 buildCounterAdUnits--;
402 return o; 402 return o;
403 } 403 }
404 404
405 checkAdUnits(api.AdUnits o) { 405 checkAdUnits(api.AdUnits o) {
406 buildCounterAdUnits++; 406 buildCounterAdUnits++;
407 if (buildCounterAdUnits < 3) { 407 if (buildCounterAdUnits < 3) {
408 unittest.expect(o.etag, unittest.equals('foo')); 408 unittest.expect(o.etag, unittest.equals('foo'));
409 checkUnnamed2906(o.items); 409 checkUnnamed2997(o.items);
410 unittest.expect(o.kind, unittest.equals('foo')); 410 unittest.expect(o.kind, unittest.equals('foo'));
411 unittest.expect(o.nextPageToken, unittest.equals('foo')); 411 unittest.expect(o.nextPageToken, unittest.equals('foo'));
412 } 412 }
413 buildCounterAdUnits--; 413 buildCounterAdUnits--;
414 } 414 }
415 415
416 buildUnnamed2907() { 416 buildUnnamed2998() {
417 var o = new core.List<core.String>(); 417 var o = new core.List<core.String>();
418 o.add("foo"); 418 o.add("foo");
419 o.add("foo"); 419 o.add("foo");
420 return o; 420 return o;
421 } 421 }
422 422
423 checkUnnamed2907(core.List<core.String> o) { 423 checkUnnamed2998(core.List<core.String> o) {
424 unittest.expect(o, unittest.hasLength(2)); 424 unittest.expect(o, unittest.hasLength(2));
425 unittest.expect(o[0], unittest.equals('foo')); 425 unittest.expect(o[0], unittest.equals('foo'));
426 unittest.expect(o[1], unittest.equals('foo')); 426 unittest.expect(o[1], unittest.equals('foo'));
427 } 427 }
428 428
429 core.int buildCounterAssociationSession = 0; 429 core.int buildCounterAssociationSession = 0;
430 buildAssociationSession() { 430 buildAssociationSession() {
431 var o = new api.AssociationSession(); 431 var o = new api.AssociationSession();
432 buildCounterAssociationSession++; 432 buildCounterAssociationSession++;
433 if (buildCounterAssociationSession < 3) { 433 if (buildCounterAssociationSession < 3) {
434 o.accountId = "foo"; 434 o.accountId = "foo";
435 o.id = "foo"; 435 o.id = "foo";
436 o.kind = "foo"; 436 o.kind = "foo";
437 o.productCodes = buildUnnamed2907(); 437 o.productCodes = buildUnnamed2998();
438 o.redirectUrl = "foo"; 438 o.redirectUrl = "foo";
439 o.status = "foo"; 439 o.status = "foo";
440 o.userLocale = "foo"; 440 o.userLocale = "foo";
441 o.websiteLocale = "foo"; 441 o.websiteLocale = "foo";
442 o.websiteUrl = "foo"; 442 o.websiteUrl = "foo";
443 } 443 }
444 buildCounterAssociationSession--; 444 buildCounterAssociationSession--;
445 return o; 445 return o;
446 } 446 }
447 447
448 checkAssociationSession(api.AssociationSession o) { 448 checkAssociationSession(api.AssociationSession o) {
449 buildCounterAssociationSession++; 449 buildCounterAssociationSession++;
450 if (buildCounterAssociationSession < 3) { 450 if (buildCounterAssociationSession < 3) {
451 unittest.expect(o.accountId, unittest.equals('foo')); 451 unittest.expect(o.accountId, unittest.equals('foo'));
452 unittest.expect(o.id, unittest.equals('foo')); 452 unittest.expect(o.id, unittest.equals('foo'));
453 unittest.expect(o.kind, unittest.equals('foo')); 453 unittest.expect(o.kind, unittest.equals('foo'));
454 checkUnnamed2907(o.productCodes); 454 checkUnnamed2998(o.productCodes);
455 unittest.expect(o.redirectUrl, unittest.equals('foo')); 455 unittest.expect(o.redirectUrl, unittest.equals('foo'));
456 unittest.expect(o.status, unittest.equals('foo')); 456 unittest.expect(o.status, unittest.equals('foo'));
457 unittest.expect(o.userLocale, unittest.equals('foo')); 457 unittest.expect(o.userLocale, unittest.equals('foo'));
458 unittest.expect(o.websiteLocale, unittest.equals('foo')); 458 unittest.expect(o.websiteLocale, unittest.equals('foo'));
459 unittest.expect(o.websiteUrl, unittest.equals('foo')); 459 unittest.expect(o.websiteUrl, unittest.equals('foo'));
460 } 460 }
461 buildCounterAssociationSession--; 461 buildCounterAssociationSession--;
462 } 462 }
463 463
464 core.int buildCounterCustomChannel = 0; 464 core.int buildCounterCustomChannel = 0;
(...skipping 14 matching lines...) Expand all
479 buildCounterCustomChannel++; 479 buildCounterCustomChannel++;
480 if (buildCounterCustomChannel < 3) { 480 if (buildCounterCustomChannel < 3) {
481 unittest.expect(o.code, unittest.equals('foo')); 481 unittest.expect(o.code, unittest.equals('foo'));
482 unittest.expect(o.id, unittest.equals('foo')); 482 unittest.expect(o.id, unittest.equals('foo'));
483 unittest.expect(o.kind, unittest.equals('foo')); 483 unittest.expect(o.kind, unittest.equals('foo'));
484 unittest.expect(o.name, unittest.equals('foo')); 484 unittest.expect(o.name, unittest.equals('foo'));
485 } 485 }
486 buildCounterCustomChannel--; 486 buildCounterCustomChannel--;
487 } 487 }
488 488
489 buildUnnamed2908() { 489 buildUnnamed2999() {
490 var o = new core.List<api.CustomChannel>(); 490 var o = new core.List<api.CustomChannel>();
491 o.add(buildCustomChannel()); 491 o.add(buildCustomChannel());
492 o.add(buildCustomChannel()); 492 o.add(buildCustomChannel());
493 return o; 493 return o;
494 } 494 }
495 495
496 checkUnnamed2908(core.List<api.CustomChannel> o) { 496 checkUnnamed2999(core.List<api.CustomChannel> o) {
497 unittest.expect(o, unittest.hasLength(2)); 497 unittest.expect(o, unittest.hasLength(2));
498 checkCustomChannel(o[0]); 498 checkCustomChannel(o[0]);
499 checkCustomChannel(o[1]); 499 checkCustomChannel(o[1]);
500 } 500 }
501 501
502 core.int buildCounterCustomChannels = 0; 502 core.int buildCounterCustomChannels = 0;
503 buildCustomChannels() { 503 buildCustomChannels() {
504 var o = new api.CustomChannels(); 504 var o = new api.CustomChannels();
505 buildCounterCustomChannels++; 505 buildCounterCustomChannels++;
506 if (buildCounterCustomChannels < 3) { 506 if (buildCounterCustomChannels < 3) {
507 o.etag = "foo"; 507 o.etag = "foo";
508 o.items = buildUnnamed2908(); 508 o.items = buildUnnamed2999();
509 o.kind = "foo"; 509 o.kind = "foo";
510 o.nextPageToken = "foo"; 510 o.nextPageToken = "foo";
511 } 511 }
512 buildCounterCustomChannels--; 512 buildCounterCustomChannels--;
513 return o; 513 return o;
514 } 514 }
515 515
516 checkCustomChannels(api.CustomChannels o) { 516 checkCustomChannels(api.CustomChannels o) {
517 buildCounterCustomChannels++; 517 buildCounterCustomChannels++;
518 if (buildCounterCustomChannels < 3) { 518 if (buildCounterCustomChannels < 3) {
519 unittest.expect(o.etag, unittest.equals('foo')); 519 unittest.expect(o.etag, unittest.equals('foo'));
520 checkUnnamed2908(o.items); 520 checkUnnamed2999(o.items);
521 unittest.expect(o.kind, unittest.equals('foo')); 521 unittest.expect(o.kind, unittest.equals('foo'));
522 unittest.expect(o.nextPageToken, unittest.equals('foo')); 522 unittest.expect(o.nextPageToken, unittest.equals('foo'));
523 } 523 }
524 buildCounterCustomChannels--; 524 buildCounterCustomChannels--;
525 } 525 }
526 526
527 buildUnnamed2909() { 527 buildUnnamed3000() {
528 var o = new core.List<core.String>(); 528 var o = new core.List<core.String>();
529 o.add("foo"); 529 o.add("foo");
530 o.add("foo"); 530 o.add("foo");
531 return o; 531 return o;
532 } 532 }
533 533
534 checkUnnamed2909(core.List<core.String> o) { 534 checkUnnamed3000(core.List<core.String> o) {
535 unittest.expect(o, unittest.hasLength(2)); 535 unittest.expect(o, unittest.hasLength(2));
536 unittest.expect(o[0], unittest.equals('foo')); 536 unittest.expect(o[0], unittest.equals('foo'));
537 unittest.expect(o[1], unittest.equals('foo')); 537 unittest.expect(o[1], unittest.equals('foo'));
538 } 538 }
539 539
540 core.int buildCounterReportHeaders = 0; 540 core.int buildCounterReportHeaders = 0;
541 buildReportHeaders() { 541 buildReportHeaders() {
542 var o = new api.ReportHeaders(); 542 var o = new api.ReportHeaders();
543 buildCounterReportHeaders++; 543 buildCounterReportHeaders++;
544 if (buildCounterReportHeaders < 3) { 544 if (buildCounterReportHeaders < 3) {
545 o.currency = "foo"; 545 o.currency = "foo";
546 o.name = "foo"; 546 o.name = "foo";
547 o.type = "foo"; 547 o.type = "foo";
548 } 548 }
549 buildCounterReportHeaders--; 549 buildCounterReportHeaders--;
550 return o; 550 return o;
551 } 551 }
552 552
553 checkReportHeaders(api.ReportHeaders o) { 553 checkReportHeaders(api.ReportHeaders o) {
554 buildCounterReportHeaders++; 554 buildCounterReportHeaders++;
555 if (buildCounterReportHeaders < 3) { 555 if (buildCounterReportHeaders < 3) {
556 unittest.expect(o.currency, unittest.equals('foo')); 556 unittest.expect(o.currency, unittest.equals('foo'));
557 unittest.expect(o.name, unittest.equals('foo')); 557 unittest.expect(o.name, unittest.equals('foo'));
558 unittest.expect(o.type, unittest.equals('foo')); 558 unittest.expect(o.type, unittest.equals('foo'));
559 } 559 }
560 buildCounterReportHeaders--; 560 buildCounterReportHeaders--;
561 } 561 }
562 562
563 buildUnnamed2910() { 563 buildUnnamed3001() {
564 var o = new core.List<api.ReportHeaders>(); 564 var o = new core.List<api.ReportHeaders>();
565 o.add(buildReportHeaders()); 565 o.add(buildReportHeaders());
566 o.add(buildReportHeaders()); 566 o.add(buildReportHeaders());
567 return o; 567 return o;
568 } 568 }
569 569
570 checkUnnamed2910(core.List<api.ReportHeaders> o) { 570 checkUnnamed3001(core.List<api.ReportHeaders> o) {
571 unittest.expect(o, unittest.hasLength(2)); 571 unittest.expect(o, unittest.hasLength(2));
572 checkReportHeaders(o[0]); 572 checkReportHeaders(o[0]);
573 checkReportHeaders(o[1]); 573 checkReportHeaders(o[1]);
574 } 574 }
575 575
576 buildUnnamed2911() { 576 buildUnnamed3002() {
577 var o = new core.List<core.String>(); 577 var o = new core.List<core.String>();
578 o.add("foo"); 578 o.add("foo");
579 o.add("foo"); 579 o.add("foo");
580 return o; 580 return o;
581 } 581 }
582 582
583 checkUnnamed2911(core.List<core.String> o) { 583 checkUnnamed3002(core.List<core.String> o) {
584 unittest.expect(o, unittest.hasLength(2)); 584 unittest.expect(o, unittest.hasLength(2));
585 unittest.expect(o[0], unittest.equals('foo')); 585 unittest.expect(o[0], unittest.equals('foo'));
586 unittest.expect(o[1], unittest.equals('foo')); 586 unittest.expect(o[1], unittest.equals('foo'));
587 } 587 }
588 588
589 buildUnnamed2912() { 589 buildUnnamed3003() {
590 var o = new core.List<core.List<core.String>>(); 590 var o = new core.List<core.List<core.String>>();
591 o.add(buildUnnamed2911()); 591 o.add(buildUnnamed3002());
592 o.add(buildUnnamed2911()); 592 o.add(buildUnnamed3002());
593 return o; 593 return o;
594 } 594 }
595 595
596 checkUnnamed2912(core.List<core.List<core.String>> o) { 596 checkUnnamed3003(core.List<core.List<core.String>> o) {
597 unittest.expect(o, unittest.hasLength(2)); 597 unittest.expect(o, unittest.hasLength(2));
598 checkUnnamed2911(o[0]); 598 checkUnnamed3002(o[0]);
599 checkUnnamed2911(o[1]); 599 checkUnnamed3002(o[1]);
600 } 600 }
601 601
602 buildUnnamed2913() { 602 buildUnnamed3004() {
603 var o = new core.List<core.String>(); 603 var o = new core.List<core.String>();
604 o.add("foo"); 604 o.add("foo");
605 o.add("foo"); 605 o.add("foo");
606 return o; 606 return o;
607 } 607 }
608 608
609 checkUnnamed2913(core.List<core.String> o) { 609 checkUnnamed3004(core.List<core.String> o) {
610 unittest.expect(o, unittest.hasLength(2)); 610 unittest.expect(o, unittest.hasLength(2));
611 unittest.expect(o[0], unittest.equals('foo')); 611 unittest.expect(o[0], unittest.equals('foo'));
612 unittest.expect(o[1], unittest.equals('foo')); 612 unittest.expect(o[1], unittest.equals('foo'));
613 } 613 }
614 614
615 buildUnnamed2914() { 615 buildUnnamed3005() {
616 var o = new core.List<core.String>(); 616 var o = new core.List<core.String>();
617 o.add("foo"); 617 o.add("foo");
618 o.add("foo"); 618 o.add("foo");
619 return o; 619 return o;
620 } 620 }
621 621
622 checkUnnamed2914(core.List<core.String> o) { 622 checkUnnamed3005(core.List<core.String> o) {
623 unittest.expect(o, unittest.hasLength(2)); 623 unittest.expect(o, unittest.hasLength(2));
624 unittest.expect(o[0], unittest.equals('foo')); 624 unittest.expect(o[0], unittest.equals('foo'));
625 unittest.expect(o[1], unittest.equals('foo')); 625 unittest.expect(o[1], unittest.equals('foo'));
626 } 626 }
627 627
628 core.int buildCounterReport = 0; 628 core.int buildCounterReport = 0;
629 buildReport() { 629 buildReport() {
630 var o = new api.Report(); 630 var o = new api.Report();
631 buildCounterReport++; 631 buildCounterReport++;
632 if (buildCounterReport < 3) { 632 if (buildCounterReport < 3) {
633 o.averages = buildUnnamed2909(); 633 o.averages = buildUnnamed3000();
634 o.headers = buildUnnamed2910(); 634 o.headers = buildUnnamed3001();
635 o.kind = "foo"; 635 o.kind = "foo";
636 o.rows = buildUnnamed2912(); 636 o.rows = buildUnnamed3003();
637 o.totalMatchedRows = "foo"; 637 o.totalMatchedRows = "foo";
638 o.totals = buildUnnamed2913(); 638 o.totals = buildUnnamed3004();
639 o.warnings = buildUnnamed2914(); 639 o.warnings = buildUnnamed3005();
640 } 640 }
641 buildCounterReport--; 641 buildCounterReport--;
642 return o; 642 return o;
643 } 643 }
644 644
645 checkReport(api.Report o) { 645 checkReport(api.Report o) {
646 buildCounterReport++; 646 buildCounterReport++;
647 if (buildCounterReport < 3) { 647 if (buildCounterReport < 3) {
648 checkUnnamed2909(o.averages); 648 checkUnnamed3000(o.averages);
649 checkUnnamed2910(o.headers); 649 checkUnnamed3001(o.headers);
650 unittest.expect(o.kind, unittest.equals('foo')); 650 unittest.expect(o.kind, unittest.equals('foo'));
651 checkUnnamed2912(o.rows); 651 checkUnnamed3003(o.rows);
652 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); 652 unittest.expect(o.totalMatchedRows, unittest.equals('foo'));
653 checkUnnamed2913(o.totals); 653 checkUnnamed3004(o.totals);
654 checkUnnamed2914(o.warnings); 654 checkUnnamed3005(o.warnings);
655 } 655 }
656 buildCounterReport--; 656 buildCounterReport--;
657 } 657 }
658 658
659 core.int buildCounterUrlChannel = 0; 659 core.int buildCounterUrlChannel = 0;
660 buildUrlChannel() { 660 buildUrlChannel() {
661 var o = new api.UrlChannel(); 661 var o = new api.UrlChannel();
662 buildCounterUrlChannel++; 662 buildCounterUrlChannel++;
663 if (buildCounterUrlChannel < 3) { 663 if (buildCounterUrlChannel < 3) {
664 o.id = "foo"; 664 o.id = "foo";
665 o.kind = "foo"; 665 o.kind = "foo";
666 o.urlPattern = "foo"; 666 o.urlPattern = "foo";
667 } 667 }
668 buildCounterUrlChannel--; 668 buildCounterUrlChannel--;
669 return o; 669 return o;
670 } 670 }
671 671
672 checkUrlChannel(api.UrlChannel o) { 672 checkUrlChannel(api.UrlChannel o) {
673 buildCounterUrlChannel++; 673 buildCounterUrlChannel++;
674 if (buildCounterUrlChannel < 3) { 674 if (buildCounterUrlChannel < 3) {
675 unittest.expect(o.id, unittest.equals('foo')); 675 unittest.expect(o.id, unittest.equals('foo'));
676 unittest.expect(o.kind, unittest.equals('foo')); 676 unittest.expect(o.kind, unittest.equals('foo'));
677 unittest.expect(o.urlPattern, unittest.equals('foo')); 677 unittest.expect(o.urlPattern, unittest.equals('foo'));
678 } 678 }
679 buildCounterUrlChannel--; 679 buildCounterUrlChannel--;
680 } 680 }
681 681
682 buildUnnamed2915() { 682 buildUnnamed3006() {
683 var o = new core.List<api.UrlChannel>(); 683 var o = new core.List<api.UrlChannel>();
684 o.add(buildUrlChannel()); 684 o.add(buildUrlChannel());
685 o.add(buildUrlChannel()); 685 o.add(buildUrlChannel());
686 return o; 686 return o;
687 } 687 }
688 688
689 checkUnnamed2915(core.List<api.UrlChannel> o) { 689 checkUnnamed3006(core.List<api.UrlChannel> o) {
690 unittest.expect(o, unittest.hasLength(2)); 690 unittest.expect(o, unittest.hasLength(2));
691 checkUrlChannel(o[0]); 691 checkUrlChannel(o[0]);
692 checkUrlChannel(o[1]); 692 checkUrlChannel(o[1]);
693 } 693 }
694 694
695 core.int buildCounterUrlChannels = 0; 695 core.int buildCounterUrlChannels = 0;
696 buildUrlChannels() { 696 buildUrlChannels() {
697 var o = new api.UrlChannels(); 697 var o = new api.UrlChannels();
698 buildCounterUrlChannels++; 698 buildCounterUrlChannels++;
699 if (buildCounterUrlChannels < 3) { 699 if (buildCounterUrlChannels < 3) {
700 o.etag = "foo"; 700 o.etag = "foo";
701 o.items = buildUnnamed2915(); 701 o.items = buildUnnamed3006();
702 o.kind = "foo"; 702 o.kind = "foo";
703 o.nextPageToken = "foo"; 703 o.nextPageToken = "foo";
704 } 704 }
705 buildCounterUrlChannels--; 705 buildCounterUrlChannels--;
706 return o; 706 return o;
707 } 707 }
708 708
709 checkUrlChannels(api.UrlChannels o) { 709 checkUrlChannels(api.UrlChannels o) {
710 buildCounterUrlChannels++; 710 buildCounterUrlChannels++;
711 if (buildCounterUrlChannels < 3) { 711 if (buildCounterUrlChannels < 3) {
712 unittest.expect(o.etag, unittest.equals('foo')); 712 unittest.expect(o.etag, unittest.equals('foo'));
713 checkUnnamed2915(o.items); 713 checkUnnamed3006(o.items);
714 unittest.expect(o.kind, unittest.equals('foo')); 714 unittest.expect(o.kind, unittest.equals('foo'));
715 unittest.expect(o.nextPageToken, unittest.equals('foo')); 715 unittest.expect(o.nextPageToken, unittest.equals('foo'));
716 } 716 }
717 buildCounterUrlChannels--; 717 buildCounterUrlChannels--;
718 } 718 }
719 719
720 buildUnnamed2916() { 720 buildUnnamed3007() {
721 var o = new core.List<core.String>(); 721 var o = new core.List<core.String>();
722 o.add("foo"); 722 o.add("foo");
723 o.add("foo"); 723 o.add("foo");
724 return o; 724 return o;
725 } 725 }
726 726
727 checkUnnamed2916(core.List<core.String> o) { 727 checkUnnamed3007(core.List<core.String> o) {
728 unittest.expect(o, unittest.hasLength(2)); 728 unittest.expect(o, unittest.hasLength(2));
729 unittest.expect(o[0], unittest.equals('foo')); 729 unittest.expect(o[0], unittest.equals('foo'));
730 unittest.expect(o[1], unittest.equals('foo')); 730 unittest.expect(o[1], unittest.equals('foo'));
731 } 731 }
732 732
733 buildUnnamed2917() { 733 buildUnnamed3008() {
734 var o = new core.List<core.String>(); 734 var o = new core.List<core.String>();
735 o.add("foo"); 735 o.add("foo");
736 o.add("foo"); 736 o.add("foo");
737 return o; 737 return o;
738 } 738 }
739 739
740 checkUnnamed2917(core.List<core.String> o) { 740 checkUnnamed3008(core.List<core.String> o) {
741 unittest.expect(o, unittest.hasLength(2)); 741 unittest.expect(o, unittest.hasLength(2));
742 unittest.expect(o[0], unittest.equals('foo')); 742 unittest.expect(o[0], unittest.equals('foo'));
743 unittest.expect(o[1], unittest.equals('foo')); 743 unittest.expect(o[1], unittest.equals('foo'));
744 } 744 }
745 745
746 buildUnnamed2918() { 746 buildUnnamed3009() {
747 var o = new core.List<core.String>(); 747 var o = new core.List<core.String>();
748 o.add("foo"); 748 o.add("foo");
749 o.add("foo"); 749 o.add("foo");
750 return o; 750 return o;
751 } 751 }
752 752
753 checkUnnamed2918(core.List<core.String> o) { 753 checkUnnamed3009(core.List<core.String> o) {
754 unittest.expect(o, unittest.hasLength(2)); 754 unittest.expect(o, unittest.hasLength(2));
755 unittest.expect(o[0], unittest.equals('foo')); 755 unittest.expect(o[0], unittest.equals('foo'));
756 unittest.expect(o[1], unittest.equals('foo')); 756 unittest.expect(o[1], unittest.equals('foo'));
757 } 757 }
758 758
759 buildUnnamed2919() { 759 buildUnnamed3010() {
760 var o = new core.List<core.String>(); 760 var o = new core.List<core.String>();
761 o.add("foo"); 761 o.add("foo");
762 o.add("foo"); 762 o.add("foo");
763 return o; 763 return o;
764 } 764 }
765 765
766 checkUnnamed2919(core.List<core.String> o) { 766 checkUnnamed3010(core.List<core.String> o) {
767 unittest.expect(o, unittest.hasLength(2)); 767 unittest.expect(o, unittest.hasLength(2));
768 unittest.expect(o[0], unittest.equals('foo')); 768 unittest.expect(o[0], unittest.equals('foo'));
769 unittest.expect(o[1], unittest.equals('foo')); 769 unittest.expect(o[1], unittest.equals('foo'));
770 } 770 }
771 771
772 buildUnnamed2920() { 772 buildUnnamed3011() {
773 var o = new core.List<core.String>(); 773 var o = new core.List<core.String>();
774 o.add("foo"); 774 o.add("foo");
775 o.add("foo"); 775 o.add("foo");
776 return o; 776 return o;
777 } 777 }
778 778
779 checkUnnamed2920(core.List<core.String> o) { 779 checkUnnamed3011(core.List<core.String> o) {
780 unittest.expect(o, unittest.hasLength(2)); 780 unittest.expect(o, unittest.hasLength(2));
781 unittest.expect(o[0], unittest.equals('foo')); 781 unittest.expect(o[0], unittest.equals('foo'));
782 unittest.expect(o[1], unittest.equals('foo')); 782 unittest.expect(o[1], unittest.equals('foo'));
783 } 783 }
784 784
785 buildUnnamed2921() { 785 buildUnnamed3012() {
786 var o = new core.List<core.String>(); 786 var o = new core.List<core.String>();
787 o.add("foo"); 787 o.add("foo");
788 o.add("foo"); 788 o.add("foo");
789 return o; 789 return o;
790 } 790 }
791 791
792 checkUnnamed2921(core.List<core.String> o) { 792 checkUnnamed3012(core.List<core.String> o) {
793 unittest.expect(o, unittest.hasLength(2)); 793 unittest.expect(o, unittest.hasLength(2));
794 unittest.expect(o[0], unittest.equals('foo')); 794 unittest.expect(o[0], unittest.equals('foo'));
795 unittest.expect(o[1], unittest.equals('foo')); 795 unittest.expect(o[1], unittest.equals('foo'));
796 } 796 }
797 797
798 buildUnnamed2922() { 798 buildUnnamed3013() {
799 var o = new core.List<core.String>(); 799 var o = new core.List<core.String>();
800 o.add("foo"); 800 o.add("foo");
801 o.add("foo"); 801 o.add("foo");
802 return o; 802 return o;
803 } 803 }
804 804
805 checkUnnamed2922(core.List<core.String> o) { 805 checkUnnamed3013(core.List<core.String> o) {
806 unittest.expect(o, unittest.hasLength(2)); 806 unittest.expect(o, unittest.hasLength(2));
807 unittest.expect(o[0], unittest.equals('foo')); 807 unittest.expect(o[0], unittest.equals('foo'));
808 unittest.expect(o[1], unittest.equals('foo')); 808 unittest.expect(o[1], unittest.equals('foo'));
809 } 809 }
810 810
811 buildUnnamed2923() { 811 buildUnnamed3014() {
812 var o = new core.List<core.String>(); 812 var o = new core.List<core.String>();
813 o.add("foo"); 813 o.add("foo");
814 o.add("foo"); 814 o.add("foo");
815 return o; 815 return o;
816 } 816 }
817 817
818 checkUnnamed2923(core.List<core.String> o) { 818 checkUnnamed3014(core.List<core.String> o) {
819 unittest.expect(o, unittest.hasLength(2)); 819 unittest.expect(o, unittest.hasLength(2));
820 unittest.expect(o[0], unittest.equals('foo')); 820 unittest.expect(o[0], unittest.equals('foo'));
821 unittest.expect(o[1], unittest.equals('foo')); 821 unittest.expect(o[1], unittest.equals('foo'));
822 } 822 }
823 823
824 buildUnnamed2924() { 824 buildUnnamed3015() {
825 var o = new core.List<core.String>(); 825 var o = new core.List<core.String>();
826 o.add("foo"); 826 o.add("foo");
827 o.add("foo"); 827 o.add("foo");
828 return o; 828 return o;
829 } 829 }
830 830
831 checkUnnamed2924(core.List<core.String> o) { 831 checkUnnamed3015(core.List<core.String> o) {
832 unittest.expect(o, unittest.hasLength(2)); 832 unittest.expect(o, unittest.hasLength(2));
833 unittest.expect(o[0], unittest.equals('foo')); 833 unittest.expect(o[0], unittest.equals('foo'));
834 unittest.expect(o[1], unittest.equals('foo')); 834 unittest.expect(o[1], unittest.equals('foo'));
835 } 835 }
836 836
837 buildUnnamed2925() { 837 buildUnnamed3016() {
838 var o = new core.List<core.String>(); 838 var o = new core.List<core.String>();
839 o.add("foo"); 839 o.add("foo");
840 o.add("foo"); 840 o.add("foo");
841 return o; 841 return o;
842 } 842 }
843 843
844 checkUnnamed2925(core.List<core.String> o) { 844 checkUnnamed3016(core.List<core.String> o) {
845 unittest.expect(o, unittest.hasLength(2)); 845 unittest.expect(o, unittest.hasLength(2));
846 unittest.expect(o[0], unittest.equals('foo')); 846 unittest.expect(o[0], unittest.equals('foo'));
847 unittest.expect(o[1], unittest.equals('foo')); 847 unittest.expect(o[1], unittest.equals('foo'));
848 } 848 }
849 849
850 buildUnnamed2926() { 850 buildUnnamed3017() {
851 var o = new core.List<core.String>(); 851 var o = new core.List<core.String>();
852 o.add("foo"); 852 o.add("foo");
853 o.add("foo"); 853 o.add("foo");
854 return o; 854 return o;
855 } 855 }
856 856
857 checkUnnamed2926(core.List<core.String> o) { 857 checkUnnamed3017(core.List<core.String> o) {
858 unittest.expect(o, unittest.hasLength(2)); 858 unittest.expect(o, unittest.hasLength(2));
859 unittest.expect(o[0], unittest.equals('foo')); 859 unittest.expect(o[0], unittest.equals('foo'));
860 unittest.expect(o[1], unittest.equals('foo')); 860 unittest.expect(o[1], unittest.equals('foo'));
861 } 861 }
862 862
863 863
864 main() { 864 main() {
865 unittest.group("obj-schema-Account", () { 865 unittest.group("obj-schema-Account", () {
866 unittest.test("to-json--from-json", () { 866 unittest.test("to-json--from-json", () {
867 var o = buildAccount(); 867 var o = buildAccount();
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 }), true); 1089 }), true);
1090 res.get(arg_accountId).then(unittest.expectAsync(((api.Account response) { 1090 res.get(arg_accountId).then(unittest.expectAsync(((api.Account response) {
1091 checkAccount(response); 1091 checkAccount(response);
1092 }))); 1092 })));
1093 }); 1093 });
1094 1094
1095 unittest.test("method--list", () { 1095 unittest.test("method--list", () {
1096 1096
1097 var mock = new HttpServerMock(); 1097 var mock = new HttpServerMock();
1098 api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; 1098 api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts;
1099 var arg_filterAdClientId = buildUnnamed2916(); 1099 var arg_filterAdClientId = buildUnnamed3007();
1100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1100 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1101 var path = (req.url).path; 1101 var path = (req.url).path;
1102 var pathOffset = 0; 1102 var pathOffset = 0;
1103 var index; 1103 var index;
1104 var subPart; 1104 var subPart;
1105 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1105 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1106 pathOffset += 1; 1106 pathOffset += 1;
1107 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1107 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1108 pathOffset += 17; 1108 pathOffset += 17;
1109 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("accounts")); 1109 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("accounts"));
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 }))); 1391 })));
1392 }); 1392 });
1393 1393
1394 unittest.test("method--getAdCode", () { 1394 unittest.test("method--getAdCode", () {
1395 1395
1396 var mock = new HttpServerMock(); 1396 var mock = new HttpServerMock();
1397 api.AccountsAdunitsResourceApi res = new api.AdsensehostApi(mock).accounts .adunits; 1397 api.AccountsAdunitsResourceApi res = new api.AdsensehostApi(mock).accounts .adunits;
1398 var arg_accountId = "foo"; 1398 var arg_accountId = "foo";
1399 var arg_adClientId = "foo"; 1399 var arg_adClientId = "foo";
1400 var arg_adUnitId = "foo"; 1400 var arg_adUnitId = "foo";
1401 var arg_hostCustomChannelId = buildUnnamed2917(); 1401 var arg_hostCustomChannelId = buildUnnamed3008();
1402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1402 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1403 var path = (req.url).path; 1403 var path = (req.url).path;
1404 var pathOffset = 0; 1404 var pathOffset = 0;
1405 var index; 1405 var index;
1406 var subPart; 1406 var subPart;
1407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1408 pathOffset += 1; 1408 pathOffset += 1;
1409 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1409 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1410 pathOffset += 17; 1410 pathOffset += 17;
1411 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("accounts/")); 1411 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("accounts/"));
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 1730
1731 1731
1732 unittest.group("resource-AccountsReportsResourceApi", () { 1732 unittest.group("resource-AccountsReportsResourceApi", () {
1733 unittest.test("method--generate", () { 1733 unittest.test("method--generate", () {
1734 1734
1735 var mock = new HttpServerMock(); 1735 var mock = new HttpServerMock();
1736 api.AccountsReportsResourceApi res = new api.AdsensehostApi(mock).accounts .reports; 1736 api.AccountsReportsResourceApi res = new api.AdsensehostApi(mock).accounts .reports;
1737 var arg_accountId = "foo"; 1737 var arg_accountId = "foo";
1738 var arg_startDate = "foo"; 1738 var arg_startDate = "foo";
1739 var arg_endDate = "foo"; 1739 var arg_endDate = "foo";
1740 var arg_dimension = buildUnnamed2918(); 1740 var arg_dimension = buildUnnamed3009();
1741 var arg_filter = buildUnnamed2919(); 1741 var arg_filter = buildUnnamed3010();
1742 var arg_locale = "foo"; 1742 var arg_locale = "foo";
1743 var arg_maxResults = 42; 1743 var arg_maxResults = 42;
1744 var arg_metric = buildUnnamed2920(); 1744 var arg_metric = buildUnnamed3011();
1745 var arg_sort = buildUnnamed2921(); 1745 var arg_sort = buildUnnamed3012();
1746 var arg_startIndex = 42; 1746 var arg_startIndex = 42;
1747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1747 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1748 var path = (req.url).path; 1748 var path = (req.url).path;
1749 var pathOffset = 0; 1749 var pathOffset = 0;
1750 var index; 1750 var index;
1751 var subPart; 1751 var subPart;
1752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1753 pathOffset += 1; 1753 pathOffset += 1;
1754 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1754 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1755 pathOffset += 17; 1755 pathOffset += 17;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 }); 1904 });
1905 1905
1906 }); 1906 });
1907 1907
1908 1908
1909 unittest.group("resource-AssociationsessionsResourceApi", () { 1909 unittest.group("resource-AssociationsessionsResourceApi", () {
1910 unittest.test("method--start", () { 1910 unittest.test("method--start", () {
1911 1911
1912 var mock = new HttpServerMock(); 1912 var mock = new HttpServerMock();
1913 api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).asso ciationsessions; 1913 api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).asso ciationsessions;
1914 var arg_productCode = buildUnnamed2922(); 1914 var arg_productCode = buildUnnamed3013();
1915 var arg_websiteUrl = "foo"; 1915 var arg_websiteUrl = "foo";
1916 var arg_userLocale = "foo"; 1916 var arg_userLocale = "foo";
1917 var arg_websiteLocale = "foo"; 1917 var arg_websiteLocale = "foo";
1918 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1918 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1919 var path = (req.url).path; 1919 var path = (req.url).path;
1920 var pathOffset = 0; 1920 var pathOffset = 0;
1921 var index; 1921 var index;
1922 var subPart; 1922 var subPart;
1923 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1923 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1924 pathOffset += 1; 1924 pathOffset += 1;
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 }); 2358 });
2359 2359
2360 2360
2361 unittest.group("resource-ReportsResourceApi", () { 2361 unittest.group("resource-ReportsResourceApi", () {
2362 unittest.test("method--generate", () { 2362 unittest.test("method--generate", () {
2363 2363
2364 var mock = new HttpServerMock(); 2364 var mock = new HttpServerMock();
2365 api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; 2365 api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports;
2366 var arg_startDate = "foo"; 2366 var arg_startDate = "foo";
2367 var arg_endDate = "foo"; 2367 var arg_endDate = "foo";
2368 var arg_dimension = buildUnnamed2923(); 2368 var arg_dimension = buildUnnamed3014();
2369 var arg_filter = buildUnnamed2924(); 2369 var arg_filter = buildUnnamed3015();
2370 var arg_locale = "foo"; 2370 var arg_locale = "foo";
2371 var arg_maxResults = 42; 2371 var arg_maxResults = 42;
2372 var arg_metric = buildUnnamed2925(); 2372 var arg_metric = buildUnnamed3016();
2373 var arg_sort = buildUnnamed2926(); 2373 var arg_sort = buildUnnamed3017();
2374 var arg_startIndex = 42; 2374 var arg_startIndex = 42;
2375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2375 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2376 var path = (req.url).path; 2376 var path = (req.url).path;
2377 var pathOffset = 0; 2377 var pathOffset = 0;
2378 var index; 2378 var index;
2379 var subPart; 2379 var subPart;
2380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2381 pathOffset += 1; 2381 pathOffset += 1;
2382 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 2382 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
2383 pathOffset += 17; 2383 pathOffset += 17;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2595 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) { 2595 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) {
2596 checkUrlChannels(response); 2596 checkUrlChannels(response);
2597 }))); 2597 })));
2598 }); 2598 });
2599 2599
2600 }); 2600 });
2601 2601
2602 2602
2603 } 2603 }
2604 2604
OLDNEW
« no previous file with comments | « generated/googleapis/test/adsense/v1_4_test.dart ('k') | generated/googleapis/test/analytics/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698