| 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; |
| 11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/adsense/v1_4.dart' as api; | 15 import 'package:googleapis/adsense/v1_4.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed510() { | 19 buildUnnamed841() { |
| 20 var o = new core.List<api.Account>(); | 20 var o = new core.List<api.Account>(); |
| 21 o.add(buildAccount()); | 21 o.add(buildAccount()); |
| 22 o.add(buildAccount()); | 22 o.add(buildAccount()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed510(core.List<api.Account> o) { | 26 checkUnnamed841(core.List<api.Account> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkAccount(o[0]); | 28 checkAccount(o[0]); |
| 29 checkAccount(o[1]); | 29 checkAccount(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterAccount = 0; | 32 core.int buildCounterAccount = 0; |
| 33 buildAccount() { | 33 buildAccount() { |
| 34 var o = new api.Account(); | 34 var o = new api.Account(); |
| 35 buildCounterAccount++; | 35 buildCounterAccount++; |
| 36 if (buildCounterAccount < 3) { | 36 if (buildCounterAccount < 3) { |
| 37 o.id = "foo"; | 37 o.id = "foo"; |
| 38 o.kind = "foo"; | 38 o.kind = "foo"; |
| 39 o.name = "foo"; | 39 o.name = "foo"; |
| 40 o.premium = true; | 40 o.premium = true; |
| 41 o.subAccounts = buildUnnamed510(); | 41 o.subAccounts = buildUnnamed841(); |
| 42 o.timezone = "foo"; | 42 o.timezone = "foo"; |
| 43 } | 43 } |
| 44 buildCounterAccount--; | 44 buildCounterAccount--; |
| 45 return o; | 45 return o; |
| 46 } | 46 } |
| 47 | 47 |
| 48 checkAccount(api.Account o) { | 48 checkAccount(api.Account o) { |
| 49 buildCounterAccount++; | 49 buildCounterAccount++; |
| 50 if (buildCounterAccount < 3) { | 50 if (buildCounterAccount < 3) { |
| 51 unittest.expect(o.id, unittest.equals('foo')); | 51 unittest.expect(o.id, unittest.equals('foo')); |
| 52 unittest.expect(o.kind, unittest.equals('foo')); | 52 unittest.expect(o.kind, unittest.equals('foo')); |
| 53 unittest.expect(o.name, unittest.equals('foo')); | 53 unittest.expect(o.name, unittest.equals('foo')); |
| 54 unittest.expect(o.premium, unittest.isTrue); | 54 unittest.expect(o.premium, unittest.isTrue); |
| 55 checkUnnamed510(o.subAccounts); | 55 checkUnnamed841(o.subAccounts); |
| 56 unittest.expect(o.timezone, unittest.equals('foo')); | 56 unittest.expect(o.timezone, unittest.equals('foo')); |
| 57 } | 57 } |
| 58 buildCounterAccount--; | 58 buildCounterAccount--; |
| 59 } | 59 } |
| 60 | 60 |
| 61 buildUnnamed511() { | 61 buildUnnamed842() { |
| 62 var o = new core.List<api.Account>(); | 62 var o = new core.List<api.Account>(); |
| 63 o.add(buildAccount()); | 63 o.add(buildAccount()); |
| 64 o.add(buildAccount()); | 64 o.add(buildAccount()); |
| 65 return o; | 65 return o; |
| 66 } | 66 } |
| 67 | 67 |
| 68 checkUnnamed511(core.List<api.Account> o) { | 68 checkUnnamed842(core.List<api.Account> o) { |
| 69 unittest.expect(o, unittest.hasLength(2)); | 69 unittest.expect(o, unittest.hasLength(2)); |
| 70 checkAccount(o[0]); | 70 checkAccount(o[0]); |
| 71 checkAccount(o[1]); | 71 checkAccount(o[1]); |
| 72 } | 72 } |
| 73 | 73 |
| 74 core.int buildCounterAccounts = 0; | 74 core.int buildCounterAccounts = 0; |
| 75 buildAccounts() { | 75 buildAccounts() { |
| 76 var o = new api.Accounts(); | 76 var o = new api.Accounts(); |
| 77 buildCounterAccounts++; | 77 buildCounterAccounts++; |
| 78 if (buildCounterAccounts < 3) { | 78 if (buildCounterAccounts < 3) { |
| 79 o.etag = "foo"; | 79 o.etag = "foo"; |
| 80 o.items = buildUnnamed511(); | 80 o.items = buildUnnamed842(); |
| 81 o.kind = "foo"; | 81 o.kind = "foo"; |
| 82 o.nextPageToken = "foo"; | 82 o.nextPageToken = "foo"; |
| 83 } | 83 } |
| 84 buildCounterAccounts--; | 84 buildCounterAccounts--; |
| 85 return o; | 85 return o; |
| 86 } | 86 } |
| 87 | 87 |
| 88 checkAccounts(api.Accounts o) { | 88 checkAccounts(api.Accounts o) { |
| 89 buildCounterAccounts++; | 89 buildCounterAccounts++; |
| 90 if (buildCounterAccounts < 3) { | 90 if (buildCounterAccounts < 3) { |
| 91 unittest.expect(o.etag, unittest.equals('foo')); | 91 unittest.expect(o.etag, unittest.equals('foo')); |
| 92 checkUnnamed511(o.items); | 92 checkUnnamed842(o.items); |
| 93 unittest.expect(o.kind, unittest.equals('foo')); | 93 unittest.expect(o.kind, unittest.equals('foo')); |
| 94 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 94 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 95 } | 95 } |
| 96 buildCounterAccounts--; | 96 buildCounterAccounts--; |
| 97 } | 97 } |
| 98 | 98 |
| 99 core.int buildCounterAdClient = 0; | 99 core.int buildCounterAdClient = 0; |
| 100 buildAdClient() { | 100 buildAdClient() { |
| 101 var o = new api.AdClient(); | 101 var o = new api.AdClient(); |
| 102 buildCounterAdClient++; | 102 buildCounterAdClient++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 118 unittest.expect(o.arcOptIn, unittest.isTrue); | 118 unittest.expect(o.arcOptIn, unittest.isTrue); |
| 119 unittest.expect(o.arcReviewMode, unittest.equals('foo')); | 119 unittest.expect(o.arcReviewMode, unittest.equals('foo')); |
| 120 unittest.expect(o.id, unittest.equals('foo')); | 120 unittest.expect(o.id, unittest.equals('foo')); |
| 121 unittest.expect(o.kind, unittest.equals('foo')); | 121 unittest.expect(o.kind, unittest.equals('foo')); |
| 122 unittest.expect(o.productCode, unittest.equals('foo')); | 122 unittest.expect(o.productCode, unittest.equals('foo')); |
| 123 unittest.expect(o.supportsReporting, unittest.isTrue); | 123 unittest.expect(o.supportsReporting, unittest.isTrue); |
| 124 } | 124 } |
| 125 buildCounterAdClient--; | 125 buildCounterAdClient--; |
| 126 } | 126 } |
| 127 | 127 |
| 128 buildUnnamed512() { | 128 buildUnnamed843() { |
| 129 var o = new core.List<api.AdClient>(); | 129 var o = new core.List<api.AdClient>(); |
| 130 o.add(buildAdClient()); | 130 o.add(buildAdClient()); |
| 131 o.add(buildAdClient()); | 131 o.add(buildAdClient()); |
| 132 return o; | 132 return o; |
| 133 } | 133 } |
| 134 | 134 |
| 135 checkUnnamed512(core.List<api.AdClient> o) { | 135 checkUnnamed843(core.List<api.AdClient> o) { |
| 136 unittest.expect(o, unittest.hasLength(2)); | 136 unittest.expect(o, unittest.hasLength(2)); |
| 137 checkAdClient(o[0]); | 137 checkAdClient(o[0]); |
| 138 checkAdClient(o[1]); | 138 checkAdClient(o[1]); |
| 139 } | 139 } |
| 140 | 140 |
| 141 core.int buildCounterAdClients = 0; | 141 core.int buildCounterAdClients = 0; |
| 142 buildAdClients() { | 142 buildAdClients() { |
| 143 var o = new api.AdClients(); | 143 var o = new api.AdClients(); |
| 144 buildCounterAdClients++; | 144 buildCounterAdClients++; |
| 145 if (buildCounterAdClients < 3) { | 145 if (buildCounterAdClients < 3) { |
| 146 o.etag = "foo"; | 146 o.etag = "foo"; |
| 147 o.items = buildUnnamed512(); | 147 o.items = buildUnnamed843(); |
| 148 o.kind = "foo"; | 148 o.kind = "foo"; |
| 149 o.nextPageToken = "foo"; | 149 o.nextPageToken = "foo"; |
| 150 } | 150 } |
| 151 buildCounterAdClients--; | 151 buildCounterAdClients--; |
| 152 return o; | 152 return o; |
| 153 } | 153 } |
| 154 | 154 |
| 155 checkAdClients(api.AdClients o) { | 155 checkAdClients(api.AdClients o) { |
| 156 buildCounterAdClients++; | 156 buildCounterAdClients++; |
| 157 if (buildCounterAdClients < 3) { | 157 if (buildCounterAdClients < 3) { |
| 158 unittest.expect(o.etag, unittest.equals('foo')); | 158 unittest.expect(o.etag, unittest.equals('foo')); |
| 159 checkUnnamed512(o.items); | 159 checkUnnamed843(o.items); |
| 160 unittest.expect(o.kind, unittest.equals('foo')); | 160 unittest.expect(o.kind, unittest.equals('foo')); |
| 161 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 161 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 162 } | 162 } |
| 163 buildCounterAdClients--; | 163 buildCounterAdClients--; |
| 164 } | 164 } |
| 165 | 165 |
| 166 core.int buildCounterAdCode = 0; | 166 core.int buildCounterAdCode = 0; |
| 167 buildAdCode() { | 167 buildAdCode() { |
| 168 var o = new api.AdCode(); | 168 var o = new api.AdCode(); |
| 169 buildCounterAdCode++; | 169 buildCounterAdCode++; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 unittest.expect(o.id, unittest.equals('foo')); | 383 unittest.expect(o.id, unittest.equals('foo')); |
| 384 unittest.expect(o.kind, unittest.equals('foo')); | 384 unittest.expect(o.kind, unittest.equals('foo')); |
| 385 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); | 385 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); |
| 386 unittest.expect(o.name, unittest.equals('foo')); | 386 unittest.expect(o.name, unittest.equals('foo')); |
| 387 unittest.expect(o.savedStyleId, unittest.equals('foo')); | 387 unittest.expect(o.savedStyleId, unittest.equals('foo')); |
| 388 unittest.expect(o.status, unittest.equals('foo')); | 388 unittest.expect(o.status, unittest.equals('foo')); |
| 389 } | 389 } |
| 390 buildCounterAdUnit--; | 390 buildCounterAdUnit--; |
| 391 } | 391 } |
| 392 | 392 |
| 393 buildUnnamed513() { | 393 buildUnnamed844() { |
| 394 var o = new core.List<api.AdUnit>(); | 394 var o = new core.List<api.AdUnit>(); |
| 395 o.add(buildAdUnit()); | 395 o.add(buildAdUnit()); |
| 396 o.add(buildAdUnit()); | 396 o.add(buildAdUnit()); |
| 397 return o; | 397 return o; |
| 398 } | 398 } |
| 399 | 399 |
| 400 checkUnnamed513(core.List<api.AdUnit> o) { | 400 checkUnnamed844(core.List<api.AdUnit> o) { |
| 401 unittest.expect(o, unittest.hasLength(2)); | 401 unittest.expect(o, unittest.hasLength(2)); |
| 402 checkAdUnit(o[0]); | 402 checkAdUnit(o[0]); |
| 403 checkAdUnit(o[1]); | 403 checkAdUnit(o[1]); |
| 404 } | 404 } |
| 405 | 405 |
| 406 core.int buildCounterAdUnits = 0; | 406 core.int buildCounterAdUnits = 0; |
| 407 buildAdUnits() { | 407 buildAdUnits() { |
| 408 var o = new api.AdUnits(); | 408 var o = new api.AdUnits(); |
| 409 buildCounterAdUnits++; | 409 buildCounterAdUnits++; |
| 410 if (buildCounterAdUnits < 3) { | 410 if (buildCounterAdUnits < 3) { |
| 411 o.etag = "foo"; | 411 o.etag = "foo"; |
| 412 o.items = buildUnnamed513(); | 412 o.items = buildUnnamed844(); |
| 413 o.kind = "foo"; | 413 o.kind = "foo"; |
| 414 o.nextPageToken = "foo"; | 414 o.nextPageToken = "foo"; |
| 415 } | 415 } |
| 416 buildCounterAdUnits--; | 416 buildCounterAdUnits--; |
| 417 return o; | 417 return o; |
| 418 } | 418 } |
| 419 | 419 |
| 420 checkAdUnits(api.AdUnits o) { | 420 checkAdUnits(api.AdUnits o) { |
| 421 buildCounterAdUnits++; | 421 buildCounterAdUnits++; |
| 422 if (buildCounterAdUnits < 3) { | 422 if (buildCounterAdUnits < 3) { |
| 423 unittest.expect(o.etag, unittest.equals('foo')); | 423 unittest.expect(o.etag, unittest.equals('foo')); |
| 424 checkUnnamed513(o.items); | 424 checkUnnamed844(o.items); |
| 425 unittest.expect(o.kind, unittest.equals('foo')); | 425 unittest.expect(o.kind, unittest.equals('foo')); |
| 426 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 426 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 427 } | 427 } |
| 428 buildCounterAdUnits--; | 428 buildCounterAdUnits--; |
| 429 } | 429 } |
| 430 | 430 |
| 431 buildUnnamed514() { | 431 buildUnnamed845() { |
| 432 var o = new core.List<core.String>(); | 432 var o = new core.List<core.String>(); |
| 433 o.add("foo"); | 433 o.add("foo"); |
| 434 o.add("foo"); | 434 o.add("foo"); |
| 435 return o; | 435 return o; |
| 436 } | 436 } |
| 437 | 437 |
| 438 checkUnnamed514(core.List<core.String> o) { | 438 checkUnnamed845(core.List<core.String> o) { |
| 439 unittest.expect(o, unittest.hasLength(2)); | 439 unittest.expect(o, unittest.hasLength(2)); |
| 440 unittest.expect(o[0], unittest.equals('foo')); | 440 unittest.expect(o[0], unittest.equals('foo')); |
| 441 unittest.expect(o[1], unittest.equals('foo')); | 441 unittest.expect(o[1], unittest.equals('foo')); |
| 442 } | 442 } |
| 443 | 443 |
| 444 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0; | 444 core.int buildCounterAdsenseReportsGenerateResponseHeaders = 0; |
| 445 buildAdsenseReportsGenerateResponseHeaders() { | 445 buildAdsenseReportsGenerateResponseHeaders() { |
| 446 var o = new api.AdsenseReportsGenerateResponseHeaders(); | 446 var o = new api.AdsenseReportsGenerateResponseHeaders(); |
| 447 buildCounterAdsenseReportsGenerateResponseHeaders++; | 447 buildCounterAdsenseReportsGenerateResponseHeaders++; |
| 448 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { | 448 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { |
| 449 o.currency = "foo"; | 449 o.currency = "foo"; |
| 450 o.name = "foo"; | 450 o.name = "foo"; |
| 451 o.type = "foo"; | 451 o.type = "foo"; |
| 452 } | 452 } |
| 453 buildCounterAdsenseReportsGenerateResponseHeaders--; | 453 buildCounterAdsenseReportsGenerateResponseHeaders--; |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea
ders o) { | 457 checkAdsenseReportsGenerateResponseHeaders(api.AdsenseReportsGenerateResponseHea
ders o) { |
| 458 buildCounterAdsenseReportsGenerateResponseHeaders++; | 458 buildCounterAdsenseReportsGenerateResponseHeaders++; |
| 459 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { | 459 if (buildCounterAdsenseReportsGenerateResponseHeaders < 3) { |
| 460 unittest.expect(o.currency, unittest.equals('foo')); | 460 unittest.expect(o.currency, unittest.equals('foo')); |
| 461 unittest.expect(o.name, unittest.equals('foo')); | 461 unittest.expect(o.name, unittest.equals('foo')); |
| 462 unittest.expect(o.type, unittest.equals('foo')); | 462 unittest.expect(o.type, unittest.equals('foo')); |
| 463 } | 463 } |
| 464 buildCounterAdsenseReportsGenerateResponseHeaders--; | 464 buildCounterAdsenseReportsGenerateResponseHeaders--; |
| 465 } | 465 } |
| 466 | 466 |
| 467 buildUnnamed515() { | 467 buildUnnamed846() { |
| 468 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); | 468 var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); |
| 469 o.add(buildAdsenseReportsGenerateResponseHeaders()); | 469 o.add(buildAdsenseReportsGenerateResponseHeaders()); |
| 470 o.add(buildAdsenseReportsGenerateResponseHeaders()); | 470 o.add(buildAdsenseReportsGenerateResponseHeaders()); |
| 471 return o; | 471 return o; |
| 472 } | 472 } |
| 473 | 473 |
| 474 checkUnnamed515(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { | 474 checkUnnamed846(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { |
| 475 unittest.expect(o, unittest.hasLength(2)); | 475 unittest.expect(o, unittest.hasLength(2)); |
| 476 checkAdsenseReportsGenerateResponseHeaders(o[0]); | 476 checkAdsenseReportsGenerateResponseHeaders(o[0]); |
| 477 checkAdsenseReportsGenerateResponseHeaders(o[1]); | 477 checkAdsenseReportsGenerateResponseHeaders(o[1]); |
| 478 } | 478 } |
| 479 | 479 |
| 480 buildUnnamed516() { | 480 buildUnnamed847() { |
| 481 var o = new core.List<core.String>(); | 481 var o = new core.List<core.String>(); |
| 482 o.add("foo"); | 482 o.add("foo"); |
| 483 o.add("foo"); | 483 o.add("foo"); |
| 484 return o; | 484 return o; |
| 485 } | 485 } |
| 486 | 486 |
| 487 checkUnnamed516(core.List<core.String> o) { | 487 checkUnnamed847(core.List<core.String> o) { |
| 488 unittest.expect(o, unittest.hasLength(2)); | 488 unittest.expect(o, unittest.hasLength(2)); |
| 489 unittest.expect(o[0], unittest.equals('foo')); | 489 unittest.expect(o[0], unittest.equals('foo')); |
| 490 unittest.expect(o[1], unittest.equals('foo')); | 490 unittest.expect(o[1], unittest.equals('foo')); |
| 491 } | 491 } |
| 492 | 492 |
| 493 buildUnnamed517() { | 493 buildUnnamed848() { |
| 494 var o = new core.List<core.List<core.String>>(); | 494 var o = new core.List<core.List<core.String>>(); |
| 495 o.add(buildUnnamed516()); | 495 o.add(buildUnnamed847()); |
| 496 o.add(buildUnnamed516()); | 496 o.add(buildUnnamed847()); |
| 497 return o; | 497 return o; |
| 498 } | 498 } |
| 499 | 499 |
| 500 checkUnnamed517(core.List<core.List<core.String>> o) { | 500 checkUnnamed848(core.List<core.List<core.String>> o) { |
| 501 unittest.expect(o, unittest.hasLength(2)); | 501 unittest.expect(o, unittest.hasLength(2)); |
| 502 checkUnnamed516(o[0]); | 502 checkUnnamed847(o[0]); |
| 503 checkUnnamed516(o[1]); | 503 checkUnnamed847(o[1]); |
| 504 } | 504 } |
| 505 | 505 |
| 506 buildUnnamed518() { | 506 buildUnnamed849() { |
| 507 var o = new core.List<core.String>(); | 507 var o = new core.List<core.String>(); |
| 508 o.add("foo"); | 508 o.add("foo"); |
| 509 o.add("foo"); | 509 o.add("foo"); |
| 510 return o; | 510 return o; |
| 511 } | 511 } |
| 512 | 512 |
| 513 checkUnnamed518(core.List<core.String> o) { | 513 checkUnnamed849(core.List<core.String> o) { |
| 514 unittest.expect(o, unittest.hasLength(2)); | 514 unittest.expect(o, unittest.hasLength(2)); |
| 515 unittest.expect(o[0], unittest.equals('foo')); | 515 unittest.expect(o[0], unittest.equals('foo')); |
| 516 unittest.expect(o[1], unittest.equals('foo')); | 516 unittest.expect(o[1], unittest.equals('foo')); |
| 517 } | 517 } |
| 518 | 518 |
| 519 buildUnnamed519() { | 519 buildUnnamed850() { |
| 520 var o = new core.List<core.String>(); | 520 var o = new core.List<core.String>(); |
| 521 o.add("foo"); | 521 o.add("foo"); |
| 522 o.add("foo"); | 522 o.add("foo"); |
| 523 return o; | 523 return o; |
| 524 } | 524 } |
| 525 | 525 |
| 526 checkUnnamed519(core.List<core.String> o) { | 526 checkUnnamed850(core.List<core.String> o) { |
| 527 unittest.expect(o, unittest.hasLength(2)); | 527 unittest.expect(o, unittest.hasLength(2)); |
| 528 unittest.expect(o[0], unittest.equals('foo')); | 528 unittest.expect(o[0], unittest.equals('foo')); |
| 529 unittest.expect(o[1], unittest.equals('foo')); | 529 unittest.expect(o[1], unittest.equals('foo')); |
| 530 } | 530 } |
| 531 | 531 |
| 532 core.int buildCounterAdsenseReportsGenerateResponse = 0; | 532 core.int buildCounterAdsenseReportsGenerateResponse = 0; |
| 533 buildAdsenseReportsGenerateResponse() { | 533 buildAdsenseReportsGenerateResponse() { |
| 534 var o = new api.AdsenseReportsGenerateResponse(); | 534 var o = new api.AdsenseReportsGenerateResponse(); |
| 535 buildCounterAdsenseReportsGenerateResponse++; | 535 buildCounterAdsenseReportsGenerateResponse++; |
| 536 if (buildCounterAdsenseReportsGenerateResponse < 3) { | 536 if (buildCounterAdsenseReportsGenerateResponse < 3) { |
| 537 o.averages = buildUnnamed514(); | 537 o.averages = buildUnnamed845(); |
| 538 o.endDate = "foo"; | 538 o.endDate = "foo"; |
| 539 o.headers = buildUnnamed515(); | 539 o.headers = buildUnnamed846(); |
| 540 o.kind = "foo"; | 540 o.kind = "foo"; |
| 541 o.rows = buildUnnamed517(); | 541 o.rows = buildUnnamed848(); |
| 542 o.startDate = "foo"; | 542 o.startDate = "foo"; |
| 543 o.totalMatchedRows = "foo"; | 543 o.totalMatchedRows = "foo"; |
| 544 o.totals = buildUnnamed518(); | 544 o.totals = buildUnnamed849(); |
| 545 o.warnings = buildUnnamed519(); | 545 o.warnings = buildUnnamed850(); |
| 546 } | 546 } |
| 547 buildCounterAdsenseReportsGenerateResponse--; | 547 buildCounterAdsenseReportsGenerateResponse--; |
| 548 return o; | 548 return o; |
| 549 } | 549 } |
| 550 | 550 |
| 551 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { | 551 checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { |
| 552 buildCounterAdsenseReportsGenerateResponse++; | 552 buildCounterAdsenseReportsGenerateResponse++; |
| 553 if (buildCounterAdsenseReportsGenerateResponse < 3) { | 553 if (buildCounterAdsenseReportsGenerateResponse < 3) { |
| 554 checkUnnamed514(o.averages); | 554 checkUnnamed845(o.averages); |
| 555 unittest.expect(o.endDate, unittest.equals('foo')); | 555 unittest.expect(o.endDate, unittest.equals('foo')); |
| 556 checkUnnamed515(o.headers); | 556 checkUnnamed846(o.headers); |
| 557 unittest.expect(o.kind, unittest.equals('foo')); | 557 unittest.expect(o.kind, unittest.equals('foo')); |
| 558 checkUnnamed517(o.rows); | 558 checkUnnamed848(o.rows); |
| 559 unittest.expect(o.startDate, unittest.equals('foo')); | 559 unittest.expect(o.startDate, unittest.equals('foo')); |
| 560 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 560 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
| 561 checkUnnamed518(o.totals); | 561 checkUnnamed849(o.totals); |
| 562 checkUnnamed519(o.warnings); | 562 checkUnnamed850(o.warnings); |
| 563 } | 563 } |
| 564 buildCounterAdsenseReportsGenerateResponse--; | 564 buildCounterAdsenseReportsGenerateResponse--; |
| 565 } | 565 } |
| 566 | 566 |
| 567 core.int buildCounterAlert = 0; | 567 core.int buildCounterAlert = 0; |
| 568 buildAlert() { | 568 buildAlert() { |
| 569 var o = new api.Alert(); | 569 var o = new api.Alert(); |
| 570 buildCounterAlert++; | 570 buildCounterAlert++; |
| 571 if (buildCounterAlert < 3) { | 571 if (buildCounterAlert < 3) { |
| 572 o.id = "foo"; | 572 o.id = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 586 unittest.expect(o.id, unittest.equals('foo')); | 586 unittest.expect(o.id, unittest.equals('foo')); |
| 587 unittest.expect(o.isDismissible, unittest.isTrue); | 587 unittest.expect(o.isDismissible, unittest.isTrue); |
| 588 unittest.expect(o.kind, unittest.equals('foo')); | 588 unittest.expect(o.kind, unittest.equals('foo')); |
| 589 unittest.expect(o.message, unittest.equals('foo')); | 589 unittest.expect(o.message, unittest.equals('foo')); |
| 590 unittest.expect(o.severity, unittest.equals('foo')); | 590 unittest.expect(o.severity, unittest.equals('foo')); |
| 591 unittest.expect(o.type, unittest.equals('foo')); | 591 unittest.expect(o.type, unittest.equals('foo')); |
| 592 } | 592 } |
| 593 buildCounterAlert--; | 593 buildCounterAlert--; |
| 594 } | 594 } |
| 595 | 595 |
| 596 buildUnnamed520() { | 596 buildUnnamed851() { |
| 597 var o = new core.List<api.Alert>(); | 597 var o = new core.List<api.Alert>(); |
| 598 o.add(buildAlert()); | 598 o.add(buildAlert()); |
| 599 o.add(buildAlert()); | 599 o.add(buildAlert()); |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkUnnamed520(core.List<api.Alert> o) { | 603 checkUnnamed851(core.List<api.Alert> o) { |
| 604 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
| 605 checkAlert(o[0]); | 605 checkAlert(o[0]); |
| 606 checkAlert(o[1]); | 606 checkAlert(o[1]); |
| 607 } | 607 } |
| 608 | 608 |
| 609 core.int buildCounterAlerts = 0; | 609 core.int buildCounterAlerts = 0; |
| 610 buildAlerts() { | 610 buildAlerts() { |
| 611 var o = new api.Alerts(); | 611 var o = new api.Alerts(); |
| 612 buildCounterAlerts++; | 612 buildCounterAlerts++; |
| 613 if (buildCounterAlerts < 3) { | 613 if (buildCounterAlerts < 3) { |
| 614 o.items = buildUnnamed520(); | 614 o.items = buildUnnamed851(); |
| 615 o.kind = "foo"; | 615 o.kind = "foo"; |
| 616 } | 616 } |
| 617 buildCounterAlerts--; | 617 buildCounterAlerts--; |
| 618 return o; | 618 return o; |
| 619 } | 619 } |
| 620 | 620 |
| 621 checkAlerts(api.Alerts o) { | 621 checkAlerts(api.Alerts o) { |
| 622 buildCounterAlerts++; | 622 buildCounterAlerts++; |
| 623 if (buildCounterAlerts < 3) { | 623 if (buildCounterAlerts < 3) { |
| 624 checkUnnamed520(o.items); | 624 checkUnnamed851(o.items); |
| 625 unittest.expect(o.kind, unittest.equals('foo')); | 625 unittest.expect(o.kind, unittest.equals('foo')); |
| 626 } | 626 } |
| 627 buildCounterAlerts--; | 627 buildCounterAlerts--; |
| 628 } | 628 } |
| 629 | 629 |
| 630 core.int buildCounterCustomChannelTargetingInfo = 0; | 630 core.int buildCounterCustomChannelTargetingInfo = 0; |
| 631 buildCustomChannelTargetingInfo() { | 631 buildCustomChannelTargetingInfo() { |
| 632 var o = new api.CustomChannelTargetingInfo(); | 632 var o = new api.CustomChannelTargetingInfo(); |
| 633 buildCounterCustomChannelTargetingInfo++; | 633 buildCounterCustomChannelTargetingInfo++; |
| 634 if (buildCounterCustomChannelTargetingInfo < 3) { | 634 if (buildCounterCustomChannelTargetingInfo < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 if (buildCounterCustomChannel < 3) { | 672 if (buildCounterCustomChannel < 3) { |
| 673 unittest.expect(o.code, unittest.equals('foo')); | 673 unittest.expect(o.code, unittest.equals('foo')); |
| 674 unittest.expect(o.id, unittest.equals('foo')); | 674 unittest.expect(o.id, unittest.equals('foo')); |
| 675 unittest.expect(o.kind, unittest.equals('foo')); | 675 unittest.expect(o.kind, unittest.equals('foo')); |
| 676 unittest.expect(o.name, unittest.equals('foo')); | 676 unittest.expect(o.name, unittest.equals('foo')); |
| 677 checkCustomChannelTargetingInfo(o.targetingInfo); | 677 checkCustomChannelTargetingInfo(o.targetingInfo); |
| 678 } | 678 } |
| 679 buildCounterCustomChannel--; | 679 buildCounterCustomChannel--; |
| 680 } | 680 } |
| 681 | 681 |
| 682 buildUnnamed521() { | 682 buildUnnamed852() { |
| 683 var o = new core.List<api.CustomChannel>(); | 683 var o = new core.List<api.CustomChannel>(); |
| 684 o.add(buildCustomChannel()); | 684 o.add(buildCustomChannel()); |
| 685 o.add(buildCustomChannel()); | 685 o.add(buildCustomChannel()); |
| 686 return o; | 686 return o; |
| 687 } | 687 } |
| 688 | 688 |
| 689 checkUnnamed521(core.List<api.CustomChannel> o) { | 689 checkUnnamed852(core.List<api.CustomChannel> o) { |
| 690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
| 691 checkCustomChannel(o[0]); | 691 checkCustomChannel(o[0]); |
| 692 checkCustomChannel(o[1]); | 692 checkCustomChannel(o[1]); |
| 693 } | 693 } |
| 694 | 694 |
| 695 core.int buildCounterCustomChannels = 0; | 695 core.int buildCounterCustomChannels = 0; |
| 696 buildCustomChannels() { | 696 buildCustomChannels() { |
| 697 var o = new api.CustomChannels(); | 697 var o = new api.CustomChannels(); |
| 698 buildCounterCustomChannels++; | 698 buildCounterCustomChannels++; |
| 699 if (buildCounterCustomChannels < 3) { | 699 if (buildCounterCustomChannels < 3) { |
| 700 o.etag = "foo"; | 700 o.etag = "foo"; |
| 701 o.items = buildUnnamed521(); | 701 o.items = buildUnnamed852(); |
| 702 o.kind = "foo"; | 702 o.kind = "foo"; |
| 703 o.nextPageToken = "foo"; | 703 o.nextPageToken = "foo"; |
| 704 } | 704 } |
| 705 buildCounterCustomChannels--; | 705 buildCounterCustomChannels--; |
| 706 return o; | 706 return o; |
| 707 } | 707 } |
| 708 | 708 |
| 709 checkCustomChannels(api.CustomChannels o) { | 709 checkCustomChannels(api.CustomChannels o) { |
| 710 buildCounterCustomChannels++; | 710 buildCounterCustomChannels++; |
| 711 if (buildCounterCustomChannels < 3) { | 711 if (buildCounterCustomChannels < 3) { |
| 712 unittest.expect(o.etag, unittest.equals('foo')); | 712 unittest.expect(o.etag, unittest.equals('foo')); |
| 713 checkUnnamed521(o.items); | 713 checkUnnamed852(o.items); |
| 714 unittest.expect(o.kind, unittest.equals('foo')); | 714 unittest.expect(o.kind, unittest.equals('foo')); |
| 715 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 715 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 716 } | 716 } |
| 717 buildCounterCustomChannels--; | 717 buildCounterCustomChannels--; |
| 718 } | 718 } |
| 719 | 719 |
| 720 buildUnnamed522() { | 720 buildUnnamed853() { |
| 721 var o = new core.List<api.ReportingMetadataEntry>(); | 721 var o = new core.List<api.ReportingMetadataEntry>(); |
| 722 o.add(buildReportingMetadataEntry()); | 722 o.add(buildReportingMetadataEntry()); |
| 723 o.add(buildReportingMetadataEntry()); | 723 o.add(buildReportingMetadataEntry()); |
| 724 return o; | 724 return o; |
| 725 } | 725 } |
| 726 | 726 |
| 727 checkUnnamed522(core.List<api.ReportingMetadataEntry> o) { | 727 checkUnnamed853(core.List<api.ReportingMetadataEntry> o) { |
| 728 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
| 729 checkReportingMetadataEntry(o[0]); | 729 checkReportingMetadataEntry(o[0]); |
| 730 checkReportingMetadataEntry(o[1]); | 730 checkReportingMetadataEntry(o[1]); |
| 731 } | 731 } |
| 732 | 732 |
| 733 core.int buildCounterMetadata = 0; | 733 core.int buildCounterMetadata = 0; |
| 734 buildMetadata() { | 734 buildMetadata() { |
| 735 var o = new api.Metadata(); | 735 var o = new api.Metadata(); |
| 736 buildCounterMetadata++; | 736 buildCounterMetadata++; |
| 737 if (buildCounterMetadata < 3) { | 737 if (buildCounterMetadata < 3) { |
| 738 o.items = buildUnnamed522(); | 738 o.items = buildUnnamed853(); |
| 739 o.kind = "foo"; | 739 o.kind = "foo"; |
| 740 } | 740 } |
| 741 buildCounterMetadata--; | 741 buildCounterMetadata--; |
| 742 return o; | 742 return o; |
| 743 } | 743 } |
| 744 | 744 |
| 745 checkMetadata(api.Metadata o) { | 745 checkMetadata(api.Metadata o) { |
| 746 buildCounterMetadata++; | 746 buildCounterMetadata++; |
| 747 if (buildCounterMetadata < 3) { | 747 if (buildCounterMetadata < 3) { |
| 748 checkUnnamed522(o.items); | 748 checkUnnamed853(o.items); |
| 749 unittest.expect(o.kind, unittest.equals('foo')); | 749 unittest.expect(o.kind, unittest.equals('foo')); |
| 750 } | 750 } |
| 751 buildCounterMetadata--; | 751 buildCounterMetadata--; |
| 752 } | 752 } |
| 753 | 753 |
| 754 core.int buildCounterPayment = 0; | 754 core.int buildCounterPayment = 0; |
| 755 buildPayment() { | 755 buildPayment() { |
| 756 var o = new api.Payment(); | 756 var o = new api.Payment(); |
| 757 buildCounterPayment++; | 757 buildCounterPayment++; |
| 758 if (buildCounterPayment < 3) { | 758 if (buildCounterPayment < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 771 if (buildCounterPayment < 3) { | 771 if (buildCounterPayment < 3) { |
| 772 unittest.expect(o.id, unittest.equals('foo')); | 772 unittest.expect(o.id, unittest.equals('foo')); |
| 773 unittest.expect(o.kind, unittest.equals('foo')); | 773 unittest.expect(o.kind, unittest.equals('foo')); |
| 774 unittest.expect(o.paymentAmount, unittest.equals('foo')); | 774 unittest.expect(o.paymentAmount, unittest.equals('foo')); |
| 775 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo')); | 775 unittest.expect(o.paymentAmountCurrencyCode, unittest.equals('foo')); |
| 776 unittest.expect(o.paymentDate, unittest.equals('foo')); | 776 unittest.expect(o.paymentDate, unittest.equals('foo')); |
| 777 } | 777 } |
| 778 buildCounterPayment--; | 778 buildCounterPayment--; |
| 779 } | 779 } |
| 780 | 780 |
| 781 buildUnnamed523() { | 781 buildUnnamed854() { |
| 782 var o = new core.List<api.Payment>(); | 782 var o = new core.List<api.Payment>(); |
| 783 o.add(buildPayment()); | 783 o.add(buildPayment()); |
| 784 o.add(buildPayment()); | 784 o.add(buildPayment()); |
| 785 return o; | 785 return o; |
| 786 } | 786 } |
| 787 | 787 |
| 788 checkUnnamed523(core.List<api.Payment> o) { | 788 checkUnnamed854(core.List<api.Payment> o) { |
| 789 unittest.expect(o, unittest.hasLength(2)); | 789 unittest.expect(o, unittest.hasLength(2)); |
| 790 checkPayment(o[0]); | 790 checkPayment(o[0]); |
| 791 checkPayment(o[1]); | 791 checkPayment(o[1]); |
| 792 } | 792 } |
| 793 | 793 |
| 794 core.int buildCounterPayments = 0; | 794 core.int buildCounterPayments = 0; |
| 795 buildPayments() { | 795 buildPayments() { |
| 796 var o = new api.Payments(); | 796 var o = new api.Payments(); |
| 797 buildCounterPayments++; | 797 buildCounterPayments++; |
| 798 if (buildCounterPayments < 3) { | 798 if (buildCounterPayments < 3) { |
| 799 o.items = buildUnnamed523(); | 799 o.items = buildUnnamed854(); |
| 800 o.kind = "foo"; | 800 o.kind = "foo"; |
| 801 } | 801 } |
| 802 buildCounterPayments--; | 802 buildCounterPayments--; |
| 803 return o; | 803 return o; |
| 804 } | 804 } |
| 805 | 805 |
| 806 checkPayments(api.Payments o) { | 806 checkPayments(api.Payments o) { |
| 807 buildCounterPayments++; | 807 buildCounterPayments++; |
| 808 if (buildCounterPayments < 3) { | 808 if (buildCounterPayments < 3) { |
| 809 checkUnnamed523(o.items); | 809 checkUnnamed854(o.items); |
| 810 unittest.expect(o.kind, unittest.equals('foo')); | 810 unittest.expect(o.kind, unittest.equals('foo')); |
| 811 } | 811 } |
| 812 buildCounterPayments--; | 812 buildCounterPayments--; |
| 813 } | 813 } |
| 814 | 814 |
| 815 buildUnnamed524() { | 815 buildUnnamed855() { |
| 816 var o = new core.List<core.String>(); | 816 var o = new core.List<core.String>(); |
| 817 o.add("foo"); | 817 o.add("foo"); |
| 818 o.add("foo"); | 818 o.add("foo"); |
| 819 return o; | 819 return o; |
| 820 } | 820 } |
| 821 | 821 |
| 822 checkUnnamed524(core.List<core.String> o) { | 822 checkUnnamed855(core.List<core.String> o) { |
| 823 unittest.expect(o, unittest.hasLength(2)); | 823 unittest.expect(o, unittest.hasLength(2)); |
| 824 unittest.expect(o[0], unittest.equals('foo')); | 824 unittest.expect(o[0], unittest.equals('foo')); |
| 825 unittest.expect(o[1], unittest.equals('foo')); | 825 unittest.expect(o[1], unittest.equals('foo')); |
| 826 } | 826 } |
| 827 | 827 |
| 828 buildUnnamed525() { | 828 buildUnnamed856() { |
| 829 var o = new core.List<core.String>(); | 829 var o = new core.List<core.String>(); |
| 830 o.add("foo"); | 830 o.add("foo"); |
| 831 o.add("foo"); | 831 o.add("foo"); |
| 832 return o; | 832 return o; |
| 833 } | 833 } |
| 834 | 834 |
| 835 checkUnnamed525(core.List<core.String> o) { | 835 checkUnnamed856(core.List<core.String> o) { |
| 836 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
| 837 unittest.expect(o[0], unittest.equals('foo')); | 837 unittest.expect(o[0], unittest.equals('foo')); |
| 838 unittest.expect(o[1], unittest.equals('foo')); | 838 unittest.expect(o[1], unittest.equals('foo')); |
| 839 } | 839 } |
| 840 | 840 |
| 841 buildUnnamed526() { | 841 buildUnnamed857() { |
| 842 var o = new core.List<core.String>(); | 842 var o = new core.List<core.String>(); |
| 843 o.add("foo"); | 843 o.add("foo"); |
| 844 o.add("foo"); | 844 o.add("foo"); |
| 845 return o; | 845 return o; |
| 846 } | 846 } |
| 847 | 847 |
| 848 checkUnnamed526(core.List<core.String> o) { | 848 checkUnnamed857(core.List<core.String> o) { |
| 849 unittest.expect(o, unittest.hasLength(2)); | 849 unittest.expect(o, unittest.hasLength(2)); |
| 850 unittest.expect(o[0], unittest.equals('foo')); | 850 unittest.expect(o[0], unittest.equals('foo')); |
| 851 unittest.expect(o[1], unittest.equals('foo')); | 851 unittest.expect(o[1], unittest.equals('foo')); |
| 852 } | 852 } |
| 853 | 853 |
| 854 buildUnnamed527() { | 854 buildUnnamed858() { |
| 855 var o = new core.List<core.String>(); | 855 var o = new core.List<core.String>(); |
| 856 o.add("foo"); | 856 o.add("foo"); |
| 857 o.add("foo"); | 857 o.add("foo"); |
| 858 return o; | 858 return o; |
| 859 } | 859 } |
| 860 | 860 |
| 861 checkUnnamed527(core.List<core.String> o) { | 861 checkUnnamed858(core.List<core.String> o) { |
| 862 unittest.expect(o, unittest.hasLength(2)); | 862 unittest.expect(o, unittest.hasLength(2)); |
| 863 unittest.expect(o[0], unittest.equals('foo')); | 863 unittest.expect(o[0], unittest.equals('foo')); |
| 864 unittest.expect(o[1], unittest.equals('foo')); | 864 unittest.expect(o[1], unittest.equals('foo')); |
| 865 } | 865 } |
| 866 | 866 |
| 867 buildUnnamed528() { | 867 buildUnnamed859() { |
| 868 var o = new core.List<core.String>(); | 868 var o = new core.List<core.String>(); |
| 869 o.add("foo"); | 869 o.add("foo"); |
| 870 o.add("foo"); | 870 o.add("foo"); |
| 871 return o; | 871 return o; |
| 872 } | 872 } |
| 873 | 873 |
| 874 checkUnnamed528(core.List<core.String> o) { | 874 checkUnnamed859(core.List<core.String> o) { |
| 875 unittest.expect(o, unittest.hasLength(2)); | 875 unittest.expect(o, unittest.hasLength(2)); |
| 876 unittest.expect(o[0], unittest.equals('foo')); | 876 unittest.expect(o[0], unittest.equals('foo')); |
| 877 unittest.expect(o[1], unittest.equals('foo')); | 877 unittest.expect(o[1], unittest.equals('foo')); |
| 878 } | 878 } |
| 879 | 879 |
| 880 core.int buildCounterReportingMetadataEntry = 0; | 880 core.int buildCounterReportingMetadataEntry = 0; |
| 881 buildReportingMetadataEntry() { | 881 buildReportingMetadataEntry() { |
| 882 var o = new api.ReportingMetadataEntry(); | 882 var o = new api.ReportingMetadataEntry(); |
| 883 buildCounterReportingMetadataEntry++; | 883 buildCounterReportingMetadataEntry++; |
| 884 if (buildCounterReportingMetadataEntry < 3) { | 884 if (buildCounterReportingMetadataEntry < 3) { |
| 885 o.compatibleDimensions = buildUnnamed524(); | 885 o.compatibleDimensions = buildUnnamed855(); |
| 886 o.compatibleMetrics = buildUnnamed525(); | 886 o.compatibleMetrics = buildUnnamed856(); |
| 887 o.id = "foo"; | 887 o.id = "foo"; |
| 888 o.kind = "foo"; | 888 o.kind = "foo"; |
| 889 o.requiredDimensions = buildUnnamed526(); | 889 o.requiredDimensions = buildUnnamed857(); |
| 890 o.requiredMetrics = buildUnnamed527(); | 890 o.requiredMetrics = buildUnnamed858(); |
| 891 o.supportedProducts = buildUnnamed528(); | 891 o.supportedProducts = buildUnnamed859(); |
| 892 } | 892 } |
| 893 buildCounterReportingMetadataEntry--; | 893 buildCounterReportingMetadataEntry--; |
| 894 return o; | 894 return o; |
| 895 } | 895 } |
| 896 | 896 |
| 897 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 897 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
| 898 buildCounterReportingMetadataEntry++; | 898 buildCounterReportingMetadataEntry++; |
| 899 if (buildCounterReportingMetadataEntry < 3) { | 899 if (buildCounterReportingMetadataEntry < 3) { |
| 900 checkUnnamed524(o.compatibleDimensions); | 900 checkUnnamed855(o.compatibleDimensions); |
| 901 checkUnnamed525(o.compatibleMetrics); | 901 checkUnnamed856(o.compatibleMetrics); |
| 902 unittest.expect(o.id, unittest.equals('foo')); | 902 unittest.expect(o.id, unittest.equals('foo')); |
| 903 unittest.expect(o.kind, unittest.equals('foo')); | 903 unittest.expect(o.kind, unittest.equals('foo')); |
| 904 checkUnnamed526(o.requiredDimensions); | 904 checkUnnamed857(o.requiredDimensions); |
| 905 checkUnnamed527(o.requiredMetrics); | 905 checkUnnamed858(o.requiredMetrics); |
| 906 checkUnnamed528(o.supportedProducts); | 906 checkUnnamed859(o.supportedProducts); |
| 907 } | 907 } |
| 908 buildCounterReportingMetadataEntry--; | 908 buildCounterReportingMetadataEntry--; |
| 909 } | 909 } |
| 910 | 910 |
| 911 core.int buildCounterSavedAdStyle = 0; | 911 core.int buildCounterSavedAdStyle = 0; |
| 912 buildSavedAdStyle() { | 912 buildSavedAdStyle() { |
| 913 var o = new api.SavedAdStyle(); | 913 var o = new api.SavedAdStyle(); |
| 914 buildCounterSavedAdStyle++; | 914 buildCounterSavedAdStyle++; |
| 915 if (buildCounterSavedAdStyle < 3) { | 915 if (buildCounterSavedAdStyle < 3) { |
| 916 o.adStyle = buildAdStyle(); | 916 o.adStyle = buildAdStyle(); |
| 917 o.id = "foo"; | 917 o.id = "foo"; |
| 918 o.kind = "foo"; | 918 o.kind = "foo"; |
| 919 o.name = "foo"; | 919 o.name = "foo"; |
| 920 } | 920 } |
| 921 buildCounterSavedAdStyle--; | 921 buildCounterSavedAdStyle--; |
| 922 return o; | 922 return o; |
| 923 } | 923 } |
| 924 | 924 |
| 925 checkSavedAdStyle(api.SavedAdStyle o) { | 925 checkSavedAdStyle(api.SavedAdStyle o) { |
| 926 buildCounterSavedAdStyle++; | 926 buildCounterSavedAdStyle++; |
| 927 if (buildCounterSavedAdStyle < 3) { | 927 if (buildCounterSavedAdStyle < 3) { |
| 928 checkAdStyle(o.adStyle); | 928 checkAdStyle(o.adStyle); |
| 929 unittest.expect(o.id, unittest.equals('foo')); | 929 unittest.expect(o.id, unittest.equals('foo')); |
| 930 unittest.expect(o.kind, unittest.equals('foo')); | 930 unittest.expect(o.kind, unittest.equals('foo')); |
| 931 unittest.expect(o.name, unittest.equals('foo')); | 931 unittest.expect(o.name, unittest.equals('foo')); |
| 932 } | 932 } |
| 933 buildCounterSavedAdStyle--; | 933 buildCounterSavedAdStyle--; |
| 934 } | 934 } |
| 935 | 935 |
| 936 buildUnnamed529() { | 936 buildUnnamed860() { |
| 937 var o = new core.List<api.SavedAdStyle>(); | 937 var o = new core.List<api.SavedAdStyle>(); |
| 938 o.add(buildSavedAdStyle()); | 938 o.add(buildSavedAdStyle()); |
| 939 o.add(buildSavedAdStyle()); | 939 o.add(buildSavedAdStyle()); |
| 940 return o; | 940 return o; |
| 941 } | 941 } |
| 942 | 942 |
| 943 checkUnnamed529(core.List<api.SavedAdStyle> o) { | 943 checkUnnamed860(core.List<api.SavedAdStyle> o) { |
| 944 unittest.expect(o, unittest.hasLength(2)); | 944 unittest.expect(o, unittest.hasLength(2)); |
| 945 checkSavedAdStyle(o[0]); | 945 checkSavedAdStyle(o[0]); |
| 946 checkSavedAdStyle(o[1]); | 946 checkSavedAdStyle(o[1]); |
| 947 } | 947 } |
| 948 | 948 |
| 949 core.int buildCounterSavedAdStyles = 0; | 949 core.int buildCounterSavedAdStyles = 0; |
| 950 buildSavedAdStyles() { | 950 buildSavedAdStyles() { |
| 951 var o = new api.SavedAdStyles(); | 951 var o = new api.SavedAdStyles(); |
| 952 buildCounterSavedAdStyles++; | 952 buildCounterSavedAdStyles++; |
| 953 if (buildCounterSavedAdStyles < 3) { | 953 if (buildCounterSavedAdStyles < 3) { |
| 954 o.etag = "foo"; | 954 o.etag = "foo"; |
| 955 o.items = buildUnnamed529(); | 955 o.items = buildUnnamed860(); |
| 956 o.kind = "foo"; | 956 o.kind = "foo"; |
| 957 o.nextPageToken = "foo"; | 957 o.nextPageToken = "foo"; |
| 958 } | 958 } |
| 959 buildCounterSavedAdStyles--; | 959 buildCounterSavedAdStyles--; |
| 960 return o; | 960 return o; |
| 961 } | 961 } |
| 962 | 962 |
| 963 checkSavedAdStyles(api.SavedAdStyles o) { | 963 checkSavedAdStyles(api.SavedAdStyles o) { |
| 964 buildCounterSavedAdStyles++; | 964 buildCounterSavedAdStyles++; |
| 965 if (buildCounterSavedAdStyles < 3) { | 965 if (buildCounterSavedAdStyles < 3) { |
| 966 unittest.expect(o.etag, unittest.equals('foo')); | 966 unittest.expect(o.etag, unittest.equals('foo')); |
| 967 checkUnnamed529(o.items); | 967 checkUnnamed860(o.items); |
| 968 unittest.expect(o.kind, unittest.equals('foo')); | 968 unittest.expect(o.kind, unittest.equals('foo')); |
| 969 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 969 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 970 } | 970 } |
| 971 buildCounterSavedAdStyles--; | 971 buildCounterSavedAdStyles--; |
| 972 } | 972 } |
| 973 | 973 |
| 974 core.int buildCounterSavedReport = 0; | 974 core.int buildCounterSavedReport = 0; |
| 975 buildSavedReport() { | 975 buildSavedReport() { |
| 976 var o = new api.SavedReport(); | 976 var o = new api.SavedReport(); |
| 977 buildCounterSavedReport++; | 977 buildCounterSavedReport++; |
| 978 if (buildCounterSavedReport < 3) { | 978 if (buildCounterSavedReport < 3) { |
| 979 o.id = "foo"; | 979 o.id = "foo"; |
| 980 o.kind = "foo"; | 980 o.kind = "foo"; |
| 981 o.name = "foo"; | 981 o.name = "foo"; |
| 982 } | 982 } |
| 983 buildCounterSavedReport--; | 983 buildCounterSavedReport--; |
| 984 return o; | 984 return o; |
| 985 } | 985 } |
| 986 | 986 |
| 987 checkSavedReport(api.SavedReport o) { | 987 checkSavedReport(api.SavedReport o) { |
| 988 buildCounterSavedReport++; | 988 buildCounterSavedReport++; |
| 989 if (buildCounterSavedReport < 3) { | 989 if (buildCounterSavedReport < 3) { |
| 990 unittest.expect(o.id, unittest.equals('foo')); | 990 unittest.expect(o.id, unittest.equals('foo')); |
| 991 unittest.expect(o.kind, unittest.equals('foo')); | 991 unittest.expect(o.kind, unittest.equals('foo')); |
| 992 unittest.expect(o.name, unittest.equals('foo')); | 992 unittest.expect(o.name, unittest.equals('foo')); |
| 993 } | 993 } |
| 994 buildCounterSavedReport--; | 994 buildCounterSavedReport--; |
| 995 } | 995 } |
| 996 | 996 |
| 997 buildUnnamed530() { | 997 buildUnnamed861() { |
| 998 var o = new core.List<api.SavedReport>(); | 998 var o = new core.List<api.SavedReport>(); |
| 999 o.add(buildSavedReport()); | 999 o.add(buildSavedReport()); |
| 1000 o.add(buildSavedReport()); | 1000 o.add(buildSavedReport()); |
| 1001 return o; | 1001 return o; |
| 1002 } | 1002 } |
| 1003 | 1003 |
| 1004 checkUnnamed530(core.List<api.SavedReport> o) { | 1004 checkUnnamed861(core.List<api.SavedReport> o) { |
| 1005 unittest.expect(o, unittest.hasLength(2)); | 1005 unittest.expect(o, unittest.hasLength(2)); |
| 1006 checkSavedReport(o[0]); | 1006 checkSavedReport(o[0]); |
| 1007 checkSavedReport(o[1]); | 1007 checkSavedReport(o[1]); |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 core.int buildCounterSavedReports = 0; | 1010 core.int buildCounterSavedReports = 0; |
| 1011 buildSavedReports() { | 1011 buildSavedReports() { |
| 1012 var o = new api.SavedReports(); | 1012 var o = new api.SavedReports(); |
| 1013 buildCounterSavedReports++; | 1013 buildCounterSavedReports++; |
| 1014 if (buildCounterSavedReports < 3) { | 1014 if (buildCounterSavedReports < 3) { |
| 1015 o.etag = "foo"; | 1015 o.etag = "foo"; |
| 1016 o.items = buildUnnamed530(); | 1016 o.items = buildUnnamed861(); |
| 1017 o.kind = "foo"; | 1017 o.kind = "foo"; |
| 1018 o.nextPageToken = "foo"; | 1018 o.nextPageToken = "foo"; |
| 1019 } | 1019 } |
| 1020 buildCounterSavedReports--; | 1020 buildCounterSavedReports--; |
| 1021 return o; | 1021 return o; |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 checkSavedReports(api.SavedReports o) { | 1024 checkSavedReports(api.SavedReports o) { |
| 1025 buildCounterSavedReports++; | 1025 buildCounterSavedReports++; |
| 1026 if (buildCounterSavedReports < 3) { | 1026 if (buildCounterSavedReports < 3) { |
| 1027 unittest.expect(o.etag, unittest.equals('foo')); | 1027 unittest.expect(o.etag, unittest.equals('foo')); |
| 1028 checkUnnamed530(o.items); | 1028 checkUnnamed861(o.items); |
| 1029 unittest.expect(o.kind, unittest.equals('foo')); | 1029 unittest.expect(o.kind, unittest.equals('foo')); |
| 1030 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1030 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1031 } | 1031 } |
| 1032 buildCounterSavedReports--; | 1032 buildCounterSavedReports--; |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 core.int buildCounterUrlChannel = 0; | 1035 core.int buildCounterUrlChannel = 0; |
| 1036 buildUrlChannel() { | 1036 buildUrlChannel() { |
| 1037 var o = new api.UrlChannel(); | 1037 var o = new api.UrlChannel(); |
| 1038 buildCounterUrlChannel++; | 1038 buildCounterUrlChannel++; |
| 1039 if (buildCounterUrlChannel < 3) { | 1039 if (buildCounterUrlChannel < 3) { |
| 1040 o.id = "foo"; | 1040 o.id = "foo"; |
| 1041 o.kind = "foo"; | 1041 o.kind = "foo"; |
| 1042 o.urlPattern = "foo"; | 1042 o.urlPattern = "foo"; |
| 1043 } | 1043 } |
| 1044 buildCounterUrlChannel--; | 1044 buildCounterUrlChannel--; |
| 1045 return o; | 1045 return o; |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 checkUrlChannel(api.UrlChannel o) { | 1048 checkUrlChannel(api.UrlChannel o) { |
| 1049 buildCounterUrlChannel++; | 1049 buildCounterUrlChannel++; |
| 1050 if (buildCounterUrlChannel < 3) { | 1050 if (buildCounterUrlChannel < 3) { |
| 1051 unittest.expect(o.id, unittest.equals('foo')); | 1051 unittest.expect(o.id, unittest.equals('foo')); |
| 1052 unittest.expect(o.kind, unittest.equals('foo')); | 1052 unittest.expect(o.kind, unittest.equals('foo')); |
| 1053 unittest.expect(o.urlPattern, unittest.equals('foo')); | 1053 unittest.expect(o.urlPattern, unittest.equals('foo')); |
| 1054 } | 1054 } |
| 1055 buildCounterUrlChannel--; | 1055 buildCounterUrlChannel--; |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 buildUnnamed531() { | 1058 buildUnnamed862() { |
| 1059 var o = new core.List<api.UrlChannel>(); | 1059 var o = new core.List<api.UrlChannel>(); |
| 1060 o.add(buildUrlChannel()); | 1060 o.add(buildUrlChannel()); |
| 1061 o.add(buildUrlChannel()); | 1061 o.add(buildUrlChannel()); |
| 1062 return o; | 1062 return o; |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 checkUnnamed531(core.List<api.UrlChannel> o) { | 1065 checkUnnamed862(core.List<api.UrlChannel> o) { |
| 1066 unittest.expect(o, unittest.hasLength(2)); | 1066 unittest.expect(o, unittest.hasLength(2)); |
| 1067 checkUrlChannel(o[0]); | 1067 checkUrlChannel(o[0]); |
| 1068 checkUrlChannel(o[1]); | 1068 checkUrlChannel(o[1]); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 core.int buildCounterUrlChannels = 0; | 1071 core.int buildCounterUrlChannels = 0; |
| 1072 buildUrlChannels() { | 1072 buildUrlChannels() { |
| 1073 var o = new api.UrlChannels(); | 1073 var o = new api.UrlChannels(); |
| 1074 buildCounterUrlChannels++; | 1074 buildCounterUrlChannels++; |
| 1075 if (buildCounterUrlChannels < 3) { | 1075 if (buildCounterUrlChannels < 3) { |
| 1076 o.etag = "foo"; | 1076 o.etag = "foo"; |
| 1077 o.items = buildUnnamed531(); | 1077 o.items = buildUnnamed862(); |
| 1078 o.kind = "foo"; | 1078 o.kind = "foo"; |
| 1079 o.nextPageToken = "foo"; | 1079 o.nextPageToken = "foo"; |
| 1080 } | 1080 } |
| 1081 buildCounterUrlChannels--; | 1081 buildCounterUrlChannels--; |
| 1082 return o; | 1082 return o; |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 checkUrlChannels(api.UrlChannels o) { | 1085 checkUrlChannels(api.UrlChannels o) { |
| 1086 buildCounterUrlChannels++; | 1086 buildCounterUrlChannels++; |
| 1087 if (buildCounterUrlChannels < 3) { | 1087 if (buildCounterUrlChannels < 3) { |
| 1088 unittest.expect(o.etag, unittest.equals('foo')); | 1088 unittest.expect(o.etag, unittest.equals('foo')); |
| 1089 checkUnnamed531(o.items); | 1089 checkUnnamed862(o.items); |
| 1090 unittest.expect(o.kind, unittest.equals('foo')); | 1090 unittest.expect(o.kind, unittest.equals('foo')); |
| 1091 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1091 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1092 } | 1092 } |
| 1093 buildCounterUrlChannels--; | 1093 buildCounterUrlChannels--; |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 buildUnnamed532() { | 1096 buildUnnamed863() { |
| 1097 var o = new core.List<core.String>(); | 1097 var o = new core.List<core.String>(); |
| 1098 o.add("foo"); | 1098 o.add("foo"); |
| 1099 o.add("foo"); | 1099 o.add("foo"); |
| 1100 return o; | 1100 return o; |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 checkUnnamed532(core.List<core.String> o) { | 1103 checkUnnamed863(core.List<core.String> o) { |
| 1104 unittest.expect(o, unittest.hasLength(2)); | 1104 unittest.expect(o, unittest.hasLength(2)); |
| 1105 unittest.expect(o[0], unittest.equals('foo')); | 1105 unittest.expect(o[0], unittest.equals('foo')); |
| 1106 unittest.expect(o[1], unittest.equals('foo')); | 1106 unittest.expect(o[1], unittest.equals('foo')); |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 buildUnnamed533() { | 1109 buildUnnamed864() { |
| 1110 var o = new core.List<core.String>(); | 1110 var o = new core.List<core.String>(); |
| 1111 o.add("foo"); | 1111 o.add("foo"); |
| 1112 o.add("foo"); | 1112 o.add("foo"); |
| 1113 return o; | 1113 return o; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 checkUnnamed533(core.List<core.String> o) { | 1116 checkUnnamed864(core.List<core.String> o) { |
| 1117 unittest.expect(o, unittest.hasLength(2)); | 1117 unittest.expect(o, unittest.hasLength(2)); |
| 1118 unittest.expect(o[0], unittest.equals('foo')); | 1118 unittest.expect(o[0], unittest.equals('foo')); |
| 1119 unittest.expect(o[1], unittest.equals('foo')); | 1119 unittest.expect(o[1], unittest.equals('foo')); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 buildUnnamed534() { | 1122 buildUnnamed865() { |
| 1123 var o = new core.List<core.String>(); | 1123 var o = new core.List<core.String>(); |
| 1124 o.add("foo"); | 1124 o.add("foo"); |
| 1125 o.add("foo"); | 1125 o.add("foo"); |
| 1126 return o; | 1126 return o; |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 checkUnnamed534(core.List<core.String> o) { | 1129 checkUnnamed865(core.List<core.String> o) { |
| 1130 unittest.expect(o, unittest.hasLength(2)); | 1130 unittest.expect(o, unittest.hasLength(2)); |
| 1131 unittest.expect(o[0], unittest.equals('foo')); | 1131 unittest.expect(o[0], unittest.equals('foo')); |
| 1132 unittest.expect(o[1], unittest.equals('foo')); | 1132 unittest.expect(o[1], unittest.equals('foo')); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 buildUnnamed535() { | 1135 buildUnnamed866() { |
| 1136 var o = new core.List<core.String>(); | 1136 var o = new core.List<core.String>(); |
| 1137 o.add("foo"); | 1137 o.add("foo"); |
| 1138 o.add("foo"); | 1138 o.add("foo"); |
| 1139 return o; | 1139 return o; |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 checkUnnamed535(core.List<core.String> o) { | 1142 checkUnnamed866(core.List<core.String> o) { |
| 1143 unittest.expect(o, unittest.hasLength(2)); | 1143 unittest.expect(o, unittest.hasLength(2)); |
| 1144 unittest.expect(o[0], unittest.equals('foo')); | 1144 unittest.expect(o[0], unittest.equals('foo')); |
| 1145 unittest.expect(o[1], unittest.equals('foo')); | 1145 unittest.expect(o[1], unittest.equals('foo')); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 buildUnnamed536() { | 1148 buildUnnamed867() { |
| 1149 var o = new core.List<core.String>(); | 1149 var o = new core.List<core.String>(); |
| 1150 o.add("foo"); | 1150 o.add("foo"); |
| 1151 o.add("foo"); | 1151 o.add("foo"); |
| 1152 return o; | 1152 return o; |
| 1153 } | 1153 } |
| 1154 | 1154 |
| 1155 checkUnnamed536(core.List<core.String> o) { | 1155 checkUnnamed867(core.List<core.String> o) { |
| 1156 unittest.expect(o, unittest.hasLength(2)); | 1156 unittest.expect(o, unittest.hasLength(2)); |
| 1157 unittest.expect(o[0], unittest.equals('foo')); | 1157 unittest.expect(o[0], unittest.equals('foo')); |
| 1158 unittest.expect(o[1], unittest.equals('foo')); | 1158 unittest.expect(o[1], unittest.equals('foo')); |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 buildUnnamed537() { | 1161 buildUnnamed868() { |
| 1162 var o = new core.List<core.String>(); | 1162 var o = new core.List<core.String>(); |
| 1163 o.add("foo"); | 1163 o.add("foo"); |
| 1164 o.add("foo"); | 1164 o.add("foo"); |
| 1165 return o; | 1165 return o; |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 checkUnnamed537(core.List<core.String> o) { | 1168 checkUnnamed868(core.List<core.String> o) { |
| 1169 unittest.expect(o, unittest.hasLength(2)); | 1169 unittest.expect(o, unittest.hasLength(2)); |
| 1170 unittest.expect(o[0], unittest.equals('foo')); | 1170 unittest.expect(o[0], unittest.equals('foo')); |
| 1171 unittest.expect(o[1], unittest.equals('foo')); | 1171 unittest.expect(o[1], unittest.equals('foo')); |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 buildUnnamed538() { | 1174 buildUnnamed869() { |
| 1175 var o = new core.List<core.String>(); | 1175 var o = new core.List<core.String>(); |
| 1176 o.add("foo"); | 1176 o.add("foo"); |
| 1177 o.add("foo"); | 1177 o.add("foo"); |
| 1178 return o; | 1178 return o; |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 checkUnnamed538(core.List<core.String> o) { | 1181 checkUnnamed869(core.List<core.String> o) { |
| 1182 unittest.expect(o, unittest.hasLength(2)); | 1182 unittest.expect(o, unittest.hasLength(2)); |
| 1183 unittest.expect(o[0], unittest.equals('foo')); | 1183 unittest.expect(o[0], unittest.equals('foo')); |
| 1184 unittest.expect(o[1], unittest.equals('foo')); | 1184 unittest.expect(o[1], unittest.equals('foo')); |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 buildUnnamed539() { | 1187 buildUnnamed870() { |
| 1188 var o = new core.List<core.String>(); | 1188 var o = new core.List<core.String>(); |
| 1189 o.add("foo"); | 1189 o.add("foo"); |
| 1190 o.add("foo"); | 1190 o.add("foo"); |
| 1191 return o; | 1191 return o; |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 checkUnnamed539(core.List<core.String> o) { | 1194 checkUnnamed870(core.List<core.String> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1196 unittest.expect(o[0], unittest.equals('foo')); | 1196 unittest.expect(o[0], unittest.equals('foo')); |
| 1197 unittest.expect(o[1], unittest.equals('foo')); | 1197 unittest.expect(o[1], unittest.equals('foo')); |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 buildUnnamed540() { | 1200 buildUnnamed871() { |
| 1201 var o = new core.List<core.String>(); | 1201 var o = new core.List<core.String>(); |
| 1202 o.add("foo"); | 1202 o.add("foo"); |
| 1203 o.add("foo"); | 1203 o.add("foo"); |
| 1204 return o; | 1204 return o; |
| 1205 } | 1205 } |
| 1206 | 1206 |
| 1207 checkUnnamed540(core.List<core.String> o) { | 1207 checkUnnamed871(core.List<core.String> o) { |
| 1208 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
| 1209 unittest.expect(o[0], unittest.equals('foo')); | 1209 unittest.expect(o[0], unittest.equals('foo')); |
| 1210 unittest.expect(o[1], unittest.equals('foo')); | 1210 unittest.expect(o[1], unittest.equals('foo')); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 | 1213 |
| 1214 main() { | 1214 main() { |
| 1215 unittest.group("obj-schema-Account", () { | 1215 unittest.group("obj-schema-Account", () { |
| 1216 unittest.test("to-json--from-json", () { | 1216 unittest.test("to-json--from-json", () { |
| 1217 var o = buildAccount(); | 1217 var o = buildAccount(); |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 unittest.test("method--generate", () { | 2326 unittest.test("method--generate", () { |
| 2327 // TODO: Implement tests for media upload; | 2327 // TODO: Implement tests for media upload; |
| 2328 // TODO: Implement tests for media download; | 2328 // TODO: Implement tests for media download; |
| 2329 | 2329 |
| 2330 var mock = new common_test.HttpServerMock(); | 2330 var mock = new common_test.HttpServerMock(); |
| 2331 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep
orts; | 2331 api.AccountsReportsResourceApi res = new api.AdsenseApi(mock).accounts.rep
orts; |
| 2332 var arg_accountId = "foo"; | 2332 var arg_accountId = "foo"; |
| 2333 var arg_startDate = "foo"; | 2333 var arg_startDate = "foo"; |
| 2334 var arg_endDate = "foo"; | 2334 var arg_endDate = "foo"; |
| 2335 var arg_currency = "foo"; | 2335 var arg_currency = "foo"; |
| 2336 var arg_dimension = buildUnnamed532(); | 2336 var arg_dimension = buildUnnamed863(); |
| 2337 var arg_filter = buildUnnamed533(); | 2337 var arg_filter = buildUnnamed864(); |
| 2338 var arg_locale = "foo"; | 2338 var arg_locale = "foo"; |
| 2339 var arg_maxResults = 42; | 2339 var arg_maxResults = 42; |
| 2340 var arg_metric = buildUnnamed534(); | 2340 var arg_metric = buildUnnamed865(); |
| 2341 var arg_sort = buildUnnamed535(); | 2341 var arg_sort = buildUnnamed866(); |
| 2342 var arg_startIndex = 42; | 2342 var arg_startIndex = 42; |
| 2343 var arg_useTimezoneReporting = true; | 2343 var arg_useTimezoneReporting = true; |
| 2344 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2344 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2345 var path = (req.url).path; | 2345 var path = (req.url).path; |
| 2346 var pathOffset = 0; | 2346 var pathOffset = 0; |
| 2347 var index; | 2347 var index; |
| 2348 var subPart; | 2348 var subPart; |
| 2349 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2349 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2350 pathOffset += 1; | 2350 pathOffset += 1; |
| 2351 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("adsense/v1.4/")); | 2351 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... |
| 3453 | 3453 |
| 3454 unittest.group("resource-ReportsResourceApi", () { | 3454 unittest.group("resource-ReportsResourceApi", () { |
| 3455 unittest.test("method--generate", () { | 3455 unittest.test("method--generate", () { |
| 3456 // TODO: Implement tests for media upload; | 3456 // TODO: Implement tests for media upload; |
| 3457 // TODO: Implement tests for media download; | 3457 // TODO: Implement tests for media download; |
| 3458 | 3458 |
| 3459 var mock = new common_test.HttpServerMock(); | 3459 var mock = new common_test.HttpServerMock(); |
| 3460 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; | 3460 api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; |
| 3461 var arg_startDate = "foo"; | 3461 var arg_startDate = "foo"; |
| 3462 var arg_endDate = "foo"; | 3462 var arg_endDate = "foo"; |
| 3463 var arg_accountId = buildUnnamed536(); | 3463 var arg_accountId = buildUnnamed867(); |
| 3464 var arg_currency = "foo"; | 3464 var arg_currency = "foo"; |
| 3465 var arg_dimension = buildUnnamed537(); | 3465 var arg_dimension = buildUnnamed868(); |
| 3466 var arg_filter = buildUnnamed538(); | 3466 var arg_filter = buildUnnamed869(); |
| 3467 var arg_locale = "foo"; | 3467 var arg_locale = "foo"; |
| 3468 var arg_maxResults = 42; | 3468 var arg_maxResults = 42; |
| 3469 var arg_metric = buildUnnamed539(); | 3469 var arg_metric = buildUnnamed870(); |
| 3470 var arg_sort = buildUnnamed540(); | 3470 var arg_sort = buildUnnamed871(); |
| 3471 var arg_startIndex = 42; | 3471 var arg_startIndex = 42; |
| 3472 var arg_useTimezoneReporting = true; | 3472 var arg_useTimezoneReporting = true; |
| 3473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3474 var path = (req.url).path; | 3474 var path = (req.url).path; |
| 3475 var pathOffset = 0; | 3475 var pathOffset = 0; |
| 3476 var index; | 3476 var index; |
| 3477 var subPart; | 3477 var subPart; |
| 3478 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3478 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3479 pathOffset += 1; | 3479 pathOffset += 1; |
| 3480 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("adsense/v1.4/")); | 3480 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... |
| 3792 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { | 3792 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { |
| 3793 checkUrlChannels(response); | 3793 checkUrlChannels(response); |
| 3794 }))); | 3794 }))); |
| 3795 }); | 3795 }); |
| 3796 | 3796 |
| 3797 }); | 3797 }); |
| 3798 | 3798 |
| 3799 | 3799 |
| 3800 } | 3800 } |
| 3801 | 3801 |
| OLD | NEW |