OLD | NEW |
1 library googleapis.plusDomains.v1.test; | 1 library googleapis.plusDomains.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed924() { | 54 buildUnnamed931() { |
55 var o = new core.List<api.PlusDomainsAclentryResource>(); | 55 var o = new core.List<api.PlusDomainsAclentryResource>(); |
56 o.add(buildPlusDomainsAclentryResource()); | 56 o.add(buildPlusDomainsAclentryResource()); |
57 o.add(buildPlusDomainsAclentryResource()); | 57 o.add(buildPlusDomainsAclentryResource()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed924(core.List<api.PlusDomainsAclentryResource> o) { | 61 checkUnnamed931(core.List<api.PlusDomainsAclentryResource> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkPlusDomainsAclentryResource(o[0]); | 63 checkPlusDomainsAclentryResource(o[0]); |
64 checkPlusDomainsAclentryResource(o[1]); | 64 checkPlusDomainsAclentryResource(o[1]); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAcl = 0; | 67 core.int buildCounterAcl = 0; |
68 buildAcl() { | 68 buildAcl() { |
69 var o = new api.Acl(); | 69 var o = new api.Acl(); |
70 buildCounterAcl++; | 70 buildCounterAcl++; |
71 if (buildCounterAcl < 3) { | 71 if (buildCounterAcl < 3) { |
72 o.description = "foo"; | 72 o.description = "foo"; |
73 o.domainRestricted = true; | 73 o.domainRestricted = true; |
74 o.items = buildUnnamed924(); | 74 o.items = buildUnnamed931(); |
75 o.kind = "foo"; | 75 o.kind = "foo"; |
76 } | 76 } |
77 buildCounterAcl--; | 77 buildCounterAcl--; |
78 return o; | 78 return o; |
79 } | 79 } |
80 | 80 |
81 checkAcl(api.Acl o) { | 81 checkAcl(api.Acl o) { |
82 buildCounterAcl++; | 82 buildCounterAcl++; |
83 if (buildCounterAcl < 3) { | 83 if (buildCounterAcl < 3) { |
84 unittest.expect(o.description, unittest.equals('foo')); | 84 unittest.expect(o.description, unittest.equals('foo')); |
85 unittest.expect(o.domainRestricted, unittest.isTrue); | 85 unittest.expect(o.domainRestricted, unittest.isTrue); |
86 checkUnnamed924(o.items); | 86 checkUnnamed931(o.items); |
87 unittest.expect(o.kind, unittest.equals('foo')); | 87 unittest.expect(o.kind, unittest.equals('foo')); |
88 } | 88 } |
89 buildCounterAcl--; | 89 buildCounterAcl--; |
90 } | 90 } |
91 | 91 |
92 core.int buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo = 0; | 92 core.int buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo = 0; |
93 buildActivityActorClientSpecificActorInfoYoutubeActorInfo() { | 93 buildActivityActorClientSpecificActorInfoYoutubeActorInfo() { |
94 var o = new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo(); | 94 var o = new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo(); |
95 buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; | 95 buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; |
96 if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { | 96 if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 405 } |
406 | 406 |
407 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { | 407 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { |
408 buildCounterActivityObjectAttachmentsPreviewThumbnails++; | 408 buildCounterActivityObjectAttachmentsPreviewThumbnails++; |
409 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { | 409 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { |
410 unittest.expect(o.url, unittest.equals('foo')); | 410 unittest.expect(o.url, unittest.equals('foo')); |
411 } | 411 } |
412 buildCounterActivityObjectAttachmentsPreviewThumbnails--; | 412 buildCounterActivityObjectAttachmentsPreviewThumbnails--; |
413 } | 413 } |
414 | 414 |
415 buildUnnamed925() { | 415 buildUnnamed932() { |
416 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); | 416 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); |
417 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 417 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
418 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 418 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
419 return o; | 419 return o; |
420 } | 420 } |
421 | 421 |
422 checkUnnamed925(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { | 422 checkUnnamed932(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { |
423 unittest.expect(o, unittest.hasLength(2)); | 423 unittest.expect(o, unittest.hasLength(2)); |
424 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); | 424 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); |
425 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); | 425 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); |
426 } | 426 } |
427 | 427 |
428 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; | 428 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; |
429 buildActivityObjectAttachmentsThumbnailsImage() { | 429 buildActivityObjectAttachmentsThumbnailsImage() { |
430 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); | 430 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); |
431 buildCounterActivityObjectAttachmentsThumbnailsImage++; | 431 buildCounterActivityObjectAttachmentsThumbnailsImage++; |
432 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { | 432 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { | 466 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { |
467 buildCounterActivityObjectAttachmentsThumbnails++; | 467 buildCounterActivityObjectAttachmentsThumbnails++; |
468 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { | 468 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { |
469 unittest.expect(o.description, unittest.equals('foo')); | 469 unittest.expect(o.description, unittest.equals('foo')); |
470 checkActivityObjectAttachmentsThumbnailsImage(o.image); | 470 checkActivityObjectAttachmentsThumbnailsImage(o.image); |
471 unittest.expect(o.url, unittest.equals('foo')); | 471 unittest.expect(o.url, unittest.equals('foo')); |
472 } | 472 } |
473 buildCounterActivityObjectAttachmentsThumbnails--; | 473 buildCounterActivityObjectAttachmentsThumbnails--; |
474 } | 474 } |
475 | 475 |
476 buildUnnamed926() { | 476 buildUnnamed933() { |
477 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); | 477 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); |
478 o.add(buildActivityObjectAttachmentsThumbnails()); | 478 o.add(buildActivityObjectAttachmentsThumbnails()); |
479 o.add(buildActivityObjectAttachmentsThumbnails()); | 479 o.add(buildActivityObjectAttachmentsThumbnails()); |
480 return o; | 480 return o; |
481 } | 481 } |
482 | 482 |
483 checkUnnamed926(core.List<api.ActivityObjectAttachmentsThumbnails> o) { | 483 checkUnnamed933(core.List<api.ActivityObjectAttachmentsThumbnails> o) { |
484 unittest.expect(o, unittest.hasLength(2)); | 484 unittest.expect(o, unittest.hasLength(2)); |
485 checkActivityObjectAttachmentsThumbnails(o[0]); | 485 checkActivityObjectAttachmentsThumbnails(o[0]); |
486 checkActivityObjectAttachmentsThumbnails(o[1]); | 486 checkActivityObjectAttachmentsThumbnails(o[1]); |
487 } | 487 } |
488 | 488 |
489 core.int buildCounterActivityObjectAttachments = 0; | 489 core.int buildCounterActivityObjectAttachments = 0; |
490 buildActivityObjectAttachments() { | 490 buildActivityObjectAttachments() { |
491 var o = new api.ActivityObjectAttachments(); | 491 var o = new api.ActivityObjectAttachments(); |
492 buildCounterActivityObjectAttachments++; | 492 buildCounterActivityObjectAttachments++; |
493 if (buildCounterActivityObjectAttachments < 3) { | 493 if (buildCounterActivityObjectAttachments < 3) { |
494 o.content = "foo"; | 494 o.content = "foo"; |
495 o.displayName = "foo"; | 495 o.displayName = "foo"; |
496 o.embed = buildActivityObjectAttachmentsEmbed(); | 496 o.embed = buildActivityObjectAttachmentsEmbed(); |
497 o.fullImage = buildActivityObjectAttachmentsFullImage(); | 497 o.fullImage = buildActivityObjectAttachmentsFullImage(); |
498 o.id = "foo"; | 498 o.id = "foo"; |
499 o.image = buildActivityObjectAttachmentsImage(); | 499 o.image = buildActivityObjectAttachmentsImage(); |
500 o.objectType = "foo"; | 500 o.objectType = "foo"; |
501 o.previewThumbnails = buildUnnamed925(); | 501 o.previewThumbnails = buildUnnamed932(); |
502 o.thumbnails = buildUnnamed926(); | 502 o.thumbnails = buildUnnamed933(); |
503 o.url = "foo"; | 503 o.url = "foo"; |
504 } | 504 } |
505 buildCounterActivityObjectAttachments--; | 505 buildCounterActivityObjectAttachments--; |
506 return o; | 506 return o; |
507 } | 507 } |
508 | 508 |
509 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { | 509 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { |
510 buildCounterActivityObjectAttachments++; | 510 buildCounterActivityObjectAttachments++; |
511 if (buildCounterActivityObjectAttachments < 3) { | 511 if (buildCounterActivityObjectAttachments < 3) { |
512 unittest.expect(o.content, unittest.equals('foo')); | 512 unittest.expect(o.content, unittest.equals('foo')); |
513 unittest.expect(o.displayName, unittest.equals('foo')); | 513 unittest.expect(o.displayName, unittest.equals('foo')); |
514 checkActivityObjectAttachmentsEmbed(o.embed); | 514 checkActivityObjectAttachmentsEmbed(o.embed); |
515 checkActivityObjectAttachmentsFullImage(o.fullImage); | 515 checkActivityObjectAttachmentsFullImage(o.fullImage); |
516 unittest.expect(o.id, unittest.equals('foo')); | 516 unittest.expect(o.id, unittest.equals('foo')); |
517 checkActivityObjectAttachmentsImage(o.image); | 517 checkActivityObjectAttachmentsImage(o.image); |
518 unittest.expect(o.objectType, unittest.equals('foo')); | 518 unittest.expect(o.objectType, unittest.equals('foo')); |
519 checkUnnamed925(o.previewThumbnails); | 519 checkUnnamed932(o.previewThumbnails); |
520 checkUnnamed926(o.thumbnails); | 520 checkUnnamed933(o.thumbnails); |
521 unittest.expect(o.url, unittest.equals('foo')); | 521 unittest.expect(o.url, unittest.equals('foo')); |
522 } | 522 } |
523 buildCounterActivityObjectAttachments--; | 523 buildCounterActivityObjectAttachments--; |
524 } | 524 } |
525 | 525 |
526 buildUnnamed927() { | 526 buildUnnamed934() { |
527 var o = new core.List<api.ActivityObjectAttachments>(); | 527 var o = new core.List<api.ActivityObjectAttachments>(); |
528 o.add(buildActivityObjectAttachments()); | 528 o.add(buildActivityObjectAttachments()); |
529 o.add(buildActivityObjectAttachments()); | 529 o.add(buildActivityObjectAttachments()); |
530 return o; | 530 return o; |
531 } | 531 } |
532 | 532 |
533 checkUnnamed927(core.List<api.ActivityObjectAttachments> o) { | 533 checkUnnamed934(core.List<api.ActivityObjectAttachments> o) { |
534 unittest.expect(o, unittest.hasLength(2)); | 534 unittest.expect(o, unittest.hasLength(2)); |
535 checkActivityObjectAttachments(o[0]); | 535 checkActivityObjectAttachments(o[0]); |
536 checkActivityObjectAttachments(o[1]); | 536 checkActivityObjectAttachments(o[1]); |
537 } | 537 } |
538 | 538 |
539 core.int buildCounterActivityObjectPlusoners = 0; | 539 core.int buildCounterActivityObjectPlusoners = 0; |
540 buildActivityObjectPlusoners() { | 540 buildActivityObjectPlusoners() { |
541 var o = new api.ActivityObjectPlusoners(); | 541 var o = new api.ActivityObjectPlusoners(); |
542 buildCounterActivityObjectPlusoners++; | 542 buildCounterActivityObjectPlusoners++; |
543 if (buildCounterActivityObjectPlusoners < 3) { | 543 if (buildCounterActivityObjectPlusoners < 3) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 } | 625 } |
626 buildCounterActivityObjectStatusForViewer--; | 626 buildCounterActivityObjectStatusForViewer--; |
627 } | 627 } |
628 | 628 |
629 core.int buildCounterActivityObject = 0; | 629 core.int buildCounterActivityObject = 0; |
630 buildActivityObject() { | 630 buildActivityObject() { |
631 var o = new api.ActivityObject(); | 631 var o = new api.ActivityObject(); |
632 buildCounterActivityObject++; | 632 buildCounterActivityObject++; |
633 if (buildCounterActivityObject < 3) { | 633 if (buildCounterActivityObject < 3) { |
634 o.actor = buildActivityObjectActor(); | 634 o.actor = buildActivityObjectActor(); |
635 o.attachments = buildUnnamed927(); | 635 o.attachments = buildUnnamed934(); |
636 o.content = "foo"; | 636 o.content = "foo"; |
637 o.id = "foo"; | 637 o.id = "foo"; |
638 o.objectType = "foo"; | 638 o.objectType = "foo"; |
639 o.originalContent = "foo"; | 639 o.originalContent = "foo"; |
640 o.plusoners = buildActivityObjectPlusoners(); | 640 o.plusoners = buildActivityObjectPlusoners(); |
641 o.replies = buildActivityObjectReplies(); | 641 o.replies = buildActivityObjectReplies(); |
642 o.resharers = buildActivityObjectResharers(); | 642 o.resharers = buildActivityObjectResharers(); |
643 o.statusForViewer = buildActivityObjectStatusForViewer(); | 643 o.statusForViewer = buildActivityObjectStatusForViewer(); |
644 o.url = "foo"; | 644 o.url = "foo"; |
645 } | 645 } |
646 buildCounterActivityObject--; | 646 buildCounterActivityObject--; |
647 return o; | 647 return o; |
648 } | 648 } |
649 | 649 |
650 checkActivityObject(api.ActivityObject o) { | 650 checkActivityObject(api.ActivityObject o) { |
651 buildCounterActivityObject++; | 651 buildCounterActivityObject++; |
652 if (buildCounterActivityObject < 3) { | 652 if (buildCounterActivityObject < 3) { |
653 checkActivityObjectActor(o.actor); | 653 checkActivityObjectActor(o.actor); |
654 checkUnnamed927(o.attachments); | 654 checkUnnamed934(o.attachments); |
655 unittest.expect(o.content, unittest.equals('foo')); | 655 unittest.expect(o.content, unittest.equals('foo')); |
656 unittest.expect(o.id, unittest.equals('foo')); | 656 unittest.expect(o.id, unittest.equals('foo')); |
657 unittest.expect(o.objectType, unittest.equals('foo')); | 657 unittest.expect(o.objectType, unittest.equals('foo')); |
658 unittest.expect(o.originalContent, unittest.equals('foo')); | 658 unittest.expect(o.originalContent, unittest.equals('foo')); |
659 checkActivityObjectPlusoners(o.plusoners); | 659 checkActivityObjectPlusoners(o.plusoners); |
660 checkActivityObjectReplies(o.replies); | 660 checkActivityObjectReplies(o.replies); |
661 checkActivityObjectResharers(o.resharers); | 661 checkActivityObjectResharers(o.resharers); |
662 checkActivityObjectStatusForViewer(o.statusForViewer); | 662 checkActivityObjectStatusForViewer(o.statusForViewer); |
663 unittest.expect(o.url, unittest.equals('foo')); | 663 unittest.expect(o.url, unittest.equals('foo')); |
664 } | 664 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 734 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
735 unittest.expect(o.radius, unittest.equals('foo')); | 735 unittest.expect(o.radius, unittest.equals('foo')); |
736 unittest.expect(o.title, unittest.equals('foo')); | 736 unittest.expect(o.title, unittest.equals('foo')); |
737 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 737 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
738 unittest.expect(o.url, unittest.equals('foo')); | 738 unittest.expect(o.url, unittest.equals('foo')); |
739 unittest.expect(o.verb, unittest.equals('foo')); | 739 unittest.expect(o.verb, unittest.equals('foo')); |
740 } | 740 } |
741 buildCounterActivity--; | 741 buildCounterActivity--; |
742 } | 742 } |
743 | 743 |
744 buildUnnamed928() { | 744 buildUnnamed935() { |
745 var o = new core.List<api.Activity>(); | 745 var o = new core.List<api.Activity>(); |
746 o.add(buildActivity()); | 746 o.add(buildActivity()); |
747 o.add(buildActivity()); | 747 o.add(buildActivity()); |
748 return o; | 748 return o; |
749 } | 749 } |
750 | 750 |
751 checkUnnamed928(core.List<api.Activity> o) { | 751 checkUnnamed935(core.List<api.Activity> o) { |
752 unittest.expect(o, unittest.hasLength(2)); | 752 unittest.expect(o, unittest.hasLength(2)); |
753 checkActivity(o[0]); | 753 checkActivity(o[0]); |
754 checkActivity(o[1]); | 754 checkActivity(o[1]); |
755 } | 755 } |
756 | 756 |
757 core.int buildCounterActivityFeed = 0; | 757 core.int buildCounterActivityFeed = 0; |
758 buildActivityFeed() { | 758 buildActivityFeed() { |
759 var o = new api.ActivityFeed(); | 759 var o = new api.ActivityFeed(); |
760 buildCounterActivityFeed++; | 760 buildCounterActivityFeed++; |
761 if (buildCounterActivityFeed < 3) { | 761 if (buildCounterActivityFeed < 3) { |
762 o.etag = "foo"; | 762 o.etag = "foo"; |
763 o.id = "foo"; | 763 o.id = "foo"; |
764 o.items = buildUnnamed928(); | 764 o.items = buildUnnamed935(); |
765 o.kind = "foo"; | 765 o.kind = "foo"; |
766 o.nextLink = "foo"; | 766 o.nextLink = "foo"; |
767 o.nextPageToken = "foo"; | 767 o.nextPageToken = "foo"; |
768 o.selfLink = "foo"; | 768 o.selfLink = "foo"; |
769 o.title = "foo"; | 769 o.title = "foo"; |
770 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 770 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
771 } | 771 } |
772 buildCounterActivityFeed--; | 772 buildCounterActivityFeed--; |
773 return o; | 773 return o; |
774 } | 774 } |
775 | 775 |
776 checkActivityFeed(api.ActivityFeed o) { | 776 checkActivityFeed(api.ActivityFeed o) { |
777 buildCounterActivityFeed++; | 777 buildCounterActivityFeed++; |
778 if (buildCounterActivityFeed < 3) { | 778 if (buildCounterActivityFeed < 3) { |
779 unittest.expect(o.etag, unittest.equals('foo')); | 779 unittest.expect(o.etag, unittest.equals('foo')); |
780 unittest.expect(o.id, unittest.equals('foo')); | 780 unittest.expect(o.id, unittest.equals('foo')); |
781 checkUnnamed928(o.items); | 781 checkUnnamed935(o.items); |
782 unittest.expect(o.kind, unittest.equals('foo')); | 782 unittest.expect(o.kind, unittest.equals('foo')); |
783 unittest.expect(o.nextLink, unittest.equals('foo')); | 783 unittest.expect(o.nextLink, unittest.equals('foo')); |
784 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 784 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
785 unittest.expect(o.selfLink, unittest.equals('foo')); | 785 unittest.expect(o.selfLink, unittest.equals('foo')); |
786 unittest.expect(o.title, unittest.equals('foo')); | 786 unittest.expect(o.title, unittest.equals('foo')); |
787 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 787 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
788 } | 788 } |
789 buildCounterActivityFeed--; | 789 buildCounterActivityFeed--; |
790 } | 790 } |
791 | 791 |
(...skipping 17 matching lines...) Expand all Loading... |
809 if (buildCounterAudience < 3) { | 809 if (buildCounterAudience < 3) { |
810 unittest.expect(o.etag, unittest.equals('foo')); | 810 unittest.expect(o.etag, unittest.equals('foo')); |
811 checkPlusDomainsAclentryResource(o.item); | 811 checkPlusDomainsAclentryResource(o.item); |
812 unittest.expect(o.kind, unittest.equals('foo')); | 812 unittest.expect(o.kind, unittest.equals('foo')); |
813 unittest.expect(o.memberCount, unittest.equals(42)); | 813 unittest.expect(o.memberCount, unittest.equals(42)); |
814 unittest.expect(o.visibility, unittest.equals('foo')); | 814 unittest.expect(o.visibility, unittest.equals('foo')); |
815 } | 815 } |
816 buildCounterAudience--; | 816 buildCounterAudience--; |
817 } | 817 } |
818 | 818 |
819 buildUnnamed929() { | 819 buildUnnamed936() { |
820 var o = new core.List<api.Audience>(); | 820 var o = new core.List<api.Audience>(); |
821 o.add(buildAudience()); | 821 o.add(buildAudience()); |
822 o.add(buildAudience()); | 822 o.add(buildAudience()); |
823 return o; | 823 return o; |
824 } | 824 } |
825 | 825 |
826 checkUnnamed929(core.List<api.Audience> o) { | 826 checkUnnamed936(core.List<api.Audience> o) { |
827 unittest.expect(o, unittest.hasLength(2)); | 827 unittest.expect(o, unittest.hasLength(2)); |
828 checkAudience(o[0]); | 828 checkAudience(o[0]); |
829 checkAudience(o[1]); | 829 checkAudience(o[1]); |
830 } | 830 } |
831 | 831 |
832 core.int buildCounterAudiencesFeed = 0; | 832 core.int buildCounterAudiencesFeed = 0; |
833 buildAudiencesFeed() { | 833 buildAudiencesFeed() { |
834 var o = new api.AudiencesFeed(); | 834 var o = new api.AudiencesFeed(); |
835 buildCounterAudiencesFeed++; | 835 buildCounterAudiencesFeed++; |
836 if (buildCounterAudiencesFeed < 3) { | 836 if (buildCounterAudiencesFeed < 3) { |
837 o.etag = "foo"; | 837 o.etag = "foo"; |
838 o.items = buildUnnamed929(); | 838 o.items = buildUnnamed936(); |
839 o.kind = "foo"; | 839 o.kind = "foo"; |
840 o.nextPageToken = "foo"; | 840 o.nextPageToken = "foo"; |
841 o.totalItems = 42; | 841 o.totalItems = 42; |
842 } | 842 } |
843 buildCounterAudiencesFeed--; | 843 buildCounterAudiencesFeed--; |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkAudiencesFeed(api.AudiencesFeed o) { | 847 checkAudiencesFeed(api.AudiencesFeed o) { |
848 buildCounterAudiencesFeed++; | 848 buildCounterAudiencesFeed++; |
849 if (buildCounterAudiencesFeed < 3) { | 849 if (buildCounterAudiencesFeed < 3) { |
850 unittest.expect(o.etag, unittest.equals('foo')); | 850 unittest.expect(o.etag, unittest.equals('foo')); |
851 checkUnnamed929(o.items); | 851 checkUnnamed936(o.items); |
852 unittest.expect(o.kind, unittest.equals('foo')); | 852 unittest.expect(o.kind, unittest.equals('foo')); |
853 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 853 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
854 unittest.expect(o.totalItems, unittest.equals(42)); | 854 unittest.expect(o.totalItems, unittest.equals(42)); |
855 } | 855 } |
856 buildCounterAudiencesFeed--; | 856 buildCounterAudiencesFeed--; |
857 } | 857 } |
858 | 858 |
859 core.int buildCounterCirclePeople = 0; | 859 core.int buildCounterCirclePeople = 0; |
860 buildCirclePeople() { | 860 buildCirclePeople() { |
861 var o = new api.CirclePeople(); | 861 var o = new api.CirclePeople(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 unittest.expect(o.displayName, unittest.equals('foo')); | 899 unittest.expect(o.displayName, unittest.equals('foo')); |
900 unittest.expect(o.etag, unittest.equals('foo')); | 900 unittest.expect(o.etag, unittest.equals('foo')); |
901 unittest.expect(o.id, unittest.equals('foo')); | 901 unittest.expect(o.id, unittest.equals('foo')); |
902 unittest.expect(o.kind, unittest.equals('foo')); | 902 unittest.expect(o.kind, unittest.equals('foo')); |
903 checkCirclePeople(o.people); | 903 checkCirclePeople(o.people); |
904 unittest.expect(o.selfLink, unittest.equals('foo')); | 904 unittest.expect(o.selfLink, unittest.equals('foo')); |
905 } | 905 } |
906 buildCounterCircle--; | 906 buildCounterCircle--; |
907 } | 907 } |
908 | 908 |
909 buildUnnamed930() { | 909 buildUnnamed937() { |
910 var o = new core.List<api.Circle>(); | 910 var o = new core.List<api.Circle>(); |
911 o.add(buildCircle()); | 911 o.add(buildCircle()); |
912 o.add(buildCircle()); | 912 o.add(buildCircle()); |
913 return o; | 913 return o; |
914 } | 914 } |
915 | 915 |
916 checkUnnamed930(core.List<api.Circle> o) { | 916 checkUnnamed937(core.List<api.Circle> o) { |
917 unittest.expect(o, unittest.hasLength(2)); | 917 unittest.expect(o, unittest.hasLength(2)); |
918 checkCircle(o[0]); | 918 checkCircle(o[0]); |
919 checkCircle(o[1]); | 919 checkCircle(o[1]); |
920 } | 920 } |
921 | 921 |
922 core.int buildCounterCircleFeed = 0; | 922 core.int buildCounterCircleFeed = 0; |
923 buildCircleFeed() { | 923 buildCircleFeed() { |
924 var o = new api.CircleFeed(); | 924 var o = new api.CircleFeed(); |
925 buildCounterCircleFeed++; | 925 buildCounterCircleFeed++; |
926 if (buildCounterCircleFeed < 3) { | 926 if (buildCounterCircleFeed < 3) { |
927 o.etag = "foo"; | 927 o.etag = "foo"; |
928 o.items = buildUnnamed930(); | 928 o.items = buildUnnamed937(); |
929 o.kind = "foo"; | 929 o.kind = "foo"; |
930 o.nextLink = "foo"; | 930 o.nextLink = "foo"; |
931 o.nextPageToken = "foo"; | 931 o.nextPageToken = "foo"; |
932 o.selfLink = "foo"; | 932 o.selfLink = "foo"; |
933 o.title = "foo"; | 933 o.title = "foo"; |
934 o.totalItems = 42; | 934 o.totalItems = 42; |
935 } | 935 } |
936 buildCounterCircleFeed--; | 936 buildCounterCircleFeed--; |
937 return o; | 937 return o; |
938 } | 938 } |
939 | 939 |
940 checkCircleFeed(api.CircleFeed o) { | 940 checkCircleFeed(api.CircleFeed o) { |
941 buildCounterCircleFeed++; | 941 buildCounterCircleFeed++; |
942 if (buildCounterCircleFeed < 3) { | 942 if (buildCounterCircleFeed < 3) { |
943 unittest.expect(o.etag, unittest.equals('foo')); | 943 unittest.expect(o.etag, unittest.equals('foo')); |
944 checkUnnamed930(o.items); | 944 checkUnnamed937(o.items); |
945 unittest.expect(o.kind, unittest.equals('foo')); | 945 unittest.expect(o.kind, unittest.equals('foo')); |
946 unittest.expect(o.nextLink, unittest.equals('foo')); | 946 unittest.expect(o.nextLink, unittest.equals('foo')); |
947 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 947 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
948 unittest.expect(o.selfLink, unittest.equals('foo')); | 948 unittest.expect(o.selfLink, unittest.equals('foo')); |
949 unittest.expect(o.title, unittest.equals('foo')); | 949 unittest.expect(o.title, unittest.equals('foo')); |
950 unittest.expect(o.totalItems, unittest.equals(42)); | 950 unittest.expect(o.totalItems, unittest.equals(42)); |
951 } | 951 } |
952 buildCounterCircleFeed--; | 952 buildCounterCircleFeed--; |
953 } | 953 } |
954 | 954 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1071 |
1072 checkCommentInReplyTo(api.CommentInReplyTo o) { | 1072 checkCommentInReplyTo(api.CommentInReplyTo o) { |
1073 buildCounterCommentInReplyTo++; | 1073 buildCounterCommentInReplyTo++; |
1074 if (buildCounterCommentInReplyTo < 3) { | 1074 if (buildCounterCommentInReplyTo < 3) { |
1075 unittest.expect(o.id, unittest.equals('foo')); | 1075 unittest.expect(o.id, unittest.equals('foo')); |
1076 unittest.expect(o.url, unittest.equals('foo')); | 1076 unittest.expect(o.url, unittest.equals('foo')); |
1077 } | 1077 } |
1078 buildCounterCommentInReplyTo--; | 1078 buildCounterCommentInReplyTo--; |
1079 } | 1079 } |
1080 | 1080 |
1081 buildUnnamed931() { | 1081 buildUnnamed938() { |
1082 var o = new core.List<api.CommentInReplyTo>(); | 1082 var o = new core.List<api.CommentInReplyTo>(); |
1083 o.add(buildCommentInReplyTo()); | 1083 o.add(buildCommentInReplyTo()); |
1084 o.add(buildCommentInReplyTo()); | 1084 o.add(buildCommentInReplyTo()); |
1085 return o; | 1085 return o; |
1086 } | 1086 } |
1087 | 1087 |
1088 checkUnnamed931(core.List<api.CommentInReplyTo> o) { | 1088 checkUnnamed938(core.List<api.CommentInReplyTo> o) { |
1089 unittest.expect(o, unittest.hasLength(2)); | 1089 unittest.expect(o, unittest.hasLength(2)); |
1090 checkCommentInReplyTo(o[0]); | 1090 checkCommentInReplyTo(o[0]); |
1091 checkCommentInReplyTo(o[1]); | 1091 checkCommentInReplyTo(o[1]); |
1092 } | 1092 } |
1093 | 1093 |
1094 core.int buildCounterCommentObject = 0; | 1094 core.int buildCounterCommentObject = 0; |
1095 buildCommentObject() { | 1095 buildCommentObject() { |
1096 var o = new api.CommentObject(); | 1096 var o = new api.CommentObject(); |
1097 buildCounterCommentObject++; | 1097 buildCounterCommentObject++; |
1098 if (buildCounterCommentObject < 3) { | 1098 if (buildCounterCommentObject < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 } | 1134 } |
1135 | 1135 |
1136 core.int buildCounterComment = 0; | 1136 core.int buildCounterComment = 0; |
1137 buildComment() { | 1137 buildComment() { |
1138 var o = new api.Comment(); | 1138 var o = new api.Comment(); |
1139 buildCounterComment++; | 1139 buildCounterComment++; |
1140 if (buildCounterComment < 3) { | 1140 if (buildCounterComment < 3) { |
1141 o.actor = buildCommentActor(); | 1141 o.actor = buildCommentActor(); |
1142 o.etag = "foo"; | 1142 o.etag = "foo"; |
1143 o.id = "foo"; | 1143 o.id = "foo"; |
1144 o.inReplyTo = buildUnnamed931(); | 1144 o.inReplyTo = buildUnnamed938(); |
1145 o.kind = "foo"; | 1145 o.kind = "foo"; |
1146 o.object = buildCommentObject(); | 1146 o.object = buildCommentObject(); |
1147 o.plusoners = buildCommentPlusoners(); | 1147 o.plusoners = buildCommentPlusoners(); |
1148 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 1148 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
1149 o.selfLink = "foo"; | 1149 o.selfLink = "foo"; |
1150 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1150 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1151 o.verb = "foo"; | 1151 o.verb = "foo"; |
1152 } | 1152 } |
1153 buildCounterComment--; | 1153 buildCounterComment--; |
1154 return o; | 1154 return o; |
1155 } | 1155 } |
1156 | 1156 |
1157 checkComment(api.Comment o) { | 1157 checkComment(api.Comment o) { |
1158 buildCounterComment++; | 1158 buildCounterComment++; |
1159 if (buildCounterComment < 3) { | 1159 if (buildCounterComment < 3) { |
1160 checkCommentActor(o.actor); | 1160 checkCommentActor(o.actor); |
1161 unittest.expect(o.etag, unittest.equals('foo')); | 1161 unittest.expect(o.etag, unittest.equals('foo')); |
1162 unittest.expect(o.id, unittest.equals('foo')); | 1162 unittest.expect(o.id, unittest.equals('foo')); |
1163 checkUnnamed931(o.inReplyTo); | 1163 checkUnnamed938(o.inReplyTo); |
1164 unittest.expect(o.kind, unittest.equals('foo')); | 1164 unittest.expect(o.kind, unittest.equals('foo')); |
1165 checkCommentObject(o.object); | 1165 checkCommentObject(o.object); |
1166 checkCommentPlusoners(o.plusoners); | 1166 checkCommentPlusoners(o.plusoners); |
1167 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1167 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
1168 unittest.expect(o.selfLink, unittest.equals('foo')); | 1168 unittest.expect(o.selfLink, unittest.equals('foo')); |
1169 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1169 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1170 unittest.expect(o.verb, unittest.equals('foo')); | 1170 unittest.expect(o.verb, unittest.equals('foo')); |
1171 } | 1171 } |
1172 buildCounterComment--; | 1172 buildCounterComment--; |
1173 } | 1173 } |
1174 | 1174 |
1175 buildUnnamed932() { | 1175 buildUnnamed939() { |
1176 var o = new core.List<api.Comment>(); | 1176 var o = new core.List<api.Comment>(); |
1177 o.add(buildComment()); | 1177 o.add(buildComment()); |
1178 o.add(buildComment()); | 1178 o.add(buildComment()); |
1179 return o; | 1179 return o; |
1180 } | 1180 } |
1181 | 1181 |
1182 checkUnnamed932(core.List<api.Comment> o) { | 1182 checkUnnamed939(core.List<api.Comment> o) { |
1183 unittest.expect(o, unittest.hasLength(2)); | 1183 unittest.expect(o, unittest.hasLength(2)); |
1184 checkComment(o[0]); | 1184 checkComment(o[0]); |
1185 checkComment(o[1]); | 1185 checkComment(o[1]); |
1186 } | 1186 } |
1187 | 1187 |
1188 core.int buildCounterCommentFeed = 0; | 1188 core.int buildCounterCommentFeed = 0; |
1189 buildCommentFeed() { | 1189 buildCommentFeed() { |
1190 var o = new api.CommentFeed(); | 1190 var o = new api.CommentFeed(); |
1191 buildCounterCommentFeed++; | 1191 buildCounterCommentFeed++; |
1192 if (buildCounterCommentFeed < 3) { | 1192 if (buildCounterCommentFeed < 3) { |
1193 o.etag = "foo"; | 1193 o.etag = "foo"; |
1194 o.id = "foo"; | 1194 o.id = "foo"; |
1195 o.items = buildUnnamed932(); | 1195 o.items = buildUnnamed939(); |
1196 o.kind = "foo"; | 1196 o.kind = "foo"; |
1197 o.nextLink = "foo"; | 1197 o.nextLink = "foo"; |
1198 o.nextPageToken = "foo"; | 1198 o.nextPageToken = "foo"; |
1199 o.title = "foo"; | 1199 o.title = "foo"; |
1200 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1200 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1201 } | 1201 } |
1202 buildCounterCommentFeed--; | 1202 buildCounterCommentFeed--; |
1203 return o; | 1203 return o; |
1204 } | 1204 } |
1205 | 1205 |
1206 checkCommentFeed(api.CommentFeed o) { | 1206 checkCommentFeed(api.CommentFeed o) { |
1207 buildCounterCommentFeed++; | 1207 buildCounterCommentFeed++; |
1208 if (buildCounterCommentFeed < 3) { | 1208 if (buildCounterCommentFeed < 3) { |
1209 unittest.expect(o.etag, unittest.equals('foo')); | 1209 unittest.expect(o.etag, unittest.equals('foo')); |
1210 unittest.expect(o.id, unittest.equals('foo')); | 1210 unittest.expect(o.id, unittest.equals('foo')); |
1211 checkUnnamed932(o.items); | 1211 checkUnnamed939(o.items); |
1212 unittest.expect(o.kind, unittest.equals('foo')); | 1212 unittest.expect(o.kind, unittest.equals('foo')); |
1213 unittest.expect(o.nextLink, unittest.equals('foo')); | 1213 unittest.expect(o.nextLink, unittest.equals('foo')); |
1214 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1214 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1215 unittest.expect(o.title, unittest.equals('foo')); | 1215 unittest.expect(o.title, unittest.equals('foo')); |
1216 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1216 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1217 } | 1217 } |
1218 buildCounterCommentFeed--; | 1218 buildCounterCommentFeed--; |
1219 } | 1219 } |
1220 | 1220 |
1221 core.int buildCounterMediaAuthorImage = 0; | 1221 core.int buildCounterMediaAuthorImage = 0; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 } | 1274 } |
1275 | 1275 |
1276 checkMediaExif(api.MediaExif o) { | 1276 checkMediaExif(api.MediaExif o) { |
1277 buildCounterMediaExif++; | 1277 buildCounterMediaExif++; |
1278 if (buildCounterMediaExif < 3) { | 1278 if (buildCounterMediaExif < 3) { |
1279 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); | 1279 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); |
1280 } | 1280 } |
1281 buildCounterMediaExif--; | 1281 buildCounterMediaExif--; |
1282 } | 1282 } |
1283 | 1283 |
1284 buildUnnamed933() { | 1284 buildUnnamed940() { |
1285 var o = new core.List<api.Videostream>(); | 1285 var o = new core.List<api.Videostream>(); |
1286 o.add(buildVideostream()); | 1286 o.add(buildVideostream()); |
1287 o.add(buildVideostream()); | 1287 o.add(buildVideostream()); |
1288 return o; | 1288 return o; |
1289 } | 1289 } |
1290 | 1290 |
1291 checkUnnamed933(core.List<api.Videostream> o) { | 1291 checkUnnamed940(core.List<api.Videostream> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1293 checkVideostream(o[0]); | 1293 checkVideostream(o[0]); |
1294 checkVideostream(o[1]); | 1294 checkVideostream(o[1]); |
1295 } | 1295 } |
1296 | 1296 |
1297 core.int buildCounterMedia = 0; | 1297 core.int buildCounterMedia = 0; |
1298 buildMedia() { | 1298 buildMedia() { |
1299 var o = new api.Media(); | 1299 var o = new api.Media(); |
1300 buildCounterMedia++; | 1300 buildCounterMedia++; |
1301 if (buildCounterMedia < 3) { | 1301 if (buildCounterMedia < 3) { |
1302 o.author = buildMediaAuthor(); | 1302 o.author = buildMediaAuthor(); |
1303 o.displayName = "foo"; | 1303 o.displayName = "foo"; |
1304 o.etag = "foo"; | 1304 o.etag = "foo"; |
1305 o.exif = buildMediaExif(); | 1305 o.exif = buildMediaExif(); |
1306 o.height = 42; | 1306 o.height = 42; |
1307 o.id = "foo"; | 1307 o.id = "foo"; |
1308 o.kind = "foo"; | 1308 o.kind = "foo"; |
1309 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1309 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1310 o.mediaUrl = "foo"; | 1310 o.mediaUrl = "foo"; |
1311 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 1311 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
1312 o.sizeBytes = "foo"; | 1312 o.sizeBytes = "foo"; |
1313 o.streams = buildUnnamed933(); | 1313 o.streams = buildUnnamed940(); |
1314 o.summary = "foo"; | 1314 o.summary = "foo"; |
1315 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1315 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1316 o.url = "foo"; | 1316 o.url = "foo"; |
1317 o.videoDuration = "foo"; | 1317 o.videoDuration = "foo"; |
1318 o.videoStatus = "foo"; | 1318 o.videoStatus = "foo"; |
1319 o.width = 42; | 1319 o.width = 42; |
1320 } | 1320 } |
1321 buildCounterMedia--; | 1321 buildCounterMedia--; |
1322 return o; | 1322 return o; |
1323 } | 1323 } |
1324 | 1324 |
1325 checkMedia(api.Media o) { | 1325 checkMedia(api.Media o) { |
1326 buildCounterMedia++; | 1326 buildCounterMedia++; |
1327 if (buildCounterMedia < 3) { | 1327 if (buildCounterMedia < 3) { |
1328 checkMediaAuthor(o.author); | 1328 checkMediaAuthor(o.author); |
1329 unittest.expect(o.displayName, unittest.equals('foo')); | 1329 unittest.expect(o.displayName, unittest.equals('foo')); |
1330 unittest.expect(o.etag, unittest.equals('foo')); | 1330 unittest.expect(o.etag, unittest.equals('foo')); |
1331 checkMediaExif(o.exif); | 1331 checkMediaExif(o.exif); |
1332 unittest.expect(o.height, unittest.equals(42)); | 1332 unittest.expect(o.height, unittest.equals(42)); |
1333 unittest.expect(o.id, unittest.equals('foo')); | 1333 unittest.expect(o.id, unittest.equals('foo')); |
1334 unittest.expect(o.kind, unittest.equals('foo')); | 1334 unittest.expect(o.kind, unittest.equals('foo')); |
1335 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1335 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
1336 unittest.expect(o.mediaUrl, unittest.equals('foo')); | 1336 unittest.expect(o.mediaUrl, unittest.equals('foo')); |
1337 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1337 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
1338 unittest.expect(o.sizeBytes, unittest.equals('foo')); | 1338 unittest.expect(o.sizeBytes, unittest.equals('foo')); |
1339 checkUnnamed933(o.streams); | 1339 checkUnnamed940(o.streams); |
1340 unittest.expect(o.summary, unittest.equals('foo')); | 1340 unittest.expect(o.summary, unittest.equals('foo')); |
1341 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1341 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1342 unittest.expect(o.url, unittest.equals('foo')); | 1342 unittest.expect(o.url, unittest.equals('foo')); |
1343 unittest.expect(o.videoDuration, unittest.equals('foo')); | 1343 unittest.expect(o.videoDuration, unittest.equals('foo')); |
1344 unittest.expect(o.videoStatus, unittest.equals('foo')); | 1344 unittest.expect(o.videoStatus, unittest.equals('foo')); |
1345 unittest.expect(o.width, unittest.equals(42)); | 1345 unittest.expect(o.width, unittest.equals(42)); |
1346 } | 1346 } |
1347 buildCounterMedia--; | 1347 buildCounterMedia--; |
1348 } | 1348 } |
1349 | 1349 |
1350 buildUnnamed934() { | 1350 buildUnnamed941() { |
1351 var o = new core.List<api.Person>(); | 1351 var o = new core.List<api.Person>(); |
1352 o.add(buildPerson()); | 1352 o.add(buildPerson()); |
1353 o.add(buildPerson()); | 1353 o.add(buildPerson()); |
1354 return o; | 1354 return o; |
1355 } | 1355 } |
1356 | 1356 |
1357 checkUnnamed934(core.List<api.Person> o) { | 1357 checkUnnamed941(core.List<api.Person> o) { |
1358 unittest.expect(o, unittest.hasLength(2)); | 1358 unittest.expect(o, unittest.hasLength(2)); |
1359 checkPerson(o[0]); | 1359 checkPerson(o[0]); |
1360 checkPerson(o[1]); | 1360 checkPerson(o[1]); |
1361 } | 1361 } |
1362 | 1362 |
1363 core.int buildCounterPeopleFeed = 0; | 1363 core.int buildCounterPeopleFeed = 0; |
1364 buildPeopleFeed() { | 1364 buildPeopleFeed() { |
1365 var o = new api.PeopleFeed(); | 1365 var o = new api.PeopleFeed(); |
1366 buildCounterPeopleFeed++; | 1366 buildCounterPeopleFeed++; |
1367 if (buildCounterPeopleFeed < 3) { | 1367 if (buildCounterPeopleFeed < 3) { |
1368 o.etag = "foo"; | 1368 o.etag = "foo"; |
1369 o.items = buildUnnamed934(); | 1369 o.items = buildUnnamed941(); |
1370 o.kind = "foo"; | 1370 o.kind = "foo"; |
1371 o.nextPageToken = "foo"; | 1371 o.nextPageToken = "foo"; |
1372 o.selfLink = "foo"; | 1372 o.selfLink = "foo"; |
1373 o.title = "foo"; | 1373 o.title = "foo"; |
1374 o.totalItems = 42; | 1374 o.totalItems = 42; |
1375 } | 1375 } |
1376 buildCounterPeopleFeed--; | 1376 buildCounterPeopleFeed--; |
1377 return o; | 1377 return o; |
1378 } | 1378 } |
1379 | 1379 |
1380 checkPeopleFeed(api.PeopleFeed o) { | 1380 checkPeopleFeed(api.PeopleFeed o) { |
1381 buildCounterPeopleFeed++; | 1381 buildCounterPeopleFeed++; |
1382 if (buildCounterPeopleFeed < 3) { | 1382 if (buildCounterPeopleFeed < 3) { |
1383 unittest.expect(o.etag, unittest.equals('foo')); | 1383 unittest.expect(o.etag, unittest.equals('foo')); |
1384 checkUnnamed934(o.items); | 1384 checkUnnamed941(o.items); |
1385 unittest.expect(o.kind, unittest.equals('foo')); | 1385 unittest.expect(o.kind, unittest.equals('foo')); |
1386 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1386 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1387 unittest.expect(o.selfLink, unittest.equals('foo')); | 1387 unittest.expect(o.selfLink, unittest.equals('foo')); |
1388 unittest.expect(o.title, unittest.equals('foo')); | 1388 unittest.expect(o.title, unittest.equals('foo')); |
1389 unittest.expect(o.totalItems, unittest.equals(42)); | 1389 unittest.expect(o.totalItems, unittest.equals(42)); |
1390 } | 1390 } |
1391 buildCounterPeopleFeed--; | 1391 buildCounterPeopleFeed--; |
1392 } | 1392 } |
1393 | 1393 |
1394 core.int buildCounterPersonCoverCoverInfo = 0; | 1394 core.int buildCounterPersonCoverCoverInfo = 0; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 | 1472 |
1473 checkPersonEmails(api.PersonEmails o) { | 1473 checkPersonEmails(api.PersonEmails o) { |
1474 buildCounterPersonEmails++; | 1474 buildCounterPersonEmails++; |
1475 if (buildCounterPersonEmails < 3) { | 1475 if (buildCounterPersonEmails < 3) { |
1476 unittest.expect(o.type, unittest.equals('foo')); | 1476 unittest.expect(o.type, unittest.equals('foo')); |
1477 unittest.expect(o.value, unittest.equals('foo')); | 1477 unittest.expect(o.value, unittest.equals('foo')); |
1478 } | 1478 } |
1479 buildCounterPersonEmails--; | 1479 buildCounterPersonEmails--; |
1480 } | 1480 } |
1481 | 1481 |
1482 buildUnnamed935() { | 1482 buildUnnamed942() { |
1483 var o = new core.List<api.PersonEmails>(); | 1483 var o = new core.List<api.PersonEmails>(); |
1484 o.add(buildPersonEmails()); | 1484 o.add(buildPersonEmails()); |
1485 o.add(buildPersonEmails()); | 1485 o.add(buildPersonEmails()); |
1486 return o; | 1486 return o; |
1487 } | 1487 } |
1488 | 1488 |
1489 checkUnnamed935(core.List<api.PersonEmails> o) { | 1489 checkUnnamed942(core.List<api.PersonEmails> o) { |
1490 unittest.expect(o, unittest.hasLength(2)); | 1490 unittest.expect(o, unittest.hasLength(2)); |
1491 checkPersonEmails(o[0]); | 1491 checkPersonEmails(o[0]); |
1492 checkPersonEmails(o[1]); | 1492 checkPersonEmails(o[1]); |
1493 } | 1493 } |
1494 | 1494 |
1495 core.int buildCounterPersonImage = 0; | 1495 core.int buildCounterPersonImage = 0; |
1496 buildPersonImage() { | 1496 buildPersonImage() { |
1497 var o = new api.PersonImage(); | 1497 var o = new api.PersonImage(); |
1498 buildCounterPersonImage++; | 1498 buildCounterPersonImage++; |
1499 if (buildCounterPersonImage < 3) { | 1499 if (buildCounterPersonImage < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 unittest.expect(o.location, unittest.equals('foo')); | 1570 unittest.expect(o.location, unittest.equals('foo')); |
1571 unittest.expect(o.name, unittest.equals('foo')); | 1571 unittest.expect(o.name, unittest.equals('foo')); |
1572 unittest.expect(o.primary, unittest.isTrue); | 1572 unittest.expect(o.primary, unittest.isTrue); |
1573 unittest.expect(o.startDate, unittest.equals('foo')); | 1573 unittest.expect(o.startDate, unittest.equals('foo')); |
1574 unittest.expect(o.title, unittest.equals('foo')); | 1574 unittest.expect(o.title, unittest.equals('foo')); |
1575 unittest.expect(o.type, unittest.equals('foo')); | 1575 unittest.expect(o.type, unittest.equals('foo')); |
1576 } | 1576 } |
1577 buildCounterPersonOrganizations--; | 1577 buildCounterPersonOrganizations--; |
1578 } | 1578 } |
1579 | 1579 |
1580 buildUnnamed936() { | 1580 buildUnnamed943() { |
1581 var o = new core.List<api.PersonOrganizations>(); | 1581 var o = new core.List<api.PersonOrganizations>(); |
1582 o.add(buildPersonOrganizations()); | 1582 o.add(buildPersonOrganizations()); |
1583 o.add(buildPersonOrganizations()); | 1583 o.add(buildPersonOrganizations()); |
1584 return o; | 1584 return o; |
1585 } | 1585 } |
1586 | 1586 |
1587 checkUnnamed936(core.List<api.PersonOrganizations> o) { | 1587 checkUnnamed943(core.List<api.PersonOrganizations> o) { |
1588 unittest.expect(o, unittest.hasLength(2)); | 1588 unittest.expect(o, unittest.hasLength(2)); |
1589 checkPersonOrganizations(o[0]); | 1589 checkPersonOrganizations(o[0]); |
1590 checkPersonOrganizations(o[1]); | 1590 checkPersonOrganizations(o[1]); |
1591 } | 1591 } |
1592 | 1592 |
1593 core.int buildCounterPersonPlacesLived = 0; | 1593 core.int buildCounterPersonPlacesLived = 0; |
1594 buildPersonPlacesLived() { | 1594 buildPersonPlacesLived() { |
1595 var o = new api.PersonPlacesLived(); | 1595 var o = new api.PersonPlacesLived(); |
1596 buildCounterPersonPlacesLived++; | 1596 buildCounterPersonPlacesLived++; |
1597 if (buildCounterPersonPlacesLived < 3) { | 1597 if (buildCounterPersonPlacesLived < 3) { |
1598 o.primary = true; | 1598 o.primary = true; |
1599 o.value = "foo"; | 1599 o.value = "foo"; |
1600 } | 1600 } |
1601 buildCounterPersonPlacesLived--; | 1601 buildCounterPersonPlacesLived--; |
1602 return o; | 1602 return o; |
1603 } | 1603 } |
1604 | 1604 |
1605 checkPersonPlacesLived(api.PersonPlacesLived o) { | 1605 checkPersonPlacesLived(api.PersonPlacesLived o) { |
1606 buildCounterPersonPlacesLived++; | 1606 buildCounterPersonPlacesLived++; |
1607 if (buildCounterPersonPlacesLived < 3) { | 1607 if (buildCounterPersonPlacesLived < 3) { |
1608 unittest.expect(o.primary, unittest.isTrue); | 1608 unittest.expect(o.primary, unittest.isTrue); |
1609 unittest.expect(o.value, unittest.equals('foo')); | 1609 unittest.expect(o.value, unittest.equals('foo')); |
1610 } | 1610 } |
1611 buildCounterPersonPlacesLived--; | 1611 buildCounterPersonPlacesLived--; |
1612 } | 1612 } |
1613 | 1613 |
1614 buildUnnamed937() { | 1614 buildUnnamed944() { |
1615 var o = new core.List<api.PersonPlacesLived>(); | 1615 var o = new core.List<api.PersonPlacesLived>(); |
1616 o.add(buildPersonPlacesLived()); | 1616 o.add(buildPersonPlacesLived()); |
1617 o.add(buildPersonPlacesLived()); | 1617 o.add(buildPersonPlacesLived()); |
1618 return o; | 1618 return o; |
1619 } | 1619 } |
1620 | 1620 |
1621 checkUnnamed937(core.List<api.PersonPlacesLived> o) { | 1621 checkUnnamed944(core.List<api.PersonPlacesLived> o) { |
1622 unittest.expect(o, unittest.hasLength(2)); | 1622 unittest.expect(o, unittest.hasLength(2)); |
1623 checkPersonPlacesLived(o[0]); | 1623 checkPersonPlacesLived(o[0]); |
1624 checkPersonPlacesLived(o[1]); | 1624 checkPersonPlacesLived(o[1]); |
1625 } | 1625 } |
1626 | 1626 |
1627 core.int buildCounterPersonUrls = 0; | 1627 core.int buildCounterPersonUrls = 0; |
1628 buildPersonUrls() { | 1628 buildPersonUrls() { |
1629 var o = new api.PersonUrls(); | 1629 var o = new api.PersonUrls(); |
1630 buildCounterPersonUrls++; | 1630 buildCounterPersonUrls++; |
1631 if (buildCounterPersonUrls < 3) { | 1631 if (buildCounterPersonUrls < 3) { |
1632 o.label = "foo"; | 1632 o.label = "foo"; |
1633 o.type = "foo"; | 1633 o.type = "foo"; |
1634 o.value = "foo"; | 1634 o.value = "foo"; |
1635 } | 1635 } |
1636 buildCounterPersonUrls--; | 1636 buildCounterPersonUrls--; |
1637 return o; | 1637 return o; |
1638 } | 1638 } |
1639 | 1639 |
1640 checkPersonUrls(api.PersonUrls o) { | 1640 checkPersonUrls(api.PersonUrls o) { |
1641 buildCounterPersonUrls++; | 1641 buildCounterPersonUrls++; |
1642 if (buildCounterPersonUrls < 3) { | 1642 if (buildCounterPersonUrls < 3) { |
1643 unittest.expect(o.label, unittest.equals('foo')); | 1643 unittest.expect(o.label, unittest.equals('foo')); |
1644 unittest.expect(o.type, unittest.equals('foo')); | 1644 unittest.expect(o.type, unittest.equals('foo')); |
1645 unittest.expect(o.value, unittest.equals('foo')); | 1645 unittest.expect(o.value, unittest.equals('foo')); |
1646 } | 1646 } |
1647 buildCounterPersonUrls--; | 1647 buildCounterPersonUrls--; |
1648 } | 1648 } |
1649 | 1649 |
1650 buildUnnamed938() { | 1650 buildUnnamed945() { |
1651 var o = new core.List<api.PersonUrls>(); | 1651 var o = new core.List<api.PersonUrls>(); |
1652 o.add(buildPersonUrls()); | 1652 o.add(buildPersonUrls()); |
1653 o.add(buildPersonUrls()); | 1653 o.add(buildPersonUrls()); |
1654 return o; | 1654 return o; |
1655 } | 1655 } |
1656 | 1656 |
1657 checkUnnamed938(core.List<api.PersonUrls> o) { | 1657 checkUnnamed945(core.List<api.PersonUrls> o) { |
1658 unittest.expect(o, unittest.hasLength(2)); | 1658 unittest.expect(o, unittest.hasLength(2)); |
1659 checkPersonUrls(o[0]); | 1659 checkPersonUrls(o[0]); |
1660 checkPersonUrls(o[1]); | 1660 checkPersonUrls(o[1]); |
1661 } | 1661 } |
1662 | 1662 |
1663 core.int buildCounterPerson = 0; | 1663 core.int buildCounterPerson = 0; |
1664 buildPerson() { | 1664 buildPerson() { |
1665 var o = new api.Person(); | 1665 var o = new api.Person(); |
1666 buildCounterPerson++; | 1666 buildCounterPerson++; |
1667 if (buildCounterPerson < 3) { | 1667 if (buildCounterPerson < 3) { |
1668 o.aboutMe = "foo"; | 1668 o.aboutMe = "foo"; |
1669 o.birthday = "foo"; | 1669 o.birthday = "foo"; |
1670 o.braggingRights = "foo"; | 1670 o.braggingRights = "foo"; |
1671 o.circledByCount = 42; | 1671 o.circledByCount = 42; |
1672 o.cover = buildPersonCover(); | 1672 o.cover = buildPersonCover(); |
1673 o.currentLocation = "foo"; | 1673 o.currentLocation = "foo"; |
1674 o.displayName = "foo"; | 1674 o.displayName = "foo"; |
1675 o.domain = "foo"; | 1675 o.domain = "foo"; |
1676 o.emails = buildUnnamed935(); | 1676 o.emails = buildUnnamed942(); |
1677 o.etag = "foo"; | 1677 o.etag = "foo"; |
1678 o.gender = "foo"; | 1678 o.gender = "foo"; |
1679 o.id = "foo"; | 1679 o.id = "foo"; |
1680 o.image = buildPersonImage(); | 1680 o.image = buildPersonImage(); |
1681 o.isPlusUser = true; | 1681 o.isPlusUser = true; |
1682 o.kind = "foo"; | 1682 o.kind = "foo"; |
1683 o.name = buildPersonName(); | 1683 o.name = buildPersonName(); |
1684 o.nickname = "foo"; | 1684 o.nickname = "foo"; |
1685 o.objectType = "foo"; | 1685 o.objectType = "foo"; |
1686 o.occupation = "foo"; | 1686 o.occupation = "foo"; |
1687 o.organizations = buildUnnamed936(); | 1687 o.organizations = buildUnnamed943(); |
1688 o.placesLived = buildUnnamed937(); | 1688 o.placesLived = buildUnnamed944(); |
1689 o.plusOneCount = 42; | 1689 o.plusOneCount = 42; |
1690 o.relationshipStatus = "foo"; | 1690 o.relationshipStatus = "foo"; |
1691 o.skills = "foo"; | 1691 o.skills = "foo"; |
1692 o.tagline = "foo"; | 1692 o.tagline = "foo"; |
1693 o.url = "foo"; | 1693 o.url = "foo"; |
1694 o.urls = buildUnnamed938(); | 1694 o.urls = buildUnnamed945(); |
1695 o.verified = true; | 1695 o.verified = true; |
1696 } | 1696 } |
1697 buildCounterPerson--; | 1697 buildCounterPerson--; |
1698 return o; | 1698 return o; |
1699 } | 1699 } |
1700 | 1700 |
1701 checkPerson(api.Person o) { | 1701 checkPerson(api.Person o) { |
1702 buildCounterPerson++; | 1702 buildCounterPerson++; |
1703 if (buildCounterPerson < 3) { | 1703 if (buildCounterPerson < 3) { |
1704 unittest.expect(o.aboutMe, unittest.equals('foo')); | 1704 unittest.expect(o.aboutMe, unittest.equals('foo')); |
1705 unittest.expect(o.birthday, unittest.equals('foo')); | 1705 unittest.expect(o.birthday, unittest.equals('foo')); |
1706 unittest.expect(o.braggingRights, unittest.equals('foo')); | 1706 unittest.expect(o.braggingRights, unittest.equals('foo')); |
1707 unittest.expect(o.circledByCount, unittest.equals(42)); | 1707 unittest.expect(o.circledByCount, unittest.equals(42)); |
1708 checkPersonCover(o.cover); | 1708 checkPersonCover(o.cover); |
1709 unittest.expect(o.currentLocation, unittest.equals('foo')); | 1709 unittest.expect(o.currentLocation, unittest.equals('foo')); |
1710 unittest.expect(o.displayName, unittest.equals('foo')); | 1710 unittest.expect(o.displayName, unittest.equals('foo')); |
1711 unittest.expect(o.domain, unittest.equals('foo')); | 1711 unittest.expect(o.domain, unittest.equals('foo')); |
1712 checkUnnamed935(o.emails); | 1712 checkUnnamed942(o.emails); |
1713 unittest.expect(o.etag, unittest.equals('foo')); | 1713 unittest.expect(o.etag, unittest.equals('foo')); |
1714 unittest.expect(o.gender, unittest.equals('foo')); | 1714 unittest.expect(o.gender, unittest.equals('foo')); |
1715 unittest.expect(o.id, unittest.equals('foo')); | 1715 unittest.expect(o.id, unittest.equals('foo')); |
1716 checkPersonImage(o.image); | 1716 checkPersonImage(o.image); |
1717 unittest.expect(o.isPlusUser, unittest.isTrue); | 1717 unittest.expect(o.isPlusUser, unittest.isTrue); |
1718 unittest.expect(o.kind, unittest.equals('foo')); | 1718 unittest.expect(o.kind, unittest.equals('foo')); |
1719 checkPersonName(o.name); | 1719 checkPersonName(o.name); |
1720 unittest.expect(o.nickname, unittest.equals('foo')); | 1720 unittest.expect(o.nickname, unittest.equals('foo')); |
1721 unittest.expect(o.objectType, unittest.equals('foo')); | 1721 unittest.expect(o.objectType, unittest.equals('foo')); |
1722 unittest.expect(o.occupation, unittest.equals('foo')); | 1722 unittest.expect(o.occupation, unittest.equals('foo')); |
1723 checkUnnamed936(o.organizations); | 1723 checkUnnamed943(o.organizations); |
1724 checkUnnamed937(o.placesLived); | 1724 checkUnnamed944(o.placesLived); |
1725 unittest.expect(o.plusOneCount, unittest.equals(42)); | 1725 unittest.expect(o.plusOneCount, unittest.equals(42)); |
1726 unittest.expect(o.relationshipStatus, unittest.equals('foo')); | 1726 unittest.expect(o.relationshipStatus, unittest.equals('foo')); |
1727 unittest.expect(o.skills, unittest.equals('foo')); | 1727 unittest.expect(o.skills, unittest.equals('foo')); |
1728 unittest.expect(o.tagline, unittest.equals('foo')); | 1728 unittest.expect(o.tagline, unittest.equals('foo')); |
1729 unittest.expect(o.url, unittest.equals('foo')); | 1729 unittest.expect(o.url, unittest.equals('foo')); |
1730 checkUnnamed938(o.urls); | 1730 checkUnnamed945(o.urls); |
1731 unittest.expect(o.verified, unittest.isTrue); | 1731 unittest.expect(o.verified, unittest.isTrue); |
1732 } | 1732 } |
1733 buildCounterPerson--; | 1733 buildCounterPerson--; |
1734 } | 1734 } |
1735 | 1735 |
1736 core.int buildCounterPlaceAddress = 0; | 1736 core.int buildCounterPlaceAddress = 0; |
1737 buildPlaceAddress() { | 1737 buildPlaceAddress() { |
1738 var o = new api.PlaceAddress(); | 1738 var o = new api.PlaceAddress(); |
1739 buildCounterPlaceAddress++; | 1739 buildCounterPlaceAddress++; |
1740 if (buildCounterPlaceAddress < 3) { | 1740 if (buildCounterPlaceAddress < 3) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1841 buildCounterVideostream++; | 1841 buildCounterVideostream++; |
1842 if (buildCounterVideostream < 3) { | 1842 if (buildCounterVideostream < 3) { |
1843 unittest.expect(o.height, unittest.equals(42)); | 1843 unittest.expect(o.height, unittest.equals(42)); |
1844 unittest.expect(o.type, unittest.equals('foo')); | 1844 unittest.expect(o.type, unittest.equals('foo')); |
1845 unittest.expect(o.url, unittest.equals('foo')); | 1845 unittest.expect(o.url, unittest.equals('foo')); |
1846 unittest.expect(o.width, unittest.equals(42)); | 1846 unittest.expect(o.width, unittest.equals(42)); |
1847 } | 1847 } |
1848 buildCounterVideostream--; | 1848 buildCounterVideostream--; |
1849 } | 1849 } |
1850 | 1850 |
1851 buildUnnamed939() { | 1851 buildUnnamed946() { |
1852 var o = new core.List<core.String>(); | 1852 var o = new core.List<core.String>(); |
1853 o.add("foo"); | 1853 o.add("foo"); |
1854 o.add("foo"); | 1854 o.add("foo"); |
1855 return o; | 1855 return o; |
1856 } | 1856 } |
1857 | 1857 |
1858 checkUnnamed939(core.List<core.String> o) { | 1858 checkUnnamed946(core.List<core.String> o) { |
1859 unittest.expect(o, unittest.hasLength(2)); | 1859 unittest.expect(o, unittest.hasLength(2)); |
1860 unittest.expect(o[0], unittest.equals('foo')); | 1860 unittest.expect(o[0], unittest.equals('foo')); |
1861 unittest.expect(o[1], unittest.equals('foo')); | 1861 unittest.expect(o[1], unittest.equals('foo')); |
1862 } | 1862 } |
1863 | 1863 |
1864 buildUnnamed940() { | 1864 buildUnnamed947() { |
1865 var o = new core.List<core.String>(); | 1865 var o = new core.List<core.String>(); |
1866 o.add("foo"); | 1866 o.add("foo"); |
1867 o.add("foo"); | 1867 o.add("foo"); |
1868 return o; | 1868 return o; |
1869 } | 1869 } |
1870 | 1870 |
1871 checkUnnamed940(core.List<core.String> o) { | 1871 checkUnnamed947(core.List<core.String> o) { |
1872 unittest.expect(o, unittest.hasLength(2)); | 1872 unittest.expect(o, unittest.hasLength(2)); |
1873 unittest.expect(o[0], unittest.equals('foo')); | 1873 unittest.expect(o[0], unittest.equals('foo')); |
1874 unittest.expect(o[1], unittest.equals('foo')); | 1874 unittest.expect(o[1], unittest.equals('foo')); |
1875 } | 1875 } |
1876 | 1876 |
1877 buildUnnamed941() { | 1877 buildUnnamed948() { |
1878 var o = new core.List<core.String>(); | 1878 var o = new core.List<core.String>(); |
1879 o.add("foo"); | 1879 o.add("foo"); |
1880 o.add("foo"); | 1880 o.add("foo"); |
1881 return o; | 1881 return o; |
1882 } | 1882 } |
1883 | 1883 |
1884 checkUnnamed941(core.List<core.String> o) { | 1884 checkUnnamed948(core.List<core.String> o) { |
1885 unittest.expect(o, unittest.hasLength(2)); | 1885 unittest.expect(o, unittest.hasLength(2)); |
1886 unittest.expect(o[0], unittest.equals('foo')); | 1886 unittest.expect(o[0], unittest.equals('foo')); |
1887 unittest.expect(o[1], unittest.equals('foo')); | 1887 unittest.expect(o[1], unittest.equals('foo')); |
1888 } | 1888 } |
1889 | 1889 |
1890 buildUnnamed942() { | 1890 buildUnnamed949() { |
1891 var o = new core.List<core.String>(); | 1891 var o = new core.List<core.String>(); |
1892 o.add("foo"); | 1892 o.add("foo"); |
1893 o.add("foo"); | 1893 o.add("foo"); |
1894 return o; | 1894 return o; |
1895 } | 1895 } |
1896 | 1896 |
1897 checkUnnamed942(core.List<core.String> o) { | 1897 checkUnnamed949(core.List<core.String> o) { |
1898 unittest.expect(o, unittest.hasLength(2)); | 1898 unittest.expect(o, unittest.hasLength(2)); |
1899 unittest.expect(o[0], unittest.equals('foo')); | 1899 unittest.expect(o[0], unittest.equals('foo')); |
1900 unittest.expect(o[1], unittest.equals('foo')); | 1900 unittest.expect(o[1], unittest.equals('foo')); |
1901 } | 1901 } |
1902 | 1902 |
1903 | 1903 |
1904 main() { | 1904 main() { |
1905 unittest.group("obj-schema-Acl", () { | 1905 unittest.group("obj-schema-Acl", () { |
1906 unittest.test("to-json--from-json", () { | 1906 unittest.test("to-json--from-json", () { |
1907 var o = buildAcl(); | 1907 var o = buildAcl(); |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 | 2693 |
2694 }); | 2694 }); |
2695 | 2695 |
2696 | 2696 |
2697 unittest.group("resource-CirclesResourceApi", () { | 2697 unittest.group("resource-CirclesResourceApi", () { |
2698 unittest.test("method--addPeople", () { | 2698 unittest.test("method--addPeople", () { |
2699 | 2699 |
2700 var mock = new HttpServerMock(); | 2700 var mock = new HttpServerMock(); |
2701 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2701 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2702 var arg_circleId = "foo"; | 2702 var arg_circleId = "foo"; |
2703 var arg_email = buildUnnamed939(); | 2703 var arg_email = buildUnnamed946(); |
2704 var arg_userId = buildUnnamed940(); | 2704 var arg_userId = buildUnnamed947(); |
2705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2706 var path = (req.url).path; | 2706 var path = (req.url).path; |
2707 var pathOffset = 0; | 2707 var pathOffset = 0; |
2708 var index; | 2708 var index; |
2709 var subPart; | 2709 var subPart; |
2710 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2710 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2711 pathOffset += 1; | 2711 pathOffset += 1; |
2712 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2712 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
2713 pathOffset += 15; | 2713 pathOffset += 15; |
2714 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2714 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3013 return new async.Future.value(stringResponse(200, h, resp)); | 3013 return new async.Future.value(stringResponse(200, h, resp)); |
3014 }), true); | 3014 }), true); |
3015 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); | 3015 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); |
3016 }); | 3016 }); |
3017 | 3017 |
3018 unittest.test("method--removePeople", () { | 3018 unittest.test("method--removePeople", () { |
3019 | 3019 |
3020 var mock = new HttpServerMock(); | 3020 var mock = new HttpServerMock(); |
3021 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 3021 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
3022 var arg_circleId = "foo"; | 3022 var arg_circleId = "foo"; |
3023 var arg_email = buildUnnamed941(); | 3023 var arg_email = buildUnnamed948(); |
3024 var arg_userId = buildUnnamed942(); | 3024 var arg_userId = buildUnnamed949(); |
3025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3026 var path = (req.url).path; | 3026 var path = (req.url).path; |
3027 var pathOffset = 0; | 3027 var pathOffset = 0; |
3028 var index; | 3028 var index; |
3029 var subPart; | 3029 var subPart; |
3030 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3030 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3031 pathOffset += 1; | 3031 pathOffset += 1; |
3032 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 3032 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
3033 pathOffset += 15; | 3033 pathOffset += 15; |
3034 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 3034 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3591 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { | 3591 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { |
3592 checkPeopleFeed(response); | 3592 checkPeopleFeed(response); |
3593 }))); | 3593 }))); |
3594 }); | 3594 }); |
3595 | 3595 |
3596 }); | 3596 }); |
3597 | 3597 |
3598 | 3598 |
3599 } | 3599 } |
3600 | 3600 |
OLD | NEW |