OLD | NEW |
1 library googleapis.plus.v1.test; | 1 library googleapis.plus.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:test/test.dart' as unittest; | 10 import 'package:test/test.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<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
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 buildUnnamed150() { | 54 buildUnnamed155() { |
55 var o = new core.List<api.PlusAclentryResource>(); | 55 var o = new core.List<api.PlusAclentryResource>(); |
56 o.add(buildPlusAclentryResource()); | 56 o.add(buildPlusAclentryResource()); |
57 o.add(buildPlusAclentryResource()); | 57 o.add(buildPlusAclentryResource()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed150(core.List<api.PlusAclentryResource> o) { | 61 checkUnnamed155(core.List<api.PlusAclentryResource> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkPlusAclentryResource(o[0]); | 63 checkPlusAclentryResource(o[0]); |
64 checkPlusAclentryResource(o[1]); | 64 checkPlusAclentryResource(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.items = buildUnnamed150(); | 73 o.items = buildUnnamed155(); |
74 o.kind = "foo"; | 74 o.kind = "foo"; |
75 } | 75 } |
76 buildCounterAcl--; | 76 buildCounterAcl--; |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkAcl(api.Acl o) { | 80 checkAcl(api.Acl o) { |
81 buildCounterAcl++; | 81 buildCounterAcl++; |
82 if (buildCounterAcl < 3) { | 82 if (buildCounterAcl < 3) { |
83 unittest.expect(o.description, unittest.equals('foo')); | 83 unittest.expect(o.description, unittest.equals('foo')); |
84 checkUnnamed150(o.items); | 84 checkUnnamed155(o.items); |
85 unittest.expect(o.kind, unittest.equals('foo')); | 85 unittest.expect(o.kind, unittest.equals('foo')); |
86 } | 86 } |
87 buildCounterAcl--; | 87 buildCounterAcl--; |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo = 0; | 90 core.int buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo = 0; |
91 buildActivityActorClientSpecificActorInfoYoutubeActorInfo() { | 91 buildActivityActorClientSpecificActorInfoYoutubeActorInfo() { |
92 var o = new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo(); | 92 var o = new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo(); |
93 buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; | 93 buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; |
94 if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { | 94 if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { | 432 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { |
433 buildCounterActivityObjectAttachmentsThumbnails++; | 433 buildCounterActivityObjectAttachmentsThumbnails++; |
434 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { | 434 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { |
435 unittest.expect(o.description, unittest.equals('foo')); | 435 unittest.expect(o.description, unittest.equals('foo')); |
436 checkActivityObjectAttachmentsThumbnailsImage(o.image); | 436 checkActivityObjectAttachmentsThumbnailsImage(o.image); |
437 unittest.expect(o.url, unittest.equals('foo')); | 437 unittest.expect(o.url, unittest.equals('foo')); |
438 } | 438 } |
439 buildCounterActivityObjectAttachmentsThumbnails--; | 439 buildCounterActivityObjectAttachmentsThumbnails--; |
440 } | 440 } |
441 | 441 |
442 buildUnnamed151() { | 442 buildUnnamed156() { |
443 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); | 443 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); |
444 o.add(buildActivityObjectAttachmentsThumbnails()); | 444 o.add(buildActivityObjectAttachmentsThumbnails()); |
445 o.add(buildActivityObjectAttachmentsThumbnails()); | 445 o.add(buildActivityObjectAttachmentsThumbnails()); |
446 return o; | 446 return o; |
447 } | 447 } |
448 | 448 |
449 checkUnnamed151(core.List<api.ActivityObjectAttachmentsThumbnails> o) { | 449 checkUnnamed156(core.List<api.ActivityObjectAttachmentsThumbnails> o) { |
450 unittest.expect(o, unittest.hasLength(2)); | 450 unittest.expect(o, unittest.hasLength(2)); |
451 checkActivityObjectAttachmentsThumbnails(o[0]); | 451 checkActivityObjectAttachmentsThumbnails(o[0]); |
452 checkActivityObjectAttachmentsThumbnails(o[1]); | 452 checkActivityObjectAttachmentsThumbnails(o[1]); |
453 } | 453 } |
454 | 454 |
455 core.int buildCounterActivityObjectAttachments = 0; | 455 core.int buildCounterActivityObjectAttachments = 0; |
456 buildActivityObjectAttachments() { | 456 buildActivityObjectAttachments() { |
457 var o = new api.ActivityObjectAttachments(); | 457 var o = new api.ActivityObjectAttachments(); |
458 buildCounterActivityObjectAttachments++; | 458 buildCounterActivityObjectAttachments++; |
459 if (buildCounterActivityObjectAttachments < 3) { | 459 if (buildCounterActivityObjectAttachments < 3) { |
460 o.content = "foo"; | 460 o.content = "foo"; |
461 o.displayName = "foo"; | 461 o.displayName = "foo"; |
462 o.embed = buildActivityObjectAttachmentsEmbed(); | 462 o.embed = buildActivityObjectAttachmentsEmbed(); |
463 o.fullImage = buildActivityObjectAttachmentsFullImage(); | 463 o.fullImage = buildActivityObjectAttachmentsFullImage(); |
464 o.id = "foo"; | 464 o.id = "foo"; |
465 o.image = buildActivityObjectAttachmentsImage(); | 465 o.image = buildActivityObjectAttachmentsImage(); |
466 o.objectType = "foo"; | 466 o.objectType = "foo"; |
467 o.thumbnails = buildUnnamed151(); | 467 o.thumbnails = buildUnnamed156(); |
468 o.url = "foo"; | 468 o.url = "foo"; |
469 } | 469 } |
470 buildCounterActivityObjectAttachments--; | 470 buildCounterActivityObjectAttachments--; |
471 return o; | 471 return o; |
472 } | 472 } |
473 | 473 |
474 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { | 474 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { |
475 buildCounterActivityObjectAttachments++; | 475 buildCounterActivityObjectAttachments++; |
476 if (buildCounterActivityObjectAttachments < 3) { | 476 if (buildCounterActivityObjectAttachments < 3) { |
477 unittest.expect(o.content, unittest.equals('foo')); | 477 unittest.expect(o.content, unittest.equals('foo')); |
478 unittest.expect(o.displayName, unittest.equals('foo')); | 478 unittest.expect(o.displayName, unittest.equals('foo')); |
479 checkActivityObjectAttachmentsEmbed(o.embed); | 479 checkActivityObjectAttachmentsEmbed(o.embed); |
480 checkActivityObjectAttachmentsFullImage(o.fullImage); | 480 checkActivityObjectAttachmentsFullImage(o.fullImage); |
481 unittest.expect(o.id, unittest.equals('foo')); | 481 unittest.expect(o.id, unittest.equals('foo')); |
482 checkActivityObjectAttachmentsImage(o.image); | 482 checkActivityObjectAttachmentsImage(o.image); |
483 unittest.expect(o.objectType, unittest.equals('foo')); | 483 unittest.expect(o.objectType, unittest.equals('foo')); |
484 checkUnnamed151(o.thumbnails); | 484 checkUnnamed156(o.thumbnails); |
485 unittest.expect(o.url, unittest.equals('foo')); | 485 unittest.expect(o.url, unittest.equals('foo')); |
486 } | 486 } |
487 buildCounterActivityObjectAttachments--; | 487 buildCounterActivityObjectAttachments--; |
488 } | 488 } |
489 | 489 |
490 buildUnnamed152() { | 490 buildUnnamed157() { |
491 var o = new core.List<api.ActivityObjectAttachments>(); | 491 var o = new core.List<api.ActivityObjectAttachments>(); |
492 o.add(buildActivityObjectAttachments()); | 492 o.add(buildActivityObjectAttachments()); |
493 o.add(buildActivityObjectAttachments()); | 493 o.add(buildActivityObjectAttachments()); |
494 return o; | 494 return o; |
495 } | 495 } |
496 | 496 |
497 checkUnnamed152(core.List<api.ActivityObjectAttachments> o) { | 497 checkUnnamed157(core.List<api.ActivityObjectAttachments> o) { |
498 unittest.expect(o, unittest.hasLength(2)); | 498 unittest.expect(o, unittest.hasLength(2)); |
499 checkActivityObjectAttachments(o[0]); | 499 checkActivityObjectAttachments(o[0]); |
500 checkActivityObjectAttachments(o[1]); | 500 checkActivityObjectAttachments(o[1]); |
501 } | 501 } |
502 | 502 |
503 core.int buildCounterActivityObjectPlusoners = 0; | 503 core.int buildCounterActivityObjectPlusoners = 0; |
504 buildActivityObjectPlusoners() { | 504 buildActivityObjectPlusoners() { |
505 var o = new api.ActivityObjectPlusoners(); | 505 var o = new api.ActivityObjectPlusoners(); |
506 buildCounterActivityObjectPlusoners++; | 506 buildCounterActivityObjectPlusoners++; |
507 if (buildCounterActivityObjectPlusoners < 3) { | 507 if (buildCounterActivityObjectPlusoners < 3) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } | 562 } |
563 buildCounterActivityObjectResharers--; | 563 buildCounterActivityObjectResharers--; |
564 } | 564 } |
565 | 565 |
566 core.int buildCounterActivityObject = 0; | 566 core.int buildCounterActivityObject = 0; |
567 buildActivityObject() { | 567 buildActivityObject() { |
568 var o = new api.ActivityObject(); | 568 var o = new api.ActivityObject(); |
569 buildCounterActivityObject++; | 569 buildCounterActivityObject++; |
570 if (buildCounterActivityObject < 3) { | 570 if (buildCounterActivityObject < 3) { |
571 o.actor = buildActivityObjectActor(); | 571 o.actor = buildActivityObjectActor(); |
572 o.attachments = buildUnnamed152(); | 572 o.attachments = buildUnnamed157(); |
573 o.content = "foo"; | 573 o.content = "foo"; |
574 o.id = "foo"; | 574 o.id = "foo"; |
575 o.objectType = "foo"; | 575 o.objectType = "foo"; |
576 o.originalContent = "foo"; | 576 o.originalContent = "foo"; |
577 o.plusoners = buildActivityObjectPlusoners(); | 577 o.plusoners = buildActivityObjectPlusoners(); |
578 o.replies = buildActivityObjectReplies(); | 578 o.replies = buildActivityObjectReplies(); |
579 o.resharers = buildActivityObjectResharers(); | 579 o.resharers = buildActivityObjectResharers(); |
580 o.url = "foo"; | 580 o.url = "foo"; |
581 } | 581 } |
582 buildCounterActivityObject--; | 582 buildCounterActivityObject--; |
583 return o; | 583 return o; |
584 } | 584 } |
585 | 585 |
586 checkActivityObject(api.ActivityObject o) { | 586 checkActivityObject(api.ActivityObject o) { |
587 buildCounterActivityObject++; | 587 buildCounterActivityObject++; |
588 if (buildCounterActivityObject < 3) { | 588 if (buildCounterActivityObject < 3) { |
589 checkActivityObjectActor(o.actor); | 589 checkActivityObjectActor(o.actor); |
590 checkUnnamed152(o.attachments); | 590 checkUnnamed157(o.attachments); |
591 unittest.expect(o.content, unittest.equals('foo')); | 591 unittest.expect(o.content, unittest.equals('foo')); |
592 unittest.expect(o.id, unittest.equals('foo')); | 592 unittest.expect(o.id, unittest.equals('foo')); |
593 unittest.expect(o.objectType, unittest.equals('foo')); | 593 unittest.expect(o.objectType, unittest.equals('foo')); |
594 unittest.expect(o.originalContent, unittest.equals('foo')); | 594 unittest.expect(o.originalContent, unittest.equals('foo')); |
595 checkActivityObjectPlusoners(o.plusoners); | 595 checkActivityObjectPlusoners(o.plusoners); |
596 checkActivityObjectReplies(o.replies); | 596 checkActivityObjectReplies(o.replies); |
597 checkActivityObjectResharers(o.resharers); | 597 checkActivityObjectResharers(o.resharers); |
598 unittest.expect(o.url, unittest.equals('foo')); | 598 unittest.expect(o.url, unittest.equals('foo')); |
599 } | 599 } |
600 buildCounterActivityObject--; | 600 buildCounterActivityObject--; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 669 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
670 unittest.expect(o.radius, unittest.equals('foo')); | 670 unittest.expect(o.radius, unittest.equals('foo')); |
671 unittest.expect(o.title, unittest.equals('foo')); | 671 unittest.expect(o.title, unittest.equals('foo')); |
672 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 672 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
673 unittest.expect(o.url, unittest.equals('foo')); | 673 unittest.expect(o.url, unittest.equals('foo')); |
674 unittest.expect(o.verb, unittest.equals('foo')); | 674 unittest.expect(o.verb, unittest.equals('foo')); |
675 } | 675 } |
676 buildCounterActivity--; | 676 buildCounterActivity--; |
677 } | 677 } |
678 | 678 |
679 buildUnnamed153() { | 679 buildUnnamed158() { |
680 var o = new core.List<api.Activity>(); | 680 var o = new core.List<api.Activity>(); |
681 o.add(buildActivity()); | 681 o.add(buildActivity()); |
682 o.add(buildActivity()); | 682 o.add(buildActivity()); |
683 return o; | 683 return o; |
684 } | 684 } |
685 | 685 |
686 checkUnnamed153(core.List<api.Activity> o) { | 686 checkUnnamed158(core.List<api.Activity> o) { |
687 unittest.expect(o, unittest.hasLength(2)); | 687 unittest.expect(o, unittest.hasLength(2)); |
688 checkActivity(o[0]); | 688 checkActivity(o[0]); |
689 checkActivity(o[1]); | 689 checkActivity(o[1]); |
690 } | 690 } |
691 | 691 |
692 core.int buildCounterActivityFeed = 0; | 692 core.int buildCounterActivityFeed = 0; |
693 buildActivityFeed() { | 693 buildActivityFeed() { |
694 var o = new api.ActivityFeed(); | 694 var o = new api.ActivityFeed(); |
695 buildCounterActivityFeed++; | 695 buildCounterActivityFeed++; |
696 if (buildCounterActivityFeed < 3) { | 696 if (buildCounterActivityFeed < 3) { |
697 o.etag = "foo"; | 697 o.etag = "foo"; |
698 o.id = "foo"; | 698 o.id = "foo"; |
699 o.items = buildUnnamed153(); | 699 o.items = buildUnnamed158(); |
700 o.kind = "foo"; | 700 o.kind = "foo"; |
701 o.nextLink = "foo"; | 701 o.nextLink = "foo"; |
702 o.nextPageToken = "foo"; | 702 o.nextPageToken = "foo"; |
703 o.selfLink = "foo"; | 703 o.selfLink = "foo"; |
704 o.title = "foo"; | 704 o.title = "foo"; |
705 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 705 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
706 } | 706 } |
707 buildCounterActivityFeed--; | 707 buildCounterActivityFeed--; |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkActivityFeed(api.ActivityFeed o) { | 711 checkActivityFeed(api.ActivityFeed o) { |
712 buildCounterActivityFeed++; | 712 buildCounterActivityFeed++; |
713 if (buildCounterActivityFeed < 3) { | 713 if (buildCounterActivityFeed < 3) { |
714 unittest.expect(o.etag, unittest.equals('foo')); | 714 unittest.expect(o.etag, unittest.equals('foo')); |
715 unittest.expect(o.id, unittest.equals('foo')); | 715 unittest.expect(o.id, unittest.equals('foo')); |
716 checkUnnamed153(o.items); | 716 checkUnnamed158(o.items); |
717 unittest.expect(o.kind, unittest.equals('foo')); | 717 unittest.expect(o.kind, unittest.equals('foo')); |
718 unittest.expect(o.nextLink, unittest.equals('foo')); | 718 unittest.expect(o.nextLink, unittest.equals('foo')); |
719 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 719 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
720 unittest.expect(o.selfLink, unittest.equals('foo')); | 720 unittest.expect(o.selfLink, unittest.equals('foo')); |
721 unittest.expect(o.title, unittest.equals('foo')); | 721 unittest.expect(o.title, unittest.equals('foo')); |
722 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 722 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
723 } | 723 } |
724 buildCounterActivityFeed--; | 724 buildCounterActivityFeed--; |
725 } | 725 } |
726 | 726 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 | 843 |
844 checkCommentInReplyTo(api.CommentInReplyTo o) { | 844 checkCommentInReplyTo(api.CommentInReplyTo o) { |
845 buildCounterCommentInReplyTo++; | 845 buildCounterCommentInReplyTo++; |
846 if (buildCounterCommentInReplyTo < 3) { | 846 if (buildCounterCommentInReplyTo < 3) { |
847 unittest.expect(o.id, unittest.equals('foo')); | 847 unittest.expect(o.id, unittest.equals('foo')); |
848 unittest.expect(o.url, unittest.equals('foo')); | 848 unittest.expect(o.url, unittest.equals('foo')); |
849 } | 849 } |
850 buildCounterCommentInReplyTo--; | 850 buildCounterCommentInReplyTo--; |
851 } | 851 } |
852 | 852 |
853 buildUnnamed154() { | 853 buildUnnamed159() { |
854 var o = new core.List<api.CommentInReplyTo>(); | 854 var o = new core.List<api.CommentInReplyTo>(); |
855 o.add(buildCommentInReplyTo()); | 855 o.add(buildCommentInReplyTo()); |
856 o.add(buildCommentInReplyTo()); | 856 o.add(buildCommentInReplyTo()); |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkUnnamed154(core.List<api.CommentInReplyTo> o) { | 860 checkUnnamed159(core.List<api.CommentInReplyTo> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
862 checkCommentInReplyTo(o[0]); | 862 checkCommentInReplyTo(o[0]); |
863 checkCommentInReplyTo(o[1]); | 863 checkCommentInReplyTo(o[1]); |
864 } | 864 } |
865 | 865 |
866 core.int buildCounterCommentObject = 0; | 866 core.int buildCounterCommentObject = 0; |
867 buildCommentObject() { | 867 buildCommentObject() { |
868 var o = new api.CommentObject(); | 868 var o = new api.CommentObject(); |
869 buildCounterCommentObject++; | 869 buildCounterCommentObject++; |
870 if (buildCounterCommentObject < 3) { | 870 if (buildCounterCommentObject < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 } | 906 } |
907 | 907 |
908 core.int buildCounterComment = 0; | 908 core.int buildCounterComment = 0; |
909 buildComment() { | 909 buildComment() { |
910 var o = new api.Comment(); | 910 var o = new api.Comment(); |
911 buildCounterComment++; | 911 buildCounterComment++; |
912 if (buildCounterComment < 3) { | 912 if (buildCounterComment < 3) { |
913 o.actor = buildCommentActor(); | 913 o.actor = buildCommentActor(); |
914 o.etag = "foo"; | 914 o.etag = "foo"; |
915 o.id = "foo"; | 915 o.id = "foo"; |
916 o.inReplyTo = buildUnnamed154(); | 916 o.inReplyTo = buildUnnamed159(); |
917 o.kind = "foo"; | 917 o.kind = "foo"; |
918 o.object = buildCommentObject(); | 918 o.object = buildCommentObject(); |
919 o.plusoners = buildCommentPlusoners(); | 919 o.plusoners = buildCommentPlusoners(); |
920 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 920 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
921 o.selfLink = "foo"; | 921 o.selfLink = "foo"; |
922 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 922 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
923 o.verb = "foo"; | 923 o.verb = "foo"; |
924 } | 924 } |
925 buildCounterComment--; | 925 buildCounterComment--; |
926 return o; | 926 return o; |
927 } | 927 } |
928 | 928 |
929 checkComment(api.Comment o) { | 929 checkComment(api.Comment o) { |
930 buildCounterComment++; | 930 buildCounterComment++; |
931 if (buildCounterComment < 3) { | 931 if (buildCounterComment < 3) { |
932 checkCommentActor(o.actor); | 932 checkCommentActor(o.actor); |
933 unittest.expect(o.etag, unittest.equals('foo')); | 933 unittest.expect(o.etag, unittest.equals('foo')); |
934 unittest.expect(o.id, unittest.equals('foo')); | 934 unittest.expect(o.id, unittest.equals('foo')); |
935 checkUnnamed154(o.inReplyTo); | 935 checkUnnamed159(o.inReplyTo); |
936 unittest.expect(o.kind, unittest.equals('foo')); | 936 unittest.expect(o.kind, unittest.equals('foo')); |
937 checkCommentObject(o.object); | 937 checkCommentObject(o.object); |
938 checkCommentPlusoners(o.plusoners); | 938 checkCommentPlusoners(o.plusoners); |
939 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 939 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
940 unittest.expect(o.selfLink, unittest.equals('foo')); | 940 unittest.expect(o.selfLink, unittest.equals('foo')); |
941 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 941 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
942 unittest.expect(o.verb, unittest.equals('foo')); | 942 unittest.expect(o.verb, unittest.equals('foo')); |
943 } | 943 } |
944 buildCounterComment--; | 944 buildCounterComment--; |
945 } | 945 } |
946 | 946 |
947 buildUnnamed155() { | 947 buildUnnamed160() { |
948 var o = new core.List<api.Comment>(); | 948 var o = new core.List<api.Comment>(); |
949 o.add(buildComment()); | 949 o.add(buildComment()); |
950 o.add(buildComment()); | 950 o.add(buildComment()); |
951 return o; | 951 return o; |
952 } | 952 } |
953 | 953 |
954 checkUnnamed155(core.List<api.Comment> o) { | 954 checkUnnamed160(core.List<api.Comment> o) { |
955 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
956 checkComment(o[0]); | 956 checkComment(o[0]); |
957 checkComment(o[1]); | 957 checkComment(o[1]); |
958 } | 958 } |
959 | 959 |
960 core.int buildCounterCommentFeed = 0; | 960 core.int buildCounterCommentFeed = 0; |
961 buildCommentFeed() { | 961 buildCommentFeed() { |
962 var o = new api.CommentFeed(); | 962 var o = new api.CommentFeed(); |
963 buildCounterCommentFeed++; | 963 buildCounterCommentFeed++; |
964 if (buildCounterCommentFeed < 3) { | 964 if (buildCounterCommentFeed < 3) { |
965 o.etag = "foo"; | 965 o.etag = "foo"; |
966 o.id = "foo"; | 966 o.id = "foo"; |
967 o.items = buildUnnamed155(); | 967 o.items = buildUnnamed160(); |
968 o.kind = "foo"; | 968 o.kind = "foo"; |
969 o.nextLink = "foo"; | 969 o.nextLink = "foo"; |
970 o.nextPageToken = "foo"; | 970 o.nextPageToken = "foo"; |
971 o.title = "foo"; | 971 o.title = "foo"; |
972 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 972 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
973 } | 973 } |
974 buildCounterCommentFeed--; | 974 buildCounterCommentFeed--; |
975 return o; | 975 return o; |
976 } | 976 } |
977 | 977 |
978 checkCommentFeed(api.CommentFeed o) { | 978 checkCommentFeed(api.CommentFeed o) { |
979 buildCounterCommentFeed++; | 979 buildCounterCommentFeed++; |
980 if (buildCounterCommentFeed < 3) { | 980 if (buildCounterCommentFeed < 3) { |
981 unittest.expect(o.etag, unittest.equals('foo')); | 981 unittest.expect(o.etag, unittest.equals('foo')); |
982 unittest.expect(o.id, unittest.equals('foo')); | 982 unittest.expect(o.id, unittest.equals('foo')); |
983 checkUnnamed155(o.items); | 983 checkUnnamed160(o.items); |
984 unittest.expect(o.kind, unittest.equals('foo')); | 984 unittest.expect(o.kind, unittest.equals('foo')); |
985 unittest.expect(o.nextLink, unittest.equals('foo')); | 985 unittest.expect(o.nextLink, unittest.equals('foo')); |
986 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 986 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
987 unittest.expect(o.title, unittest.equals('foo')); | 987 unittest.expect(o.title, unittest.equals('foo')); |
988 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 988 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
989 } | 989 } |
990 buildCounterCommentFeed--; | 990 buildCounterCommentFeed--; |
991 } | 991 } |
992 | 992 |
993 buildUnnamed156() { | 993 buildUnnamed161() { |
994 var o = new core.List<api.Person>(); | 994 var o = new core.List<api.Person>(); |
995 o.add(buildPerson()); | 995 o.add(buildPerson()); |
996 o.add(buildPerson()); | 996 o.add(buildPerson()); |
997 return o; | 997 return o; |
998 } | 998 } |
999 | 999 |
1000 checkUnnamed156(core.List<api.Person> o) { | 1000 checkUnnamed161(core.List<api.Person> o) { |
1001 unittest.expect(o, unittest.hasLength(2)); | 1001 unittest.expect(o, unittest.hasLength(2)); |
1002 checkPerson(o[0]); | 1002 checkPerson(o[0]); |
1003 checkPerson(o[1]); | 1003 checkPerson(o[1]); |
1004 } | 1004 } |
1005 | 1005 |
1006 core.int buildCounterPeopleFeed = 0; | 1006 core.int buildCounterPeopleFeed = 0; |
1007 buildPeopleFeed() { | 1007 buildPeopleFeed() { |
1008 var o = new api.PeopleFeed(); | 1008 var o = new api.PeopleFeed(); |
1009 buildCounterPeopleFeed++; | 1009 buildCounterPeopleFeed++; |
1010 if (buildCounterPeopleFeed < 3) { | 1010 if (buildCounterPeopleFeed < 3) { |
1011 o.etag = "foo"; | 1011 o.etag = "foo"; |
1012 o.items = buildUnnamed156(); | 1012 o.items = buildUnnamed161(); |
1013 o.kind = "foo"; | 1013 o.kind = "foo"; |
1014 o.nextPageToken = "foo"; | 1014 o.nextPageToken = "foo"; |
1015 o.selfLink = "foo"; | 1015 o.selfLink = "foo"; |
1016 o.title = "foo"; | 1016 o.title = "foo"; |
1017 o.totalItems = 42; | 1017 o.totalItems = 42; |
1018 } | 1018 } |
1019 buildCounterPeopleFeed--; | 1019 buildCounterPeopleFeed--; |
1020 return o; | 1020 return o; |
1021 } | 1021 } |
1022 | 1022 |
1023 checkPeopleFeed(api.PeopleFeed o) { | 1023 checkPeopleFeed(api.PeopleFeed o) { |
1024 buildCounterPeopleFeed++; | 1024 buildCounterPeopleFeed++; |
1025 if (buildCounterPeopleFeed < 3) { | 1025 if (buildCounterPeopleFeed < 3) { |
1026 unittest.expect(o.etag, unittest.equals('foo')); | 1026 unittest.expect(o.etag, unittest.equals('foo')); |
1027 checkUnnamed156(o.items); | 1027 checkUnnamed161(o.items); |
1028 unittest.expect(o.kind, unittest.equals('foo')); | 1028 unittest.expect(o.kind, unittest.equals('foo')); |
1029 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1029 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1030 unittest.expect(o.selfLink, unittest.equals('foo')); | 1030 unittest.expect(o.selfLink, unittest.equals('foo')); |
1031 unittest.expect(o.title, unittest.equals('foo')); | 1031 unittest.expect(o.title, unittest.equals('foo')); |
1032 unittest.expect(o.totalItems, unittest.equals(42)); | 1032 unittest.expect(o.totalItems, unittest.equals(42)); |
1033 } | 1033 } |
1034 buildCounterPeopleFeed--; | 1034 buildCounterPeopleFeed--; |
1035 } | 1035 } |
1036 | 1036 |
1037 core.int buildCounterPersonAgeRange = 0; | 1037 core.int buildCounterPersonAgeRange = 0; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 | 1136 |
1137 checkPersonEmails(api.PersonEmails o) { | 1137 checkPersonEmails(api.PersonEmails o) { |
1138 buildCounterPersonEmails++; | 1138 buildCounterPersonEmails++; |
1139 if (buildCounterPersonEmails < 3) { | 1139 if (buildCounterPersonEmails < 3) { |
1140 unittest.expect(o.type, unittest.equals('foo')); | 1140 unittest.expect(o.type, unittest.equals('foo')); |
1141 unittest.expect(o.value, unittest.equals('foo')); | 1141 unittest.expect(o.value, unittest.equals('foo')); |
1142 } | 1142 } |
1143 buildCounterPersonEmails--; | 1143 buildCounterPersonEmails--; |
1144 } | 1144 } |
1145 | 1145 |
1146 buildUnnamed157() { | 1146 buildUnnamed162() { |
1147 var o = new core.List<api.PersonEmails>(); | 1147 var o = new core.List<api.PersonEmails>(); |
1148 o.add(buildPersonEmails()); | 1148 o.add(buildPersonEmails()); |
1149 o.add(buildPersonEmails()); | 1149 o.add(buildPersonEmails()); |
1150 return o; | 1150 return o; |
1151 } | 1151 } |
1152 | 1152 |
1153 checkUnnamed157(core.List<api.PersonEmails> o) { | 1153 checkUnnamed162(core.List<api.PersonEmails> o) { |
1154 unittest.expect(o, unittest.hasLength(2)); | 1154 unittest.expect(o, unittest.hasLength(2)); |
1155 checkPersonEmails(o[0]); | 1155 checkPersonEmails(o[0]); |
1156 checkPersonEmails(o[1]); | 1156 checkPersonEmails(o[1]); |
1157 } | 1157 } |
1158 | 1158 |
1159 core.int buildCounterPersonImage = 0; | 1159 core.int buildCounterPersonImage = 0; |
1160 buildPersonImage() { | 1160 buildPersonImage() { |
1161 var o = new api.PersonImage(); | 1161 var o = new api.PersonImage(); |
1162 buildCounterPersonImage++; | 1162 buildCounterPersonImage++; |
1163 if (buildCounterPersonImage < 3) { | 1163 if (buildCounterPersonImage < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 unittest.expect(o.location, unittest.equals('foo')); | 1234 unittest.expect(o.location, unittest.equals('foo')); |
1235 unittest.expect(o.name, unittest.equals('foo')); | 1235 unittest.expect(o.name, unittest.equals('foo')); |
1236 unittest.expect(o.primary, unittest.isTrue); | 1236 unittest.expect(o.primary, unittest.isTrue); |
1237 unittest.expect(o.startDate, unittest.equals('foo')); | 1237 unittest.expect(o.startDate, unittest.equals('foo')); |
1238 unittest.expect(o.title, unittest.equals('foo')); | 1238 unittest.expect(o.title, unittest.equals('foo')); |
1239 unittest.expect(o.type, unittest.equals('foo')); | 1239 unittest.expect(o.type, unittest.equals('foo')); |
1240 } | 1240 } |
1241 buildCounterPersonOrganizations--; | 1241 buildCounterPersonOrganizations--; |
1242 } | 1242 } |
1243 | 1243 |
1244 buildUnnamed158() { | 1244 buildUnnamed163() { |
1245 var o = new core.List<api.PersonOrganizations>(); | 1245 var o = new core.List<api.PersonOrganizations>(); |
1246 o.add(buildPersonOrganizations()); | 1246 o.add(buildPersonOrganizations()); |
1247 o.add(buildPersonOrganizations()); | 1247 o.add(buildPersonOrganizations()); |
1248 return o; | 1248 return o; |
1249 } | 1249 } |
1250 | 1250 |
1251 checkUnnamed158(core.List<api.PersonOrganizations> o) { | 1251 checkUnnamed163(core.List<api.PersonOrganizations> o) { |
1252 unittest.expect(o, unittest.hasLength(2)); | 1252 unittest.expect(o, unittest.hasLength(2)); |
1253 checkPersonOrganizations(o[0]); | 1253 checkPersonOrganizations(o[0]); |
1254 checkPersonOrganizations(o[1]); | 1254 checkPersonOrganizations(o[1]); |
1255 } | 1255 } |
1256 | 1256 |
1257 core.int buildCounterPersonPlacesLived = 0; | 1257 core.int buildCounterPersonPlacesLived = 0; |
1258 buildPersonPlacesLived() { | 1258 buildPersonPlacesLived() { |
1259 var o = new api.PersonPlacesLived(); | 1259 var o = new api.PersonPlacesLived(); |
1260 buildCounterPersonPlacesLived++; | 1260 buildCounterPersonPlacesLived++; |
1261 if (buildCounterPersonPlacesLived < 3) { | 1261 if (buildCounterPersonPlacesLived < 3) { |
1262 o.primary = true; | 1262 o.primary = true; |
1263 o.value = "foo"; | 1263 o.value = "foo"; |
1264 } | 1264 } |
1265 buildCounterPersonPlacesLived--; | 1265 buildCounterPersonPlacesLived--; |
1266 return o; | 1266 return o; |
1267 } | 1267 } |
1268 | 1268 |
1269 checkPersonPlacesLived(api.PersonPlacesLived o) { | 1269 checkPersonPlacesLived(api.PersonPlacesLived o) { |
1270 buildCounterPersonPlacesLived++; | 1270 buildCounterPersonPlacesLived++; |
1271 if (buildCounterPersonPlacesLived < 3) { | 1271 if (buildCounterPersonPlacesLived < 3) { |
1272 unittest.expect(o.primary, unittest.isTrue); | 1272 unittest.expect(o.primary, unittest.isTrue); |
1273 unittest.expect(o.value, unittest.equals('foo')); | 1273 unittest.expect(o.value, unittest.equals('foo')); |
1274 } | 1274 } |
1275 buildCounterPersonPlacesLived--; | 1275 buildCounterPersonPlacesLived--; |
1276 } | 1276 } |
1277 | 1277 |
1278 buildUnnamed159() { | 1278 buildUnnamed164() { |
1279 var o = new core.List<api.PersonPlacesLived>(); | 1279 var o = new core.List<api.PersonPlacesLived>(); |
1280 o.add(buildPersonPlacesLived()); | 1280 o.add(buildPersonPlacesLived()); |
1281 o.add(buildPersonPlacesLived()); | 1281 o.add(buildPersonPlacesLived()); |
1282 return o; | 1282 return o; |
1283 } | 1283 } |
1284 | 1284 |
1285 checkUnnamed159(core.List<api.PersonPlacesLived> o) { | 1285 checkUnnamed164(core.List<api.PersonPlacesLived> o) { |
1286 unittest.expect(o, unittest.hasLength(2)); | 1286 unittest.expect(o, unittest.hasLength(2)); |
1287 checkPersonPlacesLived(o[0]); | 1287 checkPersonPlacesLived(o[0]); |
1288 checkPersonPlacesLived(o[1]); | 1288 checkPersonPlacesLived(o[1]); |
1289 } | 1289 } |
1290 | 1290 |
1291 core.int buildCounterPersonUrls = 0; | 1291 core.int buildCounterPersonUrls = 0; |
1292 buildPersonUrls() { | 1292 buildPersonUrls() { |
1293 var o = new api.PersonUrls(); | 1293 var o = new api.PersonUrls(); |
1294 buildCounterPersonUrls++; | 1294 buildCounterPersonUrls++; |
1295 if (buildCounterPersonUrls < 3) { | 1295 if (buildCounterPersonUrls < 3) { |
1296 o.label = "foo"; | 1296 o.label = "foo"; |
1297 o.type = "foo"; | 1297 o.type = "foo"; |
1298 o.value = "foo"; | 1298 o.value = "foo"; |
1299 } | 1299 } |
1300 buildCounterPersonUrls--; | 1300 buildCounterPersonUrls--; |
1301 return o; | 1301 return o; |
1302 } | 1302 } |
1303 | 1303 |
1304 checkPersonUrls(api.PersonUrls o) { | 1304 checkPersonUrls(api.PersonUrls o) { |
1305 buildCounterPersonUrls++; | 1305 buildCounterPersonUrls++; |
1306 if (buildCounterPersonUrls < 3) { | 1306 if (buildCounterPersonUrls < 3) { |
1307 unittest.expect(o.label, unittest.equals('foo')); | 1307 unittest.expect(o.label, unittest.equals('foo')); |
1308 unittest.expect(o.type, unittest.equals('foo')); | 1308 unittest.expect(o.type, unittest.equals('foo')); |
1309 unittest.expect(o.value, unittest.equals('foo')); | 1309 unittest.expect(o.value, unittest.equals('foo')); |
1310 } | 1310 } |
1311 buildCounterPersonUrls--; | 1311 buildCounterPersonUrls--; |
1312 } | 1312 } |
1313 | 1313 |
1314 buildUnnamed160() { | 1314 buildUnnamed165() { |
1315 var o = new core.List<api.PersonUrls>(); | 1315 var o = new core.List<api.PersonUrls>(); |
1316 o.add(buildPersonUrls()); | 1316 o.add(buildPersonUrls()); |
1317 o.add(buildPersonUrls()); | 1317 o.add(buildPersonUrls()); |
1318 return o; | 1318 return o; |
1319 } | 1319 } |
1320 | 1320 |
1321 checkUnnamed160(core.List<api.PersonUrls> o) { | 1321 checkUnnamed165(core.List<api.PersonUrls> o) { |
1322 unittest.expect(o, unittest.hasLength(2)); | 1322 unittest.expect(o, unittest.hasLength(2)); |
1323 checkPersonUrls(o[0]); | 1323 checkPersonUrls(o[0]); |
1324 checkPersonUrls(o[1]); | 1324 checkPersonUrls(o[1]); |
1325 } | 1325 } |
1326 | 1326 |
1327 core.int buildCounterPerson = 0; | 1327 core.int buildCounterPerson = 0; |
1328 buildPerson() { | 1328 buildPerson() { |
1329 var o = new api.Person(); | 1329 var o = new api.Person(); |
1330 buildCounterPerson++; | 1330 buildCounterPerson++; |
1331 if (buildCounterPerson < 3) { | 1331 if (buildCounterPerson < 3) { |
1332 o.aboutMe = "foo"; | 1332 o.aboutMe = "foo"; |
1333 o.ageRange = buildPersonAgeRange(); | 1333 o.ageRange = buildPersonAgeRange(); |
1334 o.birthday = "foo"; | 1334 o.birthday = "foo"; |
1335 o.braggingRights = "foo"; | 1335 o.braggingRights = "foo"; |
1336 o.circledByCount = 42; | 1336 o.circledByCount = 42; |
1337 o.cover = buildPersonCover(); | 1337 o.cover = buildPersonCover(); |
1338 o.currentLocation = "foo"; | 1338 o.currentLocation = "foo"; |
1339 o.displayName = "foo"; | 1339 o.displayName = "foo"; |
1340 o.domain = "foo"; | 1340 o.domain = "foo"; |
1341 o.emails = buildUnnamed157(); | 1341 o.emails = buildUnnamed162(); |
1342 o.etag = "foo"; | 1342 o.etag = "foo"; |
1343 o.gender = "foo"; | 1343 o.gender = "foo"; |
1344 o.id = "foo"; | 1344 o.id = "foo"; |
1345 o.image = buildPersonImage(); | 1345 o.image = buildPersonImage(); |
1346 o.isPlusUser = true; | 1346 o.isPlusUser = true; |
1347 o.kind = "foo"; | 1347 o.kind = "foo"; |
1348 o.language = "foo"; | 1348 o.language = "foo"; |
1349 o.name = buildPersonName(); | 1349 o.name = buildPersonName(); |
1350 o.nickname = "foo"; | 1350 o.nickname = "foo"; |
1351 o.objectType = "foo"; | 1351 o.objectType = "foo"; |
1352 o.occupation = "foo"; | 1352 o.occupation = "foo"; |
1353 o.organizations = buildUnnamed158(); | 1353 o.organizations = buildUnnamed163(); |
1354 o.placesLived = buildUnnamed159(); | 1354 o.placesLived = buildUnnamed164(); |
1355 o.plusOneCount = 42; | 1355 o.plusOneCount = 42; |
1356 o.relationshipStatus = "foo"; | 1356 o.relationshipStatus = "foo"; |
1357 o.skills = "foo"; | 1357 o.skills = "foo"; |
1358 o.tagline = "foo"; | 1358 o.tagline = "foo"; |
1359 o.url = "foo"; | 1359 o.url = "foo"; |
1360 o.urls = buildUnnamed160(); | 1360 o.urls = buildUnnamed165(); |
1361 o.verified = true; | 1361 o.verified = true; |
1362 } | 1362 } |
1363 buildCounterPerson--; | 1363 buildCounterPerson--; |
1364 return o; | 1364 return o; |
1365 } | 1365 } |
1366 | 1366 |
1367 checkPerson(api.Person o) { | 1367 checkPerson(api.Person o) { |
1368 buildCounterPerson++; | 1368 buildCounterPerson++; |
1369 if (buildCounterPerson < 3) { | 1369 if (buildCounterPerson < 3) { |
1370 unittest.expect(o.aboutMe, unittest.equals('foo')); | 1370 unittest.expect(o.aboutMe, unittest.equals('foo')); |
1371 checkPersonAgeRange(o.ageRange); | 1371 checkPersonAgeRange(o.ageRange); |
1372 unittest.expect(o.birthday, unittest.equals('foo')); | 1372 unittest.expect(o.birthday, unittest.equals('foo')); |
1373 unittest.expect(o.braggingRights, unittest.equals('foo')); | 1373 unittest.expect(o.braggingRights, unittest.equals('foo')); |
1374 unittest.expect(o.circledByCount, unittest.equals(42)); | 1374 unittest.expect(o.circledByCount, unittest.equals(42)); |
1375 checkPersonCover(o.cover); | 1375 checkPersonCover(o.cover); |
1376 unittest.expect(o.currentLocation, unittest.equals('foo')); | 1376 unittest.expect(o.currentLocation, unittest.equals('foo')); |
1377 unittest.expect(o.displayName, unittest.equals('foo')); | 1377 unittest.expect(o.displayName, unittest.equals('foo')); |
1378 unittest.expect(o.domain, unittest.equals('foo')); | 1378 unittest.expect(o.domain, unittest.equals('foo')); |
1379 checkUnnamed157(o.emails); | 1379 checkUnnamed162(o.emails); |
1380 unittest.expect(o.etag, unittest.equals('foo')); | 1380 unittest.expect(o.etag, unittest.equals('foo')); |
1381 unittest.expect(o.gender, unittest.equals('foo')); | 1381 unittest.expect(o.gender, unittest.equals('foo')); |
1382 unittest.expect(o.id, unittest.equals('foo')); | 1382 unittest.expect(o.id, unittest.equals('foo')); |
1383 checkPersonImage(o.image); | 1383 checkPersonImage(o.image); |
1384 unittest.expect(o.isPlusUser, unittest.isTrue); | 1384 unittest.expect(o.isPlusUser, unittest.isTrue); |
1385 unittest.expect(o.kind, unittest.equals('foo')); | 1385 unittest.expect(o.kind, unittest.equals('foo')); |
1386 unittest.expect(o.language, unittest.equals('foo')); | 1386 unittest.expect(o.language, unittest.equals('foo')); |
1387 checkPersonName(o.name); | 1387 checkPersonName(o.name); |
1388 unittest.expect(o.nickname, unittest.equals('foo')); | 1388 unittest.expect(o.nickname, unittest.equals('foo')); |
1389 unittest.expect(o.objectType, unittest.equals('foo')); | 1389 unittest.expect(o.objectType, unittest.equals('foo')); |
1390 unittest.expect(o.occupation, unittest.equals('foo')); | 1390 unittest.expect(o.occupation, unittest.equals('foo')); |
1391 checkUnnamed158(o.organizations); | 1391 checkUnnamed163(o.organizations); |
1392 checkUnnamed159(o.placesLived); | 1392 checkUnnamed164(o.placesLived); |
1393 unittest.expect(o.plusOneCount, unittest.equals(42)); | 1393 unittest.expect(o.plusOneCount, unittest.equals(42)); |
1394 unittest.expect(o.relationshipStatus, unittest.equals('foo')); | 1394 unittest.expect(o.relationshipStatus, unittest.equals('foo')); |
1395 unittest.expect(o.skills, unittest.equals('foo')); | 1395 unittest.expect(o.skills, unittest.equals('foo')); |
1396 unittest.expect(o.tagline, unittest.equals('foo')); | 1396 unittest.expect(o.tagline, unittest.equals('foo')); |
1397 unittest.expect(o.url, unittest.equals('foo')); | 1397 unittest.expect(o.url, unittest.equals('foo')); |
1398 checkUnnamed160(o.urls); | 1398 checkUnnamed165(o.urls); |
1399 unittest.expect(o.verified, unittest.isTrue); | 1399 unittest.expect(o.verified, unittest.isTrue); |
1400 } | 1400 } |
1401 buildCounterPerson--; | 1401 buildCounterPerson--; |
1402 } | 1402 } |
1403 | 1403 |
1404 core.int buildCounterPlaceAddress = 0; | 1404 core.int buildCounterPlaceAddress = 0; |
1405 buildPlaceAddress() { | 1405 buildPlaceAddress() { |
1406 var o = new api.PlaceAddress(); | 1406 var o = new api.PlaceAddress(); |
1407 buildCounterPlaceAddress++; | 1407 buildCounterPlaceAddress++; |
1408 if (buildCounterPlaceAddress < 3) { | 1408 if (buildCounterPlaceAddress < 3) { |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2458 res.search(arg_query, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PeopleFeed response)
{ | 2458 res.search(arg_query, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync1(((api.PeopleFeed response)
{ |
2459 checkPeopleFeed(response); | 2459 checkPeopleFeed(response); |
2460 }))); | 2460 }))); |
2461 }); | 2461 }); |
2462 | 2462 |
2463 }); | 2463 }); |
2464 | 2464 |
2465 | 2465 |
2466 } | 2466 } |
2467 | 2467 |
OLD | NEW |