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

Side by Side Diff: generated/googleapis/test/adsense/v1_4_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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.adsense.v1_4.test; 1 library googleapis.adsense.v1_4.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1855() { 54 buildUnnamed2167() {
55 var o = new core.List<api.Account>(); 55 var o = new core.List<api.Account>();
56 o.add(buildAccount()); 56 o.add(buildAccount());
57 o.add(buildAccount()); 57 o.add(buildAccount());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1855(core.List<api.Account> o) { 61 checkUnnamed2167(core.List<api.Account> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAccount(o[0]); 63 checkAccount(o[0]);
64 checkAccount(o[1]); 64 checkAccount(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAccount = 0; 67 core.int buildCounterAccount = 0;
68 buildAccount() { 68 buildAccount() {
69 var o = new api.Account(); 69 var o = new api.Account();
70 buildCounterAccount++; 70 buildCounterAccount++;
71 if (buildCounterAccount < 3) { 71 if (buildCounterAccount < 3) {
72 o.creationTime = "foo"; 72 o.creationTime = "foo";
73 o.id = "foo"; 73 o.id = "foo";
74 o.kind = "foo"; 74 o.kind = "foo";
75 o.name = "foo"; 75 o.name = "foo";
76 o.premium = true; 76 o.premium = true;
77 o.subAccounts = buildUnnamed1855(); 77 o.subAccounts = buildUnnamed2167();
78 o.timezone = "foo"; 78 o.timezone = "foo";
79 } 79 }
80 buildCounterAccount--; 80 buildCounterAccount--;
81 return o; 81 return o;
82 } 82 }
83 83
84 checkAccount(api.Account o) { 84 checkAccount(api.Account o) {
85 buildCounterAccount++; 85 buildCounterAccount++;
86 if (buildCounterAccount < 3) { 86 if (buildCounterAccount < 3) {
87 unittest.expect(o.creationTime, unittest.equals('foo')); 87 unittest.expect(o.creationTime, unittest.equals('foo'));
88 unittest.expect(o.id, unittest.equals('foo')); 88 unittest.expect(o.id, unittest.equals('foo'));
89 unittest.expect(o.kind, unittest.equals('foo')); 89 unittest.expect(o.kind, unittest.equals('foo'));
90 unittest.expect(o.name, unittest.equals('foo')); 90 unittest.expect(o.name, unittest.equals('foo'));
91 unittest.expect(o.premium, unittest.isTrue); 91 unittest.expect(o.premium, unittest.isTrue);
92 checkUnnamed1855(o.subAccounts); 92 checkUnnamed2167(o.subAccounts);
93 unittest.expect(o.timezone, unittest.equals('foo')); 93 unittest.expect(o.timezone, unittest.equals('foo'));
94 } 94 }
95 buildCounterAccount--; 95 buildCounterAccount--;
96 } 96 }
97 97
98 buildUnnamed1856() { 98 buildUnnamed2168() {
99 var o = new core.List<api.Account>(); 99 var o = new core.List<api.Account>();
100 o.add(buildAccount()); 100 o.add(buildAccount());
101 o.add(buildAccount()); 101 o.add(buildAccount());
102 return o; 102 return o;
103 } 103 }
104 104
105 checkUnnamed1856(core.List<api.Account> o) { 105 checkUnnamed2168(core.List<api.Account> o) {
106 unittest.expect(o, unittest.hasLength(2)); 106 unittest.expect(o, unittest.hasLength(2));
107 checkAccount(o[0]); 107 checkAccount(o[0]);
108 checkAccount(o[1]); 108 checkAccount(o[1]);
109 } 109 }
110 110
111 core.int buildCounterAccounts = 0; 111 core.int buildCounterAccounts = 0;
112 buildAccounts() { 112 buildAccounts() {
113 var o = new api.Accounts(); 113 var o = new api.Accounts();
114 buildCounterAccounts++; 114 buildCounterAccounts++;
115 if (buildCounterAccounts < 3) { 115 if (buildCounterAccounts < 3) {
116 o.etag = "foo"; 116 o.etag = "foo";
117 o.items = buildUnnamed1856(); 117 o.items = buildUnnamed2168();
118 o.kind = "foo"; 118 o.kind = "foo";
119 o.nextPageToken = "foo"; 119 o.nextPageToken = "foo";
120 } 120 }
121 buildCounterAccounts--; 121 buildCounterAccounts--;
122 return o; 122 return o;
123 } 123 }
124 124
125 checkAccounts(api.Accounts o) { 125 checkAccounts(api.Accounts o) {
126 buildCounterAccounts++; 126 buildCounterAccounts++;
127 if (buildCounterAccounts < 3) { 127 if (buildCounterAccounts < 3) {
128 unittest.expect(o.etag, unittest.equals('foo')); 128 unittest.expect(o.etag, unittest.equals('foo'));
129 checkUnnamed1856(o.items); 129 checkUnnamed2168(o.items);
130 unittest.expect(o.kind, unittest.equals('foo')); 130 unittest.expect(o.kind, unittest.equals('foo'));
131 unittest.expect(o.nextPageToken, unittest.equals('foo')); 131 unittest.expect(o.nextPageToken, unittest.equals('foo'));
132 } 132 }
133 buildCounterAccounts--; 133 buildCounterAccounts--;
134 } 134 }
135 135
136 core.int buildCounterAdClient = 0; 136 core.int buildCounterAdClient = 0;
137 buildAdClient() { 137 buildAdClient() {
138 var o = new api.AdClient(); 138 var o = new api.AdClient();
139 buildCounterAdClient++; 139 buildCounterAdClient++;
140 if (buildCounterAdClient < 3) { 140 if (buildCounterAdClient < 3) {
141 o.arcOptIn = true; 141 o.arcOptIn = true;
142 o.arcReviewMode = "foo";
143 o.id = "foo"; 142 o.id = "foo";
144 o.kind = "foo"; 143 o.kind = "foo";
145 o.productCode = "foo"; 144 o.productCode = "foo";
146 o.supportsReporting = true; 145 o.supportsReporting = true;
147 } 146 }
148 buildCounterAdClient--; 147 buildCounterAdClient--;
149 return o; 148 return o;
150 } 149 }
151 150
152 checkAdClient(api.AdClient o) { 151 checkAdClient(api.AdClient o) {
153 buildCounterAdClient++; 152 buildCounterAdClient++;
154 if (buildCounterAdClient < 3) { 153 if (buildCounterAdClient < 3) {
155 unittest.expect(o.arcOptIn, unittest.isTrue); 154 unittest.expect(o.arcOptIn, unittest.isTrue);
156 unittest.expect(o.arcReviewMode, unittest.equals('foo'));
157 unittest.expect(o.id, unittest.equals('foo')); 155 unittest.expect(o.id, unittest.equals('foo'));
158 unittest.expect(o.kind, unittest.equals('foo')); 156 unittest.expect(o.kind, unittest.equals('foo'));
159 unittest.expect(o.productCode, unittest.equals('foo')); 157 unittest.expect(o.productCode, unittest.equals('foo'));
160 unittest.expect(o.supportsReporting, unittest.isTrue); 158 unittest.expect(o.supportsReporting, unittest.isTrue);
161 } 159 }
162 buildCounterAdClient--; 160 buildCounterAdClient--;
163 } 161 }
164 162
165 buildUnnamed1857() { 163 buildUnnamed2169() {
166 var o = new core.List<api.AdClient>(); 164 var o = new core.List<api.AdClient>();
167 o.add(buildAdClient()); 165 o.add(buildAdClient());
168 o.add(buildAdClient()); 166 o.add(buildAdClient());
169 return o; 167 return o;
170 } 168 }
171 169
172 checkUnnamed1857(core.List<api.AdClient> o) { 170 checkUnnamed2169(core.List<api.AdClient> o) {
173 unittest.expect(o, unittest.hasLength(2)); 171 unittest.expect(o, unittest.hasLength(2));
174 checkAdClient(o[0]); 172 checkAdClient(o[0]);
175 checkAdClient(o[1]); 173 checkAdClient(o[1]);
176 } 174 }
177 175
178 core.int buildCounterAdClients = 0; 176 core.int buildCounterAdClients = 0;
179 buildAdClients() { 177 buildAdClients() {
180 var o = new api.AdClients(); 178 var o = new api.AdClients();
181 buildCounterAdClients++; 179 buildCounterAdClients++;
182 if (buildCounterAdClients < 3) { 180 if (buildCounterAdClients < 3) {
183 o.etag = "foo"; 181 o.etag = "foo";
184 o.items = buildUnnamed1857(); 182 o.items = buildUnnamed2169();
185 o.kind = "foo"; 183 o.kind = "foo";
186 o.nextPageToken = "foo"; 184 o.nextPageToken = "foo";
187 } 185 }
188 buildCounterAdClients--; 186 buildCounterAdClients--;
189 return o; 187 return o;
190 } 188 }
191 189
192 checkAdClients(api.AdClients o) { 190 checkAdClients(api.AdClients o) {
193 buildCounterAdClients++; 191 buildCounterAdClients++;
194 if (buildCounterAdClients < 3) { 192 if (buildCounterAdClients < 3) {
195 unittest.expect(o.etag, unittest.equals('foo')); 193 unittest.expect(o.etag, unittest.equals('foo'));
196 checkUnnamed1857(o.items); 194 checkUnnamed2169(o.items);
197 unittest.expect(o.kind, unittest.equals('foo')); 195 unittest.expect(o.kind, unittest.equals('foo'));
198 unittest.expect(o.nextPageToken, unittest.equals('foo')); 196 unittest.expect(o.nextPageToken, unittest.equals('foo'));
199 } 197 }
200 buildCounterAdClients--; 198 buildCounterAdClients--;
201 } 199 }
202 200
203 core.int buildCounterAdCode = 0; 201 core.int buildCounterAdCode = 0;
204 buildAdCode() { 202 buildAdCode() {
205 var o = new api.AdCode(); 203 var o = new api.AdCode();
206 buildCounterAdCode++; 204 buildCounterAdCode++;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 unittest.expect(o.id, unittest.equals('foo')); 418 unittest.expect(o.id, unittest.equals('foo'));
421 unittest.expect(o.kind, unittest.equals('foo')); 419 unittest.expect(o.kind, unittest.equals('foo'));
422 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); 420 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings);
423 unittest.expect(o.name, unittest.equals('foo')); 421 unittest.expect(o.name, unittest.equals('foo'));
424 unittest.expect(o.savedStyleId, unittest.equals('foo')); 422 unittest.expect(o.savedStyleId, unittest.equals('foo'));
425 unittest.expect(o.status, unittest.equals('foo')); 423 unittest.expect(o.status, unittest.equals('foo'));
426 } 424 }
427 buildCounterAdUnit--; 425 buildCounterAdUnit--;
428 } 426 }
429 427
430 buildUnnamed1858() { 428 buildUnnamed2170() {
431 var o = new core.List<api.AdUnit>(); 429 var o = new core.List<api.AdUnit>();
432 o.add(buildAdUnit()); 430 o.add(buildAdUnit());
433 o.add(buildAdUnit()); 431 o.add(buildAdUnit());
434 return o; 432 return o;
435 } 433 }
436 434
437 checkUnnamed1858(core.List<api.AdUnit> o) { 435 checkUnnamed2170(core.List<api.AdUnit> o) {
438 unittest.expect(o, unittest.hasLength(2)); 436 unittest.expect(o, unittest.hasLength(2));
439 checkAdUnit(o[0]); 437 checkAdUnit(o[0]);
440 checkAdUnit(o[1]); 438 checkAdUnit(o[1]);
441 } 439 }
442 440
443 core.int buildCounterAdUnits = 0; 441 core.int buildCounterAdUnits = 0;
444 buildAdUnits() { 442 buildAdUnits() {
445 var o = new api.AdUnits(); 443 var o = new api.AdUnits();
446 buildCounterAdUnits++; 444 buildCounterAdUnits++;
447 if (buildCounterAdUnits < 3) { 445 if (buildCounterAdUnits < 3) {
448 o.etag = "foo"; 446 o.etag = "foo";
449 o.items = buildUnnamed1858(); 447 o.items = buildUnnamed2170();
450 o.kind = "foo"; 448 o.kind = "foo";
451 o.nextPageToken = "foo"; 449 o.nextPageToken = "foo";
452 } 450 }
453 buildCounterAdUnits--; 451 buildCounterAdUnits--;
454 return o; 452 return o;
455 } 453 }
456 454
457 checkAdUnits(api.AdUnits o) { 455 checkAdUnits(api.AdUnits o) {
458 buildCounterAdUnits++; 456 buildCounterAdUnits++;
459 if (buildCounterAdUnits < 3) { 457 if (buildCounterAdUnits < 3) {
460 unittest.expect(o.etag, unittest.equals('foo')); 458 unittest.expect(o.etag, unittest.equals('foo'));
461 checkUnnamed1858(o.items); 459 checkUnnamed2170(o.items);
462 unittest.expect(o.kind, unittest.equals('foo')); 460 unittest.expect(o.kind, unittest.equals('foo'));
463 unittest.expect(o.nextPageToken, unittest.equals('foo')); 461 unittest.expect(o.nextPageToken, unittest.equals('foo'));
464 } 462 }
465 buildCounterAdUnits--; 463 buildCounterAdUnits--;
466 } 464 }
467 465
468 buildUnnamed1859() { 466 buildUnnamed2171() {
469 var o = new core.List<core.String>(); 467 var o = new core.List<core.String>();
470 o.add("foo"); 468 o.add("foo");
471 o.add("foo"); 469 o.add("foo");
472 return o; 470 return o;
473 } 471 }
474 472
475 checkUnnamed1859(core.List<core.String> o) { 473 checkUnnamed2171(core.List<core.String> o) {
476 unittest.expect(o, unittest.hasLength(2)); 474 unittest.expect(o, unittest.hasLength(2));
477 unittest.expect(o[0], unittest.equals('foo')); 475 unittest.expect(o[0], unittest.equals('foo'));
478 unittest.expect(o[1], unittest.equals('foo')); 476 unittest.expect(o[1], unittest.equals('foo'));
479 } 477 }
480 478
481 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0; 479 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0;
482 buildAdsenseReportsGenerateResponseHeaders() { 480 buildAdsenseReportsGenerateResponseHeaders() {
483 var o = new api.AdsenseReportsGenerateResponseHeaders(); 481 var o = new api.AdsenseReportsGenerateResponseHeaders();
484 buildCounterAdsenseReportsGenerateResponseHeaders++; 482 buildCounterAdsenseReportsGenerateResponseHeaders++;
485 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { 483 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) {
486 o.currency = "foo"; 484 o.currency = "foo";
487 o.name = "foo"; 485 o.name = "foo";
488 o.type = "foo"; 486 o.type = "foo";
489 } 487 }
490 buildCounterAdsenseReportsGenerateResponseHeaders--; 488 buildCounterAdsenseReportsGenerateResponseHeaders--;
491 return o; 489 return o;
492 } 490 }
493 491
494 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea ders o) { 492 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea ders o) {
495 buildCounterAdsenseReportsGenerateResponseHeaders++; 493 buildCounterAdsenseReportsGenerateResponseHeaders++;
496 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { 494 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) {
497 unittest.expect(o.currency, unittest.equals('foo')); 495 unittest.expect(o.currency, unittest.equals('foo'));
498 unittest.expect(o.name, unittest.equals('foo')); 496 unittest.expect(o.name, unittest.equals('foo'));
499 unittest.expect(o.type, unittest.equals('foo')); 497 unittest.expect(o.type, unittest.equals('foo'));
500 } 498 }
501 buildCounterAdsenseReportsGenerateResponseHeaders--; 499 buildCounterAdsenseReportsGenerateResponseHeaders--;
502 } 500 }
503 501
504 buildUnnamed1860() { 502 buildUnnamed2172() {
505 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); 503 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>();
506 o.add(buildAdsenseReportsGenerateResponseHeaders()); 504 o.add(buildAdsenseReportsGenerateResponseHeaders());
507 o.add(buildAdsenseReportsGenerateResponseHeaders()); 505 o.add(buildAdsenseReportsGenerateResponseHeaders());
508 return o; 506 return o;
509 } 507 }
510 508
511 checkUnnamed1860(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { 509 checkUnnamed2172(core.List<api.AdsenseReportsGenerateResponseHeaders> o) {
512 unittest.expect(o, unittest.hasLength(2)); 510 unittest.expect(o, unittest.hasLength(2));
513 checkAdsenseReportsGenerateResponseHeaders(o[0]); 511 checkAdsenseReportsGenerateResponseHeaders(o[0]);
514 checkAdsenseReportsGenerateResponseHeaders(o[1]); 512 checkAdsenseReportsGenerateResponseHeaders(o[1]);
515 } 513 }
516 514
517 buildUnnamed1861() { 515 buildUnnamed2173() {
518 var o = new core.List<core.String>(); 516 var o = new core.List<core.String>();
519 o.add("foo"); 517 o.add("foo");
520 o.add("foo"); 518 o.add("foo");
521 return o; 519 return o;
522 } 520 }
523 521
524 checkUnnamed1861(core.List<core.String> o) { 522 checkUnnamed2173(core.List<core.String> o) {
525 unittest.expect(o, unittest.hasLength(2)); 523 unittest.expect(o, unittest.hasLength(2));
526 unittest.expect(o[0], unittest.equals('foo')); 524 unittest.expect(o[0], unittest.equals('foo'));
527 unittest.expect(o[1], unittest.equals('foo')); 525 unittest.expect(o[1], unittest.equals('foo'));
528 } 526 }
529 527
530 buildUnnamed1862() { 528 buildUnnamed2174() {
531 var o = new core.List<core.List<core.String>>(); 529 var o = new core.List<core.List<core.String>>();
532 o.add(buildUnnamed1861()); 530 o.add(buildUnnamed2173());
533 o.add(buildUnnamed1861()); 531 o.add(buildUnnamed2173());
534 return o; 532 return o;
535 } 533 }
536 534
537 checkUnnamed1862(core.List<core.List<core.String>> o) { 535 checkUnnamed2174(core.List<core.List<core.String>> o) {
538 unittest.expect(o, unittest.hasLength(2)); 536 unittest.expect(o, unittest.hasLength(2));
539 checkUnnamed1861(o[0]); 537 checkUnnamed2173(o[0]);
540 checkUnnamed1861(o[1]); 538 checkUnnamed2173(o[1]);
541 } 539 }
542 540
543 buildUnnamed1863() { 541 buildUnnamed2175() {
544 var o = new core.List<core.String>(); 542 var o = new core.List<core.String>();
545 o.add("foo"); 543 o.add("foo");
546 o.add("foo"); 544 o.add("foo");
547 return o; 545 return o;
548 } 546 }
549 547
550 checkUnnamed1863(core.List<core.String> o) { 548 checkUnnamed2175(core.List<core.String> o) {
551 unittest.expect(o, unittest.hasLength(2)); 549 unittest.expect(o, unittest.hasLength(2));
552 unittest.expect(o[0], unittest.equals('foo')); 550 unittest.expect(o[0], unittest.equals('foo'));
553 unittest.expect(o[1], unittest.equals('foo')); 551 unittest.expect(o[1], unittest.equals('foo'));
554 } 552 }
555 553
556 buildUnnamed1864() { 554 buildUnnamed2176() {
557 var o = new core.List<core.String>(); 555 var o = new core.List<core.String>();
558 o.add("foo"); 556 o.add("foo");
559 o.add("foo"); 557 o.add("foo");
560 return o; 558 return o;
561 } 559 }
562 560
563 checkUnnamed1864(core.List<core.String> o) { 561 checkUnnamed2176(core.List<core.String> o) {
564 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
565 unittest.expect(o[0], unittest.equals('foo')); 563 unittest.expect(o[0], unittest.equals('foo'));
566 unittest.expect(o[1], unittest.equals('foo')); 564 unittest.expect(o[1], unittest.equals('foo'));
567 } 565 }
568 566
569 core.int buildCounterAdsenseReportsGenerateResponse = 0; 567 core.int buildCounterAdsenseReportsGenerateResponse = 0;
570 buildAdsenseReportsGenerateResponse() { 568 buildAdsenseReportsGenerateResponse() {
571 var o = new api.AdsenseReportsGenerateResponse(); 569 var o = new api.AdsenseReportsGenerateResponse();
572 buildCounterAdsenseReportsGenerateResponse++; 570 buildCounterAdsenseReportsGenerateResponse++;
573 if (buildCounterAdsenseReportsGenerateResponse < 3) { 571 if (buildCounterAdsenseReportsGenerateResponse < 3) {
574 o.averages = buildUnnamed1859(); 572 o.averages = buildUnnamed2171();
575 o.endDate = "foo"; 573 o.endDate = "foo";
576 o.headers = buildUnnamed1860(); 574 o.headers = buildUnnamed2172();
577 o.kind = "foo"; 575 o.kind = "foo";
578 o.rows = buildUnnamed1862(); 576 o.rows = buildUnnamed2174();
579 o.startDate = "foo"; 577 o.startDate = "foo";
580 o.totalMatchedRows = "foo"; 578 o.totalMatchedRows = "foo";
581 o.totals = buildUnnamed1863(); 579 o.totals = buildUnnamed2175();
582 o.warnings = buildUnnamed1864(); 580 o.warnings = buildUnnamed2176();
583 } 581 }
584 buildCounterAdsenseReportsGenerateResponse--; 582 buildCounterAdsenseReportsGenerateResponse--;
585 return o; 583 return o;
586 } 584 }
587 585
588 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { 586 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) {
589 buildCounterAdsenseReportsGenerateResponse++; 587 buildCounterAdsenseReportsGenerateResponse++;
590 if (buildCounterAdsenseReportsGenerateResponse < 3) { 588 if (buildCounterAdsenseReportsGenerateResponse < 3) {
591 checkUnnamed1859(o.averages); 589 checkUnnamed2171(o.averages);
592 unittest.expect(o.endDate, unittest.equals('foo')); 590 unittest.expect(o.endDate, unittest.equals('foo'));
593 checkUnnamed1860(o.headers); 591 checkUnnamed2172(o.headers);
594 unittest.expect(o.kind, unittest.equals('foo')); 592 unittest.expect(o.kind, unittest.equals('foo'));
595 checkUnnamed1862(o.rows); 593 checkUnnamed2174(o.rows);
596 unittest.expect(o.startDate, unittest.equals('foo')); 594 unittest.expect(o.startDate, unittest.equals('foo'));
597 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); 595 unittest.expect(o.totalMatchedRows, unittest.equals('foo'));
598 checkUnnamed1863(o.totals); 596 checkUnnamed2175(o.totals);
599 checkUnnamed1864(o.warnings); 597 checkUnnamed2176(o.warnings);
600 } 598 }
601 buildCounterAdsenseReportsGenerateResponse--; 599 buildCounterAdsenseReportsGenerateResponse--;
602 } 600 }
603 601
604 core.int buildCounterAlert = 0; 602 core.int buildCounterAlert = 0;
605 buildAlert() { 603 buildAlert() {
606 var o = new api.Alert(); 604 var o = new api.Alert();
607 buildCounterAlert++; 605 buildCounterAlert++;
608 if (buildCounterAlert < 3) { 606 if (buildCounterAlert < 3) {
609 o.id = "foo"; 607 o.id = "foo";
(...skipping 13 matching lines...) Expand all
623 unittest.expect(o.id, unittest.equals('foo')); 621 unittest.expect(o.id, unittest.equals('foo'));
624 unittest.expect(o.isDismissible, unittest.isTrue); 622 unittest.expect(o.isDismissible, unittest.isTrue);
625 unittest.expect(o.kind, unittest.equals('foo')); 623 unittest.expect(o.kind, unittest.equals('foo'));
626 unittest.expect(o.message, unittest.equals('foo')); 624 unittest.expect(o.message, unittest.equals('foo'));
627 unittest.expect(o.severity, unittest.equals('foo')); 625 unittest.expect(o.severity, unittest.equals('foo'));
628 unittest.expect(o.type, unittest.equals('foo')); 626 unittest.expect(o.type, unittest.equals('foo'));
629 } 627 }
630 buildCounterAlert--; 628 buildCounterAlert--;
631 } 629 }
632 630
633 buildUnnamed1865() { 631 buildUnnamed2177() {
634 var o = new core.List<api.Alert>(); 632 var o = new core.List<api.Alert>();
635 o.add(buildAlert()); 633 o.add(buildAlert());
636 o.add(buildAlert()); 634 o.add(buildAlert());
637 return o; 635 return o;
638 } 636 }
639 637
640 checkUnnamed1865(core.List<api.Alert> o) { 638 checkUnnamed2177(core.List<api.Alert> o) {
641 unittest.expect(o, unittest.hasLength(2)); 639 unittest.expect(o, unittest.hasLength(2));
642 checkAlert(o[0]); 640 checkAlert(o[0]);
643 checkAlert(o[1]); 641 checkAlert(o[1]);
644 } 642 }
645 643
646 core.int buildCounterAlerts = 0; 644 core.int buildCounterAlerts = 0;
647 buildAlerts() { 645 buildAlerts() {
648 var o = new api.Alerts(); 646 var o = new api.Alerts();
649 buildCounterAlerts++; 647 buildCounterAlerts++;
650 if (buildCounterAlerts < 3) { 648 if (buildCounterAlerts < 3) {
651 o.items = buildUnnamed1865(); 649 o.items = buildUnnamed2177();
652 o.kind = "foo"; 650 o.kind = "foo";
653 } 651 }
654 buildCounterAlerts--; 652 buildCounterAlerts--;
655 return o; 653 return o;
656 } 654 }
657 655
658 checkAlerts(api.Alerts o) { 656 checkAlerts(api.Alerts o) {
659 buildCounterAlerts++; 657 buildCounterAlerts++;
660 if (buildCounterAlerts < 3) { 658 if (buildCounterAlerts < 3) {
661 checkUnnamed1865(o.items); 659 checkUnnamed2177(o.items);
662 unittest.expect(o.kind, unittest.equals('foo')); 660 unittest.expect(o.kind, unittest.equals('foo'));
663 } 661 }
664 buildCounterAlerts--; 662 buildCounterAlerts--;
665 } 663 }
666 664
667 core.int buildCounterCustomChannelTargetingInfo = 0; 665 core.int buildCounterCustomChannelTargetingInfo = 0;
668 buildCustomChannelTargetingInfo() { 666 buildCustomChannelTargetingInfo() {
669 var o = new api.CustomChannelTargetingInfo(); 667 var o = new api.CustomChannelTargetingInfo();
670 buildCounterCustomChannelTargetingInfo++; 668 buildCounterCustomChannelTargetingInfo++;
671 if (buildCounterCustomChannelTargetingInfo < 3) { 669 if (buildCounterCustomChannelTargetingInfo < 3) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 if (buildCounterCustomChannel < 3) { 707 if (buildCounterCustomChannel < 3) {
710 unittest.expect(o.code, unittest.equals('foo')); 708 unittest.expect(o.code, unittest.equals('foo'));
711 unittest.expect(o.id, unittest.equals('foo')); 709 unittest.expect(o.id, unittest.equals('foo'));
712 unittest.expect(o.kind, unittest.equals('foo')); 710 unittest.expect(o.kind, unittest.equals('foo'));
713 unittest.expect(o.name, unittest.equals('foo')); 711 unittest.expect(o.name, unittest.equals('foo'));
714 checkCustomChannelTargetingInfo(o.targetingInfo); 712 checkCustomChannelTargetingInfo(o.targetingInfo);
715 } 713 }
716 buildCounterCustomChannel--; 714 buildCounterCustomChannel--;
717 } 715 }
718 716
719 buildUnnamed1866() { 717 buildUnnamed2178() {
720 var o = new core.List<api.CustomChannel>(); 718 var o = new core.List<api.CustomChannel>();
721 o.add(buildCustomChannel()); 719 o.add(buildCustomChannel());
722 o.add(buildCustomChannel()); 720 o.add(buildCustomChannel());
723 return o; 721 return o;
724 } 722 }
725 723
726 checkUnnamed1866(core.List<api.CustomChannel> o) { 724 checkUnnamed2178(core.List<api.CustomChannel> o) {
727 unittest.expect(o, unittest.hasLength(2)); 725 unittest.expect(o, unittest.hasLength(2));
728 checkCustomChannel(o[0]); 726 checkCustomChannel(o[0]);
729 checkCustomChannel(o[1]); 727 checkCustomChannel(o[1]);
730 } 728 }
731 729
732 core.int buildCounterCustomChannels = 0; 730 core.int buildCounterCustomChannels = 0;
733 buildCustomChannels() { 731 buildCustomChannels() {
734 var o = new api.CustomChannels(); 732 var o = new api.CustomChannels();
735 buildCounterCustomChannels++; 733 buildCounterCustomChannels++;
736 if (buildCounterCustomChannels < 3) { 734 if (buildCounterCustomChannels < 3) {
737 o.etag = "foo"; 735 o.etag = "foo";
738 o.items = buildUnnamed1866(); 736 o.items = buildUnnamed2178();
739 o.kind = "foo"; 737 o.kind = "foo";
740 o.nextPageToken = "foo"; 738 o.nextPageToken = "foo";
741 } 739 }
742 buildCounterCustomChannels--; 740 buildCounterCustomChannels--;
743 return o; 741 return o;
744 } 742 }
745 743
746 checkCustomChannels(api.CustomChannels o) { 744 checkCustomChannels(api.CustomChannels o) {
747 buildCounterCustomChannels++; 745 buildCounterCustomChannels++;
748 if (buildCounterCustomChannels < 3) { 746 if (buildCounterCustomChannels < 3) {
749 unittest.expect(o.etag, unittest.equals('foo')); 747 unittest.expect(o.etag, unittest.equals('foo'));
750 checkUnnamed1866(o.items); 748 checkUnnamed2178(o.items);
751 unittest.expect(o.kind, unittest.equals('foo')); 749 unittest.expect(o.kind, unittest.equals('foo'));
752 unittest.expect(o.nextPageToken, unittest.equals('foo')); 750 unittest.expect(o.nextPageToken, unittest.equals('foo'));
753 } 751 }
754 buildCounterCustomChannels--; 752 buildCounterCustomChannels--;
755 } 753 }
756 754
757 buildUnnamed1867() { 755 buildUnnamed2179() {
758 var o = new core.List<api.ReportingMetadataEntry>(); 756 var o = new core.List<api.ReportingMetadataEntry>();
759 o.add(buildReportingMetadataEntry()); 757 o.add(buildReportingMetadataEntry());
760 o.add(buildReportingMetadataEntry()); 758 o.add(buildReportingMetadataEntry());
761 return o; 759 return o;
762 } 760 }
763 761
764 checkUnnamed1867(core.List<api.ReportingMetadataEntry> o) { 762 checkUnnamed2179(core.List<api.ReportingMetadataEntry> o) {
765 unittest.expect(o, unittest.hasLength(2)); 763 unittest.expect(o, unittest.hasLength(2));
766 checkReportingMetadataEntry(o[0]); 764 checkReportingMetadataEntry(o[0]);
767 checkReportingMetadataEntry(o[1]); 765 checkReportingMetadataEntry(o[1]);
768 } 766 }
769 767
770 core.int buildCounterMetadata = 0; 768 core.int buildCounterMetadata = 0;
771 buildMetadata() { 769 buildMetadata() {
772 var o = new api.Metadata(); 770 var o = new api.Metadata();
773 buildCounterMetadata++; 771 buildCounterMetadata++;
774 if (buildCounterMetadata < 3) { 772 if (buildCounterMetadata < 3) {
775 o.items = buildUnnamed1867(); 773 o.items = buildUnnamed2179();
776 o.kind = "foo"; 774 o.kind = "foo";
777 } 775 }
778 buildCounterMetadata--; 776 buildCounterMetadata--;
779 return o; 777 return o;
780 } 778 }
781 779
782 checkMetadata(api.Metadata o) { 780 checkMetadata(api.Metadata o) {
783 buildCounterMetadata++; 781 buildCounterMetadata++;
784 if (buildCounterMetadata < 3) { 782 if (buildCounterMetadata < 3) {
785 checkUnnamed1867(o.items); 783 checkUnnamed2179(o.items);
786 unittest.expect(o.kind, unittest.equals('foo')); 784 unittest.expect(o.kind, unittest.equals('foo'));
787 } 785 }
788 buildCounterMetadata--; 786 buildCounterMetadata--;
789 } 787 }
790 788
791 core.int buildCounterPayment = 0; 789 core.int buildCounterPayment = 0;
792 buildPayment() { 790 buildPayment() {
793 var o = new api.Payment(); 791 var o = new api.Payment();
794 buildCounterPayment++; 792 buildCounterPayment++;
795 if (buildCounterPayment < 3) { 793 if (buildCounterPayment < 3) {
(...skipping 12 matching lines...) Expand all
808 if (buildCounterPayment < 3) { 806 if (buildCounterPayment < 3) {
809 unittest.expect(o.id, unittest.equals('foo')); 807 unittest.expect(o.id, unittest.equals('foo'));
810 unittest.expect(o.kind, unittest.equals('foo')); 808 unittest.expect(o.kind, unittest.equals('foo'));
811 unittest.expect(o.paymentAmount, unittest.equals('foo')); 809 unittest.expect(o.paymentAmount, unittest.equals('foo'));
812 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo')); 810 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo'));
813 unittest.expect(o.paymentDate, unittest.equals('foo')); 811 unittest.expect(o.paymentDate, unittest.equals('foo'));
814 } 812 }
815 buildCounterPayment--; 813 buildCounterPayment--;
816 } 814 }
817 815
818 buildUnnamed1868() { 816 buildUnnamed2180() {
819 var o = new core.List<api.Payment>(); 817 var o = new core.List<api.Payment>();
820 o.add(buildPayment()); 818 o.add(buildPayment());
821 o.add(buildPayment()); 819 o.add(buildPayment());
822 return o; 820 return o;
823 } 821 }
824 822
825 checkUnnamed1868(core.List<api.Payment> o) { 823 checkUnnamed2180(core.List<api.Payment> o) {
826 unittest.expect(o, unittest.hasLength(2)); 824 unittest.expect(o, unittest.hasLength(2));
827 checkPayment(o[0]); 825 checkPayment(o[0]);
828 checkPayment(o[1]); 826 checkPayment(o[1]);
829 } 827 }
830 828
831 core.int buildCounterPayments = 0; 829 core.int buildCounterPayments = 0;
832 buildPayments() { 830 buildPayments() {
833 var o = new api.Payments(); 831 var o = new api.Payments();
834 buildCounterPayments++; 832 buildCounterPayments++;
835 if (buildCounterPayments < 3) { 833 if (buildCounterPayments < 3) {
836 o.items = buildUnnamed1868(); 834 o.items = buildUnnamed2180();
837 o.kind = "foo"; 835 o.kind = "foo";
838 } 836 }
839 buildCounterPayments--; 837 buildCounterPayments--;
840 return o; 838 return o;
841 } 839 }
842 840
843 checkPayments(api.Payments o) { 841 checkPayments(api.Payments o) {
844 buildCounterPayments++; 842 buildCounterPayments++;
845 if (buildCounterPayments < 3) { 843 if (buildCounterPayments < 3) {
846 checkUnnamed1868(o.items); 844 checkUnnamed2180(o.items);
847 unittest.expect(o.kind, unittest.equals('foo')); 845 unittest.expect(o.kind, unittest.equals('foo'));
848 } 846 }
849 buildCounterPayments--; 847 buildCounterPayments--;
850 } 848 }
851 849
852 buildUnnamed1869() { 850 buildUnnamed2181() {
853 var o = new core.List<core.String>(); 851 var o = new core.List<core.String>();
854 o.add("foo"); 852 o.add("foo");
855 o.add("foo"); 853 o.add("foo");
856 return o; 854 return o;
857 } 855 }
858 856
859 checkUnnamed1869(core.List<core.String> o) { 857 checkUnnamed2181(core.List<core.String> o) {
860 unittest.expect(o, unittest.hasLength(2)); 858 unittest.expect(o, unittest.hasLength(2));
861 unittest.expect(o[0], unittest.equals('foo')); 859 unittest.expect(o[0], unittest.equals('foo'));
862 unittest.expect(o[1], unittest.equals('foo')); 860 unittest.expect(o[1], unittest.equals('foo'));
863 } 861 }
864 862
865 buildUnnamed1870() { 863 buildUnnamed2182() {
866 var o = new core.List<core.String>(); 864 var o = new core.List<core.String>();
867 o.add("foo"); 865 o.add("foo");
868 o.add("foo"); 866 o.add("foo");
869 return o; 867 return o;
870 } 868 }
871 869
872 checkUnnamed1870(core.List<core.String> o) { 870 checkUnnamed2182(core.List<core.String> o) {
873 unittest.expect(o, unittest.hasLength(2)); 871 unittest.expect(o, unittest.hasLength(2));
874 unittest.expect(o[0], unittest.equals('foo')); 872 unittest.expect(o[0], unittest.equals('foo'));
875 unittest.expect(o[1], unittest.equals('foo')); 873 unittest.expect(o[1], unittest.equals('foo'));
876 } 874 }
877 875
878 buildUnnamed1871() { 876 buildUnnamed2183() {
879 var o = new core.List<core.String>(); 877 var o = new core.List<core.String>();
880 o.add("foo"); 878 o.add("foo");
881 o.add("foo"); 879 o.add("foo");
882 return o; 880 return o;
883 } 881 }
884 882
885 checkUnnamed1871(core.List<core.String> o) { 883 checkUnnamed2183(core.List<core.String> o) {
886 unittest.expect(o, unittest.hasLength(2)); 884 unittest.expect(o, unittest.hasLength(2));
887 unittest.expect(o[0], unittest.equals('foo')); 885 unittest.expect(o[0], unittest.equals('foo'));
888 unittest.expect(o[1], unittest.equals('foo')); 886 unittest.expect(o[1], unittest.equals('foo'));
889 } 887 }
890 888
891 buildUnnamed1872() { 889 buildUnnamed2184() {
892 var o = new core.List<core.String>(); 890 var o = new core.List<core.String>();
893 o.add("foo"); 891 o.add("foo");
894 o.add("foo"); 892 o.add("foo");
895 return o; 893 return o;
896 } 894 }
897 895
898 checkUnnamed1872(core.List<core.String> o) { 896 checkUnnamed2184(core.List<core.String> o) {
899 unittest.expect(o, unittest.hasLength(2)); 897 unittest.expect(o, unittest.hasLength(2));
900 unittest.expect(o[0], unittest.equals('foo')); 898 unittest.expect(o[0], unittest.equals('foo'));
901 unittest.expect(o[1], unittest.equals('foo')); 899 unittest.expect(o[1], unittest.equals('foo'));
902 } 900 }
903 901
904 buildUnnamed1873() { 902 buildUnnamed2185() {
905 var o = new core.List<core.String>(); 903 var o = new core.List<core.String>();
906 o.add("foo"); 904 o.add("foo");
907 o.add("foo"); 905 o.add("foo");
908 return o; 906 return o;
909 } 907 }
910 908
911 checkUnnamed1873(core.List<core.String> o) { 909 checkUnnamed2185(core.List<core.String> o) {
912 unittest.expect(o, unittest.hasLength(2)); 910 unittest.expect(o, unittest.hasLength(2));
913 unittest.expect(o[0], unittest.equals('foo')); 911 unittest.expect(o[0], unittest.equals('foo'));
914 unittest.expect(o[1], unittest.equals('foo')); 912 unittest.expect(o[1], unittest.equals('foo'));
915 } 913 }
916 914
917 core.int buildCounterReportingMetadataEntry = 0; 915 core.int buildCounterReportingMetadataEntry = 0;
918 buildReportingMetadataEntry() { 916 buildReportingMetadataEntry() {
919 var o = new api.ReportingMetadataEntry(); 917 var o = new api.ReportingMetadataEntry();
920 buildCounterReportingMetadataEntry++; 918 buildCounterReportingMetadataEntry++;
921 if (buildCounterReportingMetadataEntry < 3) { 919 if (buildCounterReportingMetadataEntry < 3) {
922 o.compatibleDimensions = buildUnnamed1869(); 920 o.compatibleDimensions = buildUnnamed2181();
923 o.compatibleMetrics = buildUnnamed1870(); 921 o.compatibleMetrics = buildUnnamed2182();
924 o.id = "foo"; 922 o.id = "foo";
925 o.kind = "foo"; 923 o.kind = "foo";
926 o.requiredDimensions = buildUnnamed1871(); 924 o.requiredDimensions = buildUnnamed2183();
927 o.requiredMetrics = buildUnnamed1872(); 925 o.requiredMetrics = buildUnnamed2184();
928 o.supportedProducts = buildUnnamed1873(); 926 o.supportedProducts = buildUnnamed2185();
929 } 927 }
930 buildCounterReportingMetadataEntry--; 928 buildCounterReportingMetadataEntry--;
931 return o; 929 return o;
932 } 930 }
933 931
934 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { 932 checkReportingMetadataEntry(api.ReportingMetadataEntry o) {
935 buildCounterReportingMetadataEntry++; 933 buildCounterReportingMetadataEntry++;
936 if (buildCounterReportingMetadataEntry < 3) { 934 if (buildCounterReportingMetadataEntry < 3) {
937 checkUnnamed1869(o.compatibleDimensions); 935 checkUnnamed2181(o.compatibleDimensions);
938 checkUnnamed1870(o.compatibleMetrics); 936 checkUnnamed2182(o.compatibleMetrics);
939 unittest.expect(o.id, unittest.equals('foo')); 937 unittest.expect(o.id, unittest.equals('foo'));
940 unittest.expect(o.kind, unittest.equals('foo')); 938 unittest.expect(o.kind, unittest.equals('foo'));
941 checkUnnamed1871(o.requiredDimensions); 939 checkUnnamed2183(o.requiredDimensions);
942 checkUnnamed1872(o.requiredMetrics); 940 checkUnnamed2184(o.requiredMetrics);
943 checkUnnamed1873(o.supportedProducts); 941 checkUnnamed2185(o.supportedProducts);
944 } 942 }
945 buildCounterReportingMetadataEntry--; 943 buildCounterReportingMetadataEntry--;
946 } 944 }
947 945
948 core.int buildCounterSavedAdStyle = 0; 946 core.int buildCounterSavedAdStyle = 0;
949 buildSavedAdStyle() { 947 buildSavedAdStyle() {
950 var o = new api.SavedAdStyle(); 948 var o = new api.SavedAdStyle();
951 buildCounterSavedAdStyle++; 949 buildCounterSavedAdStyle++;
952 if (buildCounterSavedAdStyle < 3) { 950 if (buildCounterSavedAdStyle < 3) {
953 o.adStyle = buildAdStyle(); 951 o.adStyle = buildAdStyle();
954 o.id = "foo"; 952 o.id = "foo";
955 o.kind = "foo"; 953 o.kind = "foo";
956 o.name = "foo"; 954 o.name = "foo";
957 } 955 }
958 buildCounterSavedAdStyle--; 956 buildCounterSavedAdStyle--;
959 return o; 957 return o;
960 } 958 }
961 959
962 checkSavedAdStyle(api.SavedAdStyle o) { 960 checkSavedAdStyle(api.SavedAdStyle o) {
963 buildCounterSavedAdStyle++; 961 buildCounterSavedAdStyle++;
964 if (buildCounterSavedAdStyle < 3) { 962 if (buildCounterSavedAdStyle < 3) {
965 checkAdStyle(o.adStyle); 963 checkAdStyle(o.adStyle);
966 unittest.expect(o.id, unittest.equals('foo')); 964 unittest.expect(o.id, unittest.equals('foo'));
967 unittest.expect(o.kind, unittest.equals('foo')); 965 unittest.expect(o.kind, unittest.equals('foo'));
968 unittest.expect(o.name, unittest.equals('foo')); 966 unittest.expect(o.name, unittest.equals('foo'));
969 } 967 }
970 buildCounterSavedAdStyle--; 968 buildCounterSavedAdStyle--;
971 } 969 }
972 970
973 buildUnnamed1874() { 971 buildUnnamed2186() {
974 var o = new core.List<api.SavedAdStyle>(); 972 var o = new core.List<api.SavedAdStyle>();
975 o.add(buildSavedAdStyle()); 973 o.add(buildSavedAdStyle());
976 o.add(buildSavedAdStyle()); 974 o.add(buildSavedAdStyle());
977 return o; 975 return o;
978 } 976 }
979 977
980 checkUnnamed1874(core.List<api.SavedAdStyle> o) { 978 checkUnnamed2186(core.List<api.SavedAdStyle> o) {
981 unittest.expect(o, unittest.hasLength(2)); 979 unittest.expect(o, unittest.hasLength(2));
982 checkSavedAdStyle(o[0]); 980 checkSavedAdStyle(o[0]);
983 checkSavedAdStyle(o[1]); 981 checkSavedAdStyle(o[1]);
984 } 982 }
985 983
986 core.int buildCounterSavedAdStyles = 0; 984 core.int buildCounterSavedAdStyles = 0;
987 buildSavedAdStyles() { 985 buildSavedAdStyles() {
988 var o = new api.SavedAdStyles(); 986 var o = new api.SavedAdStyles();
989 buildCounterSavedAdStyles++; 987 buildCounterSavedAdStyles++;
990 if (buildCounterSavedAdStyles < 3) { 988 if (buildCounterSavedAdStyles < 3) {
991 o.etag = "foo"; 989 o.etag = "foo";
992 o.items = buildUnnamed1874(); 990 o.items = buildUnnamed2186();
993 o.kind = "foo"; 991 o.kind = "foo";
994 o.nextPageToken = "foo"; 992 o.nextPageToken = "foo";
995 } 993 }
996 buildCounterSavedAdStyles--; 994 buildCounterSavedAdStyles--;
997 return o; 995 return o;
998 } 996 }
999 997
1000 checkSavedAdStyles(api.SavedAdStyles o) { 998 checkSavedAdStyles(api.SavedAdStyles o) {
1001 buildCounterSavedAdStyles++; 999 buildCounterSavedAdStyles++;
1002 if (buildCounterSavedAdStyles < 3) { 1000 if (buildCounterSavedAdStyles < 3) {
1003 unittest.expect(o.etag, unittest.equals('foo')); 1001 unittest.expect(o.etag, unittest.equals('foo'));
1004 checkUnnamed1874(o.items); 1002 checkUnnamed2186(o.items);
1005 unittest.expect(o.kind, unittest.equals('foo')); 1003 unittest.expect(o.kind, unittest.equals('foo'));
1006 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1004 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1007 } 1005 }
1008 buildCounterSavedAdStyles--; 1006 buildCounterSavedAdStyles--;
1009 } 1007 }
1010 1008
1011 core.int buildCounterSavedReport = 0; 1009 core.int buildCounterSavedReport = 0;
1012 buildSavedReport() { 1010 buildSavedReport() {
1013 var o = new api.SavedReport(); 1011 var o = new api.SavedReport();
1014 buildCounterSavedReport++; 1012 buildCounterSavedReport++;
1015 if (buildCounterSavedReport < 3) { 1013 if (buildCounterSavedReport < 3) {
1016 o.id = "foo"; 1014 o.id = "foo";
1017 o.kind = "foo"; 1015 o.kind = "foo";
1018 o.name = "foo"; 1016 o.name = "foo";
1019 } 1017 }
1020 buildCounterSavedReport--; 1018 buildCounterSavedReport--;
1021 return o; 1019 return o;
1022 } 1020 }
1023 1021
1024 checkSavedReport(api.SavedReport o) { 1022 checkSavedReport(api.SavedReport o) {
1025 buildCounterSavedReport++; 1023 buildCounterSavedReport++;
1026 if (buildCounterSavedReport < 3) { 1024 if (buildCounterSavedReport < 3) {
1027 unittest.expect(o.id, unittest.equals('foo')); 1025 unittest.expect(o.id, unittest.equals('foo'));
1028 unittest.expect(o.kind, unittest.equals('foo')); 1026 unittest.expect(o.kind, unittest.equals('foo'));
1029 unittest.expect(o.name, unittest.equals('foo')); 1027 unittest.expect(o.name, unittest.equals('foo'));
1030 } 1028 }
1031 buildCounterSavedReport--; 1029 buildCounterSavedReport--;
1032 } 1030 }
1033 1031
1034 buildUnnamed1875() { 1032 buildUnnamed2187() {
1035 var o = new core.List<api.SavedReport>(); 1033 var o = new core.List<api.SavedReport>();
1036 o.add(buildSavedReport()); 1034 o.add(buildSavedReport());
1037 o.add(buildSavedReport()); 1035 o.add(buildSavedReport());
1038 return o; 1036 return o;
1039 } 1037 }
1040 1038
1041 checkUnnamed1875(core.List<api.SavedReport> o) { 1039 checkUnnamed2187(core.List<api.SavedReport> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1040 unittest.expect(o, unittest.hasLength(2));
1043 checkSavedReport(o[0]); 1041 checkSavedReport(o[0]);
1044 checkSavedReport(o[1]); 1042 checkSavedReport(o[1]);
1045 } 1043 }
1046 1044
1047 core.int buildCounterSavedReports = 0; 1045 core.int buildCounterSavedReports = 0;
1048 buildSavedReports() { 1046 buildSavedReports() {
1049 var o = new api.SavedReports(); 1047 var o = new api.SavedReports();
1050 buildCounterSavedReports++; 1048 buildCounterSavedReports++;
1051 if (buildCounterSavedReports < 3) { 1049 if (buildCounterSavedReports < 3) {
1052 o.etag = "foo"; 1050 o.etag = "foo";
1053 o.items = buildUnnamed1875(); 1051 o.items = buildUnnamed2187();
1054 o.kind = "foo"; 1052 o.kind = "foo";
1055 o.nextPageToken = "foo"; 1053 o.nextPageToken = "foo";
1056 } 1054 }
1057 buildCounterSavedReports--; 1055 buildCounterSavedReports--;
1058 return o; 1056 return o;
1059 } 1057 }
1060 1058
1061 checkSavedReports(api.SavedReports o) { 1059 checkSavedReports(api.SavedReports o) {
1062 buildCounterSavedReports++; 1060 buildCounterSavedReports++;
1063 if (buildCounterSavedReports < 3) { 1061 if (buildCounterSavedReports < 3) {
1064 unittest.expect(o.etag, unittest.equals('foo')); 1062 unittest.expect(o.etag, unittest.equals('foo'));
1065 checkUnnamed1875(o.items); 1063 checkUnnamed2187(o.items);
1066 unittest.expect(o.kind, unittest.equals('foo')); 1064 unittest.expect(o.kind, unittest.equals('foo'));
1067 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1065 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1068 } 1066 }
1069 buildCounterSavedReports--; 1067 buildCounterSavedReports--;
1070 } 1068 }
1071 1069
1072 core.int buildCounterUrlChannel = 0; 1070 core.int buildCounterUrlChannel = 0;
1073 buildUrlChannel() { 1071 buildUrlChannel() {
1074 var o = new api.UrlChannel(); 1072 var o = new api.UrlChannel();
1075 buildCounterUrlChannel++; 1073 buildCounterUrlChannel++;
1076 if (buildCounterUrlChannel < 3) { 1074 if (buildCounterUrlChannel < 3) {
1077 o.id = "foo"; 1075 o.id = "foo";
1078 o.kind = "foo"; 1076 o.kind = "foo";
1079 o.urlPattern = "foo"; 1077 o.urlPattern = "foo";
1080 } 1078 }
1081 buildCounterUrlChannel--; 1079 buildCounterUrlChannel--;
1082 return o; 1080 return o;
1083 } 1081 }
1084 1082
1085 checkUrlChannel(api.UrlChannel o) { 1083 checkUrlChannel(api.UrlChannel o) {
1086 buildCounterUrlChannel++; 1084 buildCounterUrlChannel++;
1087 if (buildCounterUrlChannel < 3) { 1085 if (buildCounterUrlChannel < 3) {
1088 unittest.expect(o.id, unittest.equals('foo')); 1086 unittest.expect(o.id, unittest.equals('foo'));
1089 unittest.expect(o.kind, unittest.equals('foo')); 1087 unittest.expect(o.kind, unittest.equals('foo'));
1090 unittest.expect(o.urlPattern, unittest.equals('foo')); 1088 unittest.expect(o.urlPattern, unittest.equals('foo'));
1091 } 1089 }
1092 buildCounterUrlChannel--; 1090 buildCounterUrlChannel--;
1093 } 1091 }
1094 1092
1095 buildUnnamed1876() { 1093 buildUnnamed2188() {
1096 var o = new core.List<api.UrlChannel>(); 1094 var o = new core.List<api.UrlChannel>();
1097 o.add(buildUrlChannel()); 1095 o.add(buildUrlChannel());
1098 o.add(buildUrlChannel()); 1096 o.add(buildUrlChannel());
1099 return o; 1097 return o;
1100 } 1098 }
1101 1099
1102 checkUnnamed1876(core.List<api.UrlChannel> o) { 1100 checkUnnamed2188(core.List<api.UrlChannel> o) {
1103 unittest.expect(o, unittest.hasLength(2)); 1101 unittest.expect(o, unittest.hasLength(2));
1104 checkUrlChannel(o[0]); 1102 checkUrlChannel(o[0]);
1105 checkUrlChannel(o[1]); 1103 checkUrlChannel(o[1]);
1106 } 1104 }
1107 1105
1108 core.int buildCounterUrlChannels = 0; 1106 core.int buildCounterUrlChannels = 0;
1109 buildUrlChannels() { 1107 buildUrlChannels() {
1110 var o = new api.UrlChannels(); 1108 var o = new api.UrlChannels();
1111 buildCounterUrlChannels++; 1109 buildCounterUrlChannels++;
1112 if (buildCounterUrlChannels < 3) { 1110 if (buildCounterUrlChannels < 3) {
1113 o.etag = "foo"; 1111 o.etag = "foo";
1114 o.items = buildUnnamed1876(); 1112 o.items = buildUnnamed2188();
1115 o.kind = "foo"; 1113 o.kind = "foo";
1116 o.nextPageToken = "foo"; 1114 o.nextPageToken = "foo";
1117 } 1115 }
1118 buildCounterUrlChannels--; 1116 buildCounterUrlChannels--;
1119 return o; 1117 return o;
1120 } 1118 }
1121 1119
1122 checkUrlChannels(api.UrlChannels o) { 1120 checkUrlChannels(api.UrlChannels o) {
1123 buildCounterUrlChannels++; 1121 buildCounterUrlChannels++;
1124 if (buildCounterUrlChannels < 3) { 1122 if (buildCounterUrlChannels < 3) {
1125 unittest.expect(o.etag, unittest.equals('foo')); 1123 unittest.expect(o.etag, unittest.equals('foo'));
1126 checkUnnamed1876(o.items); 1124 checkUnnamed2188(o.items);
1127 unittest.expect(o.kind, unittest.equals('foo')); 1125 unittest.expect(o.kind, unittest.equals('foo'));
1128 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1126 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1129 } 1127 }
1130 buildCounterUrlChannels--; 1128 buildCounterUrlChannels--;
1131 } 1129 }
1132 1130
1133 buildUnnamed1877() { 1131 buildUnnamed2189() {
1134 var o = new core.List<core.String>(); 1132 var o = new core.List<core.String>();
1135 o.add("foo"); 1133 o.add("foo");
1136 o.add("foo"); 1134 o.add("foo");
1137 return o; 1135 return o;
1138 } 1136 }
1139 1137
1140 checkUnnamed1877(core.List<core.String> o) { 1138 checkUnnamed2189(core.List<core.String> o) {
1141 unittest.expect(o, unittest.hasLength(2)); 1139 unittest.expect(o, unittest.hasLength(2));
1142 unittest.expect(o[0], unittest.equals('foo')); 1140 unittest.expect(o[0], unittest.equals('foo'));
1143 unittest.expect(o[1], unittest.equals('foo')); 1141 unittest.expect(o[1], unittest.equals('foo'));
1144 } 1142 }
1145 1143
1146 buildUnnamed1878() { 1144 buildUnnamed2190() {
1147 var o = new core.List<core.String>(); 1145 var o = new core.List<core.String>();
1148 o.add("foo"); 1146 o.add("foo");
1149 o.add("foo"); 1147 o.add("foo");
1150 return o; 1148 return o;
1151 } 1149 }
1152 1150
1153 checkUnnamed1878(core.List<core.String> o) { 1151 checkUnnamed2190(core.List<core.String> o) {
1154 unittest.expect(o, unittest.hasLength(2)); 1152 unittest.expect(o, unittest.hasLength(2));
1155 unittest.expect(o[0], unittest.equals('foo')); 1153 unittest.expect(o[0], unittest.equals('foo'));
1156 unittest.expect(o[1], unittest.equals('foo')); 1154 unittest.expect(o[1], unittest.equals('foo'));
1157 } 1155 }
1158 1156
1159 buildUnnamed1879() { 1157 buildUnnamed2191() {
1160 var o = new core.List<core.String>(); 1158 var o = new core.List<core.String>();
1161 o.add("foo"); 1159 o.add("foo");
1162 o.add("foo"); 1160 o.add("foo");
1163 return o; 1161 return o;
1164 } 1162 }
1165 1163
1166 checkUnnamed1879(core.List<core.String> o) { 1164 checkUnnamed2191(core.List<core.String> o) {
1167 unittest.expect(o, unittest.hasLength(2)); 1165 unittest.expect(o, unittest.hasLength(2));
1168 unittest.expect(o[0], unittest.equals('foo')); 1166 unittest.expect(o[0], unittest.equals('foo'));
1169 unittest.expect(o[1], unittest.equals('foo')); 1167 unittest.expect(o[1], unittest.equals('foo'));
1170 } 1168 }
1171 1169
1172 buildUnnamed1880() { 1170 buildUnnamed2192() {
1173 var o = new core.List<core.String>(); 1171 var o = new core.List<core.String>();
1174 o.add("foo"); 1172 o.add("foo");
1175 o.add("foo"); 1173 o.add("foo");
1176 return o; 1174 return o;
1177 } 1175 }
1178 1176
1179 checkUnnamed1880(core.List<core.String> o) { 1177 checkUnnamed2192(core.List<core.String> o) {
1180 unittest.expect(o, unittest.hasLength(2)); 1178 unittest.expect(o, unittest.hasLength(2));
1181 unittest.expect(o[0], unittest.equals('foo')); 1179 unittest.expect(o[0], unittest.equals('foo'));
1182 unittest.expect(o[1], unittest.equals('foo')); 1180 unittest.expect(o[1], unittest.equals('foo'));
1183 } 1181 }
1184 1182
1185 buildUnnamed1881() { 1183 buildUnnamed2193() {
1186 var o = new core.List<core.String>(); 1184 var o = new core.List<core.String>();
1187 o.add("foo"); 1185 o.add("foo");
1188 o.add("foo"); 1186 o.add("foo");
1189 return o; 1187 return o;
1190 } 1188 }
1191 1189
1192 checkUnnamed1881(core.List<core.String> o) { 1190 checkUnnamed2193(core.List<core.String> o) {
1193 unittest.expect(o, unittest.hasLength(2)); 1191 unittest.expect(o, unittest.hasLength(2));
1194 unittest.expect(o[0], unittest.equals('foo')); 1192 unittest.expect(o[0], unittest.equals('foo'));
1195 unittest.expect(o[1], unittest.equals('foo')); 1193 unittest.expect(o[1], unittest.equals('foo'));
1196 } 1194 }
1197 1195
1198 buildUnnamed1882() { 1196 buildUnnamed2194() {
1199 var o = new core.List<core.String>(); 1197 var o = new core.List<core.String>();
1200 o.add("foo"); 1198 o.add("foo");
1201 o.add("foo"); 1199 o.add("foo");
1202 return o; 1200 return o;
1203 } 1201 }
1204 1202
1205 checkUnnamed1882(core.List<core.String> o) { 1203 checkUnnamed2194(core.List<core.String> o) {
1206 unittest.expect(o, unittest.hasLength(2)); 1204 unittest.expect(o, unittest.hasLength(2));
1207 unittest.expect(o[0], unittest.equals('foo')); 1205 unittest.expect(o[0], unittest.equals('foo'));
1208 unittest.expect(o[1], unittest.equals('foo')); 1206 unittest.expect(o[1], unittest.equals('foo'));
1209 } 1207 }
1210 1208
1211 buildUnnamed1883() { 1209 buildUnnamed2195() {
1212 var o = new core.List<core.String>(); 1210 var o = new core.List<core.String>();
1213 o.add("foo"); 1211 o.add("foo");
1214 o.add("foo"); 1212 o.add("foo");
1215 return o; 1213 return o;
1216 } 1214 }
1217 1215
1218 checkUnnamed1883(core.List<core.String> o) { 1216 checkUnnamed2195(core.List<core.String> o) {
1219 unittest.expect(o, unittest.hasLength(2)); 1217 unittest.expect(o, unittest.hasLength(2));
1220 unittest.expect(o[0], unittest.equals('foo')); 1218 unittest.expect(o[0], unittest.equals('foo'));
1221 unittest.expect(o[1], unittest.equals('foo')); 1219 unittest.expect(o[1], unittest.equals('foo'));
1222 } 1220 }
1223 1221
1224 buildUnnamed1884() { 1222 buildUnnamed2196() {
1225 var o = new core.List<core.String>(); 1223 var o = new core.List<core.String>();
1226 o.add("foo"); 1224 o.add("foo");
1227 o.add("foo"); 1225 o.add("foo");
1228 return o; 1226 return o;
1229 } 1227 }
1230 1228
1231 checkUnnamed1884(core.List<core.String> o) { 1229 checkUnnamed2196(core.List<core.String> o) {
1232 unittest.expect(o, unittest.hasLength(2)); 1230 unittest.expect(o, unittest.hasLength(2));
1233 unittest.expect(o[0], unittest.equals('foo')); 1231 unittest.expect(o[0], unittest.equals('foo'));
1234 unittest.expect(o[1], unittest.equals('foo')); 1232 unittest.expect(o[1], unittest.equals('foo'));
1235 } 1233 }
1236 1234
1237 buildUnnamed1885() { 1235 buildUnnamed2197() {
1238 var o = new core.List<core.String>(); 1236 var o = new core.List<core.String>();
1239 o.add("foo"); 1237 o.add("foo");
1240 o.add("foo"); 1238 o.add("foo");
1241 return o; 1239 return o;
1242 } 1240 }
1243 1241
1244 checkUnnamed1885(core.List<core.String> o) { 1242 checkUnnamed2197(core.List<core.String> o) {
1245 unittest.expect(o, unittest.hasLength(2)); 1243 unittest.expect(o, unittest.hasLength(2));
1246 unittest.expect(o[0], unittest.equals('foo')); 1244 unittest.expect(o[0], unittest.equals('foo'));
1247 unittest.expect(o[1], unittest.equals('foo')); 1245 unittest.expect(o[1], unittest.equals('foo'));
1248 } 1246 }
1249 1247
1250 1248
1251 main() { 1249 main() {
1252 unittest.group("obj-schema-Account", () { 1250 unittest.group("obj-schema-Account", () {
1253 unittest.test("to-json--from-json", () { 1251 unittest.test("to-json--from-json", () {
1254 var o = buildAccount(); 1252 var o = buildAccount();
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 unittest.test("method--generate", () { 2361 unittest.test("method--generate", () {
2364 // TODO: Implement tests for media upload; 2362 // TODO: Implement tests for media upload;
2365 // TODO: Implement tests for media download; 2363 // TODO: Implement tests for media download;
2366 2364
2367 var mock = new HttpServerMock(); 2365 var mock = new HttpServerMock();
2368 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep orts; 2366 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep orts;
2369 var arg_accountId = "foo"; 2367 var arg_accountId = "foo";
2370 var arg_startDate = "foo"; 2368 var arg_startDate = "foo";
2371 var arg_endDate = "foo"; 2369 var arg_endDate = "foo";
2372 var arg_currency = "foo"; 2370 var arg_currency = "foo";
2373 var arg_dimension = buildUnnamed1877(); 2371 var arg_dimension = buildUnnamed2189();
2374 var arg_filter = buildUnnamed1878(); 2372 var arg_filter = buildUnnamed2190();
2375 var arg_locale = "foo"; 2373 var arg_locale = "foo";
2376 var arg_maxResults = 42; 2374 var arg_maxResults = 42;
2377 var arg_metric = buildUnnamed1879(); 2375 var arg_metric = buildUnnamed2191();
2378 var arg_sort = buildUnnamed1880(); 2376 var arg_sort = buildUnnamed2192();
2379 var arg_startIndex = 42; 2377 var arg_startIndex = 42;
2380 var arg_useTimezoneReporting = true; 2378 var arg_useTimezoneReporting = true;
2381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2379 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2382 var path = (req.url).path; 2380 var path = (req.url).path;
2383 var pathOffset = 0; 2381 var pathOffset = 0;
2384 var index; 2382 var index;
2385 var subPart; 2383 var subPart;
2386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2384 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2387 pathOffset += 1; 2385 pathOffset += 1;
2388 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("adsense/v1.4/")); 2386 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("adsense/v1.4/"));
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 3488
3491 unittest.group("resource-ReportsResourceApi", () { 3489 unittest.group("resource-ReportsResourceApi", () {
3492 unittest.test("method--generate", () { 3490 unittest.test("method--generate", () {
3493 // TODO: Implement tests for media upload; 3491 // TODO: Implement tests for media upload;
3494 // TODO: Implement tests for media download; 3492 // TODO: Implement tests for media download;
3495 3493
3496 var mock = new HttpServerMock(); 3494 var mock = new HttpServerMock();
3497 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; 3495 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports;
3498 var arg_startDate = "foo"; 3496 var arg_startDate = "foo";
3499 var arg_endDate = "foo"; 3497 var arg_endDate = "foo";
3500 var arg_accountId = buildUnnamed1881(); 3498 var arg_accountId = buildUnnamed2193();
3501 var arg_currency = "foo"; 3499 var arg_currency = "foo";
3502 var arg_dimension = buildUnnamed1882(); 3500 var arg_dimension = buildUnnamed2194();
3503 var arg_filter = buildUnnamed1883(); 3501 var arg_filter = buildUnnamed2195();
3504 var arg_locale = "foo"; 3502 var arg_locale = "foo";
3505 var arg_maxResults = 42; 3503 var arg_maxResults = 42;
3506 var arg_metric = buildUnnamed1884(); 3504 var arg_metric = buildUnnamed2196();
3507 var arg_sort = buildUnnamed1885(); 3505 var arg_sort = buildUnnamed2197();
3508 var arg_startIndex = 42; 3506 var arg_startIndex = 42;
3509 var arg_useTimezoneReporting = true; 3507 var arg_useTimezoneReporting = true;
3510 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3508 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3511 var path = (req.url).path; 3509 var path = (req.url).path;
3512 var pathOffset = 0; 3510 var pathOffset = 0;
3513 var index; 3511 var index;
3514 var subPart; 3512 var subPart;
3515 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3516 pathOffset += 1; 3514 pathOffset += 1;
3517 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("adsense/v1.4/")); 3515 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("adsense/v1.4/"));
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3829 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) { 3827 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) {
3830 checkUrlChannels(response); 3828 checkUrlChannels(response);
3831 }))); 3829 })));
3832 }); 3830 });
3833 3831
3834 }); 3832 });
3835 3833
3836 3834
3837 } 3835 }
3838 3836
OLDNEW
« no previous file with comments | « generated/googleapis/test/admin/reports_v1_test.dart ('k') | generated/googleapis/test/adsensehost/v4_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698