| OLD | NEW |
| 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 Loading... |
| 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 buildUnnamed1738() { | 54 buildUnnamed1832() { |
| 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 checkUnnamed1738(core.List<api.Account> o) { | 61 checkUnnamed1832(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 = buildUnnamed1738(); | 77 o.subAccounts = buildUnnamed1832(); |
| 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 checkUnnamed1738(o.subAccounts); | 92 checkUnnamed1832(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 buildUnnamed1739() { | 98 buildUnnamed1833() { |
| 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 checkUnnamed1739(core.List<api.Account> o) { | 105 checkUnnamed1833(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 = buildUnnamed1739(); | 117 o.items = buildUnnamed1833(); |
| 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 checkUnnamed1739(o.items); | 129 checkUnnamed1833(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++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 153 if (buildCounterAdClient < 3) { | 153 if (buildCounterAdClient < 3) { |
| 154 unittest.expect(o.arcOptIn, unittest.isTrue); | 154 unittest.expect(o.arcOptIn, unittest.isTrue); |
| 155 unittest.expect(o.id, unittest.equals('foo')); | 155 unittest.expect(o.id, unittest.equals('foo')); |
| 156 unittest.expect(o.kind, unittest.equals('foo')); | 156 unittest.expect(o.kind, unittest.equals('foo')); |
| 157 unittest.expect(o.productCode, unittest.equals('foo')); | 157 unittest.expect(o.productCode, unittest.equals('foo')); |
| 158 unittest.expect(o.supportsReporting, unittest.isTrue); | 158 unittest.expect(o.supportsReporting, unittest.isTrue); |
| 159 } | 159 } |
| 160 buildCounterAdClient--; | 160 buildCounterAdClient--; |
| 161 } | 161 } |
| 162 | 162 |
| 163 buildUnnamed1740() { | 163 buildUnnamed1834() { |
| 164 var o = new core.List<api.AdClient>(); | 164 var o = new core.List<api.AdClient>(); |
| 165 o.add(buildAdClient()); | 165 o.add(buildAdClient()); |
| 166 o.add(buildAdClient()); | 166 o.add(buildAdClient()); |
| 167 return o; | 167 return o; |
| 168 } | 168 } |
| 169 | 169 |
| 170 checkUnnamed1740(core.List<api.AdClient> o) { | 170 checkUnnamed1834(core.List<api.AdClient> o) { |
| 171 unittest.expect(o, unittest.hasLength(2)); | 171 unittest.expect(o, unittest.hasLength(2)); |
| 172 checkAdClient(o[0]); | 172 checkAdClient(o[0]); |
| 173 checkAdClient(o[1]); | 173 checkAdClient(o[1]); |
| 174 } | 174 } |
| 175 | 175 |
| 176 core.int buildCounterAdClients = 0; | 176 core.int buildCounterAdClients = 0; |
| 177 buildAdClients() { | 177 buildAdClients() { |
| 178 var o = new api.AdClients(); | 178 var o = new api.AdClients(); |
| 179 buildCounterAdClients++; | 179 buildCounterAdClients++; |
| 180 if (buildCounterAdClients < 3) { | 180 if (buildCounterAdClients < 3) { |
| 181 o.etag = "foo"; | 181 o.etag = "foo"; |
| 182 o.items = buildUnnamed1740(); | 182 o.items = buildUnnamed1834(); |
| 183 o.kind = "foo"; | 183 o.kind = "foo"; |
| 184 o.nextPageToken = "foo"; | 184 o.nextPageToken = "foo"; |
| 185 } | 185 } |
| 186 buildCounterAdClients--; | 186 buildCounterAdClients--; |
| 187 return o; | 187 return o; |
| 188 } | 188 } |
| 189 | 189 |
| 190 checkAdClients(api.AdClients o) { | 190 checkAdClients(api.AdClients o) { |
| 191 buildCounterAdClients++; | 191 buildCounterAdClients++; |
| 192 if (buildCounterAdClients < 3) { | 192 if (buildCounterAdClients < 3) { |
| 193 unittest.expect(o.etag, unittest.equals('foo')); | 193 unittest.expect(o.etag, unittest.equals('foo')); |
| 194 checkUnnamed1740(o.items); | 194 checkUnnamed1834(o.items); |
| 195 unittest.expect(o.kind, unittest.equals('foo')); | 195 unittest.expect(o.kind, unittest.equals('foo')); |
| 196 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 196 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 197 } | 197 } |
| 198 buildCounterAdClients--; | 198 buildCounterAdClients--; |
| 199 } | 199 } |
| 200 | 200 |
| 201 core.int buildCounterAdCode = 0; | 201 core.int buildCounterAdCode = 0; |
| 202 buildAdCode() { | 202 buildAdCode() { |
| 203 var o = new api.AdCode(); | 203 var o = new api.AdCode(); |
| 204 buildCounterAdCode++; | 204 buildCounterAdCode++; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 unittest.expect(o.id, unittest.equals('foo')); | 418 unittest.expect(o.id, unittest.equals('foo')); |
| 419 unittest.expect(o.kind, unittest.equals('foo')); | 419 unittest.expect(o.kind, unittest.equals('foo')); |
| 420 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); | 420 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); |
| 421 unittest.expect(o.name, unittest.equals('foo')); | 421 unittest.expect(o.name, unittest.equals('foo')); |
| 422 unittest.expect(o.savedStyleId, unittest.equals('foo')); | 422 unittest.expect(o.savedStyleId, unittest.equals('foo')); |
| 423 unittest.expect(o.status, unittest.equals('foo')); | 423 unittest.expect(o.status, unittest.equals('foo')); |
| 424 } | 424 } |
| 425 buildCounterAdUnit--; | 425 buildCounterAdUnit--; |
| 426 } | 426 } |
| 427 | 427 |
| 428 buildUnnamed1741() { | 428 buildUnnamed1835() { |
| 429 var o = new core.List<api.AdUnit>(); | 429 var o = new core.List<api.AdUnit>(); |
| 430 o.add(buildAdUnit()); | 430 o.add(buildAdUnit()); |
| 431 o.add(buildAdUnit()); | 431 o.add(buildAdUnit()); |
| 432 return o; | 432 return o; |
| 433 } | 433 } |
| 434 | 434 |
| 435 checkUnnamed1741(core.List<api.AdUnit> o) { | 435 checkUnnamed1835(core.List<api.AdUnit> o) { |
| 436 unittest.expect(o, unittest.hasLength(2)); | 436 unittest.expect(o, unittest.hasLength(2)); |
| 437 checkAdUnit(o[0]); | 437 checkAdUnit(o[0]); |
| 438 checkAdUnit(o[1]); | 438 checkAdUnit(o[1]); |
| 439 } | 439 } |
| 440 | 440 |
| 441 core.int buildCounterAdUnits = 0; | 441 core.int buildCounterAdUnits = 0; |
| 442 buildAdUnits() { | 442 buildAdUnits() { |
| 443 var o = new api.AdUnits(); | 443 var o = new api.AdUnits(); |
| 444 buildCounterAdUnits++; | 444 buildCounterAdUnits++; |
| 445 if (buildCounterAdUnits < 3) { | 445 if (buildCounterAdUnits < 3) { |
| 446 o.etag = "foo"; | 446 o.etag = "foo"; |
| 447 o.items = buildUnnamed1741(); | 447 o.items = buildUnnamed1835(); |
| 448 o.kind = "foo"; | 448 o.kind = "foo"; |
| 449 o.nextPageToken = "foo"; | 449 o.nextPageToken = "foo"; |
| 450 } | 450 } |
| 451 buildCounterAdUnits--; | 451 buildCounterAdUnits--; |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkAdUnits(api.AdUnits o) { | 455 checkAdUnits(api.AdUnits o) { |
| 456 buildCounterAdUnits++; | 456 buildCounterAdUnits++; |
| 457 if (buildCounterAdUnits < 3) { | 457 if (buildCounterAdUnits < 3) { |
| 458 unittest.expect(o.etag, unittest.equals('foo')); | 458 unittest.expect(o.etag, unittest.equals('foo')); |
| 459 checkUnnamed1741(o.items); | 459 checkUnnamed1835(o.items); |
| 460 unittest.expect(o.kind, unittest.equals('foo')); | 460 unittest.expect(o.kind, unittest.equals('foo')); |
| 461 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 461 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 462 } | 462 } |
| 463 buildCounterAdUnits--; | 463 buildCounterAdUnits--; |
| 464 } | 464 } |
| 465 | 465 |
| 466 buildUnnamed1742() { | 466 buildUnnamed1836() { |
| 467 var o = new core.List<core.String>(); | 467 var o = new core.List<core.String>(); |
| 468 o.add("foo"); | 468 o.add("foo"); |
| 469 o.add("foo"); | 469 o.add("foo"); |
| 470 return o; | 470 return o; |
| 471 } | 471 } |
| 472 | 472 |
| 473 checkUnnamed1742(core.List<core.String> o) { | 473 checkUnnamed1836(core.List<core.String> o) { |
| 474 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
| 475 unittest.expect(o[0], unittest.equals('foo')); | 475 unittest.expect(o[0], unittest.equals('foo')); |
| 476 unittest.expect(o[1], unittest.equals('foo')); | 476 unittest.expect(o[1], unittest.equals('foo')); |
| 477 } | 477 } |
| 478 | 478 |
| 479 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0; | 479 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0; |
| 480 buildAdsenseReportsGenerateResponseHeaders() { | 480 buildAdsenseReportsGenerateResponseHeaders() { |
| 481 var o = new api.AdsenseReportsGenerateResponseHeaders(); | 481 var o = new api.AdsenseReportsGenerateResponseHeaders(); |
| 482 buildCounterAdsenseReportsGenerateResponseHeaders++; | 482 buildCounterAdsenseReportsGenerateResponseHeaders++; |
| 483 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { | 483 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { |
| 484 o.currency = "foo"; | 484 o.currency = "foo"; |
| 485 o.name = "foo"; | 485 o.name = "foo"; |
| 486 o.type = "foo"; | 486 o.type = "foo"; |
| 487 } | 487 } |
| 488 buildCounterAdsenseReportsGenerateResponseHeaders--; | 488 buildCounterAdsenseReportsGenerateResponseHeaders--; |
| 489 return o; | 489 return o; |
| 490 } | 490 } |
| 491 | 491 |
| 492 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea
ders o) { | 492 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea
ders o) { |
| 493 buildCounterAdsenseReportsGenerateResponseHeaders++; | 493 buildCounterAdsenseReportsGenerateResponseHeaders++; |
| 494 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { | 494 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { |
| 495 unittest.expect(o.currency, unittest.equals('foo')); | 495 unittest.expect(o.currency, unittest.equals('foo')); |
| 496 unittest.expect(o.name, unittest.equals('foo')); | 496 unittest.expect(o.name, unittest.equals('foo')); |
| 497 unittest.expect(o.type, unittest.equals('foo')); | 497 unittest.expect(o.type, unittest.equals('foo')); |
| 498 } | 498 } |
| 499 buildCounterAdsenseReportsGenerateResponseHeaders--; | 499 buildCounterAdsenseReportsGenerateResponseHeaders--; |
| 500 } | 500 } |
| 501 | 501 |
| 502 buildUnnamed1743() { | 502 buildUnnamed1837() { |
| 503 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); | 503 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); |
| 504 o.add(buildAdsenseReportsGenerateResponseHeaders()); | 504 o.add(buildAdsenseReportsGenerateResponseHeaders()); |
| 505 o.add(buildAdsenseReportsGenerateResponseHeaders()); | 505 o.add(buildAdsenseReportsGenerateResponseHeaders()); |
| 506 return o; | 506 return o; |
| 507 } | 507 } |
| 508 | 508 |
| 509 checkUnnamed1743(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { | 509 checkUnnamed1837(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
| 511 checkAdsenseReportsGenerateResponseHeaders(o[0]); | 511 checkAdsenseReportsGenerateResponseHeaders(o[0]); |
| 512 checkAdsenseReportsGenerateResponseHeaders(o[1]); | 512 checkAdsenseReportsGenerateResponseHeaders(o[1]); |
| 513 } | 513 } |
| 514 | 514 |
| 515 buildUnnamed1744() { | 515 buildUnnamed1838() { |
| 516 var o = new core.List<core.String>(); | 516 var o = new core.List<core.String>(); |
| 517 o.add("foo"); | 517 o.add("foo"); |
| 518 o.add("foo"); | 518 o.add("foo"); |
| 519 return o; | 519 return o; |
| 520 } | 520 } |
| 521 | 521 |
| 522 checkUnnamed1744(core.List<core.String> o) { | 522 checkUnnamed1838(core.List<core.String> o) { |
| 523 unittest.expect(o, unittest.hasLength(2)); | 523 unittest.expect(o, unittest.hasLength(2)); |
| 524 unittest.expect(o[0], unittest.equals('foo')); | 524 unittest.expect(o[0], unittest.equals('foo')); |
| 525 unittest.expect(o[1], unittest.equals('foo')); | 525 unittest.expect(o[1], unittest.equals('foo')); |
| 526 } | 526 } |
| 527 | 527 |
| 528 buildUnnamed1745() { | 528 buildUnnamed1839() { |
| 529 var o = new core.List<core.List<core.String>>(); | 529 var o = new core.List<core.List<core.String>>(); |
| 530 o.add(buildUnnamed1744()); | 530 o.add(buildUnnamed1838()); |
| 531 o.add(buildUnnamed1744()); | 531 o.add(buildUnnamed1838()); |
| 532 return o; | 532 return o; |
| 533 } | 533 } |
| 534 | 534 |
| 535 checkUnnamed1745(core.List<core.List<core.String>> o) { | 535 checkUnnamed1839(core.List<core.List<core.String>> o) { |
| 536 unittest.expect(o, unittest.hasLength(2)); | 536 unittest.expect(o, unittest.hasLength(2)); |
| 537 checkUnnamed1744(o[0]); | 537 checkUnnamed1838(o[0]); |
| 538 checkUnnamed1744(o[1]); | 538 checkUnnamed1838(o[1]); |
| 539 } | 539 } |
| 540 | 540 |
| 541 buildUnnamed1746() { | 541 buildUnnamed1840() { |
| 542 var o = new core.List<core.String>(); | 542 var o = new core.List<core.String>(); |
| 543 o.add("foo"); | 543 o.add("foo"); |
| 544 o.add("foo"); | 544 o.add("foo"); |
| 545 return o; | 545 return o; |
| 546 } | 546 } |
| 547 | 547 |
| 548 checkUnnamed1746(core.List<core.String> o) { | 548 checkUnnamed1840(core.List<core.String> o) { |
| 549 unittest.expect(o, unittest.hasLength(2)); | 549 unittest.expect(o, unittest.hasLength(2)); |
| 550 unittest.expect(o[0], unittest.equals('foo')); | 550 unittest.expect(o[0], unittest.equals('foo')); |
| 551 unittest.expect(o[1], unittest.equals('foo')); | 551 unittest.expect(o[1], unittest.equals('foo')); |
| 552 } | 552 } |
| 553 | 553 |
| 554 buildUnnamed1747() { | 554 buildUnnamed1841() { |
| 555 var o = new core.List<core.String>(); | 555 var o = new core.List<core.String>(); |
| 556 o.add("foo"); | 556 o.add("foo"); |
| 557 o.add("foo"); | 557 o.add("foo"); |
| 558 return o; | 558 return o; |
| 559 } | 559 } |
| 560 | 560 |
| 561 checkUnnamed1747(core.List<core.String> o) { | 561 checkUnnamed1841(core.List<core.String> o) { |
| 562 unittest.expect(o, unittest.hasLength(2)); | 562 unittest.expect(o, unittest.hasLength(2)); |
| 563 unittest.expect(o[0], unittest.equals('foo')); | 563 unittest.expect(o[0], unittest.equals('foo')); |
| 564 unittest.expect(o[1], unittest.equals('foo')); | 564 unittest.expect(o[1], unittest.equals('foo')); |
| 565 } | 565 } |
| 566 | 566 |
| 567 core.int buildCounterAdsenseReportsGenerateResponse = 0; | 567 core.int buildCounterAdsenseReportsGenerateResponse = 0; |
| 568 buildAdsenseReportsGenerateResponse() { | 568 buildAdsenseReportsGenerateResponse() { |
| 569 var o = new api.AdsenseReportsGenerateResponse(); | 569 var o = new api.AdsenseReportsGenerateResponse(); |
| 570 buildCounterAdsenseReportsGenerateResponse++; | 570 buildCounterAdsenseReportsGenerateResponse++; |
| 571 if (buildCounterAdsenseReportsGenerateResponse < 3) { | 571 if (buildCounterAdsenseReportsGenerateResponse < 3) { |
| 572 o.averages = buildUnnamed1742(); | 572 o.averages = buildUnnamed1836(); |
| 573 o.endDate = "foo"; | 573 o.endDate = "foo"; |
| 574 o.headers = buildUnnamed1743(); | 574 o.headers = buildUnnamed1837(); |
| 575 o.kind = "foo"; | 575 o.kind = "foo"; |
| 576 o.rows = buildUnnamed1745(); | 576 o.rows = buildUnnamed1839(); |
| 577 o.startDate = "foo"; | 577 o.startDate = "foo"; |
| 578 o.totalMatchedRows = "foo"; | 578 o.totalMatchedRows = "foo"; |
| 579 o.totals = buildUnnamed1746(); | 579 o.totals = buildUnnamed1840(); |
| 580 o.warnings = buildUnnamed1747(); | 580 o.warnings = buildUnnamed1841(); |
| 581 } | 581 } |
| 582 buildCounterAdsenseReportsGenerateResponse--; | 582 buildCounterAdsenseReportsGenerateResponse--; |
| 583 return o; | 583 return o; |
| 584 } | 584 } |
| 585 | 585 |
| 586 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { | 586 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { |
| 587 buildCounterAdsenseReportsGenerateResponse++; | 587 buildCounterAdsenseReportsGenerateResponse++; |
| 588 if (buildCounterAdsenseReportsGenerateResponse < 3) { | 588 if (buildCounterAdsenseReportsGenerateResponse < 3) { |
| 589 checkUnnamed1742(o.averages); | 589 checkUnnamed1836(o.averages); |
| 590 unittest.expect(o.endDate, unittest.equals('foo')); | 590 unittest.expect(o.endDate, unittest.equals('foo')); |
| 591 checkUnnamed1743(o.headers); | 591 checkUnnamed1837(o.headers); |
| 592 unittest.expect(o.kind, unittest.equals('foo')); | 592 unittest.expect(o.kind, unittest.equals('foo')); |
| 593 checkUnnamed1745(o.rows); | 593 checkUnnamed1839(o.rows); |
| 594 unittest.expect(o.startDate, unittest.equals('foo')); | 594 unittest.expect(o.startDate, unittest.equals('foo')); |
| 595 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 595 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
| 596 checkUnnamed1746(o.totals); | 596 checkUnnamed1840(o.totals); |
| 597 checkUnnamed1747(o.warnings); | 597 checkUnnamed1841(o.warnings); |
| 598 } | 598 } |
| 599 buildCounterAdsenseReportsGenerateResponse--; | 599 buildCounterAdsenseReportsGenerateResponse--; |
| 600 } | 600 } |
| 601 | 601 |
| 602 core.int buildCounterAlert = 0; | 602 core.int buildCounterAlert = 0; |
| 603 buildAlert() { | 603 buildAlert() { |
| 604 var o = new api.Alert(); | 604 var o = new api.Alert(); |
| 605 buildCounterAlert++; | 605 buildCounterAlert++; |
| 606 if (buildCounterAlert < 3) { | 606 if (buildCounterAlert < 3) { |
| 607 o.id = "foo"; | 607 o.id = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 621 unittest.expect(o.id, unittest.equals('foo')); | 621 unittest.expect(o.id, unittest.equals('foo')); |
| 622 unittest.expect(o.isDismissible, unittest.isTrue); | 622 unittest.expect(o.isDismissible, unittest.isTrue); |
| 623 unittest.expect(o.kind, unittest.equals('foo')); | 623 unittest.expect(o.kind, unittest.equals('foo')); |
| 624 unittest.expect(o.message, unittest.equals('foo')); | 624 unittest.expect(o.message, unittest.equals('foo')); |
| 625 unittest.expect(o.severity, unittest.equals('foo')); | 625 unittest.expect(o.severity, unittest.equals('foo')); |
| 626 unittest.expect(o.type, unittest.equals('foo')); | 626 unittest.expect(o.type, unittest.equals('foo')); |
| 627 } | 627 } |
| 628 buildCounterAlert--; | 628 buildCounterAlert--; |
| 629 } | 629 } |
| 630 | 630 |
| 631 buildUnnamed1748() { | 631 buildUnnamed1842() { |
| 632 var o = new core.List<api.Alert>(); | 632 var o = new core.List<api.Alert>(); |
| 633 o.add(buildAlert()); | 633 o.add(buildAlert()); |
| 634 o.add(buildAlert()); | 634 o.add(buildAlert()); |
| 635 return o; | 635 return o; |
| 636 } | 636 } |
| 637 | 637 |
| 638 checkUnnamed1748(core.List<api.Alert> o) { | 638 checkUnnamed1842(core.List<api.Alert> o) { |
| 639 unittest.expect(o, unittest.hasLength(2)); | 639 unittest.expect(o, unittest.hasLength(2)); |
| 640 checkAlert(o[0]); | 640 checkAlert(o[0]); |
| 641 checkAlert(o[1]); | 641 checkAlert(o[1]); |
| 642 } | 642 } |
| 643 | 643 |
| 644 core.int buildCounterAlerts = 0; | 644 core.int buildCounterAlerts = 0; |
| 645 buildAlerts() { | 645 buildAlerts() { |
| 646 var o = new api.Alerts(); | 646 var o = new api.Alerts(); |
| 647 buildCounterAlerts++; | 647 buildCounterAlerts++; |
| 648 if (buildCounterAlerts < 3) { | 648 if (buildCounterAlerts < 3) { |
| 649 o.items = buildUnnamed1748(); | 649 o.items = buildUnnamed1842(); |
| 650 o.kind = "foo"; | 650 o.kind = "foo"; |
| 651 } | 651 } |
| 652 buildCounterAlerts--; | 652 buildCounterAlerts--; |
| 653 return o; | 653 return o; |
| 654 } | 654 } |
| 655 | 655 |
| 656 checkAlerts(api.Alerts o) { | 656 checkAlerts(api.Alerts o) { |
| 657 buildCounterAlerts++; | 657 buildCounterAlerts++; |
| 658 if (buildCounterAlerts < 3) { | 658 if (buildCounterAlerts < 3) { |
| 659 checkUnnamed1748(o.items); | 659 checkUnnamed1842(o.items); |
| 660 unittest.expect(o.kind, unittest.equals('foo')); | 660 unittest.expect(o.kind, unittest.equals('foo')); |
| 661 } | 661 } |
| 662 buildCounterAlerts--; | 662 buildCounterAlerts--; |
| 663 } | 663 } |
| 664 | 664 |
| 665 core.int buildCounterCustomChannelTargetingInfo = 0; | 665 core.int buildCounterCustomChannelTargetingInfo = 0; |
| 666 buildCustomChannelTargetingInfo() { | 666 buildCustomChannelTargetingInfo() { |
| 667 var o = new api.CustomChannelTargetingInfo(); | 667 var o = new api.CustomChannelTargetingInfo(); |
| 668 buildCounterCustomChannelTargetingInfo++; | 668 buildCounterCustomChannelTargetingInfo++; |
| 669 if (buildCounterCustomChannelTargetingInfo < 3) { | 669 if (buildCounterCustomChannelTargetingInfo < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 if (buildCounterCustomChannel < 3) { | 707 if (buildCounterCustomChannel < 3) { |
| 708 unittest.expect(o.code, unittest.equals('foo')); | 708 unittest.expect(o.code, unittest.equals('foo')); |
| 709 unittest.expect(o.id, unittest.equals('foo')); | 709 unittest.expect(o.id, unittest.equals('foo')); |
| 710 unittest.expect(o.kind, unittest.equals('foo')); | 710 unittest.expect(o.kind, unittest.equals('foo')); |
| 711 unittest.expect(o.name, unittest.equals('foo')); | 711 unittest.expect(o.name, unittest.equals('foo')); |
| 712 checkCustomChannelTargetingInfo(o.targetingInfo); | 712 checkCustomChannelTargetingInfo(o.targetingInfo); |
| 713 } | 713 } |
| 714 buildCounterCustomChannel--; | 714 buildCounterCustomChannel--; |
| 715 } | 715 } |
| 716 | 716 |
| 717 buildUnnamed1749() { | 717 buildUnnamed1843() { |
| 718 var o = new core.List<api.CustomChannel>(); | 718 var o = new core.List<api.CustomChannel>(); |
| 719 o.add(buildCustomChannel()); | 719 o.add(buildCustomChannel()); |
| 720 o.add(buildCustomChannel()); | 720 o.add(buildCustomChannel()); |
| 721 return o; | 721 return o; |
| 722 } | 722 } |
| 723 | 723 |
| 724 checkUnnamed1749(core.List<api.CustomChannel> o) { | 724 checkUnnamed1843(core.List<api.CustomChannel> o) { |
| 725 unittest.expect(o, unittest.hasLength(2)); | 725 unittest.expect(o, unittest.hasLength(2)); |
| 726 checkCustomChannel(o[0]); | 726 checkCustomChannel(o[0]); |
| 727 checkCustomChannel(o[1]); | 727 checkCustomChannel(o[1]); |
| 728 } | 728 } |
| 729 | 729 |
| 730 core.int buildCounterCustomChannels = 0; | 730 core.int buildCounterCustomChannels = 0; |
| 731 buildCustomChannels() { | 731 buildCustomChannels() { |
| 732 var o = new api.CustomChannels(); | 732 var o = new api.CustomChannels(); |
| 733 buildCounterCustomChannels++; | 733 buildCounterCustomChannels++; |
| 734 if (buildCounterCustomChannels < 3) { | 734 if (buildCounterCustomChannels < 3) { |
| 735 o.etag = "foo"; | 735 o.etag = "foo"; |
| 736 o.items = buildUnnamed1749(); | 736 o.items = buildUnnamed1843(); |
| 737 o.kind = "foo"; | 737 o.kind = "foo"; |
| 738 o.nextPageToken = "foo"; | 738 o.nextPageToken = "foo"; |
| 739 } | 739 } |
| 740 buildCounterCustomChannels--; | 740 buildCounterCustomChannels--; |
| 741 return o; | 741 return o; |
| 742 } | 742 } |
| 743 | 743 |
| 744 checkCustomChannels(api.CustomChannels o) { | 744 checkCustomChannels(api.CustomChannels o) { |
| 745 buildCounterCustomChannels++; | 745 buildCounterCustomChannels++; |
| 746 if (buildCounterCustomChannels < 3) { | 746 if (buildCounterCustomChannels < 3) { |
| 747 unittest.expect(o.etag, unittest.equals('foo')); | 747 unittest.expect(o.etag, unittest.equals('foo')); |
| 748 checkUnnamed1749(o.items); | 748 checkUnnamed1843(o.items); |
| 749 unittest.expect(o.kind, unittest.equals('foo')); | 749 unittest.expect(o.kind, unittest.equals('foo')); |
| 750 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 750 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 751 } | 751 } |
| 752 buildCounterCustomChannels--; | 752 buildCounterCustomChannels--; |
| 753 } | 753 } |
| 754 | 754 |
| 755 buildUnnamed1750() { | 755 buildUnnamed1844() { |
| 756 var o = new core.List<api.ReportingMetadataEntry>(); | 756 var o = new core.List<api.ReportingMetadataEntry>(); |
| 757 o.add(buildReportingMetadataEntry()); | 757 o.add(buildReportingMetadataEntry()); |
| 758 o.add(buildReportingMetadataEntry()); | 758 o.add(buildReportingMetadataEntry()); |
| 759 return o; | 759 return o; |
| 760 } | 760 } |
| 761 | 761 |
| 762 checkUnnamed1750(core.List<api.ReportingMetadataEntry> o) { | 762 checkUnnamed1844(core.List<api.ReportingMetadataEntry> o) { |
| 763 unittest.expect(o, unittest.hasLength(2)); | 763 unittest.expect(o, unittest.hasLength(2)); |
| 764 checkReportingMetadataEntry(o[0]); | 764 checkReportingMetadataEntry(o[0]); |
| 765 checkReportingMetadataEntry(o[1]); | 765 checkReportingMetadataEntry(o[1]); |
| 766 } | 766 } |
| 767 | 767 |
| 768 core.int buildCounterMetadata = 0; | 768 core.int buildCounterMetadata = 0; |
| 769 buildMetadata() { | 769 buildMetadata() { |
| 770 var o = new api.Metadata(); | 770 var o = new api.Metadata(); |
| 771 buildCounterMetadata++; | 771 buildCounterMetadata++; |
| 772 if (buildCounterMetadata < 3) { | 772 if (buildCounterMetadata < 3) { |
| 773 o.items = buildUnnamed1750(); | 773 o.items = buildUnnamed1844(); |
| 774 o.kind = "foo"; | 774 o.kind = "foo"; |
| 775 } | 775 } |
| 776 buildCounterMetadata--; | 776 buildCounterMetadata--; |
| 777 return o; | 777 return o; |
| 778 } | 778 } |
| 779 | 779 |
| 780 checkMetadata(api.Metadata o) { | 780 checkMetadata(api.Metadata o) { |
| 781 buildCounterMetadata++; | 781 buildCounterMetadata++; |
| 782 if (buildCounterMetadata < 3) { | 782 if (buildCounterMetadata < 3) { |
| 783 checkUnnamed1750(o.items); | 783 checkUnnamed1844(o.items); |
| 784 unittest.expect(o.kind, unittest.equals('foo')); | 784 unittest.expect(o.kind, unittest.equals('foo')); |
| 785 } | 785 } |
| 786 buildCounterMetadata--; | 786 buildCounterMetadata--; |
| 787 } | 787 } |
| 788 | 788 |
| 789 core.int buildCounterPayment = 0; | 789 core.int buildCounterPayment = 0; |
| 790 buildPayment() { | 790 buildPayment() { |
| 791 var o = new api.Payment(); | 791 var o = new api.Payment(); |
| 792 buildCounterPayment++; | 792 buildCounterPayment++; |
| 793 if (buildCounterPayment < 3) { | 793 if (buildCounterPayment < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 806 if (buildCounterPayment < 3) { | 806 if (buildCounterPayment < 3) { |
| 807 unittest.expect(o.id, unittest.equals('foo')); | 807 unittest.expect(o.id, unittest.equals('foo')); |
| 808 unittest.expect(o.kind, unittest.equals('foo')); | 808 unittest.expect(o.kind, unittest.equals('foo')); |
| 809 unittest.expect(o.paymentAmount, unittest.equals('foo')); | 809 unittest.expect(o.paymentAmount, unittest.equals('foo')); |
| 810 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo')); | 810 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo')); |
| 811 unittest.expect(o.paymentDate, unittest.equals('foo')); | 811 unittest.expect(o.paymentDate, unittest.equals('foo')); |
| 812 } | 812 } |
| 813 buildCounterPayment--; | 813 buildCounterPayment--; |
| 814 } | 814 } |
| 815 | 815 |
| 816 buildUnnamed1751() { | 816 buildUnnamed1845() { |
| 817 var o = new core.List<api.Payment>(); | 817 var o = new core.List<api.Payment>(); |
| 818 o.add(buildPayment()); | 818 o.add(buildPayment()); |
| 819 o.add(buildPayment()); | 819 o.add(buildPayment()); |
| 820 return o; | 820 return o; |
| 821 } | 821 } |
| 822 | 822 |
| 823 checkUnnamed1751(core.List<api.Payment> o) { | 823 checkUnnamed1845(core.List<api.Payment> o) { |
| 824 unittest.expect(o, unittest.hasLength(2)); | 824 unittest.expect(o, unittest.hasLength(2)); |
| 825 checkPayment(o[0]); | 825 checkPayment(o[0]); |
| 826 checkPayment(o[1]); | 826 checkPayment(o[1]); |
| 827 } | 827 } |
| 828 | 828 |
| 829 core.int buildCounterPayments = 0; | 829 core.int buildCounterPayments = 0; |
| 830 buildPayments() { | 830 buildPayments() { |
| 831 var o = new api.Payments(); | 831 var o = new api.Payments(); |
| 832 buildCounterPayments++; | 832 buildCounterPayments++; |
| 833 if (buildCounterPayments < 3) { | 833 if (buildCounterPayments < 3) { |
| 834 o.items = buildUnnamed1751(); | 834 o.items = buildUnnamed1845(); |
| 835 o.kind = "foo"; | 835 o.kind = "foo"; |
| 836 } | 836 } |
| 837 buildCounterPayments--; | 837 buildCounterPayments--; |
| 838 return o; | 838 return o; |
| 839 } | 839 } |
| 840 | 840 |
| 841 checkPayments(api.Payments o) { | 841 checkPayments(api.Payments o) { |
| 842 buildCounterPayments++; | 842 buildCounterPayments++; |
| 843 if (buildCounterPayments < 3) { | 843 if (buildCounterPayments < 3) { |
| 844 checkUnnamed1751(o.items); | 844 checkUnnamed1845(o.items); |
| 845 unittest.expect(o.kind, unittest.equals('foo')); | 845 unittest.expect(o.kind, unittest.equals('foo')); |
| 846 } | 846 } |
| 847 buildCounterPayments--; | 847 buildCounterPayments--; |
| 848 } | 848 } |
| 849 | 849 |
| 850 buildUnnamed1752() { | 850 buildUnnamed1846() { |
| 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 checkUnnamed1752(core.List<core.String> o) { | 857 checkUnnamed1846(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 buildUnnamed1753() { | 863 buildUnnamed1847() { |
| 864 var o = new core.List<core.String>(); | 864 var o = new core.List<core.String>(); |
| 865 o.add("foo"); | 865 o.add("foo"); |
| 866 o.add("foo"); | 866 o.add("foo"); |
| 867 return o; | 867 return o; |
| 868 } | 868 } |
| 869 | 869 |
| 870 checkUnnamed1753(core.List<core.String> o) { | 870 checkUnnamed1847(core.List<core.String> o) { |
| 871 unittest.expect(o, unittest.hasLength(2)); | 871 unittest.expect(o, unittest.hasLength(2)); |
| 872 unittest.expect(o[0], unittest.equals('foo')); | 872 unittest.expect(o[0], unittest.equals('foo')); |
| 873 unittest.expect(o[1], unittest.equals('foo')); | 873 unittest.expect(o[1], unittest.equals('foo')); |
| 874 } | 874 } |
| 875 | 875 |
| 876 buildUnnamed1754() { | 876 buildUnnamed1848() { |
| 877 var o = new core.List<core.String>(); | 877 var o = new core.List<core.String>(); |
| 878 o.add("foo"); | 878 o.add("foo"); |
| 879 o.add("foo"); | 879 o.add("foo"); |
| 880 return o; | 880 return o; |
| 881 } | 881 } |
| 882 | 882 |
| 883 checkUnnamed1754(core.List<core.String> o) { | 883 checkUnnamed1848(core.List<core.String> o) { |
| 884 unittest.expect(o, unittest.hasLength(2)); | 884 unittest.expect(o, unittest.hasLength(2)); |
| 885 unittest.expect(o[0], unittest.equals('foo')); | 885 unittest.expect(o[0], unittest.equals('foo')); |
| 886 unittest.expect(o[1], unittest.equals('foo')); | 886 unittest.expect(o[1], unittest.equals('foo')); |
| 887 } | 887 } |
| 888 | 888 |
| 889 buildUnnamed1755() { | 889 buildUnnamed1849() { |
| 890 var o = new core.List<core.String>(); | 890 var o = new core.List<core.String>(); |
| 891 o.add("foo"); | 891 o.add("foo"); |
| 892 o.add("foo"); | 892 o.add("foo"); |
| 893 return o; | 893 return o; |
| 894 } | 894 } |
| 895 | 895 |
| 896 checkUnnamed1755(core.List<core.String> o) { | 896 checkUnnamed1849(core.List<core.String> o) { |
| 897 unittest.expect(o, unittest.hasLength(2)); | 897 unittest.expect(o, unittest.hasLength(2)); |
| 898 unittest.expect(o[0], unittest.equals('foo')); | 898 unittest.expect(o[0], unittest.equals('foo')); |
| 899 unittest.expect(o[1], unittest.equals('foo')); | 899 unittest.expect(o[1], unittest.equals('foo')); |
| 900 } | 900 } |
| 901 | 901 |
| 902 buildUnnamed1756() { | 902 buildUnnamed1850() { |
| 903 var o = new core.List<core.String>(); | 903 var o = new core.List<core.String>(); |
| 904 o.add("foo"); | 904 o.add("foo"); |
| 905 o.add("foo"); | 905 o.add("foo"); |
| 906 return o; | 906 return o; |
| 907 } | 907 } |
| 908 | 908 |
| 909 checkUnnamed1756(core.List<core.String> o) { | 909 checkUnnamed1850(core.List<core.String> o) { |
| 910 unittest.expect(o, unittest.hasLength(2)); | 910 unittest.expect(o, unittest.hasLength(2)); |
| 911 unittest.expect(o[0], unittest.equals('foo')); | 911 unittest.expect(o[0], unittest.equals('foo')); |
| 912 unittest.expect(o[1], unittest.equals('foo')); | 912 unittest.expect(o[1], unittest.equals('foo')); |
| 913 } | 913 } |
| 914 | 914 |
| 915 core.int buildCounterReportingMetadataEntry = 0; | 915 core.int buildCounterReportingMetadataEntry = 0; |
| 916 buildReportingMetadataEntry() { | 916 buildReportingMetadataEntry() { |
| 917 var o = new api.ReportingMetadataEntry(); | 917 var o = new api.ReportingMetadataEntry(); |
| 918 buildCounterReportingMetadataEntry++; | 918 buildCounterReportingMetadataEntry++; |
| 919 if (buildCounterReportingMetadataEntry < 3) { | 919 if (buildCounterReportingMetadataEntry < 3) { |
| 920 o.compatibleDimensions = buildUnnamed1752(); | 920 o.compatibleDimensions = buildUnnamed1846(); |
| 921 o.compatibleMetrics = buildUnnamed1753(); | 921 o.compatibleMetrics = buildUnnamed1847(); |
| 922 o.id = "foo"; | 922 o.id = "foo"; |
| 923 o.kind = "foo"; | 923 o.kind = "foo"; |
| 924 o.requiredDimensions = buildUnnamed1754(); | 924 o.requiredDimensions = buildUnnamed1848(); |
| 925 o.requiredMetrics = buildUnnamed1755(); | 925 o.requiredMetrics = buildUnnamed1849(); |
| 926 o.supportedProducts = buildUnnamed1756(); | 926 o.supportedProducts = buildUnnamed1850(); |
| 927 } | 927 } |
| 928 buildCounterReportingMetadataEntry--; | 928 buildCounterReportingMetadataEntry--; |
| 929 return o; | 929 return o; |
| 930 } | 930 } |
| 931 | 931 |
| 932 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 932 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
| 933 buildCounterReportingMetadataEntry++; | 933 buildCounterReportingMetadataEntry++; |
| 934 if (buildCounterReportingMetadataEntry < 3) { | 934 if (buildCounterReportingMetadataEntry < 3) { |
| 935 checkUnnamed1752(o.compatibleDimensions); | 935 checkUnnamed1846(o.compatibleDimensions); |
| 936 checkUnnamed1753(o.compatibleMetrics); | 936 checkUnnamed1847(o.compatibleMetrics); |
| 937 unittest.expect(o.id, unittest.equals('foo')); | 937 unittest.expect(o.id, unittest.equals('foo')); |
| 938 unittest.expect(o.kind, unittest.equals('foo')); | 938 unittest.expect(o.kind, unittest.equals('foo')); |
| 939 checkUnnamed1754(o.requiredDimensions); | 939 checkUnnamed1848(o.requiredDimensions); |
| 940 checkUnnamed1755(o.requiredMetrics); | 940 checkUnnamed1849(o.requiredMetrics); |
| 941 checkUnnamed1756(o.supportedProducts); | 941 checkUnnamed1850(o.supportedProducts); |
| 942 } | 942 } |
| 943 buildCounterReportingMetadataEntry--; | 943 buildCounterReportingMetadataEntry--; |
| 944 } | 944 } |
| 945 | 945 |
| 946 core.int buildCounterSavedAdStyle = 0; | 946 core.int buildCounterSavedAdStyle = 0; |
| 947 buildSavedAdStyle() { | 947 buildSavedAdStyle() { |
| 948 var o = new api.SavedAdStyle(); | 948 var o = new api.SavedAdStyle(); |
| 949 buildCounterSavedAdStyle++; | 949 buildCounterSavedAdStyle++; |
| 950 if (buildCounterSavedAdStyle < 3) { | 950 if (buildCounterSavedAdStyle < 3) { |
| 951 o.adStyle = buildAdStyle(); | 951 o.adStyle = buildAdStyle(); |
| 952 o.id = "foo"; | 952 o.id = "foo"; |
| 953 o.kind = "foo"; | 953 o.kind = "foo"; |
| 954 o.name = "foo"; | 954 o.name = "foo"; |
| 955 } | 955 } |
| 956 buildCounterSavedAdStyle--; | 956 buildCounterSavedAdStyle--; |
| 957 return o; | 957 return o; |
| 958 } | 958 } |
| 959 | 959 |
| 960 checkSavedAdStyle(api.SavedAdStyle o) { | 960 checkSavedAdStyle(api.SavedAdStyle o) { |
| 961 buildCounterSavedAdStyle++; | 961 buildCounterSavedAdStyle++; |
| 962 if (buildCounterSavedAdStyle < 3) { | 962 if (buildCounterSavedAdStyle < 3) { |
| 963 checkAdStyle(o.adStyle); | 963 checkAdStyle(o.adStyle); |
| 964 unittest.expect(o.id, unittest.equals('foo')); | 964 unittest.expect(o.id, unittest.equals('foo')); |
| 965 unittest.expect(o.kind, unittest.equals('foo')); | 965 unittest.expect(o.kind, unittest.equals('foo')); |
| 966 unittest.expect(o.name, unittest.equals('foo')); | 966 unittest.expect(o.name, unittest.equals('foo')); |
| 967 } | 967 } |
| 968 buildCounterSavedAdStyle--; | 968 buildCounterSavedAdStyle--; |
| 969 } | 969 } |
| 970 | 970 |
| 971 buildUnnamed1757() { | 971 buildUnnamed1851() { |
| 972 var o = new core.List<api.SavedAdStyle>(); | 972 var o = new core.List<api.SavedAdStyle>(); |
| 973 o.add(buildSavedAdStyle()); | 973 o.add(buildSavedAdStyle()); |
| 974 o.add(buildSavedAdStyle()); | 974 o.add(buildSavedAdStyle()); |
| 975 return o; | 975 return o; |
| 976 } | 976 } |
| 977 | 977 |
| 978 checkUnnamed1757(core.List<api.SavedAdStyle> o) { | 978 checkUnnamed1851(core.List<api.SavedAdStyle> o) { |
| 979 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
| 980 checkSavedAdStyle(o[0]); | 980 checkSavedAdStyle(o[0]); |
| 981 checkSavedAdStyle(o[1]); | 981 checkSavedAdStyle(o[1]); |
| 982 } | 982 } |
| 983 | 983 |
| 984 core.int buildCounterSavedAdStyles = 0; | 984 core.int buildCounterSavedAdStyles = 0; |
| 985 buildSavedAdStyles() { | 985 buildSavedAdStyles() { |
| 986 var o = new api.SavedAdStyles(); | 986 var o = new api.SavedAdStyles(); |
| 987 buildCounterSavedAdStyles++; | 987 buildCounterSavedAdStyles++; |
| 988 if (buildCounterSavedAdStyles < 3) { | 988 if (buildCounterSavedAdStyles < 3) { |
| 989 o.etag = "foo"; | 989 o.etag = "foo"; |
| 990 o.items = buildUnnamed1757(); | 990 o.items = buildUnnamed1851(); |
| 991 o.kind = "foo"; | 991 o.kind = "foo"; |
| 992 o.nextPageToken = "foo"; | 992 o.nextPageToken = "foo"; |
| 993 } | 993 } |
| 994 buildCounterSavedAdStyles--; | 994 buildCounterSavedAdStyles--; |
| 995 return o; | 995 return o; |
| 996 } | 996 } |
| 997 | 997 |
| 998 checkSavedAdStyles(api.SavedAdStyles o) { | 998 checkSavedAdStyles(api.SavedAdStyles o) { |
| 999 buildCounterSavedAdStyles++; | 999 buildCounterSavedAdStyles++; |
| 1000 if (buildCounterSavedAdStyles < 3) { | 1000 if (buildCounterSavedAdStyles < 3) { |
| 1001 unittest.expect(o.etag, unittest.equals('foo')); | 1001 unittest.expect(o.etag, unittest.equals('foo')); |
| 1002 checkUnnamed1757(o.items); | 1002 checkUnnamed1851(o.items); |
| 1003 unittest.expect(o.kind, unittest.equals('foo')); | 1003 unittest.expect(o.kind, unittest.equals('foo')); |
| 1004 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1004 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1005 } | 1005 } |
| 1006 buildCounterSavedAdStyles--; | 1006 buildCounterSavedAdStyles--; |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 core.int buildCounterSavedReport = 0; | 1009 core.int buildCounterSavedReport = 0; |
| 1010 buildSavedReport() { | 1010 buildSavedReport() { |
| 1011 var o = new api.SavedReport(); | 1011 var o = new api.SavedReport(); |
| 1012 buildCounterSavedReport++; | 1012 buildCounterSavedReport++; |
| 1013 if (buildCounterSavedReport < 3) { | 1013 if (buildCounterSavedReport < 3) { |
| 1014 o.id = "foo"; | 1014 o.id = "foo"; |
| 1015 o.kind = "foo"; | 1015 o.kind = "foo"; |
| 1016 o.name = "foo"; | 1016 o.name = "foo"; |
| 1017 } | 1017 } |
| 1018 buildCounterSavedReport--; | 1018 buildCounterSavedReport--; |
| 1019 return o; | 1019 return o; |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 checkSavedReport(api.SavedReport o) { | 1022 checkSavedReport(api.SavedReport o) { |
| 1023 buildCounterSavedReport++; | 1023 buildCounterSavedReport++; |
| 1024 if (buildCounterSavedReport < 3) { | 1024 if (buildCounterSavedReport < 3) { |
| 1025 unittest.expect(o.id, unittest.equals('foo')); | 1025 unittest.expect(o.id, unittest.equals('foo')); |
| 1026 unittest.expect(o.kind, unittest.equals('foo')); | 1026 unittest.expect(o.kind, unittest.equals('foo')); |
| 1027 unittest.expect(o.name, unittest.equals('foo')); | 1027 unittest.expect(o.name, unittest.equals('foo')); |
| 1028 } | 1028 } |
| 1029 buildCounterSavedReport--; | 1029 buildCounterSavedReport--; |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 buildUnnamed1758() { | 1032 buildUnnamed1852() { |
| 1033 var o = new core.List<api.SavedReport>(); | 1033 var o = new core.List<api.SavedReport>(); |
| 1034 o.add(buildSavedReport()); | 1034 o.add(buildSavedReport()); |
| 1035 o.add(buildSavedReport()); | 1035 o.add(buildSavedReport()); |
| 1036 return o; | 1036 return o; |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 checkUnnamed1758(core.List<api.SavedReport> o) { | 1039 checkUnnamed1852(core.List<api.SavedReport> o) { |
| 1040 unittest.expect(o, unittest.hasLength(2)); | 1040 unittest.expect(o, unittest.hasLength(2)); |
| 1041 checkSavedReport(o[0]); | 1041 checkSavedReport(o[0]); |
| 1042 checkSavedReport(o[1]); | 1042 checkSavedReport(o[1]); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 core.int buildCounterSavedReports = 0; | 1045 core.int buildCounterSavedReports = 0; |
| 1046 buildSavedReports() { | 1046 buildSavedReports() { |
| 1047 var o = new api.SavedReports(); | 1047 var o = new api.SavedReports(); |
| 1048 buildCounterSavedReports++; | 1048 buildCounterSavedReports++; |
| 1049 if (buildCounterSavedReports < 3) { | 1049 if (buildCounterSavedReports < 3) { |
| 1050 o.etag = "foo"; | 1050 o.etag = "foo"; |
| 1051 o.items = buildUnnamed1758(); | 1051 o.items = buildUnnamed1852(); |
| 1052 o.kind = "foo"; | 1052 o.kind = "foo"; |
| 1053 o.nextPageToken = "foo"; | 1053 o.nextPageToken = "foo"; |
| 1054 } | 1054 } |
| 1055 buildCounterSavedReports--; | 1055 buildCounterSavedReports--; |
| 1056 return o; | 1056 return o; |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 checkSavedReports(api.SavedReports o) { | 1059 checkSavedReports(api.SavedReports o) { |
| 1060 buildCounterSavedReports++; | 1060 buildCounterSavedReports++; |
| 1061 if (buildCounterSavedReports < 3) { | 1061 if (buildCounterSavedReports < 3) { |
| 1062 unittest.expect(o.etag, unittest.equals('foo')); | 1062 unittest.expect(o.etag, unittest.equals('foo')); |
| 1063 checkUnnamed1758(o.items); | 1063 checkUnnamed1852(o.items); |
| 1064 unittest.expect(o.kind, unittest.equals('foo')); | 1064 unittest.expect(o.kind, unittest.equals('foo')); |
| 1065 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1065 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1066 } | 1066 } |
| 1067 buildCounterSavedReports--; | 1067 buildCounterSavedReports--; |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 core.int buildCounterUrlChannel = 0; | 1070 core.int buildCounterUrlChannel = 0; |
| 1071 buildUrlChannel() { | 1071 buildUrlChannel() { |
| 1072 var o = new api.UrlChannel(); | 1072 var o = new api.UrlChannel(); |
| 1073 buildCounterUrlChannel++; | 1073 buildCounterUrlChannel++; |
| 1074 if (buildCounterUrlChannel < 3) { | 1074 if (buildCounterUrlChannel < 3) { |
| 1075 o.id = "foo"; | 1075 o.id = "foo"; |
| 1076 o.kind = "foo"; | 1076 o.kind = "foo"; |
| 1077 o.urlPattern = "foo"; | 1077 o.urlPattern = "foo"; |
| 1078 } | 1078 } |
| 1079 buildCounterUrlChannel--; | 1079 buildCounterUrlChannel--; |
| 1080 return o; | 1080 return o; |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 checkUrlChannel(api.UrlChannel o) { | 1083 checkUrlChannel(api.UrlChannel o) { |
| 1084 buildCounterUrlChannel++; | 1084 buildCounterUrlChannel++; |
| 1085 if (buildCounterUrlChannel < 3) { | 1085 if (buildCounterUrlChannel < 3) { |
| 1086 unittest.expect(o.id, unittest.equals('foo')); | 1086 unittest.expect(o.id, unittest.equals('foo')); |
| 1087 unittest.expect(o.kind, unittest.equals('foo')); | 1087 unittest.expect(o.kind, unittest.equals('foo')); |
| 1088 unittest.expect(o.urlPattern, unittest.equals('foo')); | 1088 unittest.expect(o.urlPattern, unittest.equals('foo')); |
| 1089 } | 1089 } |
| 1090 buildCounterUrlChannel--; | 1090 buildCounterUrlChannel--; |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 buildUnnamed1759() { | 1093 buildUnnamed1853() { |
| 1094 var o = new core.List<api.UrlChannel>(); | 1094 var o = new core.List<api.UrlChannel>(); |
| 1095 o.add(buildUrlChannel()); | 1095 o.add(buildUrlChannel()); |
| 1096 o.add(buildUrlChannel()); | 1096 o.add(buildUrlChannel()); |
| 1097 return o; | 1097 return o; |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 checkUnnamed1759(core.List<api.UrlChannel> o) { | 1100 checkUnnamed1853(core.List<api.UrlChannel> o) { |
| 1101 unittest.expect(o, unittest.hasLength(2)); | 1101 unittest.expect(o, unittest.hasLength(2)); |
| 1102 checkUrlChannel(o[0]); | 1102 checkUrlChannel(o[0]); |
| 1103 checkUrlChannel(o[1]); | 1103 checkUrlChannel(o[1]); |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 core.int buildCounterUrlChannels = 0; | 1106 core.int buildCounterUrlChannels = 0; |
| 1107 buildUrlChannels() { | 1107 buildUrlChannels() { |
| 1108 var o = new api.UrlChannels(); | 1108 var o = new api.UrlChannels(); |
| 1109 buildCounterUrlChannels++; | 1109 buildCounterUrlChannels++; |
| 1110 if (buildCounterUrlChannels < 3) { | 1110 if (buildCounterUrlChannels < 3) { |
| 1111 o.etag = "foo"; | 1111 o.etag = "foo"; |
| 1112 o.items = buildUnnamed1759(); | 1112 o.items = buildUnnamed1853(); |
| 1113 o.kind = "foo"; | 1113 o.kind = "foo"; |
| 1114 o.nextPageToken = "foo"; | 1114 o.nextPageToken = "foo"; |
| 1115 } | 1115 } |
| 1116 buildCounterUrlChannels--; | 1116 buildCounterUrlChannels--; |
| 1117 return o; | 1117 return o; |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 checkUrlChannels(api.UrlChannels o) { | 1120 checkUrlChannels(api.UrlChannels o) { |
| 1121 buildCounterUrlChannels++; | 1121 buildCounterUrlChannels++; |
| 1122 if (buildCounterUrlChannels < 3) { | 1122 if (buildCounterUrlChannels < 3) { |
| 1123 unittest.expect(o.etag, unittest.equals('foo')); | 1123 unittest.expect(o.etag, unittest.equals('foo')); |
| 1124 checkUnnamed1759(o.items); | 1124 checkUnnamed1853(o.items); |
| 1125 unittest.expect(o.kind, unittest.equals('foo')); | 1125 unittest.expect(o.kind, unittest.equals('foo')); |
| 1126 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1126 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1127 } | 1127 } |
| 1128 buildCounterUrlChannels--; | 1128 buildCounterUrlChannels--; |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 buildUnnamed1760() { | 1131 buildUnnamed1854() { |
| 1132 var o = new core.List<core.String>(); | 1132 var o = new core.List<core.String>(); |
| 1133 o.add("foo"); | 1133 o.add("foo"); |
| 1134 o.add("foo"); | 1134 o.add("foo"); |
| 1135 return o; | 1135 return o; |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 checkUnnamed1760(core.List<core.String> o) { | 1138 checkUnnamed1854(core.List<core.String> o) { |
| 1139 unittest.expect(o, unittest.hasLength(2)); | 1139 unittest.expect(o, unittest.hasLength(2)); |
| 1140 unittest.expect(o[0], unittest.equals('foo')); | 1140 unittest.expect(o[0], unittest.equals('foo')); |
| 1141 unittest.expect(o[1], unittest.equals('foo')); | 1141 unittest.expect(o[1], unittest.equals('foo')); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 buildUnnamed1761() { | 1144 buildUnnamed1855() { |
| 1145 var o = new core.List<core.String>(); | 1145 var o = new core.List<core.String>(); |
| 1146 o.add("foo"); | 1146 o.add("foo"); |
| 1147 o.add("foo"); | 1147 o.add("foo"); |
| 1148 return o; | 1148 return o; |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 checkUnnamed1761(core.List<core.String> o) { | 1151 checkUnnamed1855(core.List<core.String> o) { |
| 1152 unittest.expect(o, unittest.hasLength(2)); | 1152 unittest.expect(o, unittest.hasLength(2)); |
| 1153 unittest.expect(o[0], unittest.equals('foo')); | 1153 unittest.expect(o[0], unittest.equals('foo')); |
| 1154 unittest.expect(o[1], unittest.equals('foo')); | 1154 unittest.expect(o[1], unittest.equals('foo')); |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 buildUnnamed1762() { | 1157 buildUnnamed1856() { |
| 1158 var o = new core.List<core.String>(); | 1158 var o = new core.List<core.String>(); |
| 1159 o.add("foo"); | 1159 o.add("foo"); |
| 1160 o.add("foo"); | 1160 o.add("foo"); |
| 1161 return o; | 1161 return o; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 checkUnnamed1762(core.List<core.String> o) { | 1164 checkUnnamed1856(core.List<core.String> o) { |
| 1165 unittest.expect(o, unittest.hasLength(2)); | 1165 unittest.expect(o, unittest.hasLength(2)); |
| 1166 unittest.expect(o[0], unittest.equals('foo')); | 1166 unittest.expect(o[0], unittest.equals('foo')); |
| 1167 unittest.expect(o[1], unittest.equals('foo')); | 1167 unittest.expect(o[1], unittest.equals('foo')); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 buildUnnamed1763() { | 1170 buildUnnamed1857() { |
| 1171 var o = new core.List<core.String>(); | 1171 var o = new core.List<core.String>(); |
| 1172 o.add("foo"); | 1172 o.add("foo"); |
| 1173 o.add("foo"); | 1173 o.add("foo"); |
| 1174 return o; | 1174 return o; |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 checkUnnamed1763(core.List<core.String> o) { | 1177 checkUnnamed1857(core.List<core.String> o) { |
| 1178 unittest.expect(o, unittest.hasLength(2)); | 1178 unittest.expect(o, unittest.hasLength(2)); |
| 1179 unittest.expect(o[0], unittest.equals('foo')); | 1179 unittest.expect(o[0], unittest.equals('foo')); |
| 1180 unittest.expect(o[1], unittest.equals('foo')); | 1180 unittest.expect(o[1], unittest.equals('foo')); |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 buildUnnamed1764() { | 1183 buildUnnamed1858() { |
| 1184 var o = new core.List<core.String>(); | 1184 var o = new core.List<core.String>(); |
| 1185 o.add("foo"); | 1185 o.add("foo"); |
| 1186 o.add("foo"); | 1186 o.add("foo"); |
| 1187 return o; | 1187 return o; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 checkUnnamed1764(core.List<core.String> o) { | 1190 checkUnnamed1858(core.List<core.String> o) { |
| 1191 unittest.expect(o, unittest.hasLength(2)); | 1191 unittest.expect(o, unittest.hasLength(2)); |
| 1192 unittest.expect(o[0], unittest.equals('foo')); | 1192 unittest.expect(o[0], unittest.equals('foo')); |
| 1193 unittest.expect(o[1], unittest.equals('foo')); | 1193 unittest.expect(o[1], unittest.equals('foo')); |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 buildUnnamed1765() { | 1196 buildUnnamed1859() { |
| 1197 var o = new core.List<core.String>(); | 1197 var o = new core.List<core.String>(); |
| 1198 o.add("foo"); | 1198 o.add("foo"); |
| 1199 o.add("foo"); | 1199 o.add("foo"); |
| 1200 return o; | 1200 return o; |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 checkUnnamed1765(core.List<core.String> o) { | 1203 checkUnnamed1859(core.List<core.String> o) { |
| 1204 unittest.expect(o, unittest.hasLength(2)); | 1204 unittest.expect(o, unittest.hasLength(2)); |
| 1205 unittest.expect(o[0], unittest.equals('foo')); | 1205 unittest.expect(o[0], unittest.equals('foo')); |
| 1206 unittest.expect(o[1], unittest.equals('foo')); | 1206 unittest.expect(o[1], unittest.equals('foo')); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 buildUnnamed1766() { | 1209 buildUnnamed1860() { |
| 1210 var o = new core.List<core.String>(); | 1210 var o = new core.List<core.String>(); |
| 1211 o.add("foo"); | 1211 o.add("foo"); |
| 1212 o.add("foo"); | 1212 o.add("foo"); |
| 1213 return o; | 1213 return o; |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 1216 checkUnnamed1766(core.List<core.String> o) { | 1216 checkUnnamed1860(core.List<core.String> o) { |
| 1217 unittest.expect(o, unittest.hasLength(2)); | 1217 unittest.expect(o, unittest.hasLength(2)); |
| 1218 unittest.expect(o[0], unittest.equals('foo')); | 1218 unittest.expect(o[0], unittest.equals('foo')); |
| 1219 unittest.expect(o[1], unittest.equals('foo')); | 1219 unittest.expect(o[1], unittest.equals('foo')); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 buildUnnamed1767() { | 1222 buildUnnamed1861() { |
| 1223 var o = new core.List<core.String>(); | 1223 var o = new core.List<core.String>(); |
| 1224 o.add("foo"); | 1224 o.add("foo"); |
| 1225 o.add("foo"); | 1225 o.add("foo"); |
| 1226 return o; | 1226 return o; |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 checkUnnamed1767(core.List<core.String> o) { | 1229 checkUnnamed1861(core.List<core.String> o) { |
| 1230 unittest.expect(o, unittest.hasLength(2)); | 1230 unittest.expect(o, unittest.hasLength(2)); |
| 1231 unittest.expect(o[0], unittest.equals('foo')); | 1231 unittest.expect(o[0], unittest.equals('foo')); |
| 1232 unittest.expect(o[1], unittest.equals('foo')); | 1232 unittest.expect(o[1], unittest.equals('foo')); |
| 1233 } | 1233 } |
| 1234 | 1234 |
| 1235 buildUnnamed1768() { | 1235 buildUnnamed1862() { |
| 1236 var o = new core.List<core.String>(); | 1236 var o = new core.List<core.String>(); |
| 1237 o.add("foo"); | 1237 o.add("foo"); |
| 1238 o.add("foo"); | 1238 o.add("foo"); |
| 1239 return o; | 1239 return o; |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 checkUnnamed1768(core.List<core.String> o) { | 1242 checkUnnamed1862(core.List<core.String> o) { |
| 1243 unittest.expect(o, unittest.hasLength(2)); | 1243 unittest.expect(o, unittest.hasLength(2)); |
| 1244 unittest.expect(o[0], unittest.equals('foo')); | 1244 unittest.expect(o[0], unittest.equals('foo')); |
| 1245 unittest.expect(o[1], unittest.equals('foo')); | 1245 unittest.expect(o[1], unittest.equals('foo')); |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 | 1248 |
| 1249 main() { | 1249 main() { |
| 1250 unittest.group("obj-schema-Account", () { | 1250 unittest.group("obj-schema-Account", () { |
| 1251 unittest.test("to-json--from-json", () { | 1251 unittest.test("to-json--from-json", () { |
| 1252 var o = buildAccount(); | 1252 var o = buildAccount(); |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2361 unittest.test("method--generate", () { | 2361 unittest.test("method--generate", () { |
| 2362 // TODO: Implement tests for media upload; | 2362 // TODO: Implement tests for media upload; |
| 2363 // TODO: Implement tests for media download; | 2363 // TODO: Implement tests for media download; |
| 2364 | 2364 |
| 2365 var mock = new HttpServerMock(); | 2365 var mock = new HttpServerMock(); |
| 2366 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep
orts; | 2366 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep
orts; |
| 2367 var arg_accountId = "foo"; | 2367 var arg_accountId = "foo"; |
| 2368 var arg_startDate = "foo"; | 2368 var arg_startDate = "foo"; |
| 2369 var arg_endDate = "foo"; | 2369 var arg_endDate = "foo"; |
| 2370 var arg_currency = "foo"; | 2370 var arg_currency = "foo"; |
| 2371 var arg_dimension = buildUnnamed1760(); | 2371 var arg_dimension = buildUnnamed1854(); |
| 2372 var arg_filter = buildUnnamed1761(); | 2372 var arg_filter = buildUnnamed1855(); |
| 2373 var arg_locale = "foo"; | 2373 var arg_locale = "foo"; |
| 2374 var arg_maxResults = 42; | 2374 var arg_maxResults = 42; |
| 2375 var arg_metric = buildUnnamed1762(); | 2375 var arg_metric = buildUnnamed1856(); |
| 2376 var arg_sort = buildUnnamed1763(); | 2376 var arg_sort = buildUnnamed1857(); |
| 2377 var arg_startIndex = 42; | 2377 var arg_startIndex = 42; |
| 2378 var arg_useTimezoneReporting = true; | 2378 var arg_useTimezoneReporting = true; |
| 2379 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2379 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2380 var path = (req.url).path; | 2380 var path = (req.url).path; |
| 2381 var pathOffset = 0; | 2381 var pathOffset = 0; |
| 2382 var index; | 2382 var index; |
| 2383 var subPart; | 2383 var subPart; |
| 2384 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2384 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2385 pathOffset += 1; | 2385 pathOffset += 1; |
| 2386 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 Loading... |
| 3488 | 3488 |
| 3489 unittest.group("resource-ReportsResourceApi", () { | 3489 unittest.group("resource-ReportsResourceApi", () { |
| 3490 unittest.test("method--generate", () { | 3490 unittest.test("method--generate", () { |
| 3491 // TODO: Implement tests for media upload; | 3491 // TODO: Implement tests for media upload; |
| 3492 // TODO: Implement tests for media download; | 3492 // TODO: Implement tests for media download; |
| 3493 | 3493 |
| 3494 var mock = new HttpServerMock(); | 3494 var mock = new HttpServerMock(); |
| 3495 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; | 3495 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; |
| 3496 var arg_startDate = "foo"; | 3496 var arg_startDate = "foo"; |
| 3497 var arg_endDate = "foo"; | 3497 var arg_endDate = "foo"; |
| 3498 var arg_accountId = buildUnnamed1764(); | 3498 var arg_accountId = buildUnnamed1858(); |
| 3499 var arg_currency = "foo"; | 3499 var arg_currency = "foo"; |
| 3500 var arg_dimension = buildUnnamed1765(); | 3500 var arg_dimension = buildUnnamed1859(); |
| 3501 var arg_filter = buildUnnamed1766(); | 3501 var arg_filter = buildUnnamed1860(); |
| 3502 var arg_locale = "foo"; | 3502 var arg_locale = "foo"; |
| 3503 var arg_maxResults = 42; | 3503 var arg_maxResults = 42; |
| 3504 var arg_metric = buildUnnamed1767(); | 3504 var arg_metric = buildUnnamed1861(); |
| 3505 var arg_sort = buildUnnamed1768(); | 3505 var arg_sort = buildUnnamed1862(); |
| 3506 var arg_startIndex = 42; | 3506 var arg_startIndex = 42; |
| 3507 var arg_useTimezoneReporting = true; | 3507 var arg_useTimezoneReporting = true; |
| 3508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3509 var path = (req.url).path; | 3509 var path = (req.url).path; |
| 3510 var pathOffset = 0; | 3510 var pathOffset = 0; |
| 3511 var index; | 3511 var index; |
| 3512 var subPart; | 3512 var subPart; |
| 3513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3514 pathOffset += 1; | 3514 pathOffset += 1; |
| 3515 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 Loading... |
| 3827 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) { |
| 3828 checkUrlChannels(response); | 3828 checkUrlChannels(response); |
| 3829 }))); | 3829 }))); |
| 3830 }); | 3830 }); |
| 3831 | 3831 |
| 3832 }); | 3832 }); |
| 3833 | 3833 |
| 3834 | 3834 |
| 3835 } | 3835 } |
| 3836 | 3836 |
| OLD | NEW |