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

Side by Side Diff: generated/googleapis/test/androidpublisher/v2_test.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.androidpublisher.v2.test; 1 library googleapis.androidpublisher.v2.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 checkApkListing(api.ApkListing o) { 106 checkApkListing(api.ApkListing o) {
107 buildCounterApkListing++; 107 buildCounterApkListing++;
108 if (buildCounterApkListing < 3) { 108 if (buildCounterApkListing < 3) {
109 unittest.expect(o.language, unittest.equals('foo')); 109 unittest.expect(o.language, unittest.equals('foo'));
110 unittest.expect(o.recentChanges, unittest.equals('foo')); 110 unittest.expect(o.recentChanges, unittest.equals('foo'));
111 } 111 }
112 buildCounterApkListing--; 112 buildCounterApkListing--;
113 } 113 }
114 114
115 buildUnnamed2791() { 115 buildUnnamed2789() {
116 var o = new core.List<api.ApkListing>(); 116 var o = new core.List<api.ApkListing>();
117 o.add(buildApkListing()); 117 o.add(buildApkListing());
118 o.add(buildApkListing()); 118 o.add(buildApkListing());
119 return o; 119 return o;
120 } 120 }
121 121
122 checkUnnamed2791(core.List<api.ApkListing> o) { 122 checkUnnamed2789(core.List<api.ApkListing> o) {
123 unittest.expect(o, unittest.hasLength(2)); 123 unittest.expect(o, unittest.hasLength(2));
124 checkApkListing(o[0]); 124 checkApkListing(o[0]);
125 checkApkListing(o[1]); 125 checkApkListing(o[1]);
126 } 126 }
127 127
128 core.int buildCounterApkListingsListResponse = 0; 128 core.int buildCounterApkListingsListResponse = 0;
129 buildApkListingsListResponse() { 129 buildApkListingsListResponse() {
130 var o = new api.ApkListingsListResponse(); 130 var o = new api.ApkListingsListResponse();
131 buildCounterApkListingsListResponse++; 131 buildCounterApkListingsListResponse++;
132 if (buildCounterApkListingsListResponse < 3) { 132 if (buildCounterApkListingsListResponse < 3) {
133 o.kind = "foo"; 133 o.kind = "foo";
134 o.listings = buildUnnamed2791(); 134 o.listings = buildUnnamed2789();
135 } 135 }
136 buildCounterApkListingsListResponse--; 136 buildCounterApkListingsListResponse--;
137 return o; 137 return o;
138 } 138 }
139 139
140 checkApkListingsListResponse(api.ApkListingsListResponse o) { 140 checkApkListingsListResponse(api.ApkListingsListResponse o) {
141 buildCounterApkListingsListResponse++; 141 buildCounterApkListingsListResponse++;
142 if (buildCounterApkListingsListResponse < 3) { 142 if (buildCounterApkListingsListResponse < 3) {
143 unittest.expect(o.kind, unittest.equals('foo')); 143 unittest.expect(o.kind, unittest.equals('foo'));
144 checkUnnamed2791(o.listings); 144 checkUnnamed2789(o.listings);
145 } 145 }
146 buildCounterApkListingsListResponse--; 146 buildCounterApkListingsListResponse--;
147 } 147 }
148 148
149 core.int buildCounterApksAddExternallyHostedRequest = 0; 149 core.int buildCounterApksAddExternallyHostedRequest = 0;
150 buildApksAddExternallyHostedRequest() { 150 buildApksAddExternallyHostedRequest() {
151 var o = new api.ApksAddExternallyHostedRequest(); 151 var o = new api.ApksAddExternallyHostedRequest();
152 buildCounterApksAddExternallyHostedRequest++; 152 buildCounterApksAddExternallyHostedRequest++;
153 if (buildCounterApksAddExternallyHostedRequest < 3) { 153 if (buildCounterApksAddExternallyHostedRequest < 3) {
154 o.externallyHostedApk = buildExternallyHostedApk(); 154 o.externallyHostedApk = buildExternallyHostedApk();
(...skipping 22 matching lines...) Expand all
177 } 177 }
178 178
179 checkApksAddExternallyHostedResponse(api.ApksAddExternallyHostedResponse o) { 179 checkApksAddExternallyHostedResponse(api.ApksAddExternallyHostedResponse o) {
180 buildCounterApksAddExternallyHostedResponse++; 180 buildCounterApksAddExternallyHostedResponse++;
181 if (buildCounterApksAddExternallyHostedResponse < 3) { 181 if (buildCounterApksAddExternallyHostedResponse < 3) {
182 checkExternallyHostedApk(o.externallyHostedApk); 182 checkExternallyHostedApk(o.externallyHostedApk);
183 } 183 }
184 buildCounterApksAddExternallyHostedResponse--; 184 buildCounterApksAddExternallyHostedResponse--;
185 } 185 }
186 186
187 buildUnnamed2792() { 187 buildUnnamed2790() {
188 var o = new core.List<api.Apk>(); 188 var o = new core.List<api.Apk>();
189 o.add(buildApk()); 189 o.add(buildApk());
190 o.add(buildApk()); 190 o.add(buildApk());
191 return o; 191 return o;
192 } 192 }
193 193
194 checkUnnamed2792(core.List<api.Apk> o) { 194 checkUnnamed2790(core.List<api.Apk> o) {
195 unittest.expect(o, unittest.hasLength(2)); 195 unittest.expect(o, unittest.hasLength(2));
196 checkApk(o[0]); 196 checkApk(o[0]);
197 checkApk(o[1]); 197 checkApk(o[1]);
198 } 198 }
199 199
200 core.int buildCounterApksListResponse = 0; 200 core.int buildCounterApksListResponse = 0;
201 buildApksListResponse() { 201 buildApksListResponse() {
202 var o = new api.ApksListResponse(); 202 var o = new api.ApksListResponse();
203 buildCounterApksListResponse++; 203 buildCounterApksListResponse++;
204 if (buildCounterApksListResponse < 3) { 204 if (buildCounterApksListResponse < 3) {
205 o.apks = buildUnnamed2792(); 205 o.apks = buildUnnamed2790();
206 o.kind = "foo"; 206 o.kind = "foo";
207 } 207 }
208 buildCounterApksListResponse--; 208 buildCounterApksListResponse--;
209 return o; 209 return o;
210 } 210 }
211 211
212 checkApksListResponse(api.ApksListResponse o) { 212 checkApksListResponse(api.ApksListResponse o) {
213 buildCounterApksListResponse++; 213 buildCounterApksListResponse++;
214 if (buildCounterApksListResponse < 3) { 214 if (buildCounterApksListResponse < 3) {
215 checkUnnamed2792(o.apks); 215 checkUnnamed2790(o.apks);
216 unittest.expect(o.kind, unittest.equals('foo')); 216 unittest.expect(o.kind, unittest.equals('foo'));
217 } 217 }
218 buildCounterApksListResponse--; 218 buildCounterApksListResponse--;
219 } 219 }
220 220
221 core.int buildCounterAppDetails = 0; 221 core.int buildCounterAppDetails = 0;
222 buildAppDetails() { 222 buildAppDetails() {
223 var o = new api.AppDetails(); 223 var o = new api.AppDetails();
224 buildCounterAppDetails++; 224 buildCounterAppDetails++;
225 if (buildCounterAppDetails < 3) { 225 if (buildCounterAppDetails < 3) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 checkDeveloperComment(api.DeveloperComment o) { 338 checkDeveloperComment(api.DeveloperComment o) {
339 buildCounterDeveloperComment++; 339 buildCounterDeveloperComment++;
340 if (buildCounterDeveloperComment < 3) { 340 if (buildCounterDeveloperComment < 3) {
341 checkTimestamp(o.lastModified); 341 checkTimestamp(o.lastModified);
342 unittest.expect(o.text, unittest.equals('foo')); 342 unittest.expect(o.text, unittest.equals('foo'));
343 } 343 }
344 buildCounterDeveloperComment--; 344 buildCounterDeveloperComment--;
345 } 345 }
346 346
347 core.int buildCounterDeviceMetadata = 0;
348 buildDeviceMetadata() {
349 var o = new api.DeviceMetadata();
350 buildCounterDeviceMetadata++;
351 if (buildCounterDeviceMetadata < 3) {
352 o.cpuMake = "foo";
353 o.cpuModel = "foo";
354 o.deviceClass = "foo";
355 o.glEsVersion = 42;
356 o.manufacturer = "foo";
357 o.nativePlatform = "foo";
358 o.productName = "foo";
359 o.ramMb = 42;
360 o.screenDensityDpi = 42;
361 o.screenHeightPx = 42;
362 o.screenWidthPx = 42;
363 }
364 buildCounterDeviceMetadata--;
365 return o;
366 }
367
368 checkDeviceMetadata(api.DeviceMetadata o) {
369 buildCounterDeviceMetadata++;
370 if (buildCounterDeviceMetadata < 3) {
371 unittest.expect(o.cpuMake, unittest.equals('foo'));
372 unittest.expect(o.cpuModel, unittest.equals('foo'));
373 unittest.expect(o.deviceClass, unittest.equals('foo'));
374 unittest.expect(o.glEsVersion, unittest.equals(42));
375 unittest.expect(o.manufacturer, unittest.equals('foo'));
376 unittest.expect(o.nativePlatform, unittest.equals('foo'));
377 unittest.expect(o.productName, unittest.equals('foo'));
378 unittest.expect(o.ramMb, unittest.equals(42));
379 unittest.expect(o.screenDensityDpi, unittest.equals(42));
380 unittest.expect(o.screenHeightPx, unittest.equals(42));
381 unittest.expect(o.screenWidthPx, unittest.equals(42));
382 }
383 buildCounterDeviceMetadata--;
384 }
385
347 core.int buildCounterEntitlement = 0; 386 core.int buildCounterEntitlement = 0;
348 buildEntitlement() { 387 buildEntitlement() {
349 var o = new api.Entitlement(); 388 var o = new api.Entitlement();
350 buildCounterEntitlement++; 389 buildCounterEntitlement++;
351 if (buildCounterEntitlement < 3) { 390 if (buildCounterEntitlement < 3) {
352 o.kind = "foo"; 391 o.kind = "foo";
353 o.productId = "foo"; 392 o.productId = "foo";
354 o.productType = "foo"; 393 o.productType = "foo";
355 o.token = "foo"; 394 o.token = "foo";
356 } 395 }
357 buildCounterEntitlement--; 396 buildCounterEntitlement--;
358 return o; 397 return o;
359 } 398 }
360 399
361 checkEntitlement(api.Entitlement o) { 400 checkEntitlement(api.Entitlement o) {
362 buildCounterEntitlement++; 401 buildCounterEntitlement++;
363 if (buildCounterEntitlement < 3) { 402 if (buildCounterEntitlement < 3) {
364 unittest.expect(o.kind, unittest.equals('foo')); 403 unittest.expect(o.kind, unittest.equals('foo'));
365 unittest.expect(o.productId, unittest.equals('foo')); 404 unittest.expect(o.productId, unittest.equals('foo'));
366 unittest.expect(o.productType, unittest.equals('foo')); 405 unittest.expect(o.productType, unittest.equals('foo'));
367 unittest.expect(o.token, unittest.equals('foo')); 406 unittest.expect(o.token, unittest.equals('foo'));
368 } 407 }
369 buildCounterEntitlement--; 408 buildCounterEntitlement--;
370 } 409 }
371 410
372 buildUnnamed2793() { 411 buildUnnamed2791() {
373 var o = new core.List<api.Entitlement>(); 412 var o = new core.List<api.Entitlement>();
374 o.add(buildEntitlement()); 413 o.add(buildEntitlement());
375 o.add(buildEntitlement()); 414 o.add(buildEntitlement());
376 return o; 415 return o;
377 } 416 }
378 417
379 checkUnnamed2793(core.List<api.Entitlement> o) { 418 checkUnnamed2791(core.List<api.Entitlement> o) {
380 unittest.expect(o, unittest.hasLength(2)); 419 unittest.expect(o, unittest.hasLength(2));
381 checkEntitlement(o[0]); 420 checkEntitlement(o[0]);
382 checkEntitlement(o[1]); 421 checkEntitlement(o[1]);
383 } 422 }
384 423
385 core.int buildCounterEntitlementsListResponse = 0; 424 core.int buildCounterEntitlementsListResponse = 0;
386 buildEntitlementsListResponse() { 425 buildEntitlementsListResponse() {
387 var o = new api.EntitlementsListResponse(); 426 var o = new api.EntitlementsListResponse();
388 buildCounterEntitlementsListResponse++; 427 buildCounterEntitlementsListResponse++;
389 if (buildCounterEntitlementsListResponse < 3) { 428 if (buildCounterEntitlementsListResponse < 3) {
390 o.pageInfo = buildPageInfo(); 429 o.pageInfo = buildPageInfo();
391 o.resources = buildUnnamed2793(); 430 o.resources = buildUnnamed2791();
392 o.tokenPagination = buildTokenPagination(); 431 o.tokenPagination = buildTokenPagination();
393 } 432 }
394 buildCounterEntitlementsListResponse--; 433 buildCounterEntitlementsListResponse--;
395 return o; 434 return o;
396 } 435 }
397 436
398 checkEntitlementsListResponse(api.EntitlementsListResponse o) { 437 checkEntitlementsListResponse(api.EntitlementsListResponse o) {
399 buildCounterEntitlementsListResponse++; 438 buildCounterEntitlementsListResponse++;
400 if (buildCounterEntitlementsListResponse < 3) { 439 if (buildCounterEntitlementsListResponse < 3) {
401 checkPageInfo(o.pageInfo); 440 checkPageInfo(o.pageInfo);
402 checkUnnamed2793(o.resources); 441 checkUnnamed2791(o.resources);
403 checkTokenPagination(o.tokenPagination); 442 checkTokenPagination(o.tokenPagination);
404 } 443 }
405 buildCounterEntitlementsListResponse--; 444 buildCounterEntitlementsListResponse--;
406 } 445 }
407 446
408 core.int buildCounterExpansionFile = 0; 447 core.int buildCounterExpansionFile = 0;
409 buildExpansionFile() { 448 buildExpansionFile() {
410 var o = new api.ExpansionFile(); 449 var o = new api.ExpansionFile();
411 buildCounterExpansionFile++; 450 buildCounterExpansionFile++;
412 if (buildCounterExpansionFile < 3) { 451 if (buildCounterExpansionFile < 3) {
(...skipping 25 matching lines...) Expand all
438 } 477 }
439 478
440 checkExpansionFilesUploadResponse(api.ExpansionFilesUploadResponse o) { 479 checkExpansionFilesUploadResponse(api.ExpansionFilesUploadResponse o) {
441 buildCounterExpansionFilesUploadResponse++; 480 buildCounterExpansionFilesUploadResponse++;
442 if (buildCounterExpansionFilesUploadResponse < 3) { 481 if (buildCounterExpansionFilesUploadResponse < 3) {
443 checkExpansionFile(o.expansionFile); 482 checkExpansionFile(o.expansionFile);
444 } 483 }
445 buildCounterExpansionFilesUploadResponse--; 484 buildCounterExpansionFilesUploadResponse--;
446 } 485 }
447 486
487 buildUnnamed2792() {
488 var o = new core.List<core.String>();
489 o.add("foo");
490 o.add("foo");
491 return o;
492 }
493
494 checkUnnamed2792(core.List<core.String> o) {
495 unittest.expect(o, unittest.hasLength(2));
496 unittest.expect(o[0], unittest.equals('foo'));
497 unittest.expect(o[1], unittest.equals('foo'));
498 }
499
500 buildUnnamed2793() {
501 var o = new core.List<core.String>();
502 o.add("foo");
503 o.add("foo");
504 return o;
505 }
506
507 checkUnnamed2793(core.List<core.String> o) {
508 unittest.expect(o, unittest.hasLength(2));
509 unittest.expect(o[0], unittest.equals('foo'));
510 unittest.expect(o[1], unittest.equals('foo'));
511 }
512
448 buildUnnamed2794() { 513 buildUnnamed2794() {
449 var o = new core.List<core.String>(); 514 var o = new core.List<core.String>();
450 o.add("foo"); 515 o.add("foo");
451 o.add("foo"); 516 o.add("foo");
452 return o; 517 return o;
453 } 518 }
454 519
455 checkUnnamed2794(core.List<core.String> o) { 520 checkUnnamed2794(core.List<core.String> o) {
456 unittest.expect(o, unittest.hasLength(2)); 521 unittest.expect(o, unittest.hasLength(2));
457 unittest.expect(o[0], unittest.equals('foo')); 522 unittest.expect(o[0], unittest.equals('foo'));
458 unittest.expect(o[1], unittest.equals('foo')); 523 unittest.expect(o[1], unittest.equals('foo'));
459 } 524 }
460 525
461 buildUnnamed2795() { 526 buildUnnamed2795() {
462 var o = new core.List<core.String>();
463 o.add("foo");
464 o.add("foo");
465 return o;
466 }
467
468 checkUnnamed2795(core.List<core.String> o) {
469 unittest.expect(o, unittest.hasLength(2));
470 unittest.expect(o[0], unittest.equals('foo'));
471 unittest.expect(o[1], unittest.equals('foo'));
472 }
473
474 buildUnnamed2796() {
475 var o = new core.List<core.String>();
476 o.add("foo");
477 o.add("foo");
478 return o;
479 }
480
481 checkUnnamed2796(core.List<core.String> o) {
482 unittest.expect(o, unittest.hasLength(2));
483 unittest.expect(o[0], unittest.equals('foo'));
484 unittest.expect(o[1], unittest.equals('foo'));
485 }
486
487 buildUnnamed2797() {
488 var o = new core.List<api.ExternallyHostedApkUsesPermission>(); 527 var o = new core.List<api.ExternallyHostedApkUsesPermission>();
489 o.add(buildExternallyHostedApkUsesPermission()); 528 o.add(buildExternallyHostedApkUsesPermission());
490 o.add(buildExternallyHostedApkUsesPermission()); 529 o.add(buildExternallyHostedApkUsesPermission());
491 return o; 530 return o;
492 } 531 }
493 532
494 checkUnnamed2797(core.List<api.ExternallyHostedApkUsesPermission> o) { 533 checkUnnamed2795(core.List<api.ExternallyHostedApkUsesPermission> o) {
495 unittest.expect(o, unittest.hasLength(2)); 534 unittest.expect(o, unittest.hasLength(2));
496 checkExternallyHostedApkUsesPermission(o[0]); 535 checkExternallyHostedApkUsesPermission(o[0]);
497 checkExternallyHostedApkUsesPermission(o[1]); 536 checkExternallyHostedApkUsesPermission(o[1]);
498 } 537 }
499 538
500 core.int buildCounterExternallyHostedApk = 0; 539 core.int buildCounterExternallyHostedApk = 0;
501 buildExternallyHostedApk() { 540 buildExternallyHostedApk() {
502 var o = new api.ExternallyHostedApk(); 541 var o = new api.ExternallyHostedApk();
503 buildCounterExternallyHostedApk++; 542 buildCounterExternallyHostedApk++;
504 if (buildCounterExternallyHostedApk < 3) { 543 if (buildCounterExternallyHostedApk < 3) {
505 o.applicationLabel = "foo"; 544 o.applicationLabel = "foo";
506 o.certificateBase64s = buildUnnamed2794(); 545 o.certificateBase64s = buildUnnamed2792();
507 o.externallyHostedUrl = "foo"; 546 o.externallyHostedUrl = "foo";
508 o.fileSha1Base64 = "foo"; 547 o.fileSha1Base64 = "foo";
509 o.fileSha256Base64 = "foo"; 548 o.fileSha256Base64 = "foo";
510 o.fileSize = "foo"; 549 o.fileSize = "foo";
511 o.iconBase64 = "foo"; 550 o.iconBase64 = "foo";
512 o.maximumSdk = 42; 551 o.maximumSdk = 42;
513 o.minimumSdk = 42; 552 o.minimumSdk = 42;
514 o.nativeCodes = buildUnnamed2795(); 553 o.nativeCodes = buildUnnamed2793();
515 o.packageName = "foo"; 554 o.packageName = "foo";
516 o.usesFeatures = buildUnnamed2796(); 555 o.usesFeatures = buildUnnamed2794();
517 o.usesPermissions = buildUnnamed2797(); 556 o.usesPermissions = buildUnnamed2795();
518 o.versionCode = 42; 557 o.versionCode = 42;
519 o.versionName = "foo"; 558 o.versionName = "foo";
520 } 559 }
521 buildCounterExternallyHostedApk--; 560 buildCounterExternallyHostedApk--;
522 return o; 561 return o;
523 } 562 }
524 563
525 checkExternallyHostedApk(api.ExternallyHostedApk o) { 564 checkExternallyHostedApk(api.ExternallyHostedApk o) {
526 buildCounterExternallyHostedApk++; 565 buildCounterExternallyHostedApk++;
527 if (buildCounterExternallyHostedApk < 3) { 566 if (buildCounterExternallyHostedApk < 3) {
528 unittest.expect(o.applicationLabel, unittest.equals('foo')); 567 unittest.expect(o.applicationLabel, unittest.equals('foo'));
529 checkUnnamed2794(o.certificateBase64s); 568 checkUnnamed2792(o.certificateBase64s);
530 unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); 569 unittest.expect(o.externallyHostedUrl, unittest.equals('foo'));
531 unittest.expect(o.fileSha1Base64, unittest.equals('foo')); 570 unittest.expect(o.fileSha1Base64, unittest.equals('foo'));
532 unittest.expect(o.fileSha256Base64, unittest.equals('foo')); 571 unittest.expect(o.fileSha256Base64, unittest.equals('foo'));
533 unittest.expect(o.fileSize, unittest.equals('foo')); 572 unittest.expect(o.fileSize, unittest.equals('foo'));
534 unittest.expect(o.iconBase64, unittest.equals('foo')); 573 unittest.expect(o.iconBase64, unittest.equals('foo'));
535 unittest.expect(o.maximumSdk, unittest.equals(42)); 574 unittest.expect(o.maximumSdk, unittest.equals(42));
536 unittest.expect(o.minimumSdk, unittest.equals(42)); 575 unittest.expect(o.minimumSdk, unittest.equals(42));
537 checkUnnamed2795(o.nativeCodes); 576 checkUnnamed2793(o.nativeCodes);
538 unittest.expect(o.packageName, unittest.equals('foo')); 577 unittest.expect(o.packageName, unittest.equals('foo'));
539 checkUnnamed2796(o.usesFeatures); 578 checkUnnamed2794(o.usesFeatures);
540 checkUnnamed2797(o.usesPermissions); 579 checkUnnamed2795(o.usesPermissions);
541 unittest.expect(o.versionCode, unittest.equals(42)); 580 unittest.expect(o.versionCode, unittest.equals(42));
542 unittest.expect(o.versionName, unittest.equals('foo')); 581 unittest.expect(o.versionName, unittest.equals('foo'));
543 } 582 }
544 buildCounterExternallyHostedApk--; 583 buildCounterExternallyHostedApk--;
545 } 584 }
546 585
547 core.int buildCounterExternallyHostedApkUsesPermission = 0; 586 core.int buildCounterExternallyHostedApkUsesPermission = 0;
548 buildExternallyHostedApkUsesPermission() { 587 buildExternallyHostedApkUsesPermission() {
549 var o = new api.ExternallyHostedApkUsesPermission(); 588 var o = new api.ExternallyHostedApkUsesPermission();
550 buildCounterExternallyHostedApkUsesPermission++; 589 buildCounterExternallyHostedApkUsesPermission++;
(...skipping 30 matching lines...) Expand all
581 checkImage(api.Image o) { 620 checkImage(api.Image o) {
582 buildCounterImage++; 621 buildCounterImage++;
583 if (buildCounterImage < 3) { 622 if (buildCounterImage < 3) {
584 unittest.expect(o.id, unittest.equals('foo')); 623 unittest.expect(o.id, unittest.equals('foo'));
585 unittest.expect(o.sha1, unittest.equals('foo')); 624 unittest.expect(o.sha1, unittest.equals('foo'));
586 unittest.expect(o.url, unittest.equals('foo')); 625 unittest.expect(o.url, unittest.equals('foo'));
587 } 626 }
588 buildCounterImage--; 627 buildCounterImage--;
589 } 628 }
590 629
591 buildUnnamed2798() { 630 buildUnnamed2796() {
592 var o = new core.List<api.Image>(); 631 var o = new core.List<api.Image>();
593 o.add(buildImage()); 632 o.add(buildImage());
594 o.add(buildImage()); 633 o.add(buildImage());
595 return o; 634 return o;
596 } 635 }
597 636
598 checkUnnamed2798(core.List<api.Image> o) { 637 checkUnnamed2796(core.List<api.Image> o) {
599 unittest.expect(o, unittest.hasLength(2)); 638 unittest.expect(o, unittest.hasLength(2));
600 checkImage(o[0]); 639 checkImage(o[0]);
601 checkImage(o[1]); 640 checkImage(o[1]);
602 } 641 }
603 642
604 core.int buildCounterImagesDeleteAllResponse = 0; 643 core.int buildCounterImagesDeleteAllResponse = 0;
605 buildImagesDeleteAllResponse() { 644 buildImagesDeleteAllResponse() {
606 var o = new api.ImagesDeleteAllResponse(); 645 var o = new api.ImagesDeleteAllResponse();
607 buildCounterImagesDeleteAllResponse++; 646 buildCounterImagesDeleteAllResponse++;
608 if (buildCounterImagesDeleteAllResponse < 3) { 647 if (buildCounterImagesDeleteAllResponse < 3) {
609 o.deleted = buildUnnamed2798(); 648 o.deleted = buildUnnamed2796();
610 } 649 }
611 buildCounterImagesDeleteAllResponse--; 650 buildCounterImagesDeleteAllResponse--;
612 return o; 651 return o;
613 } 652 }
614 653
615 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { 654 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) {
616 buildCounterImagesDeleteAllResponse++; 655 buildCounterImagesDeleteAllResponse++;
617 if (buildCounterImagesDeleteAllResponse < 3) { 656 if (buildCounterImagesDeleteAllResponse < 3) {
618 checkUnnamed2798(o.deleted); 657 checkUnnamed2796(o.deleted);
619 } 658 }
620 buildCounterImagesDeleteAllResponse--; 659 buildCounterImagesDeleteAllResponse--;
621 } 660 }
622 661
623 buildUnnamed2799() { 662 buildUnnamed2797() {
624 var o = new core.List<api.Image>(); 663 var o = new core.List<api.Image>();
625 o.add(buildImage()); 664 o.add(buildImage());
626 o.add(buildImage()); 665 o.add(buildImage());
627 return o; 666 return o;
628 } 667 }
629 668
630 checkUnnamed2799(core.List<api.Image> o) { 669 checkUnnamed2797(core.List<api.Image> o) {
631 unittest.expect(o, unittest.hasLength(2)); 670 unittest.expect(o, unittest.hasLength(2));
632 checkImage(o[0]); 671 checkImage(o[0]);
633 checkImage(o[1]); 672 checkImage(o[1]);
634 } 673 }
635 674
636 core.int buildCounterImagesListResponse = 0; 675 core.int buildCounterImagesListResponse = 0;
637 buildImagesListResponse() { 676 buildImagesListResponse() {
638 var o = new api.ImagesListResponse(); 677 var o = new api.ImagesListResponse();
639 buildCounterImagesListResponse++; 678 buildCounterImagesListResponse++;
640 if (buildCounterImagesListResponse < 3) { 679 if (buildCounterImagesListResponse < 3) {
641 o.images = buildUnnamed2799(); 680 o.images = buildUnnamed2797();
642 } 681 }
643 buildCounterImagesListResponse--; 682 buildCounterImagesListResponse--;
644 return o; 683 return o;
645 } 684 }
646 685
647 checkImagesListResponse(api.ImagesListResponse o) { 686 checkImagesListResponse(api.ImagesListResponse o) {
648 buildCounterImagesListResponse++; 687 buildCounterImagesListResponse++;
649 if (buildCounterImagesListResponse < 3) { 688 if (buildCounterImagesListResponse < 3) {
650 checkUnnamed2799(o.images); 689 checkUnnamed2797(o.images);
651 } 690 }
652 buildCounterImagesListResponse--; 691 buildCounterImagesListResponse--;
653 } 692 }
654 693
655 core.int buildCounterImagesUploadResponse = 0; 694 core.int buildCounterImagesUploadResponse = 0;
656 buildImagesUploadResponse() { 695 buildImagesUploadResponse() {
657 var o = new api.ImagesUploadResponse(); 696 var o = new api.ImagesUploadResponse();
658 buildCounterImagesUploadResponse++; 697 buildCounterImagesUploadResponse++;
659 if (buildCounterImagesUploadResponse < 3) { 698 if (buildCounterImagesUploadResponse < 3) {
660 o.image = buildImage(); 699 o.image = buildImage();
661 } 700 }
662 buildCounterImagesUploadResponse--; 701 buildCounterImagesUploadResponse--;
663 return o; 702 return o;
664 } 703 }
665 704
666 checkImagesUploadResponse(api.ImagesUploadResponse o) { 705 checkImagesUploadResponse(api.ImagesUploadResponse o) {
667 buildCounterImagesUploadResponse++; 706 buildCounterImagesUploadResponse++;
668 if (buildCounterImagesUploadResponse < 3) { 707 if (buildCounterImagesUploadResponse < 3) {
669 checkImage(o.image); 708 checkImage(o.image);
670 } 709 }
671 buildCounterImagesUploadResponse--; 710 buildCounterImagesUploadResponse--;
672 } 711 }
673 712
674 buildUnnamed2800() { 713 buildUnnamed2798() {
675 var o = new core.Map<core.String, api.InAppProductListing>(); 714 var o = new core.Map<core.String, api.InAppProductListing>();
676 o["x"] = buildInAppProductListing(); 715 o["x"] = buildInAppProductListing();
677 o["y"] = buildInAppProductListing(); 716 o["y"] = buildInAppProductListing();
678 return o; 717 return o;
679 } 718 }
680 719
681 checkUnnamed2800(core.Map<core.String, api.InAppProductListing> o) { 720 checkUnnamed2798(core.Map<core.String, api.InAppProductListing> o) {
682 unittest.expect(o, unittest.hasLength(2)); 721 unittest.expect(o, unittest.hasLength(2));
683 checkInAppProductListing(o["x"]); 722 checkInAppProductListing(o["x"]);
684 checkInAppProductListing(o["y"]); 723 checkInAppProductListing(o["y"]);
685 } 724 }
686 725
687 buildUnnamed2801() { 726 buildUnnamed2799() {
688 var o = new core.Map<core.String, api.Price>(); 727 var o = new core.Map<core.String, api.Price>();
689 o["x"] = buildPrice(); 728 o["x"] = buildPrice();
690 o["y"] = buildPrice(); 729 o["y"] = buildPrice();
691 return o; 730 return o;
692 } 731 }
693 732
694 checkUnnamed2801(core.Map<core.String, api.Price> o) { 733 checkUnnamed2799(core.Map<core.String, api.Price> o) {
695 unittest.expect(o, unittest.hasLength(2)); 734 unittest.expect(o, unittest.hasLength(2));
696 checkPrice(o["x"]); 735 checkPrice(o["x"]);
697 checkPrice(o["y"]); 736 checkPrice(o["y"]);
698 } 737 }
699 738
700 core.int buildCounterInAppProduct = 0; 739 core.int buildCounterInAppProduct = 0;
701 buildInAppProduct() { 740 buildInAppProduct() {
702 var o = new api.InAppProduct(); 741 var o = new api.InAppProduct();
703 buildCounterInAppProduct++; 742 buildCounterInAppProduct++;
704 if (buildCounterInAppProduct < 3) { 743 if (buildCounterInAppProduct < 3) {
705 o.defaultLanguage = "foo"; 744 o.defaultLanguage = "foo";
706 o.defaultPrice = buildPrice(); 745 o.defaultPrice = buildPrice();
707 o.listings = buildUnnamed2800(); 746 o.listings = buildUnnamed2798();
708 o.packageName = "foo"; 747 o.packageName = "foo";
709 o.prices = buildUnnamed2801(); 748 o.prices = buildUnnamed2799();
710 o.purchaseType = "foo"; 749 o.purchaseType = "foo";
711 o.season = buildSeason(); 750 o.season = buildSeason();
712 o.sku = "foo"; 751 o.sku = "foo";
713 o.status = "foo"; 752 o.status = "foo";
714 o.subscriptionPeriod = "foo"; 753 o.subscriptionPeriod = "foo";
715 o.trialPeriod = "foo"; 754 o.trialPeriod = "foo";
716 } 755 }
717 buildCounterInAppProduct--; 756 buildCounterInAppProduct--;
718 return o; 757 return o;
719 } 758 }
720 759
721 checkInAppProduct(api.InAppProduct o) { 760 checkInAppProduct(api.InAppProduct o) {
722 buildCounterInAppProduct++; 761 buildCounterInAppProduct++;
723 if (buildCounterInAppProduct < 3) { 762 if (buildCounterInAppProduct < 3) {
724 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 763 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
725 checkPrice(o.defaultPrice); 764 checkPrice(o.defaultPrice);
726 checkUnnamed2800(o.listings); 765 checkUnnamed2798(o.listings);
727 unittest.expect(o.packageName, unittest.equals('foo')); 766 unittest.expect(o.packageName, unittest.equals('foo'));
728 checkUnnamed2801(o.prices); 767 checkUnnamed2799(o.prices);
729 unittest.expect(o.purchaseType, unittest.equals('foo')); 768 unittest.expect(o.purchaseType, unittest.equals('foo'));
730 checkSeason(o.season); 769 checkSeason(o.season);
731 unittest.expect(o.sku, unittest.equals('foo')); 770 unittest.expect(o.sku, unittest.equals('foo'));
732 unittest.expect(o.status, unittest.equals('foo')); 771 unittest.expect(o.status, unittest.equals('foo'));
733 unittest.expect(o.subscriptionPeriod, unittest.equals('foo')); 772 unittest.expect(o.subscriptionPeriod, unittest.equals('foo'));
734 unittest.expect(o.trialPeriod, unittest.equals('foo')); 773 unittest.expect(o.trialPeriod, unittest.equals('foo'));
735 } 774 }
736 buildCounterInAppProduct--; 775 buildCounterInAppProduct--;
737 } 776 }
738 777
(...skipping 11 matching lines...) Expand all
750 789
751 checkInAppProductListing(api.InAppProductListing o) { 790 checkInAppProductListing(api.InAppProductListing o) {
752 buildCounterInAppProductListing++; 791 buildCounterInAppProductListing++;
753 if (buildCounterInAppProductListing < 3) { 792 if (buildCounterInAppProductListing < 3) {
754 unittest.expect(o.description, unittest.equals('foo')); 793 unittest.expect(o.description, unittest.equals('foo'));
755 unittest.expect(o.title, unittest.equals('foo')); 794 unittest.expect(o.title, unittest.equals('foo'));
756 } 795 }
757 buildCounterInAppProductListing--; 796 buildCounterInAppProductListing--;
758 } 797 }
759 798
760 buildUnnamed2802() { 799 buildUnnamed2800() {
761 var o = new core.List<api.InappproductsBatchRequestEntry>(); 800 var o = new core.List<api.InappproductsBatchRequestEntry>();
762 o.add(buildInappproductsBatchRequestEntry()); 801 o.add(buildInappproductsBatchRequestEntry());
763 o.add(buildInappproductsBatchRequestEntry()); 802 o.add(buildInappproductsBatchRequestEntry());
764 return o; 803 return o;
765 } 804 }
766 805
767 checkUnnamed2802(core.List<api.InappproductsBatchRequestEntry> o) { 806 checkUnnamed2800(core.List<api.InappproductsBatchRequestEntry> o) {
768 unittest.expect(o, unittest.hasLength(2)); 807 unittest.expect(o, unittest.hasLength(2));
769 checkInappproductsBatchRequestEntry(o[0]); 808 checkInappproductsBatchRequestEntry(o[0]);
770 checkInappproductsBatchRequestEntry(o[1]); 809 checkInappproductsBatchRequestEntry(o[1]);
771 } 810 }
772 811
773 core.int buildCounterInappproductsBatchRequest = 0; 812 core.int buildCounterInappproductsBatchRequest = 0;
774 buildInappproductsBatchRequest() { 813 buildInappproductsBatchRequest() {
775 var o = new api.InappproductsBatchRequest(); 814 var o = new api.InappproductsBatchRequest();
776 buildCounterInappproductsBatchRequest++; 815 buildCounterInappproductsBatchRequest++;
777 if (buildCounterInappproductsBatchRequest < 3) { 816 if (buildCounterInappproductsBatchRequest < 3) {
778 o.entrys = buildUnnamed2802(); 817 o.entrys = buildUnnamed2800();
779 } 818 }
780 buildCounterInappproductsBatchRequest--; 819 buildCounterInappproductsBatchRequest--;
781 return o; 820 return o;
782 } 821 }
783 822
784 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { 823 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) {
785 buildCounterInappproductsBatchRequest++; 824 buildCounterInappproductsBatchRequest++;
786 if (buildCounterInappproductsBatchRequest < 3) { 825 if (buildCounterInappproductsBatchRequest < 3) {
787 checkUnnamed2802(o.entrys); 826 checkUnnamed2800(o.entrys);
788 } 827 }
789 buildCounterInappproductsBatchRequest--; 828 buildCounterInappproductsBatchRequest--;
790 } 829 }
791 830
792 core.int buildCounterInappproductsBatchRequestEntry = 0; 831 core.int buildCounterInappproductsBatchRequestEntry = 0;
793 buildInappproductsBatchRequestEntry() { 832 buildInappproductsBatchRequestEntry() {
794 var o = new api.InappproductsBatchRequestEntry(); 833 var o = new api.InappproductsBatchRequestEntry();
795 buildCounterInappproductsBatchRequestEntry++; 834 buildCounterInappproductsBatchRequestEntry++;
796 if (buildCounterInappproductsBatchRequestEntry < 3) { 835 if (buildCounterInappproductsBatchRequestEntry < 3) {
797 o.batchId = 42; 836 o.batchId = 42;
798 o.inappproductsinsertrequest = buildInappproductsInsertRequest(); 837 o.inappproductsinsertrequest = buildInappproductsInsertRequest();
799 o.inappproductsupdaterequest = buildInappproductsUpdateRequest(); 838 o.inappproductsupdaterequest = buildInappproductsUpdateRequest();
800 o.methodName = "foo"; 839 o.methodName = "foo";
801 } 840 }
802 buildCounterInappproductsBatchRequestEntry--; 841 buildCounterInappproductsBatchRequestEntry--;
803 return o; 842 return o;
804 } 843 }
805 844
806 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) { 845 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) {
807 buildCounterInappproductsBatchRequestEntry++; 846 buildCounterInappproductsBatchRequestEntry++;
808 if (buildCounterInappproductsBatchRequestEntry < 3) { 847 if (buildCounterInappproductsBatchRequestEntry < 3) {
809 unittest.expect(o.batchId, unittest.equals(42)); 848 unittest.expect(o.batchId, unittest.equals(42));
810 checkInappproductsInsertRequest(o.inappproductsinsertrequest); 849 checkInappproductsInsertRequest(o.inappproductsinsertrequest);
811 checkInappproductsUpdateRequest(o.inappproductsupdaterequest); 850 checkInappproductsUpdateRequest(o.inappproductsupdaterequest);
812 unittest.expect(o.methodName, unittest.equals('foo')); 851 unittest.expect(o.methodName, unittest.equals('foo'));
813 } 852 }
814 buildCounterInappproductsBatchRequestEntry--; 853 buildCounterInappproductsBatchRequestEntry--;
815 } 854 }
816 855
817 buildUnnamed2803() { 856 buildUnnamed2801() {
818 var o = new core.List<api.InappproductsBatchResponseEntry>(); 857 var o = new core.List<api.InappproductsBatchResponseEntry>();
819 o.add(buildInappproductsBatchResponseEntry()); 858 o.add(buildInappproductsBatchResponseEntry());
820 o.add(buildInappproductsBatchResponseEntry()); 859 o.add(buildInappproductsBatchResponseEntry());
821 return o; 860 return o;
822 } 861 }
823 862
824 checkUnnamed2803(core.List<api.InappproductsBatchResponseEntry> o) { 863 checkUnnamed2801(core.List<api.InappproductsBatchResponseEntry> o) {
825 unittest.expect(o, unittest.hasLength(2)); 864 unittest.expect(o, unittest.hasLength(2));
826 checkInappproductsBatchResponseEntry(o[0]); 865 checkInappproductsBatchResponseEntry(o[0]);
827 checkInappproductsBatchResponseEntry(o[1]); 866 checkInappproductsBatchResponseEntry(o[1]);
828 } 867 }
829 868
830 core.int buildCounterInappproductsBatchResponse = 0; 869 core.int buildCounterInappproductsBatchResponse = 0;
831 buildInappproductsBatchResponse() { 870 buildInappproductsBatchResponse() {
832 var o = new api.InappproductsBatchResponse(); 871 var o = new api.InappproductsBatchResponse();
833 buildCounterInappproductsBatchResponse++; 872 buildCounterInappproductsBatchResponse++;
834 if (buildCounterInappproductsBatchResponse < 3) { 873 if (buildCounterInappproductsBatchResponse < 3) {
835 o.entrys = buildUnnamed2803(); 874 o.entrys = buildUnnamed2801();
836 o.kind = "foo"; 875 o.kind = "foo";
837 } 876 }
838 buildCounterInappproductsBatchResponse--; 877 buildCounterInappproductsBatchResponse--;
839 return o; 878 return o;
840 } 879 }
841 880
842 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { 881 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) {
843 buildCounterInappproductsBatchResponse++; 882 buildCounterInappproductsBatchResponse++;
844 if (buildCounterInappproductsBatchResponse < 3) { 883 if (buildCounterInappproductsBatchResponse < 3) {
845 checkUnnamed2803(o.entrys); 884 checkUnnamed2801(o.entrys);
846 unittest.expect(o.kind, unittest.equals('foo')); 885 unittest.expect(o.kind, unittest.equals('foo'));
847 } 886 }
848 buildCounterInappproductsBatchResponse--; 887 buildCounterInappproductsBatchResponse--;
849 } 888 }
850 889
851 core.int buildCounterInappproductsBatchResponseEntry = 0; 890 core.int buildCounterInappproductsBatchResponseEntry = 0;
852 buildInappproductsBatchResponseEntry() { 891 buildInappproductsBatchResponseEntry() {
853 var o = new api.InappproductsBatchResponseEntry(); 892 var o = new api.InappproductsBatchResponseEntry();
854 buildCounterInappproductsBatchResponseEntry++; 893 buildCounterInappproductsBatchResponseEntry++;
855 if (buildCounterInappproductsBatchResponseEntry < 3) { 894 if (buildCounterInappproductsBatchResponseEntry < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 } 941 }
903 942
904 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) { 943 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) {
905 buildCounterInappproductsInsertResponse++; 944 buildCounterInappproductsInsertResponse++;
906 if (buildCounterInappproductsInsertResponse < 3) { 945 if (buildCounterInappproductsInsertResponse < 3) {
907 checkInAppProduct(o.inappproduct); 946 checkInAppProduct(o.inappproduct);
908 } 947 }
909 buildCounterInappproductsInsertResponse--; 948 buildCounterInappproductsInsertResponse--;
910 } 949 }
911 950
912 buildUnnamed2804() { 951 buildUnnamed2802() {
913 var o = new core.List<api.InAppProduct>(); 952 var o = new core.List<api.InAppProduct>();
914 o.add(buildInAppProduct()); 953 o.add(buildInAppProduct());
915 o.add(buildInAppProduct()); 954 o.add(buildInAppProduct());
916 return o; 955 return o;
917 } 956 }
918 957
919 checkUnnamed2804(core.List<api.InAppProduct> o) { 958 checkUnnamed2802(core.List<api.InAppProduct> o) {
920 unittest.expect(o, unittest.hasLength(2)); 959 unittest.expect(o, unittest.hasLength(2));
921 checkInAppProduct(o[0]); 960 checkInAppProduct(o[0]);
922 checkInAppProduct(o[1]); 961 checkInAppProduct(o[1]);
923 } 962 }
924 963
925 core.int buildCounterInappproductsListResponse = 0; 964 core.int buildCounterInappproductsListResponse = 0;
926 buildInappproductsListResponse() { 965 buildInappproductsListResponse() {
927 var o = new api.InappproductsListResponse(); 966 var o = new api.InappproductsListResponse();
928 buildCounterInappproductsListResponse++; 967 buildCounterInappproductsListResponse++;
929 if (buildCounterInappproductsListResponse < 3) { 968 if (buildCounterInappproductsListResponse < 3) {
930 o.inappproduct = buildUnnamed2804(); 969 o.inappproduct = buildUnnamed2802();
931 o.kind = "foo"; 970 o.kind = "foo";
932 o.pageInfo = buildPageInfo(); 971 o.pageInfo = buildPageInfo();
933 o.tokenPagination = buildTokenPagination(); 972 o.tokenPagination = buildTokenPagination();
934 } 973 }
935 buildCounterInappproductsListResponse--; 974 buildCounterInappproductsListResponse--;
936 return o; 975 return o;
937 } 976 }
938 977
939 checkInappproductsListResponse(api.InappproductsListResponse o) { 978 checkInappproductsListResponse(api.InappproductsListResponse o) {
940 buildCounterInappproductsListResponse++; 979 buildCounterInappproductsListResponse++;
941 if (buildCounterInappproductsListResponse < 3) { 980 if (buildCounterInappproductsListResponse < 3) {
942 checkUnnamed2804(o.inappproduct); 981 checkUnnamed2802(o.inappproduct);
943 unittest.expect(o.kind, unittest.equals('foo')); 982 unittest.expect(o.kind, unittest.equals('foo'));
944 checkPageInfo(o.pageInfo); 983 checkPageInfo(o.pageInfo);
945 checkTokenPagination(o.tokenPagination); 984 checkTokenPagination(o.tokenPagination);
946 } 985 }
947 buildCounterInappproductsListResponse--; 986 buildCounterInappproductsListResponse--;
948 } 987 }
949 988
950 core.int buildCounterInappproductsUpdateRequest = 0; 989 core.int buildCounterInappproductsUpdateRequest = 0;
951 buildInappproductsUpdateRequest() { 990 buildInappproductsUpdateRequest() {
952 var o = new api.InappproductsUpdateRequest(); 991 var o = new api.InappproductsUpdateRequest();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 if (buildCounterListing < 3) { 1044 if (buildCounterListing < 3) {
1006 unittest.expect(o.fullDescription, unittest.equals('foo')); 1045 unittest.expect(o.fullDescription, unittest.equals('foo'));
1007 unittest.expect(o.language, unittest.equals('foo')); 1046 unittest.expect(o.language, unittest.equals('foo'));
1008 unittest.expect(o.shortDescription, unittest.equals('foo')); 1047 unittest.expect(o.shortDescription, unittest.equals('foo'));
1009 unittest.expect(o.title, unittest.equals('foo')); 1048 unittest.expect(o.title, unittest.equals('foo'));
1010 unittest.expect(o.video, unittest.equals('foo')); 1049 unittest.expect(o.video, unittest.equals('foo'));
1011 } 1050 }
1012 buildCounterListing--; 1051 buildCounterListing--;
1013 } 1052 }
1014 1053
1015 buildUnnamed2805() { 1054 buildUnnamed2803() {
1016 var o = new core.List<api.Listing>(); 1055 var o = new core.List<api.Listing>();
1017 o.add(buildListing()); 1056 o.add(buildListing());
1018 o.add(buildListing()); 1057 o.add(buildListing());
1019 return o; 1058 return o;
1020 } 1059 }
1021 1060
1022 checkUnnamed2805(core.List<api.Listing> o) { 1061 checkUnnamed2803(core.List<api.Listing> o) {
1023 unittest.expect(o, unittest.hasLength(2)); 1062 unittest.expect(o, unittest.hasLength(2));
1024 checkListing(o[0]); 1063 checkListing(o[0]);
1025 checkListing(o[1]); 1064 checkListing(o[1]);
1026 } 1065 }
1027 1066
1028 core.int buildCounterListingsListResponse = 0; 1067 core.int buildCounterListingsListResponse = 0;
1029 buildListingsListResponse() { 1068 buildListingsListResponse() {
1030 var o = new api.ListingsListResponse(); 1069 var o = new api.ListingsListResponse();
1031 buildCounterListingsListResponse++; 1070 buildCounterListingsListResponse++;
1032 if (buildCounterListingsListResponse < 3) { 1071 if (buildCounterListingsListResponse < 3) {
1033 o.kind = "foo"; 1072 o.kind = "foo";
1034 o.listings = buildUnnamed2805(); 1073 o.listings = buildUnnamed2803();
1035 } 1074 }
1036 buildCounterListingsListResponse--; 1075 buildCounterListingsListResponse--;
1037 return o; 1076 return o;
1038 } 1077 }
1039 1078
1040 checkListingsListResponse(api.ListingsListResponse o) { 1079 checkListingsListResponse(api.ListingsListResponse o) {
1041 buildCounterListingsListResponse++; 1080 buildCounterListingsListResponse++;
1042 if (buildCounterListingsListResponse < 3) { 1081 if (buildCounterListingsListResponse < 3) {
1043 unittest.expect(o.kind, unittest.equals('foo')); 1082 unittest.expect(o.kind, unittest.equals('foo'));
1044 checkUnnamed2805(o.listings); 1083 checkUnnamed2803(o.listings);
1045 } 1084 }
1046 buildCounterListingsListResponse--; 1085 buildCounterListingsListResponse--;
1047 } 1086 }
1048 1087
1049 core.int buildCounterMonthDay = 0; 1088 core.int buildCounterMonthDay = 0;
1050 buildMonthDay() { 1089 buildMonthDay() {
1051 var o = new api.MonthDay(); 1090 var o = new api.MonthDay();
1052 buildCounterMonthDay++; 1091 buildCounterMonthDay++;
1053 if (buildCounterMonthDay < 3) { 1092 if (buildCounterMonthDay < 3) {
1054 o.day = 42; 1093 o.day = 42;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 1191
1153 checkProrate(api.Prorate o) { 1192 checkProrate(api.Prorate o) {
1154 buildCounterProrate++; 1193 buildCounterProrate++;
1155 if (buildCounterProrate < 3) { 1194 if (buildCounterProrate < 3) {
1156 checkPrice(o.defaultPrice); 1195 checkPrice(o.defaultPrice);
1157 checkMonthDay(o.start); 1196 checkMonthDay(o.start);
1158 } 1197 }
1159 buildCounterProrate--; 1198 buildCounterProrate--;
1160 } 1199 }
1161 1200
1162 buildUnnamed2806() { 1201 buildUnnamed2804() {
1163 var o = new core.List<api.Comment>(); 1202 var o = new core.List<api.Comment>();
1164 o.add(buildComment()); 1203 o.add(buildComment());
1165 o.add(buildComment()); 1204 o.add(buildComment());
1166 return o; 1205 return o;
1167 } 1206 }
1168 1207
1169 checkUnnamed2806(core.List<api.Comment> o) { 1208 checkUnnamed2804(core.List<api.Comment> o) {
1170 unittest.expect(o, unittest.hasLength(2)); 1209 unittest.expect(o, unittest.hasLength(2));
1171 checkComment(o[0]); 1210 checkComment(o[0]);
1172 checkComment(o[1]); 1211 checkComment(o[1]);
1173 } 1212 }
1174 1213
1175 core.int buildCounterReview = 0; 1214 core.int buildCounterReview = 0;
1176 buildReview() { 1215 buildReview() {
1177 var o = new api.Review(); 1216 var o = new api.Review();
1178 buildCounterReview++; 1217 buildCounterReview++;
1179 if (buildCounterReview < 3) { 1218 if (buildCounterReview < 3) {
1180 o.authorName = "foo"; 1219 o.authorName = "foo";
1181 o.comments = buildUnnamed2806(); 1220 o.comments = buildUnnamed2804();
1182 o.reviewId = "foo"; 1221 o.reviewId = "foo";
1183 } 1222 }
1184 buildCounterReview--; 1223 buildCounterReview--;
1185 return o; 1224 return o;
1186 } 1225 }
1187 1226
1188 checkReview(api.Review o) { 1227 checkReview(api.Review o) {
1189 buildCounterReview++; 1228 buildCounterReview++;
1190 if (buildCounterReview < 3) { 1229 if (buildCounterReview < 3) {
1191 unittest.expect(o.authorName, unittest.equals('foo')); 1230 unittest.expect(o.authorName, unittest.equals('foo'));
1192 checkUnnamed2806(o.comments); 1231 checkUnnamed2804(o.comments);
1193 unittest.expect(o.reviewId, unittest.equals('foo')); 1232 unittest.expect(o.reviewId, unittest.equals('foo'));
1194 } 1233 }
1195 buildCounterReview--; 1234 buildCounterReview--;
1196 } 1235 }
1197 1236
1198 core.int buildCounterReviewReplyResult = 0; 1237 core.int buildCounterReviewReplyResult = 0;
1199 buildReviewReplyResult() { 1238 buildReviewReplyResult() {
1200 var o = new api.ReviewReplyResult(); 1239 var o = new api.ReviewReplyResult();
1201 buildCounterReviewReplyResult++; 1240 buildCounterReviewReplyResult++;
1202 if (buildCounterReviewReplyResult < 3) { 1241 if (buildCounterReviewReplyResult < 3) {
1203 o.lastEdited = buildTimestamp(); 1242 o.lastEdited = buildTimestamp();
1204 o.replyText = "foo"; 1243 o.replyText = "foo";
1205 } 1244 }
1206 buildCounterReviewReplyResult--; 1245 buildCounterReviewReplyResult--;
1207 return o; 1246 return o;
1208 } 1247 }
1209 1248
1210 checkReviewReplyResult(api.ReviewReplyResult o) { 1249 checkReviewReplyResult(api.ReviewReplyResult o) {
1211 buildCounterReviewReplyResult++; 1250 buildCounterReviewReplyResult++;
1212 if (buildCounterReviewReplyResult < 3) { 1251 if (buildCounterReviewReplyResult < 3) {
1213 checkTimestamp(o.lastEdited); 1252 checkTimestamp(o.lastEdited);
1214 unittest.expect(o.replyText, unittest.equals('foo')); 1253 unittest.expect(o.replyText, unittest.equals('foo'));
1215 } 1254 }
1216 buildCounterReviewReplyResult--; 1255 buildCounterReviewReplyResult--;
1217 } 1256 }
1218 1257
1219 buildUnnamed2807() { 1258 buildUnnamed2805() {
1220 var o = new core.List<api.Review>(); 1259 var o = new core.List<api.Review>();
1221 o.add(buildReview()); 1260 o.add(buildReview());
1222 o.add(buildReview()); 1261 o.add(buildReview());
1223 return o; 1262 return o;
1224 } 1263 }
1225 1264
1226 checkUnnamed2807(core.List<api.Review> o) { 1265 checkUnnamed2805(core.List<api.Review> o) {
1227 unittest.expect(o, unittest.hasLength(2)); 1266 unittest.expect(o, unittest.hasLength(2));
1228 checkReview(o[0]); 1267 checkReview(o[0]);
1229 checkReview(o[1]); 1268 checkReview(o[1]);
1230 } 1269 }
1231 1270
1232 core.int buildCounterReviewsListResponse = 0; 1271 core.int buildCounterReviewsListResponse = 0;
1233 buildReviewsListResponse() { 1272 buildReviewsListResponse() {
1234 var o = new api.ReviewsListResponse(); 1273 var o = new api.ReviewsListResponse();
1235 buildCounterReviewsListResponse++; 1274 buildCounterReviewsListResponse++;
1236 if (buildCounterReviewsListResponse < 3) { 1275 if (buildCounterReviewsListResponse < 3) {
1237 o.pageInfo = buildPageInfo(); 1276 o.pageInfo = buildPageInfo();
1238 o.reviews = buildUnnamed2807(); 1277 o.reviews = buildUnnamed2805();
1239 o.tokenPagination = buildTokenPagination(); 1278 o.tokenPagination = buildTokenPagination();
1240 } 1279 }
1241 buildCounterReviewsListResponse--; 1280 buildCounterReviewsListResponse--;
1242 return o; 1281 return o;
1243 } 1282 }
1244 1283
1245 checkReviewsListResponse(api.ReviewsListResponse o) { 1284 checkReviewsListResponse(api.ReviewsListResponse o) {
1246 buildCounterReviewsListResponse++; 1285 buildCounterReviewsListResponse++;
1247 if (buildCounterReviewsListResponse < 3) { 1286 if (buildCounterReviewsListResponse < 3) {
1248 checkPageInfo(o.pageInfo); 1287 checkPageInfo(o.pageInfo);
1249 checkUnnamed2807(o.reviews); 1288 checkUnnamed2805(o.reviews);
1250 checkTokenPagination(o.tokenPagination); 1289 checkTokenPagination(o.tokenPagination);
1251 } 1290 }
1252 buildCounterReviewsListResponse--; 1291 buildCounterReviewsListResponse--;
1253 } 1292 }
1254 1293
1255 core.int buildCounterReviewsReplyRequest = 0; 1294 core.int buildCounterReviewsReplyRequest = 0;
1256 buildReviewsReplyRequest() { 1295 buildReviewsReplyRequest() {
1257 var o = new api.ReviewsReplyRequest(); 1296 var o = new api.ReviewsReplyRequest();
1258 buildCounterReviewsReplyRequest++; 1297 buildCounterReviewsReplyRequest++;
1259 if (buildCounterReviewsReplyRequest < 3) { 1298 if (buildCounterReviewsReplyRequest < 3) {
(...skipping 23 matching lines...) Expand all
1283 } 1322 }
1284 1323
1285 checkReviewsReplyResponse(api.ReviewsReplyResponse o) { 1324 checkReviewsReplyResponse(api.ReviewsReplyResponse o) {
1286 buildCounterReviewsReplyResponse++; 1325 buildCounterReviewsReplyResponse++;
1287 if (buildCounterReviewsReplyResponse < 3) { 1326 if (buildCounterReviewsReplyResponse < 3) {
1288 checkReviewReplyResult(o.result); 1327 checkReviewReplyResult(o.result);
1289 } 1328 }
1290 buildCounterReviewsReplyResponse--; 1329 buildCounterReviewsReplyResponse--;
1291 } 1330 }
1292 1331
1293 buildUnnamed2808() { 1332 buildUnnamed2806() {
1294 var o = new core.List<api.Prorate>(); 1333 var o = new core.List<api.Prorate>();
1295 o.add(buildProrate()); 1334 o.add(buildProrate());
1296 o.add(buildProrate()); 1335 o.add(buildProrate());
1297 return o; 1336 return o;
1298 } 1337 }
1299 1338
1300 checkUnnamed2808(core.List<api.Prorate> o) { 1339 checkUnnamed2806(core.List<api.Prorate> o) {
1301 unittest.expect(o, unittest.hasLength(2)); 1340 unittest.expect(o, unittest.hasLength(2));
1302 checkProrate(o[0]); 1341 checkProrate(o[0]);
1303 checkProrate(o[1]); 1342 checkProrate(o[1]);
1304 } 1343 }
1305 1344
1306 core.int buildCounterSeason = 0; 1345 core.int buildCounterSeason = 0;
1307 buildSeason() { 1346 buildSeason() {
1308 var o = new api.Season(); 1347 var o = new api.Season();
1309 buildCounterSeason++; 1348 buildCounterSeason++;
1310 if (buildCounterSeason < 3) { 1349 if (buildCounterSeason < 3) {
1311 o.end = buildMonthDay(); 1350 o.end = buildMonthDay();
1312 o.prorations = buildUnnamed2808(); 1351 o.prorations = buildUnnamed2806();
1313 o.start = buildMonthDay(); 1352 o.start = buildMonthDay();
1314 } 1353 }
1315 buildCounterSeason--; 1354 buildCounterSeason--;
1316 return o; 1355 return o;
1317 } 1356 }
1318 1357
1319 checkSeason(api.Season o) { 1358 checkSeason(api.Season o) {
1320 buildCounterSeason++; 1359 buildCounterSeason++;
1321 if (buildCounterSeason < 3) { 1360 if (buildCounterSeason < 3) {
1322 checkMonthDay(o.end); 1361 checkMonthDay(o.end);
1323 checkUnnamed2808(o.prorations); 1362 checkUnnamed2806(o.prorations);
1324 checkMonthDay(o.start); 1363 checkMonthDay(o.start);
1325 } 1364 }
1326 buildCounterSeason--; 1365 buildCounterSeason--;
1327 } 1366 }
1328 1367
1329 core.int buildCounterSubscriptionDeferralInfo = 0; 1368 core.int buildCounterSubscriptionDeferralInfo = 0;
1330 buildSubscriptionDeferralInfo() { 1369 buildSubscriptionDeferralInfo() {
1331 var o = new api.SubscriptionDeferralInfo(); 1370 var o = new api.SubscriptionDeferralInfo();
1332 buildCounterSubscriptionDeferralInfo++; 1371 buildCounterSubscriptionDeferralInfo++;
1333 if (buildCounterSubscriptionDeferralInfo < 3) { 1372 if (buildCounterSubscriptionDeferralInfo < 3) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 } 1454 }
1416 1455
1417 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o ) { 1456 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o ) {
1418 buildCounterSubscriptionPurchasesDeferResponse++; 1457 buildCounterSubscriptionPurchasesDeferResponse++;
1419 if (buildCounterSubscriptionPurchasesDeferResponse < 3) { 1458 if (buildCounterSubscriptionPurchasesDeferResponse < 3) {
1420 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo')); 1459 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo'));
1421 } 1460 }
1422 buildCounterSubscriptionPurchasesDeferResponse--; 1461 buildCounterSubscriptionPurchasesDeferResponse--;
1423 } 1462 }
1424 1463
1425 buildUnnamed2809() { 1464 buildUnnamed2807() {
1426 var o = new core.List<core.String>(); 1465 var o = new core.List<core.String>();
1427 o.add("foo"); 1466 o.add("foo");
1428 o.add("foo"); 1467 o.add("foo");
1429 return o; 1468 return o;
1430 } 1469 }
1431 1470
1432 checkUnnamed2809(core.List<core.String> o) { 1471 checkUnnamed2807(core.List<core.String> o) {
1433 unittest.expect(o, unittest.hasLength(2)); 1472 unittest.expect(o, unittest.hasLength(2));
1434 unittest.expect(o[0], unittest.equals('foo')); 1473 unittest.expect(o[0], unittest.equals('foo'));
1435 unittest.expect(o[1], unittest.equals('foo')); 1474 unittest.expect(o[1], unittest.equals('foo'));
1436 } 1475 }
1437 1476
1438 buildUnnamed2810() { 1477 buildUnnamed2808() {
1439 var o = new core.List<core.String>(); 1478 var o = new core.List<core.String>();
1440 o.add("foo"); 1479 o.add("foo");
1441 o.add("foo"); 1480 o.add("foo");
1442 return o; 1481 return o;
1443 } 1482 }
1444 1483
1445 checkUnnamed2810(core.List<core.String> o) { 1484 checkUnnamed2808(core.List<core.String> o) {
1446 unittest.expect(o, unittest.hasLength(2)); 1485 unittest.expect(o, unittest.hasLength(2));
1447 unittest.expect(o[0], unittest.equals('foo')); 1486 unittest.expect(o[0], unittest.equals('foo'));
1448 unittest.expect(o[1], unittest.equals('foo')); 1487 unittest.expect(o[1], unittest.equals('foo'));
1449 } 1488 }
1450 1489
1451 core.int buildCounterTesters = 0; 1490 core.int buildCounterTesters = 0;
1452 buildTesters() { 1491 buildTesters() {
1453 var o = new api.Testers(); 1492 var o = new api.Testers();
1454 buildCounterTesters++; 1493 buildCounterTesters++;
1455 if (buildCounterTesters < 3) { 1494 if (buildCounterTesters < 3) {
1456 o.googleGroups = buildUnnamed2809(); 1495 o.googleGroups = buildUnnamed2807();
1457 o.googlePlusCommunities = buildUnnamed2810(); 1496 o.googlePlusCommunities = buildUnnamed2808();
1458 } 1497 }
1459 buildCounterTesters--; 1498 buildCounterTesters--;
1460 return o; 1499 return o;
1461 } 1500 }
1462 1501
1463 checkTesters(api.Testers o) { 1502 checkTesters(api.Testers o) {
1464 buildCounterTesters++; 1503 buildCounterTesters++;
1465 if (buildCounterTesters < 3) { 1504 if (buildCounterTesters < 3) {
1466 checkUnnamed2809(o.googleGroups); 1505 checkUnnamed2807(o.googleGroups);
1467 checkUnnamed2810(o.googlePlusCommunities); 1506 checkUnnamed2808(o.googlePlusCommunities);
1468 } 1507 }
1469 buildCounterTesters--; 1508 buildCounterTesters--;
1470 } 1509 }
1471 1510
1472 core.int buildCounterTimestamp = 0; 1511 core.int buildCounterTimestamp = 0;
1473 buildTimestamp() { 1512 buildTimestamp() {
1474 var o = new api.Timestamp(); 1513 var o = new api.Timestamp();
1475 buildCounterTimestamp++; 1514 buildCounterTimestamp++;
1476 if (buildCounterTimestamp < 3) { 1515 if (buildCounterTimestamp < 3) {
1477 o.nanos = 42; 1516 o.nanos = 42;
(...skipping 26 matching lines...) Expand all
1504 1543
1505 checkTokenPagination(api.TokenPagination o) { 1544 checkTokenPagination(api.TokenPagination o) {
1506 buildCounterTokenPagination++; 1545 buildCounterTokenPagination++;
1507 if (buildCounterTokenPagination < 3) { 1546 if (buildCounterTokenPagination < 3) {
1508 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1547 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1509 unittest.expect(o.previousPageToken, unittest.equals('foo')); 1548 unittest.expect(o.previousPageToken, unittest.equals('foo'));
1510 } 1549 }
1511 buildCounterTokenPagination--; 1550 buildCounterTokenPagination--;
1512 } 1551 }
1513 1552
1514 buildUnnamed2811() { 1553 buildUnnamed2809() {
1515 var o = new core.List<core.int>(); 1554 var o = new core.List<core.int>();
1516 o.add(42); 1555 o.add(42);
1517 o.add(42); 1556 o.add(42);
1518 return o; 1557 return o;
1519 } 1558 }
1520 1559
1521 checkUnnamed2811(core.List<core.int> o) { 1560 checkUnnamed2809(core.List<core.int> o) {
1522 unittest.expect(o, unittest.hasLength(2)); 1561 unittest.expect(o, unittest.hasLength(2));
1523 unittest.expect(o[0], unittest.equals(42)); 1562 unittest.expect(o[0], unittest.equals(42));
1524 unittest.expect(o[1], unittest.equals(42)); 1563 unittest.expect(o[1], unittest.equals(42));
1525 } 1564 }
1526 1565
1527 core.int buildCounterTrack = 0; 1566 core.int buildCounterTrack = 0;
1528 buildTrack() { 1567 buildTrack() {
1529 var o = new api.Track(); 1568 var o = new api.Track();
1530 buildCounterTrack++; 1569 buildCounterTrack++;
1531 if (buildCounterTrack < 3) { 1570 if (buildCounterTrack < 3) {
1532 o.track = "foo"; 1571 o.track = "foo";
1533 o.userFraction = 42.0; 1572 o.userFraction = 42.0;
1534 o.versionCodes = buildUnnamed2811(); 1573 o.versionCodes = buildUnnamed2809();
1535 } 1574 }
1536 buildCounterTrack--; 1575 buildCounterTrack--;
1537 return o; 1576 return o;
1538 } 1577 }
1539 1578
1540 checkTrack(api.Track o) { 1579 checkTrack(api.Track o) {
1541 buildCounterTrack++; 1580 buildCounterTrack++;
1542 if (buildCounterTrack < 3) { 1581 if (buildCounterTrack < 3) {
1543 unittest.expect(o.track, unittest.equals('foo')); 1582 unittest.expect(o.track, unittest.equals('foo'));
1544 unittest.expect(o.userFraction, unittest.equals(42.0)); 1583 unittest.expect(o.userFraction, unittest.equals(42.0));
1545 checkUnnamed2811(o.versionCodes); 1584 checkUnnamed2809(o.versionCodes);
1546 } 1585 }
1547 buildCounterTrack--; 1586 buildCounterTrack--;
1548 } 1587 }
1549 1588
1550 buildUnnamed2812() { 1589 buildUnnamed2810() {
1551 var o = new core.List<api.Track>(); 1590 var o = new core.List<api.Track>();
1552 o.add(buildTrack()); 1591 o.add(buildTrack());
1553 o.add(buildTrack()); 1592 o.add(buildTrack());
1554 return o; 1593 return o;
1555 } 1594 }
1556 1595
1557 checkUnnamed2812(core.List<api.Track> o) { 1596 checkUnnamed2810(core.List<api.Track> o) {
1558 unittest.expect(o, unittest.hasLength(2)); 1597 unittest.expect(o, unittest.hasLength(2));
1559 checkTrack(o[0]); 1598 checkTrack(o[0]);
1560 checkTrack(o[1]); 1599 checkTrack(o[1]);
1561 } 1600 }
1562 1601
1563 core.int buildCounterTracksListResponse = 0; 1602 core.int buildCounterTracksListResponse = 0;
1564 buildTracksListResponse() { 1603 buildTracksListResponse() {
1565 var o = new api.TracksListResponse(); 1604 var o = new api.TracksListResponse();
1566 buildCounterTracksListResponse++; 1605 buildCounterTracksListResponse++;
1567 if (buildCounterTracksListResponse < 3) { 1606 if (buildCounterTracksListResponse < 3) {
1568 o.kind = "foo"; 1607 o.kind = "foo";
1569 o.tracks = buildUnnamed2812(); 1608 o.tracks = buildUnnamed2810();
1570 } 1609 }
1571 buildCounterTracksListResponse--; 1610 buildCounterTracksListResponse--;
1572 return o; 1611 return o;
1573 } 1612 }
1574 1613
1575 checkTracksListResponse(api.TracksListResponse o) { 1614 checkTracksListResponse(api.TracksListResponse o) {
1576 buildCounterTracksListResponse++; 1615 buildCounterTracksListResponse++;
1577 if (buildCounterTracksListResponse < 3) { 1616 if (buildCounterTracksListResponse < 3) {
1578 unittest.expect(o.kind, unittest.equals('foo')); 1617 unittest.expect(o.kind, unittest.equals('foo'));
1579 checkUnnamed2812(o.tracks); 1618 checkUnnamed2810(o.tracks);
1580 } 1619 }
1581 buildCounterTracksListResponse--; 1620 buildCounterTracksListResponse--;
1582 } 1621 }
1583 1622
1584 core.int buildCounterUserComment = 0; 1623 core.int buildCounterUserComment = 0;
1585 buildUserComment() { 1624 buildUserComment() {
1586 var o = new api.UserComment(); 1625 var o = new api.UserComment();
1587 buildCounterUserComment++; 1626 buildCounterUserComment++;
1588 if (buildCounterUserComment < 3) { 1627 if (buildCounterUserComment < 3) {
1589 o.androidOsVersion = 42; 1628 o.androidOsVersion = 42;
1590 o.appVersionCode = 42; 1629 o.appVersionCode = 42;
1591 o.appVersionName = "foo"; 1630 o.appVersionName = "foo";
1592 o.device = "foo"; 1631 o.device = "foo";
1632 o.deviceMetadata = buildDeviceMetadata();
1593 o.lastModified = buildTimestamp(); 1633 o.lastModified = buildTimestamp();
1634 o.originalText = "foo";
1594 o.reviewerLanguage = "foo"; 1635 o.reviewerLanguage = "foo";
1595 o.starRating = 42; 1636 o.starRating = 42;
1596 o.text = "foo"; 1637 o.text = "foo";
1638 o.thumbsDownCount = 42;
1639 o.thumbsUpCount = 42;
1597 } 1640 }
1598 buildCounterUserComment--; 1641 buildCounterUserComment--;
1599 return o; 1642 return o;
1600 } 1643 }
1601 1644
1602 checkUserComment(api.UserComment o) { 1645 checkUserComment(api.UserComment o) {
1603 buildCounterUserComment++; 1646 buildCounterUserComment++;
1604 if (buildCounterUserComment < 3) { 1647 if (buildCounterUserComment < 3) {
1605 unittest.expect(o.androidOsVersion, unittest.equals(42)); 1648 unittest.expect(o.androidOsVersion, unittest.equals(42));
1606 unittest.expect(o.appVersionCode, unittest.equals(42)); 1649 unittest.expect(o.appVersionCode, unittest.equals(42));
1607 unittest.expect(o.appVersionName, unittest.equals('foo')); 1650 unittest.expect(o.appVersionName, unittest.equals('foo'));
1608 unittest.expect(o.device, unittest.equals('foo')); 1651 unittest.expect(o.device, unittest.equals('foo'));
1652 checkDeviceMetadata(o.deviceMetadata);
1609 checkTimestamp(o.lastModified); 1653 checkTimestamp(o.lastModified);
1654 unittest.expect(o.originalText, unittest.equals('foo'));
1610 unittest.expect(o.reviewerLanguage, unittest.equals('foo')); 1655 unittest.expect(o.reviewerLanguage, unittest.equals('foo'));
1611 unittest.expect(o.starRating, unittest.equals(42)); 1656 unittest.expect(o.starRating, unittest.equals(42));
1612 unittest.expect(o.text, unittest.equals('foo')); 1657 unittest.expect(o.text, unittest.equals('foo'));
1658 unittest.expect(o.thumbsDownCount, unittest.equals(42));
1659 unittest.expect(o.thumbsUpCount, unittest.equals(42));
1613 } 1660 }
1614 buildCounterUserComment--; 1661 buildCounterUserComment--;
1615 } 1662 }
1616 1663
1664 core.int buildCounterVoidedPurchase = 0;
1665 buildVoidedPurchase() {
1666 var o = new api.VoidedPurchase();
1667 buildCounterVoidedPurchase++;
1668 if (buildCounterVoidedPurchase < 3) {
1669 o.kind = "foo";
1670 o.purchaseTimeMillis = "foo";
1671 o.purchaseToken = "foo";
1672 o.voidedTimeMillis = "foo";
1673 }
1674 buildCounterVoidedPurchase--;
1675 return o;
1676 }
1677
1678 checkVoidedPurchase(api.VoidedPurchase o) {
1679 buildCounterVoidedPurchase++;
1680 if (buildCounterVoidedPurchase < 3) {
1681 unittest.expect(o.kind, unittest.equals('foo'));
1682 unittest.expect(o.purchaseTimeMillis, unittest.equals('foo'));
1683 unittest.expect(o.purchaseToken, unittest.equals('foo'));
1684 unittest.expect(o.voidedTimeMillis, unittest.equals('foo'));
1685 }
1686 buildCounterVoidedPurchase--;
1687 }
1688
1689 buildUnnamed2811() {
1690 var o = new core.List<api.VoidedPurchase>();
1691 o.add(buildVoidedPurchase());
1692 o.add(buildVoidedPurchase());
1693 return o;
1694 }
1695
1696 checkUnnamed2811(core.List<api.VoidedPurchase> o) {
1697 unittest.expect(o, unittest.hasLength(2));
1698 checkVoidedPurchase(o[0]);
1699 checkVoidedPurchase(o[1]);
1700 }
1701
1702 core.int buildCounterVoidedPurchasesListResponse = 0;
1703 buildVoidedPurchasesListResponse() {
1704 var o = new api.VoidedPurchasesListResponse();
1705 buildCounterVoidedPurchasesListResponse++;
1706 if (buildCounterVoidedPurchasesListResponse < 3) {
1707 o.pageInfo = buildPageInfo();
1708 o.tokenPagination = buildTokenPagination();
1709 o.voidedPurchases = buildUnnamed2811();
1710 }
1711 buildCounterVoidedPurchasesListResponse--;
1712 return o;
1713 }
1714
1715 checkVoidedPurchasesListResponse(api.VoidedPurchasesListResponse o) {
1716 buildCounterVoidedPurchasesListResponse++;
1717 if (buildCounterVoidedPurchasesListResponse < 3) {
1718 checkPageInfo(o.pageInfo);
1719 checkTokenPagination(o.tokenPagination);
1720 checkUnnamed2811(o.voidedPurchases);
1721 }
1722 buildCounterVoidedPurchasesListResponse--;
1723 }
1724
1617 1725
1618 main() { 1726 main() {
1619 unittest.group("obj-schema-Apk", () { 1727 unittest.group("obj-schema-Apk", () {
1620 unittest.test("to-json--from-json", () { 1728 unittest.test("to-json--from-json", () {
1621 var o = buildApk(); 1729 var o = buildApk();
1622 var od = new api.Apk.fromJson(o.toJson()); 1730 var od = new api.Apk.fromJson(o.toJson());
1623 checkApk(od); 1731 checkApk(od);
1624 }); 1732 });
1625 }); 1733 });
1626 1734
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 1834
1727 unittest.group("obj-schema-DeveloperComment", () { 1835 unittest.group("obj-schema-DeveloperComment", () {
1728 unittest.test("to-json--from-json", () { 1836 unittest.test("to-json--from-json", () {
1729 var o = buildDeveloperComment(); 1837 var o = buildDeveloperComment();
1730 var od = new api.DeveloperComment.fromJson(o.toJson()); 1838 var od = new api.DeveloperComment.fromJson(o.toJson());
1731 checkDeveloperComment(od); 1839 checkDeveloperComment(od);
1732 }); 1840 });
1733 }); 1841 });
1734 1842
1735 1843
1844 unittest.group("obj-schema-DeviceMetadata", () {
1845 unittest.test("to-json--from-json", () {
1846 var o = buildDeviceMetadata();
1847 var od = new api.DeviceMetadata.fromJson(o.toJson());
1848 checkDeviceMetadata(od);
1849 });
1850 });
1851
1852
1736 unittest.group("obj-schema-Entitlement", () { 1853 unittest.group("obj-schema-Entitlement", () {
1737 unittest.test("to-json--from-json", () { 1854 unittest.test("to-json--from-json", () {
1738 var o = buildEntitlement(); 1855 var o = buildEntitlement();
1739 var od = new api.Entitlement.fromJson(o.toJson()); 1856 var od = new api.Entitlement.fromJson(o.toJson());
1740 checkEntitlement(od); 1857 checkEntitlement(od);
1741 }); 1858 });
1742 }); 1859 });
1743 1860
1744 1861
1745 unittest.group("obj-schema-EntitlementsListResponse", () { 1862 unittest.group("obj-schema-EntitlementsListResponse", () {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 2239
2123 unittest.group("obj-schema-UserComment", () { 2240 unittest.group("obj-schema-UserComment", () {
2124 unittest.test("to-json--from-json", () { 2241 unittest.test("to-json--from-json", () {
2125 var o = buildUserComment(); 2242 var o = buildUserComment();
2126 var od = new api.UserComment.fromJson(o.toJson()); 2243 var od = new api.UserComment.fromJson(o.toJson());
2127 checkUserComment(od); 2244 checkUserComment(od);
2128 }); 2245 });
2129 }); 2246 });
2130 2247
2131 2248
2249 unittest.group("obj-schema-VoidedPurchase", () {
2250 unittest.test("to-json--from-json", () {
2251 var o = buildVoidedPurchase();
2252 var od = new api.VoidedPurchase.fromJson(o.toJson());
2253 checkVoidedPurchase(od);
2254 });
2255 });
2256
2257
2258 unittest.group("obj-schema-VoidedPurchasesListResponse", () {
2259 unittest.test("to-json--from-json", () {
2260 var o = buildVoidedPurchasesListResponse();
2261 var od = new api.VoidedPurchasesListResponse.fromJson(o.toJson());
2262 checkVoidedPurchasesListResponse(od);
2263 });
2264 });
2265
2266
2132 unittest.group("resource-EditsResourceApi", () { 2267 unittest.group("resource-EditsResourceApi", () {
2133 unittest.test("method--commit", () { 2268 unittest.test("method--commit", () {
2134 2269
2135 var mock = new HttpServerMock(); 2270 var mock = new HttpServerMock();
2136 api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits; 2271 api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
2137 var arg_packageName = "foo"; 2272 var arg_packageName = "foo";
2138 var arg_editId = "foo"; 2273 var arg_editId = "foo";
2139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2274 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2140 var path = (req.url).path; 2275 var path = (req.url).path;
2141 var pathOffset = 0; 2276 var pathOffset = 0;
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after
4584 }; 4719 };
4585 var resp = ""; 4720 var resp = "";
4586 return new async.Future.value(stringResponse(200, h, resp)); 4721 return new async.Future.value(stringResponse(200, h, resp));
4587 }), true); 4722 }), true);
4588 res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.e xpectAsync((_) {})); 4723 res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.e xpectAsync((_) {}));
4589 }); 4724 });
4590 4725
4591 }); 4726 });
4592 4727
4593 4728
4729 unittest.group("resource-PurchasesVoidedpurchasesResourceApi", () {
4730 unittest.test("method--list", () {
4731
4732 var mock = new HttpServerMock();
4733 api.PurchasesVoidedpurchasesResourceApi res = new api.AndroidpublisherApi( mock).purchases.voidedpurchases;
4734 var arg_packageName = "foo";
4735 var arg_endTime = "foo";
4736 var arg_maxResults = 42;
4737 var arg_startIndex = 42;
4738 var arg_startTime = "foo";
4739 var arg_token = "foo";
4740 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4741 var path = (req.url).path;
4742 var pathOffset = 0;
4743 var index;
4744 var subPart;
4745 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4746 pathOffset += 1;
4747
4748 var query = (req.url).query;
4749 var queryOffset = 0;
4750 var queryMap = {};
4751 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4752 parseBool(n) {
4753 if (n == "true") return true;
4754 if (n == "false") return false;
4755 if (n == null) return null;
4756 throw new core.ArgumentError("Invalid boolean: $n");
4757 }
4758 if (query.length > 0) {
4759 for (var part in query.split("&")) {
4760 var keyvalue = part.split("=");
4761 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4762 }
4763 }
4764 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ;
4765 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
4766 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
4767 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
4768 unittest.expect(queryMap["token"].first, unittest.equals(arg_token));
4769
4770
4771 var h = {
4772 "content-type" : "application/json; charset=utf-8",
4773 };
4774 var resp = convert.JSON.encode(buildVoidedPurchasesListResponse());
4775 return new async.Future.value(stringResponse(200, h, resp));
4776 }), true);
4777 res.list(arg_packageName, endTime: arg_endTime, maxResults: arg_maxResults , startIndex: arg_startIndex, startTime: arg_startTime, token: arg_token).then(u nittest.expectAsync(((api.VoidedPurchasesListResponse response) {
4778 checkVoidedPurchasesListResponse(response);
4779 })));
4780 });
4781
4782 });
4783
4784
4594 unittest.group("resource-ReviewsResourceApi", () { 4785 unittest.group("resource-ReviewsResourceApi", () {
4595 unittest.test("method--get", () { 4786 unittest.test("method--get", () {
4596 4787
4597 var mock = new HttpServerMock(); 4788 var mock = new HttpServerMock();
4598 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews; 4789 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews;
4599 var arg_packageName = "foo"; 4790 var arg_packageName = "foo";
4600 var arg_reviewId = "foo"; 4791 var arg_reviewId = "foo";
4792 var arg_translationLanguage = "foo";
4601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4793 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4602 var path = (req.url).path; 4794 var path = (req.url).path;
4603 var pathOffset = 0; 4795 var pathOffset = 0;
4604 var index; 4796 var index;
4605 var subPart; 4797 var subPart;
4606 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4607 pathOffset += 1; 4799 pathOffset += 1;
4608 4800
4609 var query = (req.url).query; 4801 var query = (req.url).query;
4610 var queryOffset = 0; 4802 var queryOffset = 0;
4611 var queryMap = {}; 4803 var queryMap = {};
4612 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4804 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4613 parseBool(n) { 4805 parseBool(n) {
4614 if (n == "true") return true; 4806 if (n == "true") return true;
4615 if (n == "false") return false; 4807 if (n == "false") return false;
4616 if (n == null) return null; 4808 if (n == null) return null;
4617 throw new core.ArgumentError("Invalid boolean: $n"); 4809 throw new core.ArgumentError("Invalid boolean: $n");
4618 } 4810 }
4619 if (query.length > 0) { 4811 if (query.length > 0) {
4620 for (var part in query.split("&")) { 4812 for (var part in query.split("&")) {
4621 var keyvalue = part.split("="); 4813 var keyvalue = part.split("=");
4622 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4814 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4623 } 4815 }
4624 } 4816 }
4817 unittest.expect(queryMap["translationLanguage"].first, unittest.equals(a rg_translationLanguage));
4625 4818
4626 4819
4627 var h = { 4820 var h = {
4628 "content-type" : "application/json; charset=utf-8", 4821 "content-type" : "application/json; charset=utf-8",
4629 }; 4822 };
4630 var resp = convert.JSON.encode(buildReview()); 4823 var resp = convert.JSON.encode(buildReview());
4631 return new async.Future.value(stringResponse(200, h, resp)); 4824 return new async.Future.value(stringResponse(200, h, resp));
4632 }), true); 4825 }), true);
4633 res.get(arg_packageName, arg_reviewId).then(unittest.expectAsync(((api.Rev iew response) { 4826 res.get(arg_packageName, arg_reviewId, translationLanguage: arg_translatio nLanguage).then(unittest.expectAsync(((api.Review response) {
4634 checkReview(response); 4827 checkReview(response);
4635 }))); 4828 })));
4636 }); 4829 });
4637 4830
4638 unittest.test("method--list", () { 4831 unittest.test("method--list", () {
4639 4832
4640 var mock = new HttpServerMock(); 4833 var mock = new HttpServerMock();
4641 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews; 4834 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews;
4642 var arg_packageName = "foo"; 4835 var arg_packageName = "foo";
4643 var arg_maxResults = 42; 4836 var arg_maxResults = 42;
4644 var arg_startIndex = 42; 4837 var arg_startIndex = 42;
4645 var arg_token = "foo"; 4838 var arg_token = "foo";
4839 var arg_translationLanguage = "foo";
4646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4840 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4647 var path = (req.url).path; 4841 var path = (req.url).path;
4648 var pathOffset = 0; 4842 var pathOffset = 0;
4649 var index; 4843 var index;
4650 var subPart; 4844 var subPart;
4651 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4845 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4652 pathOffset += 1; 4846 pathOffset += 1;
4653 4847
4654 var query = (req.url).query; 4848 var query = (req.url).query;
4655 var queryOffset = 0; 4849 var queryOffset = 0;
4656 var queryMap = {}; 4850 var queryMap = {};
4657 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4851 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4658 parseBool(n) { 4852 parseBool(n) {
4659 if (n == "true") return true; 4853 if (n == "true") return true;
4660 if (n == "false") return false; 4854 if (n == "false") return false;
4661 if (n == null) return null; 4855 if (n == null) return null;
4662 throw new core.ArgumentError("Invalid boolean: $n"); 4856 throw new core.ArgumentError("Invalid boolean: $n");
4663 } 4857 }
4664 if (query.length > 0) { 4858 if (query.length > 0) {
4665 for (var part in query.split("&")) { 4859 for (var part in query.split("&")) {
4666 var keyvalue = part.split("="); 4860 var keyvalue = part.split("=");
4667 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4668 } 4862 }
4669 } 4863 }
4670 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 4864 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
4671 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 4865 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
4672 unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); 4866 unittest.expect(queryMap["token"].first, unittest.equals(arg_token));
4867 unittest.expect(queryMap["translationLanguage"].first, unittest.equals(a rg_translationLanguage));
4673 4868
4674 4869
4675 var h = { 4870 var h = {
4676 "content-type" : "application/json; charset=utf-8", 4871 "content-type" : "application/json; charset=utf-8",
4677 }; 4872 };
4678 var resp = convert.JSON.encode(buildReviewsListResponse()); 4873 var resp = convert.JSON.encode(buildReviewsListResponse());
4679 return new async.Future.value(stringResponse(200, h, resp)); 4874 return new async.Future.value(stringResponse(200, h, resp));
4680 }), true); 4875 }), true);
4681 res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_star tIndex, token: arg_token).then(unittest.expectAsync(((api.ReviewsListResponse re sponse) { 4876 res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_star tIndex, token: arg_token, translationLanguage: arg_translationLanguage).then(uni ttest.expectAsync(((api.ReviewsListResponse response) {
4682 checkReviewsListResponse(response); 4877 checkReviewsListResponse(response);
4683 }))); 4878 })));
4684 }); 4879 });
4685 4880
4686 unittest.test("method--reply", () { 4881 unittest.test("method--reply", () {
4687 4882
4688 var mock = new HttpServerMock(); 4883 var mock = new HttpServerMock();
4689 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews; 4884 api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews;
4690 var arg_request = buildReviewsReplyRequest(); 4885 var arg_request = buildReviewsReplyRequest();
4691 var arg_packageName = "foo"; 4886 var arg_packageName = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
4728 res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expect Async(((api.ReviewsReplyResponse response) { 4923 res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expect Async(((api.ReviewsReplyResponse response) {
4729 checkReviewsReplyResponse(response); 4924 checkReviewsReplyResponse(response);
4730 }))); 4925 })));
4731 }); 4926 });
4732 4927
4733 }); 4928 });
4734 4929
4735 4930
4736 } 4931 }
4737 4932
OLDNEW
« no previous file with comments | « generated/googleapis/test/androidenterprise/v1_test.dart ('k') | generated/googleapis/test/appengine/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698