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

Side by Side Diff: generated/googleapis/test/appengine/v1_test.dart

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 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.appengine.v1.test; 1 library googleapis.appengine.v1.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { 92 checkApiEndpointHandler(api.ApiEndpointHandler o) {
93 buildCounterApiEndpointHandler++; 93 buildCounterApiEndpointHandler++;
94 if (buildCounterApiEndpointHandler < 3) { 94 if (buildCounterApiEndpointHandler < 3) {
95 unittest.expect(o.scriptPath, unittest.equals('foo')); 95 unittest.expect(o.scriptPath, unittest.equals('foo'));
96 } 96 }
97 buildCounterApiEndpointHandler--; 97 buildCounterApiEndpointHandler--;
98 } 98 }
99 99
100 buildUnnamed454() { 100 buildUnnamed3347() {
101 var o = new core.List<api.UrlDispatchRule>(); 101 var o = new core.List<api.UrlDispatchRule>();
102 o.add(buildUrlDispatchRule()); 102 o.add(buildUrlDispatchRule());
103 o.add(buildUrlDispatchRule()); 103 o.add(buildUrlDispatchRule());
104 return o; 104 return o;
105 } 105 }
106 106
107 checkUnnamed454(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3347(core.List<api.UrlDispatchRule> o) {
108 unittest.expect(o, unittest.hasLength(2)); 108 unittest.expect(o, unittest.hasLength(2));
109 checkUrlDispatchRule(o[0]); 109 checkUrlDispatchRule(o[0]);
110 checkUrlDispatchRule(o[1]); 110 checkUrlDispatchRule(o[1]);
111 } 111 }
112 112
113 core.int buildCounterApplication = 0; 113 core.int buildCounterApplication = 0;
114 buildApplication() { 114 buildApplication() {
115 var o = new api.Application(); 115 var o = new api.Application();
116 buildCounterApplication++; 116 buildCounterApplication++;
117 if (buildCounterApplication < 3) { 117 if (buildCounterApplication < 3) {
118 o.authDomain = "foo"; 118 o.authDomain = "foo";
119 o.codeBucket = "foo"; 119 o.codeBucket = "foo";
120 o.defaultBucket = "foo"; 120 o.defaultBucket = "foo";
121 o.defaultCookieExpiration = "foo"; 121 o.defaultCookieExpiration = "foo";
122 o.defaultHostname = "foo"; 122 o.defaultHostname = "foo";
123 o.dispatchRules = buildUnnamed454(); 123 o.dispatchRules = buildUnnamed3347();
124 o.id = "foo"; 124 o.id = "foo";
125 o.locationId = "foo"; 125 o.locationId = "foo";
126 o.name = "foo"; 126 o.name = "foo";
127 } 127 }
128 buildCounterApplication--; 128 buildCounterApplication--;
129 return o; 129 return o;
130 } 130 }
131 131
132 checkApplication(api.Application o) { 132 checkApplication(api.Application o) {
133 buildCounterApplication++; 133 buildCounterApplication++;
134 if (buildCounterApplication < 3) { 134 if (buildCounterApplication < 3) {
135 unittest.expect(o.authDomain, unittest.equals('foo')); 135 unittest.expect(o.authDomain, unittest.equals('foo'));
136 unittest.expect(o.codeBucket, unittest.equals('foo')); 136 unittest.expect(o.codeBucket, unittest.equals('foo'));
137 unittest.expect(o.defaultBucket, unittest.equals('foo')); 137 unittest.expect(o.defaultBucket, unittest.equals('foo'));
138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
139 unittest.expect(o.defaultHostname, unittest.equals('foo')); 139 unittest.expect(o.defaultHostname, unittest.equals('foo'));
140 checkUnnamed454(o.dispatchRules); 140 checkUnnamed3347(o.dispatchRules);
141 unittest.expect(o.id, unittest.equals('foo')); 141 unittest.expect(o.id, unittest.equals('foo'));
142 unittest.expect(o.locationId, unittest.equals('foo')); 142 unittest.expect(o.locationId, unittest.equals('foo'));
143 unittest.expect(o.name, unittest.equals('foo')); 143 unittest.expect(o.name, unittest.equals('foo'));
144 } 144 }
145 buildCounterApplication--; 145 buildCounterApplication--;
146 } 146 }
147 147
148 core.int buildCounterAutomaticScaling = 0; 148 core.int buildCounterAutomaticScaling = 0;
149 buildAutomaticScaling() { 149 buildAutomaticScaling() {
150 var o = new api.AutomaticScaling(); 150 var o = new api.AutomaticScaling();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 return o; 257 return o;
258 } 258 }
259 259
260 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 260 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
261 buildCounterDebugInstanceRequest++; 261 buildCounterDebugInstanceRequest++;
262 if (buildCounterDebugInstanceRequest < 3) { 262 if (buildCounterDebugInstanceRequest < 3) {
263 } 263 }
264 buildCounterDebugInstanceRequest--; 264 buildCounterDebugInstanceRequest--;
265 } 265 }
266 266
267 buildUnnamed455() { 267 buildUnnamed3348() {
268 var o = new core.Map<core.String, api.FileInfo>(); 268 var o = new core.Map<core.String, api.FileInfo>();
269 o["x"] = buildFileInfo(); 269 o["x"] = buildFileInfo();
270 o["y"] = buildFileInfo(); 270 o["y"] = buildFileInfo();
271 return o; 271 return o;
272 } 272 }
273 273
274 checkUnnamed455(core.Map<core.String, api.FileInfo> o) { 274 checkUnnamed3348(core.Map<core.String, api.FileInfo> o) {
275 unittest.expect(o, unittest.hasLength(2)); 275 unittest.expect(o, unittest.hasLength(2));
276 checkFileInfo(o["x"]); 276 checkFileInfo(o["x"]);
277 checkFileInfo(o["y"]); 277 checkFileInfo(o["y"]);
278 } 278 }
279 279
280 core.int buildCounterDeployment = 0; 280 core.int buildCounterDeployment = 0;
281 buildDeployment() { 281 buildDeployment() {
282 var o = new api.Deployment(); 282 var o = new api.Deployment();
283 buildCounterDeployment++; 283 buildCounterDeployment++;
284 if (buildCounterDeployment < 3) { 284 if (buildCounterDeployment < 3) {
285 o.container = buildContainerInfo(); 285 o.container = buildContainerInfo();
286 o.files = buildUnnamed455(); 286 o.files = buildUnnamed3348();
287 o.zip = buildZipInfo(); 287 o.zip = buildZipInfo();
288 } 288 }
289 buildCounterDeployment--; 289 buildCounterDeployment--;
290 return o; 290 return o;
291 } 291 }
292 292
293 checkDeployment(api.Deployment o) { 293 checkDeployment(api.Deployment o) {
294 buildCounterDeployment++; 294 buildCounterDeployment++;
295 if (buildCounterDeployment < 3) { 295 if (buildCounterDeployment < 3) {
296 checkContainerInfo(o.container); 296 checkContainerInfo(o.container);
297 checkUnnamed455(o.files); 297 checkUnnamed3348(o.files);
298 checkZipInfo(o.zip); 298 checkZipInfo(o.zip);
299 } 299 }
300 buildCounterDeployment--; 300 buildCounterDeployment--;
301 } 301 }
302 302
303 core.int buildCounterDiskUtilization = 0; 303 core.int buildCounterDiskUtilization = 0;
304 buildDiskUtilization() { 304 buildDiskUtilization() {
305 var o = new api.DiskUtilization(); 305 var o = new api.DiskUtilization();
306 buildCounterDiskUtilization++; 306 buildCounterDiskUtilization++;
307 if (buildCounterDiskUtilization < 3) { 307 if (buildCounterDiskUtilization < 3) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 checkLibrary(api.Library o) { 464 checkLibrary(api.Library o) {
465 buildCounterLibrary++; 465 buildCounterLibrary++;
466 if (buildCounterLibrary < 3) { 466 if (buildCounterLibrary < 3) {
467 unittest.expect(o.name, unittest.equals('foo')); 467 unittest.expect(o.name, unittest.equals('foo'));
468 unittest.expect(o.version, unittest.equals('foo')); 468 unittest.expect(o.version, unittest.equals('foo'));
469 } 469 }
470 buildCounterLibrary--; 470 buildCounterLibrary--;
471 } 471 }
472 472
473 buildUnnamed456() { 473 buildUnnamed3349() {
474 var o = new core.List<api.Instance>(); 474 var o = new core.List<api.Instance>();
475 o.add(buildInstance()); 475 o.add(buildInstance());
476 o.add(buildInstance()); 476 o.add(buildInstance());
477 return o; 477 return o;
478 } 478 }
479 479
480 checkUnnamed456(core.List<api.Instance> o) { 480 checkUnnamed3349(core.List<api.Instance> o) {
481 unittest.expect(o, unittest.hasLength(2)); 481 unittest.expect(o, unittest.hasLength(2));
482 checkInstance(o[0]); 482 checkInstance(o[0]);
483 checkInstance(o[1]); 483 checkInstance(o[1]);
484 } 484 }
485 485
486 core.int buildCounterListInstancesResponse = 0; 486 core.int buildCounterListInstancesResponse = 0;
487 buildListInstancesResponse() { 487 buildListInstancesResponse() {
488 var o = new api.ListInstancesResponse(); 488 var o = new api.ListInstancesResponse();
489 buildCounterListInstancesResponse++; 489 buildCounterListInstancesResponse++;
490 if (buildCounterListInstancesResponse < 3) { 490 if (buildCounterListInstancesResponse < 3) {
491 o.instances = buildUnnamed456(); 491 o.instances = buildUnnamed3349();
492 o.nextPageToken = "foo"; 492 o.nextPageToken = "foo";
493 } 493 }
494 buildCounterListInstancesResponse--; 494 buildCounterListInstancesResponse--;
495 return o; 495 return o;
496 } 496 }
497 497
498 checkListInstancesResponse(api.ListInstancesResponse o) { 498 checkListInstancesResponse(api.ListInstancesResponse o) {
499 buildCounterListInstancesResponse++; 499 buildCounterListInstancesResponse++;
500 if (buildCounterListInstancesResponse < 3) { 500 if (buildCounterListInstancesResponse < 3) {
501 checkUnnamed456(o.instances); 501 checkUnnamed3349(o.instances);
502 unittest.expect(o.nextPageToken, unittest.equals('foo')); 502 unittest.expect(o.nextPageToken, unittest.equals('foo'));
503 } 503 }
504 buildCounterListInstancesResponse--; 504 buildCounterListInstancesResponse--;
505 } 505 }
506 506
507 buildUnnamed457() { 507 buildUnnamed3350() {
508 var o = new core.List<api.Location>(); 508 var o = new core.List<api.Location>();
509 o.add(buildLocation()); 509 o.add(buildLocation());
510 o.add(buildLocation()); 510 o.add(buildLocation());
511 return o; 511 return o;
512 } 512 }
513 513
514 checkUnnamed457(core.List<api.Location> o) { 514 checkUnnamed3350(core.List<api.Location> o) {
515 unittest.expect(o, unittest.hasLength(2)); 515 unittest.expect(o, unittest.hasLength(2));
516 checkLocation(o[0]); 516 checkLocation(o[0]);
517 checkLocation(o[1]); 517 checkLocation(o[1]);
518 } 518 }
519 519
520 core.int buildCounterListLocationsResponse = 0; 520 core.int buildCounterListLocationsResponse = 0;
521 buildListLocationsResponse() { 521 buildListLocationsResponse() {
522 var o = new api.ListLocationsResponse(); 522 var o = new api.ListLocationsResponse();
523 buildCounterListLocationsResponse++; 523 buildCounterListLocationsResponse++;
524 if (buildCounterListLocationsResponse < 3) { 524 if (buildCounterListLocationsResponse < 3) {
525 o.locations = buildUnnamed457(); 525 o.locations = buildUnnamed3350();
526 o.nextPageToken = "foo"; 526 o.nextPageToken = "foo";
527 } 527 }
528 buildCounterListLocationsResponse--; 528 buildCounterListLocationsResponse--;
529 return o; 529 return o;
530 } 530 }
531 531
532 checkListLocationsResponse(api.ListLocationsResponse o) { 532 checkListLocationsResponse(api.ListLocationsResponse o) {
533 buildCounterListLocationsResponse++; 533 buildCounterListLocationsResponse++;
534 if (buildCounterListLocationsResponse < 3) { 534 if (buildCounterListLocationsResponse < 3) {
535 checkUnnamed457(o.locations); 535 checkUnnamed3350(o.locations);
536 unittest.expect(o.nextPageToken, unittest.equals('foo')); 536 unittest.expect(o.nextPageToken, unittest.equals('foo'));
537 } 537 }
538 buildCounterListLocationsResponse--; 538 buildCounterListLocationsResponse--;
539 } 539 }
540 540
541 buildUnnamed458() { 541 buildUnnamed3351() {
542 var o = new core.List<api.Operation>(); 542 var o = new core.List<api.Operation>();
543 o.add(buildOperation()); 543 o.add(buildOperation());
544 o.add(buildOperation()); 544 o.add(buildOperation());
545 return o; 545 return o;
546 } 546 }
547 547
548 checkUnnamed458(core.List<api.Operation> o) { 548 checkUnnamed3351(core.List<api.Operation> o) {
549 unittest.expect(o, unittest.hasLength(2)); 549 unittest.expect(o, unittest.hasLength(2));
550 checkOperation(o[0]); 550 checkOperation(o[0]);
551 checkOperation(o[1]); 551 checkOperation(o[1]);
552 } 552 }
553 553
554 core.int buildCounterListOperationsResponse = 0; 554 core.int buildCounterListOperationsResponse = 0;
555 buildListOperationsResponse() { 555 buildListOperationsResponse() {
556 var o = new api.ListOperationsResponse(); 556 var o = new api.ListOperationsResponse();
557 buildCounterListOperationsResponse++; 557 buildCounterListOperationsResponse++;
558 if (buildCounterListOperationsResponse < 3) { 558 if (buildCounterListOperationsResponse < 3) {
559 o.nextPageToken = "foo"; 559 o.nextPageToken = "foo";
560 o.operations = buildUnnamed458(); 560 o.operations = buildUnnamed3351();
561 } 561 }
562 buildCounterListOperationsResponse--; 562 buildCounterListOperationsResponse--;
563 return o; 563 return o;
564 } 564 }
565 565
566 checkListOperationsResponse(api.ListOperationsResponse o) { 566 checkListOperationsResponse(api.ListOperationsResponse o) {
567 buildCounterListOperationsResponse++; 567 buildCounterListOperationsResponse++;
568 if (buildCounterListOperationsResponse < 3) { 568 if (buildCounterListOperationsResponse < 3) {
569 unittest.expect(o.nextPageToken, unittest.equals('foo')); 569 unittest.expect(o.nextPageToken, unittest.equals('foo'));
570 checkUnnamed458(o.operations); 570 checkUnnamed3351(o.operations);
571 } 571 }
572 buildCounterListOperationsResponse--; 572 buildCounterListOperationsResponse--;
573 } 573 }
574 574
575 buildUnnamed459() { 575 buildUnnamed3352() {
576 var o = new core.List<api.Service>(); 576 var o = new core.List<api.Service>();
577 o.add(buildService()); 577 o.add(buildService());
578 o.add(buildService()); 578 o.add(buildService());
579 return o; 579 return o;
580 } 580 }
581 581
582 checkUnnamed459(core.List<api.Service> o) { 582 checkUnnamed3352(core.List<api.Service> o) {
583 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
584 checkService(o[0]); 584 checkService(o[0]);
585 checkService(o[1]); 585 checkService(o[1]);
586 } 586 }
587 587
588 core.int buildCounterListServicesResponse = 0; 588 core.int buildCounterListServicesResponse = 0;
589 buildListServicesResponse() { 589 buildListServicesResponse() {
590 var o = new api.ListServicesResponse(); 590 var o = new api.ListServicesResponse();
591 buildCounterListServicesResponse++; 591 buildCounterListServicesResponse++;
592 if (buildCounterListServicesResponse < 3) { 592 if (buildCounterListServicesResponse < 3) {
593 o.nextPageToken = "foo"; 593 o.nextPageToken = "foo";
594 o.services = buildUnnamed459(); 594 o.services = buildUnnamed3352();
595 } 595 }
596 buildCounterListServicesResponse--; 596 buildCounterListServicesResponse--;
597 return o; 597 return o;
598 } 598 }
599 599
600 checkListServicesResponse(api.ListServicesResponse o) { 600 checkListServicesResponse(api.ListServicesResponse o) {
601 buildCounterListServicesResponse++; 601 buildCounterListServicesResponse++;
602 if (buildCounterListServicesResponse < 3) { 602 if (buildCounterListServicesResponse < 3) {
603 unittest.expect(o.nextPageToken, unittest.equals('foo')); 603 unittest.expect(o.nextPageToken, unittest.equals('foo'));
604 checkUnnamed459(o.services); 604 checkUnnamed3352(o.services);
605 } 605 }
606 buildCounterListServicesResponse--; 606 buildCounterListServicesResponse--;
607 } 607 }
608 608
609 buildUnnamed460() { 609 buildUnnamed3353() {
610 var o = new core.List<api.Version>(); 610 var o = new core.List<api.Version>();
611 o.add(buildVersion()); 611 o.add(buildVersion());
612 o.add(buildVersion()); 612 o.add(buildVersion());
613 return o; 613 return o;
614 } 614 }
615 615
616 checkUnnamed460(core.List<api.Version> o) { 616 checkUnnamed3353(core.List<api.Version> o) {
617 unittest.expect(o, unittest.hasLength(2)); 617 unittest.expect(o, unittest.hasLength(2));
618 checkVersion(o[0]); 618 checkVersion(o[0]);
619 checkVersion(o[1]); 619 checkVersion(o[1]);
620 } 620 }
621 621
622 core.int buildCounterListVersionsResponse = 0; 622 core.int buildCounterListVersionsResponse = 0;
623 buildListVersionsResponse() { 623 buildListVersionsResponse() {
624 var o = new api.ListVersionsResponse(); 624 var o = new api.ListVersionsResponse();
625 buildCounterListVersionsResponse++; 625 buildCounterListVersionsResponse++;
626 if (buildCounterListVersionsResponse < 3) { 626 if (buildCounterListVersionsResponse < 3) {
627 o.nextPageToken = "foo"; 627 o.nextPageToken = "foo";
628 o.versions = buildUnnamed460(); 628 o.versions = buildUnnamed3353();
629 } 629 }
630 buildCounterListVersionsResponse--; 630 buildCounterListVersionsResponse--;
631 return o; 631 return o;
632 } 632 }
633 633
634 checkListVersionsResponse(api.ListVersionsResponse o) { 634 checkListVersionsResponse(api.ListVersionsResponse o) {
635 buildCounterListVersionsResponse++; 635 buildCounterListVersionsResponse++;
636 if (buildCounterListVersionsResponse < 3) { 636 if (buildCounterListVersionsResponse < 3) {
637 unittest.expect(o.nextPageToken, unittest.equals('foo')); 637 unittest.expect(o.nextPageToken, unittest.equals('foo'));
638 checkUnnamed460(o.versions); 638 checkUnnamed3353(o.versions);
639 } 639 }
640 buildCounterListVersionsResponse--; 640 buildCounterListVersionsResponse--;
641 } 641 }
642 642
643 buildUnnamed461() { 643 buildUnnamed3354() {
644 var o = new core.Map<core.String, core.String>(); 644 var o = new core.Map<core.String, core.String>();
645 o["x"] = "foo"; 645 o["x"] = "foo";
646 o["y"] = "foo"; 646 o["y"] = "foo";
647 return o; 647 return o;
648 } 648 }
649 649
650 checkUnnamed461(core.Map<core.String, core.String> o) { 650 checkUnnamed3354(core.Map<core.String, core.String> o) {
651 unittest.expect(o, unittest.hasLength(2)); 651 unittest.expect(o, unittest.hasLength(2));
652 unittest.expect(o["x"], unittest.equals('foo')); 652 unittest.expect(o["x"], unittest.equals('foo'));
653 unittest.expect(o["y"], unittest.equals('foo')); 653 unittest.expect(o["y"], unittest.equals('foo'));
654 } 654 }
655 655
656 buildUnnamed462() { 656 buildUnnamed3355() {
657 var o = new core.Map<core.String, core.Object>(); 657 var o = new core.Map<core.String, core.Object>();
658 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 658 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
659 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 659 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
660 return o; 660 return o;
661 } 661 }
662 662
663 checkUnnamed462(core.Map<core.String, core.Object> o) { 663 checkUnnamed3355(core.Map<core.String, core.Object> o) {
664 unittest.expect(o, unittest.hasLength(2)); 664 unittest.expect(o, unittest.hasLength(2));
665 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 665 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
666 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 666 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
667 } 667 }
668 668
669 core.int buildCounterLocation = 0; 669 core.int buildCounterLocation = 0;
670 buildLocation() { 670 buildLocation() {
671 var o = new api.Location(); 671 var o = new api.Location();
672 buildCounterLocation++; 672 buildCounterLocation++;
673 if (buildCounterLocation < 3) { 673 if (buildCounterLocation < 3) {
674 o.labels = buildUnnamed461(); 674 o.labels = buildUnnamed3354();
675 o.locationId = "foo"; 675 o.locationId = "foo";
676 o.metadata = buildUnnamed462(); 676 o.metadata = buildUnnamed3355();
677 o.name = "foo"; 677 o.name = "foo";
678 } 678 }
679 buildCounterLocation--; 679 buildCounterLocation--;
680 return o; 680 return o;
681 } 681 }
682 682
683 checkLocation(api.Location o) { 683 checkLocation(api.Location o) {
684 buildCounterLocation++; 684 buildCounterLocation++;
685 if (buildCounterLocation < 3) { 685 if (buildCounterLocation < 3) {
686 checkUnnamed461(o.labels); 686 checkUnnamed3354(o.labels);
687 unittest.expect(o.locationId, unittest.equals('foo')); 687 unittest.expect(o.locationId, unittest.equals('foo'));
688 checkUnnamed462(o.metadata); 688 checkUnnamed3355(o.metadata);
689 unittest.expect(o.name, unittest.equals('foo')); 689 unittest.expect(o.name, unittest.equals('foo'));
690 } 690 }
691 buildCounterLocation--; 691 buildCounterLocation--;
692 } 692 }
693 693
694 core.int buildCounterLocationMetadata = 0; 694 core.int buildCounterLocationMetadata = 0;
695 buildLocationMetadata() { 695 buildLocationMetadata() {
696 var o = new api.LocationMetadata(); 696 var o = new api.LocationMetadata();
697 buildCounterLocationMetadata++; 697 buildCounterLocationMetadata++;
698 if (buildCounterLocationMetadata < 3) { 698 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
724 } 724 }
725 725
726 checkManualScaling(api.ManualScaling o) { 726 checkManualScaling(api.ManualScaling o) {
727 buildCounterManualScaling++; 727 buildCounterManualScaling++;
728 if (buildCounterManualScaling < 3) { 728 if (buildCounterManualScaling < 3) {
729 unittest.expect(o.instances, unittest.equals(42)); 729 unittest.expect(o.instances, unittest.equals(42));
730 } 730 }
731 buildCounterManualScaling--; 731 buildCounterManualScaling--;
732 } 732 }
733 733
734 buildUnnamed463() { 734 buildUnnamed3356() {
735 var o = new core.List<core.String>(); 735 var o = new core.List<core.String>();
736 o.add("foo"); 736 o.add("foo");
737 o.add("foo"); 737 o.add("foo");
738 return o; 738 return o;
739 } 739 }
740 740
741 checkUnnamed463(core.List<core.String> o) { 741 checkUnnamed3356(core.List<core.String> o) {
742 unittest.expect(o, unittest.hasLength(2)); 742 unittest.expect(o, unittest.hasLength(2));
743 unittest.expect(o[0], unittest.equals('foo')); 743 unittest.expect(o[0], unittest.equals('foo'));
744 unittest.expect(o[1], unittest.equals('foo')); 744 unittest.expect(o[1], unittest.equals('foo'));
745 } 745 }
746 746
747 core.int buildCounterNetwork = 0; 747 core.int buildCounterNetwork = 0;
748 buildNetwork() { 748 buildNetwork() {
749 var o = new api.Network(); 749 var o = new api.Network();
750 buildCounterNetwork++; 750 buildCounterNetwork++;
751 if (buildCounterNetwork < 3) { 751 if (buildCounterNetwork < 3) {
752 o.forwardedPorts = buildUnnamed463(); 752 o.forwardedPorts = buildUnnamed3356();
753 o.instanceTag = "foo"; 753 o.instanceTag = "foo";
754 o.name = "foo"; 754 o.name = "foo";
755 } 755 }
756 buildCounterNetwork--; 756 buildCounterNetwork--;
757 return o; 757 return o;
758 } 758 }
759 759
760 checkNetwork(api.Network o) { 760 checkNetwork(api.Network o) {
761 buildCounterNetwork++; 761 buildCounterNetwork++;
762 if (buildCounterNetwork < 3) { 762 if (buildCounterNetwork < 3) {
763 checkUnnamed463(o.forwardedPorts); 763 checkUnnamed3356(o.forwardedPorts);
764 unittest.expect(o.instanceTag, unittest.equals('foo')); 764 unittest.expect(o.instanceTag, unittest.equals('foo'));
765 unittest.expect(o.name, unittest.equals('foo')); 765 unittest.expect(o.name, unittest.equals('foo'));
766 } 766 }
767 buildCounterNetwork--; 767 buildCounterNetwork--;
768 } 768 }
769 769
770 core.int buildCounterNetworkUtilization = 0; 770 core.int buildCounterNetworkUtilization = 0;
771 buildNetworkUtilization() { 771 buildNetworkUtilization() {
772 var o = new api.NetworkUtilization(); 772 var o = new api.NetworkUtilization();
773 buildCounterNetworkUtilization++; 773 buildCounterNetworkUtilization++;
(...skipping 11 matching lines...) Expand all
785 buildCounterNetworkUtilization++; 785 buildCounterNetworkUtilization++;
786 if (buildCounterNetworkUtilization < 3) { 786 if (buildCounterNetworkUtilization < 3) {
787 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 787 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
788 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 788 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
789 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 789 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
790 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 790 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
791 } 791 }
792 buildCounterNetworkUtilization--; 792 buildCounterNetworkUtilization--;
793 } 793 }
794 794
795 buildUnnamed464() { 795 buildUnnamed3357() {
796 var o = new core.Map<core.String, core.Object>(); 796 var o = new core.Map<core.String, core.Object>();
797 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 797 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
798 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 798 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
799 return o; 799 return o;
800 } 800 }
801 801
802 checkUnnamed464(core.Map<core.String, core.Object> o) { 802 checkUnnamed3357(core.Map<core.String, core.Object> o) {
803 unittest.expect(o, unittest.hasLength(2)); 803 unittest.expect(o, unittest.hasLength(2));
804 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 804 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
805 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 805 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
806 } 806 }
807 807
808 buildUnnamed465() { 808 buildUnnamed3358() {
809 var o = new core.Map<core.String, core.Object>(); 809 var o = new core.Map<core.String, core.Object>();
810 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 810 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
811 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 811 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
812 return o; 812 return o;
813 } 813 }
814 814
815 checkUnnamed465(core.Map<core.String, core.Object> o) { 815 checkUnnamed3358(core.Map<core.String, core.Object> o) {
816 unittest.expect(o, unittest.hasLength(2)); 816 unittest.expect(o, unittest.hasLength(2));
817 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); 817 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
818 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); 818 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
819 } 819 }
820 820
821 core.int buildCounterOperation = 0; 821 core.int buildCounterOperation = 0;
822 buildOperation() { 822 buildOperation() {
823 var o = new api.Operation(); 823 var o = new api.Operation();
824 buildCounterOperation++; 824 buildCounterOperation++;
825 if (buildCounterOperation < 3) { 825 if (buildCounterOperation < 3) {
826 o.done = true; 826 o.done = true;
827 o.error = buildStatus(); 827 o.error = buildStatus();
828 o.metadata = buildUnnamed464(); 828 o.metadata = buildUnnamed3357();
829 o.name = "foo"; 829 o.name = "foo";
830 o.response = buildUnnamed465(); 830 o.response = buildUnnamed3358();
831 } 831 }
832 buildCounterOperation--; 832 buildCounterOperation--;
833 return o; 833 return o;
834 } 834 }
835 835
836 checkOperation(api.Operation o) { 836 checkOperation(api.Operation o) {
837 buildCounterOperation++; 837 buildCounterOperation++;
838 if (buildCounterOperation < 3) { 838 if (buildCounterOperation < 3) {
839 unittest.expect(o.done, unittest.isTrue); 839 unittest.expect(o.done, unittest.isTrue);
840 checkStatus(o.error); 840 checkStatus(o.error);
841 checkUnnamed464(o.metadata); 841 checkUnnamed3357(o.metadata);
842 unittest.expect(o.name, unittest.equals('foo')); 842 unittest.expect(o.name, unittest.equals('foo'));
843 checkUnnamed465(o.response); 843 checkUnnamed3358(o.response);
844 } 844 }
845 buildCounterOperation--; 845 buildCounterOperation--;
846 } 846 }
847 847
848 core.int buildCounterOperationMetadata = 0; 848 core.int buildCounterOperationMetadata = 0;
849 buildOperationMetadata() { 849 buildOperationMetadata() {
850 var o = new api.OperationMetadata(); 850 var o = new api.OperationMetadata();
851 buildCounterOperationMetadata++; 851 buildCounterOperationMetadata++;
852 if (buildCounterOperationMetadata < 3) { 852 if (buildCounterOperationMetadata < 3) {
853 o.endTime = "foo"; 853 o.endTime = "foo";
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 checkService(api.Service o) { 1024 checkService(api.Service o) {
1025 buildCounterService++; 1025 buildCounterService++;
1026 if (buildCounterService < 3) { 1026 if (buildCounterService < 3) {
1027 unittest.expect(o.id, unittest.equals('foo')); 1027 unittest.expect(o.id, unittest.equals('foo'));
1028 unittest.expect(o.name, unittest.equals('foo')); 1028 unittest.expect(o.name, unittest.equals('foo'));
1029 checkTrafficSplit(o.split); 1029 checkTrafficSplit(o.split);
1030 } 1030 }
1031 buildCounterService--; 1031 buildCounterService--;
1032 } 1032 }
1033 1033
1034 buildUnnamed466() { 1034 buildUnnamed3359() {
1035 var o = new core.Map<core.String, core.String>(); 1035 var o = new core.Map<core.String, core.String>();
1036 o["x"] = "foo"; 1036 o["x"] = "foo";
1037 o["y"] = "foo"; 1037 o["y"] = "foo";
1038 return o; 1038 return o;
1039 } 1039 }
1040 1040
1041 checkUnnamed466(core.Map<core.String, core.String> o) { 1041 checkUnnamed3359(core.Map<core.String, core.String> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1042 unittest.expect(o, unittest.hasLength(2));
1043 unittest.expect(o["x"], unittest.equals('foo')); 1043 unittest.expect(o["x"], unittest.equals('foo'));
1044 unittest.expect(o["y"], unittest.equals('foo')); 1044 unittest.expect(o["y"], unittest.equals('foo'));
1045 } 1045 }
1046 1046
1047 core.int buildCounterStaticFilesHandler = 0; 1047 core.int buildCounterStaticFilesHandler = 0;
1048 buildStaticFilesHandler() { 1048 buildStaticFilesHandler() {
1049 var o = new api.StaticFilesHandler(); 1049 var o = new api.StaticFilesHandler();
1050 buildCounterStaticFilesHandler++; 1050 buildCounterStaticFilesHandler++;
1051 if (buildCounterStaticFilesHandler < 3) { 1051 if (buildCounterStaticFilesHandler < 3) {
1052 o.applicationReadable = true; 1052 o.applicationReadable = true;
1053 o.expiration = "foo"; 1053 o.expiration = "foo";
1054 o.httpHeaders = buildUnnamed466(); 1054 o.httpHeaders = buildUnnamed3359();
1055 o.mimeType = "foo"; 1055 o.mimeType = "foo";
1056 o.path = "foo"; 1056 o.path = "foo";
1057 o.requireMatchingFile = true; 1057 o.requireMatchingFile = true;
1058 o.uploadPathRegex = "foo"; 1058 o.uploadPathRegex = "foo";
1059 } 1059 }
1060 buildCounterStaticFilesHandler--; 1060 buildCounterStaticFilesHandler--;
1061 return o; 1061 return o;
1062 } 1062 }
1063 1063
1064 checkStaticFilesHandler(api.StaticFilesHandler o) { 1064 checkStaticFilesHandler(api.StaticFilesHandler o) {
1065 buildCounterStaticFilesHandler++; 1065 buildCounterStaticFilesHandler++;
1066 if (buildCounterStaticFilesHandler < 3) { 1066 if (buildCounterStaticFilesHandler < 3) {
1067 unittest.expect(o.applicationReadable, unittest.isTrue); 1067 unittest.expect(o.applicationReadable, unittest.isTrue);
1068 unittest.expect(o.expiration, unittest.equals('foo')); 1068 unittest.expect(o.expiration, unittest.equals('foo'));
1069 checkUnnamed466(o.httpHeaders); 1069 checkUnnamed3359(o.httpHeaders);
1070 unittest.expect(o.mimeType, unittest.equals('foo')); 1070 unittest.expect(o.mimeType, unittest.equals('foo'));
1071 unittest.expect(o.path, unittest.equals('foo')); 1071 unittest.expect(o.path, unittest.equals('foo'));
1072 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1072 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1073 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1073 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1074 } 1074 }
1075 buildCounterStaticFilesHandler--; 1075 buildCounterStaticFilesHandler--;
1076 } 1076 }
1077 1077
1078 buildUnnamed467() { 1078 buildUnnamed3360() {
1079 var o = new core.Map<core.String, core.Object>(); 1079 var o = new core.Map<core.String, core.Object>();
1080 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1080 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1081 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1081 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1082 return o; 1082 return o;
1083 } 1083 }
1084 1084
1085 checkUnnamed467(core.Map<core.String, core.Object> o) { 1085 checkUnnamed3360(core.Map<core.String, core.Object> o) {
1086 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1087 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); 1087 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
1088 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); 1088 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
1089 } 1089 }
1090 1090
1091 buildUnnamed468() { 1091 buildUnnamed3361() {
1092 var o = new core.List<core.Map<core.String, core.Object>>(); 1092 var o = new core.List<core.Map<core.String, core.Object>>();
1093 o.add(buildUnnamed467()); 1093 o.add(buildUnnamed3360());
1094 o.add(buildUnnamed467()); 1094 o.add(buildUnnamed3360());
1095 return o; 1095 return o;
1096 } 1096 }
1097 1097
1098 checkUnnamed468(core.List<core.Map<core.String, core.Object>> o) { 1098 checkUnnamed3361(core.List<core.Map<core.String, core.Object>> o) {
1099 unittest.expect(o, unittest.hasLength(2)); 1099 unittest.expect(o, unittest.hasLength(2));
1100 checkUnnamed467(o[0]); 1100 checkUnnamed3360(o[0]);
1101 checkUnnamed467(o[1]); 1101 checkUnnamed3360(o[1]);
1102 } 1102 }
1103 1103
1104 core.int buildCounterStatus = 0; 1104 core.int buildCounterStatus = 0;
1105 buildStatus() { 1105 buildStatus() {
1106 var o = new api.Status(); 1106 var o = new api.Status();
1107 buildCounterStatus++; 1107 buildCounterStatus++;
1108 if (buildCounterStatus < 3) { 1108 if (buildCounterStatus < 3) {
1109 o.code = 42; 1109 o.code = 42;
1110 o.details = buildUnnamed468(); 1110 o.details = buildUnnamed3361();
1111 o.message = "foo"; 1111 o.message = "foo";
1112 } 1112 }
1113 buildCounterStatus--; 1113 buildCounterStatus--;
1114 return o; 1114 return o;
1115 } 1115 }
1116 1116
1117 checkStatus(api.Status o) { 1117 checkStatus(api.Status o) {
1118 buildCounterStatus++; 1118 buildCounterStatus++;
1119 if (buildCounterStatus < 3) { 1119 if (buildCounterStatus < 3) {
1120 unittest.expect(o.code, unittest.equals(42)); 1120 unittest.expect(o.code, unittest.equals(42));
1121 checkUnnamed468(o.details); 1121 checkUnnamed3361(o.details);
1122 unittest.expect(o.message, unittest.equals('foo')); 1122 unittest.expect(o.message, unittest.equals('foo'));
1123 } 1123 }
1124 buildCounterStatus--; 1124 buildCounterStatus--;
1125 } 1125 }
1126 1126
1127 buildUnnamed469() { 1127 buildUnnamed3362() {
1128 var o = new core.Map<core.String, core.double>(); 1128 var o = new core.Map<core.String, core.double>();
1129 o["x"] = 42.0; 1129 o["x"] = 42.0;
1130 o["y"] = 42.0; 1130 o["y"] = 42.0;
1131 return o; 1131 return o;
1132 } 1132 }
1133 1133
1134 checkUnnamed469(core.Map<core.String, core.double> o) { 1134 checkUnnamed3362(core.Map<core.String, core.double> o) {
1135 unittest.expect(o, unittest.hasLength(2)); 1135 unittest.expect(o, unittest.hasLength(2));
1136 unittest.expect(o["x"], unittest.equals(42.0)); 1136 unittest.expect(o["x"], unittest.equals(42.0));
1137 unittest.expect(o["y"], unittest.equals(42.0)); 1137 unittest.expect(o["y"], unittest.equals(42.0));
1138 } 1138 }
1139 1139
1140 core.int buildCounterTrafficSplit = 0; 1140 core.int buildCounterTrafficSplit = 0;
1141 buildTrafficSplit() { 1141 buildTrafficSplit() {
1142 var o = new api.TrafficSplit(); 1142 var o = new api.TrafficSplit();
1143 buildCounterTrafficSplit++; 1143 buildCounterTrafficSplit++;
1144 if (buildCounterTrafficSplit < 3) { 1144 if (buildCounterTrafficSplit < 3) {
1145 o.allocations = buildUnnamed469(); 1145 o.allocations = buildUnnamed3362();
1146 o.shardBy = "foo"; 1146 o.shardBy = "foo";
1147 } 1147 }
1148 buildCounterTrafficSplit--; 1148 buildCounterTrafficSplit--;
1149 return o; 1149 return o;
1150 } 1150 }
1151 1151
1152 checkTrafficSplit(api.TrafficSplit o) { 1152 checkTrafficSplit(api.TrafficSplit o) {
1153 buildCounterTrafficSplit++; 1153 buildCounterTrafficSplit++;
1154 if (buildCounterTrafficSplit < 3) { 1154 if (buildCounterTrafficSplit < 3) {
1155 checkUnnamed469(o.allocations); 1155 checkUnnamed3362(o.allocations);
1156 unittest.expect(o.shardBy, unittest.equals('foo')); 1156 unittest.expect(o.shardBy, unittest.equals('foo'));
1157 } 1157 }
1158 buildCounterTrafficSplit--; 1158 buildCounterTrafficSplit--;
1159 } 1159 }
1160 1160
1161 core.int buildCounterUrlDispatchRule = 0; 1161 core.int buildCounterUrlDispatchRule = 0;
1162 buildUrlDispatchRule() { 1162 buildUrlDispatchRule() {
1163 var o = new api.UrlDispatchRule(); 1163 var o = new api.UrlDispatchRule();
1164 buildCounterUrlDispatchRule++; 1164 buildCounterUrlDispatchRule++;
1165 if (buildCounterUrlDispatchRule < 3) { 1165 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 unittest.expect(o.login, unittest.equals('foo')); 1207 unittest.expect(o.login, unittest.equals('foo'));
1208 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1208 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1209 checkScriptHandler(o.script); 1209 checkScriptHandler(o.script);
1210 unittest.expect(o.securityLevel, unittest.equals('foo')); 1210 unittest.expect(o.securityLevel, unittest.equals('foo'));
1211 checkStaticFilesHandler(o.staticFiles); 1211 checkStaticFilesHandler(o.staticFiles);
1212 unittest.expect(o.urlRegex, unittest.equals('foo')); 1212 unittest.expect(o.urlRegex, unittest.equals('foo'));
1213 } 1213 }
1214 buildCounterUrlMap--; 1214 buildCounterUrlMap--;
1215 } 1215 }
1216 1216
1217 buildUnnamed470() { 1217 buildUnnamed3363() {
1218 var o = new core.Map<core.String, core.String>(); 1218 var o = new core.Map<core.String, core.String>();
1219 o["x"] = "foo"; 1219 o["x"] = "foo";
1220 o["y"] = "foo"; 1220 o["y"] = "foo";
1221 return o; 1221 return o;
1222 } 1222 }
1223 1223
1224 checkUnnamed470(core.Map<core.String, core.String> o) { 1224 checkUnnamed3363(core.Map<core.String, core.String> o) {
1225 unittest.expect(o, unittest.hasLength(2)); 1225 unittest.expect(o, unittest.hasLength(2));
1226 unittest.expect(o["x"], unittest.equals('foo')); 1226 unittest.expect(o["x"], unittest.equals('foo'));
1227 unittest.expect(o["y"], unittest.equals('foo')); 1227 unittest.expect(o["y"], unittest.equals('foo'));
1228 } 1228 }
1229 1229
1230 buildUnnamed471() { 1230 buildUnnamed3364() {
1231 var o = new core.Map<core.String, core.String>(); 1231 var o = new core.Map<core.String, core.String>();
1232 o["x"] = "foo"; 1232 o["x"] = "foo";
1233 o["y"] = "foo"; 1233 o["y"] = "foo";
1234 return o; 1234 return o;
1235 } 1235 }
1236 1236
1237 checkUnnamed471(core.Map<core.String, core.String> o) { 1237 checkUnnamed3364(core.Map<core.String, core.String> o) {
1238 unittest.expect(o, unittest.hasLength(2)); 1238 unittest.expect(o, unittest.hasLength(2));
1239 unittest.expect(o["x"], unittest.equals('foo')); 1239 unittest.expect(o["x"], unittest.equals('foo'));
1240 unittest.expect(o["y"], unittest.equals('foo')); 1240 unittest.expect(o["y"], unittest.equals('foo'));
1241 } 1241 }
1242 1242
1243 buildUnnamed472() { 1243 buildUnnamed3365() {
1244 var o = new core.List<api.ErrorHandler>(); 1244 var o = new core.List<api.ErrorHandler>();
1245 o.add(buildErrorHandler()); 1245 o.add(buildErrorHandler());
1246 o.add(buildErrorHandler()); 1246 o.add(buildErrorHandler());
1247 return o; 1247 return o;
1248 } 1248 }
1249 1249
1250 checkUnnamed472(core.List<api.ErrorHandler> o) { 1250 checkUnnamed3365(core.List<api.ErrorHandler> o) {
1251 unittest.expect(o, unittest.hasLength(2)); 1251 unittest.expect(o, unittest.hasLength(2));
1252 checkErrorHandler(o[0]); 1252 checkErrorHandler(o[0]);
1253 checkErrorHandler(o[1]); 1253 checkErrorHandler(o[1]);
1254 } 1254 }
1255 1255
1256 buildUnnamed473() { 1256 buildUnnamed3366() {
1257 var o = new core.List<api.UrlMap>(); 1257 var o = new core.List<api.UrlMap>();
1258 o.add(buildUrlMap()); 1258 o.add(buildUrlMap());
1259 o.add(buildUrlMap()); 1259 o.add(buildUrlMap());
1260 return o; 1260 return o;
1261 } 1261 }
1262 1262
1263 checkUnnamed473(core.List<api.UrlMap> o) { 1263 checkUnnamed3366(core.List<api.UrlMap> o) {
1264 unittest.expect(o, unittest.hasLength(2)); 1264 unittest.expect(o, unittest.hasLength(2));
1265 checkUrlMap(o[0]); 1265 checkUrlMap(o[0]);
1266 checkUrlMap(o[1]); 1266 checkUrlMap(o[1]);
1267 } 1267 }
1268 1268
1269 buildUnnamed474() { 1269 buildUnnamed3367() {
1270 var o = new core.List<core.String>(); 1270 var o = new core.List<core.String>();
1271 o.add("foo"); 1271 o.add("foo");
1272 o.add("foo"); 1272 o.add("foo");
1273 return o; 1273 return o;
1274 } 1274 }
1275 1275
1276 checkUnnamed474(core.List<core.String> o) { 1276 checkUnnamed3367(core.List<core.String> o) {
1277 unittest.expect(o, unittest.hasLength(2)); 1277 unittest.expect(o, unittest.hasLength(2));
1278 unittest.expect(o[0], unittest.equals('foo')); 1278 unittest.expect(o[0], unittest.equals('foo'));
1279 unittest.expect(o[1], unittest.equals('foo')); 1279 unittest.expect(o[1], unittest.equals('foo'));
1280 } 1280 }
1281 1281
1282 buildUnnamed475() { 1282 buildUnnamed3368() {
1283 var o = new core.List<api.Library>(); 1283 var o = new core.List<api.Library>();
1284 o.add(buildLibrary()); 1284 o.add(buildLibrary());
1285 o.add(buildLibrary()); 1285 o.add(buildLibrary());
1286 return o; 1286 return o;
1287 } 1287 }
1288 1288
1289 checkUnnamed475(core.List<api.Library> o) { 1289 checkUnnamed3368(core.List<api.Library> o) {
1290 unittest.expect(o, unittest.hasLength(2)); 1290 unittest.expect(o, unittest.hasLength(2));
1291 checkLibrary(o[0]); 1291 checkLibrary(o[0]);
1292 checkLibrary(o[1]); 1292 checkLibrary(o[1]);
1293 } 1293 }
1294 1294
1295 core.int buildCounterVersion = 0; 1295 core.int buildCounterVersion = 0;
1296 buildVersion() { 1296 buildVersion() {
1297 var o = new api.Version(); 1297 var o = new api.Version();
1298 buildCounterVersion++; 1298 buildCounterVersion++;
1299 if (buildCounterVersion < 3) { 1299 if (buildCounterVersion < 3) {
1300 o.apiConfig = buildApiConfigHandler(); 1300 o.apiConfig = buildApiConfigHandler();
1301 o.automaticScaling = buildAutomaticScaling(); 1301 o.automaticScaling = buildAutomaticScaling();
1302 o.basicScaling = buildBasicScaling(); 1302 o.basicScaling = buildBasicScaling();
1303 o.betaSettings = buildUnnamed470(); 1303 o.betaSettings = buildUnnamed3363();
1304 o.createTime = "foo"; 1304 o.createTime = "foo";
1305 o.createdBy = "foo"; 1305 o.createdBy = "foo";
1306 o.defaultExpiration = "foo"; 1306 o.defaultExpiration = "foo";
1307 o.deployment = buildDeployment(); 1307 o.deployment = buildDeployment();
1308 o.diskUsageBytes = "foo"; 1308 o.diskUsageBytes = "foo";
1309 o.env = "foo"; 1309 o.env = "foo";
1310 o.envVariables = buildUnnamed471(); 1310 o.envVariables = buildUnnamed3364();
1311 o.errorHandlers = buildUnnamed472(); 1311 o.errorHandlers = buildUnnamed3365();
1312 o.handlers = buildUnnamed473(); 1312 o.handlers = buildUnnamed3366();
1313 o.healthCheck = buildHealthCheck(); 1313 o.healthCheck = buildHealthCheck();
1314 o.id = "foo"; 1314 o.id = "foo";
1315 o.inboundServices = buildUnnamed474(); 1315 o.inboundServices = buildUnnamed3367();
1316 o.instanceClass = "foo"; 1316 o.instanceClass = "foo";
1317 o.libraries = buildUnnamed475(); 1317 o.libraries = buildUnnamed3368();
1318 o.manualScaling = buildManualScaling(); 1318 o.manualScaling = buildManualScaling();
1319 o.name = "foo"; 1319 o.name = "foo";
1320 o.network = buildNetwork(); 1320 o.network = buildNetwork();
1321 o.nobuildFilesRegex = "foo"; 1321 o.nobuildFilesRegex = "foo";
1322 o.resources = buildResources(); 1322 o.resources = buildResources();
1323 o.runtime = "foo"; 1323 o.runtime = "foo";
1324 o.servingStatus = "foo"; 1324 o.servingStatus = "foo";
1325 o.threadsafe = true; 1325 o.threadsafe = true;
1326 o.versionUrl = "foo"; 1326 o.versionUrl = "foo";
1327 o.vm = true; 1327 o.vm = true;
1328 } 1328 }
1329 buildCounterVersion--; 1329 buildCounterVersion--;
1330 return o; 1330 return o;
1331 } 1331 }
1332 1332
1333 checkVersion(api.Version o) { 1333 checkVersion(api.Version o) {
1334 buildCounterVersion++; 1334 buildCounterVersion++;
1335 if (buildCounterVersion < 3) { 1335 if (buildCounterVersion < 3) {
1336 checkApiConfigHandler(o.apiConfig); 1336 checkApiConfigHandler(o.apiConfig);
1337 checkAutomaticScaling(o.automaticScaling); 1337 checkAutomaticScaling(o.automaticScaling);
1338 checkBasicScaling(o.basicScaling); 1338 checkBasicScaling(o.basicScaling);
1339 checkUnnamed470(o.betaSettings); 1339 checkUnnamed3363(o.betaSettings);
1340 unittest.expect(o.createTime, unittest.equals('foo')); 1340 unittest.expect(o.createTime, unittest.equals('foo'));
1341 unittest.expect(o.createdBy, unittest.equals('foo')); 1341 unittest.expect(o.createdBy, unittest.equals('foo'));
1342 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1342 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1343 checkDeployment(o.deployment); 1343 checkDeployment(o.deployment);
1344 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1344 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1345 unittest.expect(o.env, unittest.equals('foo')); 1345 unittest.expect(o.env, unittest.equals('foo'));
1346 checkUnnamed471(o.envVariables); 1346 checkUnnamed3364(o.envVariables);
1347 checkUnnamed472(o.errorHandlers); 1347 checkUnnamed3365(o.errorHandlers);
1348 checkUnnamed473(o.handlers); 1348 checkUnnamed3366(o.handlers);
1349 checkHealthCheck(o.healthCheck); 1349 checkHealthCheck(o.healthCheck);
1350 unittest.expect(o.id, unittest.equals('foo')); 1350 unittest.expect(o.id, unittest.equals('foo'));
1351 checkUnnamed474(o.inboundServices); 1351 checkUnnamed3367(o.inboundServices);
1352 unittest.expect(o.instanceClass, unittest.equals('foo')); 1352 unittest.expect(o.instanceClass, unittest.equals('foo'));
1353 checkUnnamed475(o.libraries); 1353 checkUnnamed3368(o.libraries);
1354 checkManualScaling(o.manualScaling); 1354 checkManualScaling(o.manualScaling);
1355 unittest.expect(o.name, unittest.equals('foo')); 1355 unittest.expect(o.name, unittest.equals('foo'));
1356 checkNetwork(o.network); 1356 checkNetwork(o.network);
1357 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1357 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1358 checkResources(o.resources); 1358 checkResources(o.resources);
1359 unittest.expect(o.runtime, unittest.equals('foo')); 1359 unittest.expect(o.runtime, unittest.equals('foo'));
1360 unittest.expect(o.servingStatus, unittest.equals('foo')); 1360 unittest.expect(o.servingStatus, unittest.equals('foo'));
1361 unittest.expect(o.threadsafe, unittest.isTrue); 1361 unittest.expect(o.threadsafe, unittest.isTrue);
1362 unittest.expect(o.versionUrl, unittest.equals('foo')); 1362 unittest.expect(o.versionUrl, unittest.equals('foo'));
1363 unittest.expect(o.vm, unittest.isTrue); 1363 unittest.expect(o.vm, unittest.isTrue);
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2947 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon se response) { 2947 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon se response) {
2948 checkListInstancesResponse(response); 2948 checkListInstancesResponse(response);
2949 }))); 2949 })));
2950 }); 2950 });
2951 2951
2952 }); 2952 });
2953 2953
2954 2954
2955 } 2955 }
2956 2956
OLDNEW
« no previous file with comments | « generated/googleapis/test/androidpublisher/v2_test.dart ('k') | generated/googleapis/test/appsactivity/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698