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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.people.v1.test; 1 library googleapis.people.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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 checkGender(api.Gender o) { 330 checkGender(api.Gender o) {
331 buildCounterGender++; 331 buildCounterGender++;
332 if (buildCounterGender < 3) { 332 if (buildCounterGender < 3) {
333 unittest.expect(o.formattedValue, unittest.equals('foo')); 333 unittest.expect(o.formattedValue, unittest.equals('foo'));
334 checkFieldMetadata(o.metadata); 334 checkFieldMetadata(o.metadata);
335 unittest.expect(o.value, unittest.equals('foo')); 335 unittest.expect(o.value, unittest.equals('foo'));
336 } 336 }
337 buildCounterGender--; 337 buildCounterGender--;
338 } 338 }
339 339
340 buildUnnamed1441() { 340 buildUnnamed1451() {
341 var o = new core.List<api.PersonResponse>(); 341 var o = new core.List<api.PersonResponse>();
342 o.add(buildPersonResponse()); 342 o.add(buildPersonResponse());
343 o.add(buildPersonResponse()); 343 o.add(buildPersonResponse());
344 return o; 344 return o;
345 } 345 }
346 346
347 checkUnnamed1441(core.List<api.PersonResponse> o) { 347 checkUnnamed1451(core.List<api.PersonResponse> o) {
348 unittest.expect(o, unittest.hasLength(2)); 348 unittest.expect(o, unittest.hasLength(2));
349 checkPersonResponse(o[0]); 349 checkPersonResponse(o[0]);
350 checkPersonResponse(o[1]); 350 checkPersonResponse(o[1]);
351 } 351 }
352 352
353 core.int buildCounterGetPeopleResponse = 0; 353 core.int buildCounterGetPeopleResponse = 0;
354 buildGetPeopleResponse() { 354 buildGetPeopleResponse() {
355 var o = new api.GetPeopleResponse(); 355 var o = new api.GetPeopleResponse();
356 buildCounterGetPeopleResponse++; 356 buildCounterGetPeopleResponse++;
357 if (buildCounterGetPeopleResponse < 3) { 357 if (buildCounterGetPeopleResponse < 3) {
358 o.responses = buildUnnamed1441(); 358 o.responses = buildUnnamed1451();
359 } 359 }
360 buildCounterGetPeopleResponse--; 360 buildCounterGetPeopleResponse--;
361 return o; 361 return o;
362 } 362 }
363 363
364 checkGetPeopleResponse(api.GetPeopleResponse o) { 364 checkGetPeopleResponse(api.GetPeopleResponse o) {
365 buildCounterGetPeopleResponse++; 365 buildCounterGetPeopleResponse++;
366 if (buildCounterGetPeopleResponse < 3) { 366 if (buildCounterGetPeopleResponse < 3) {
367 checkUnnamed1441(o.responses); 367 checkUnnamed1451(o.responses);
368 } 368 }
369 buildCounterGetPeopleResponse--; 369 buildCounterGetPeopleResponse--;
370 } 370 }
371 371
372 core.int buildCounterImClient = 0; 372 core.int buildCounterImClient = 0;
373 buildImClient() { 373 buildImClient() {
374 var o = new api.ImClient(); 374 var o = new api.ImClient();
375 buildCounterImClient++; 375 buildCounterImClient++;
376 if (buildCounterImClient < 3) { 376 if (buildCounterImClient < 3) {
377 o.formattedProtocol = "foo"; 377 o.formattedProtocol = "foo";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 412
413 checkInterest(api.Interest o) { 413 checkInterest(api.Interest o) {
414 buildCounterInterest++; 414 buildCounterInterest++;
415 if (buildCounterInterest < 3) { 415 if (buildCounterInterest < 3) {
416 checkFieldMetadata(o.metadata); 416 checkFieldMetadata(o.metadata);
417 unittest.expect(o.value, unittest.equals('foo')); 417 unittest.expect(o.value, unittest.equals('foo'));
418 } 418 }
419 buildCounterInterest--; 419 buildCounterInterest--;
420 } 420 }
421 421
422 buildUnnamed1442() { 422 buildUnnamed1452() {
423 var o = new core.List<api.Person>(); 423 var o = new core.List<api.Person>();
424 o.add(buildPerson()); 424 o.add(buildPerson());
425 o.add(buildPerson()); 425 o.add(buildPerson());
426 return o; 426 return o;
427 } 427 }
428 428
429 checkUnnamed1442(core.List<api.Person> o) { 429 checkUnnamed1452(core.List<api.Person> o) {
430 unittest.expect(o, unittest.hasLength(2)); 430 unittest.expect(o, unittest.hasLength(2));
431 checkPerson(o[0]); 431 checkPerson(o[0]);
432 checkPerson(o[1]); 432 checkPerson(o[1]);
433 } 433 }
434 434
435 core.int buildCounterListConnectionsResponse = 0; 435 core.int buildCounterListConnectionsResponse = 0;
436 buildListConnectionsResponse() { 436 buildListConnectionsResponse() {
437 var o = new api.ListConnectionsResponse(); 437 var o = new api.ListConnectionsResponse();
438 buildCounterListConnectionsResponse++; 438 buildCounterListConnectionsResponse++;
439 if (buildCounterListConnectionsResponse < 3) { 439 if (buildCounterListConnectionsResponse < 3) {
440 o.connections = buildUnnamed1442(); 440 o.connections = buildUnnamed1452();
441 o.nextPageToken = "foo"; 441 o.nextPageToken = "foo";
442 o.nextSyncToken = "foo"; 442 o.nextSyncToken = "foo";
443 } 443 }
444 buildCounterListConnectionsResponse--; 444 buildCounterListConnectionsResponse--;
445 return o; 445 return o;
446 } 446 }
447 447
448 checkListConnectionsResponse(api.ListConnectionsResponse o) { 448 checkListConnectionsResponse(api.ListConnectionsResponse o) {
449 buildCounterListConnectionsResponse++; 449 buildCounterListConnectionsResponse++;
450 if (buildCounterListConnectionsResponse < 3) { 450 if (buildCounterListConnectionsResponse < 3) {
451 checkUnnamed1442(o.connections); 451 checkUnnamed1452(o.connections);
452 unittest.expect(o.nextPageToken, unittest.equals('foo')); 452 unittest.expect(o.nextPageToken, unittest.equals('foo'));
453 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 453 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
454 } 454 }
455 buildCounterListConnectionsResponse--; 455 buildCounterListConnectionsResponse--;
456 } 456 }
457 457
458 core.int buildCounterLocale = 0; 458 core.int buildCounterLocale = 0;
459 buildLocale() { 459 buildLocale() {
460 var o = new api.Locale(); 460 var o = new api.Locale();
461 buildCounterLocale++; 461 buildCounterLocale++;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 unittest.expect(o.name, unittest.equals('foo')); 622 unittest.expect(o.name, unittest.equals('foo'));
623 unittest.expect(o.phoneticName, unittest.equals('foo')); 623 unittest.expect(o.phoneticName, unittest.equals('foo'));
624 checkDate(o.startDate); 624 checkDate(o.startDate);
625 unittest.expect(o.symbol, unittest.equals('foo')); 625 unittest.expect(o.symbol, unittest.equals('foo'));
626 unittest.expect(o.title, unittest.equals('foo')); 626 unittest.expect(o.title, unittest.equals('foo'));
627 unittest.expect(o.type, unittest.equals('foo')); 627 unittest.expect(o.type, unittest.equals('foo'));
628 } 628 }
629 buildCounterOrganization--; 629 buildCounterOrganization--;
630 } 630 }
631 631
632 buildUnnamed1443() { 632 buildUnnamed1453() {
633 var o = new core.List<api.Address>(); 633 var o = new core.List<api.Address>();
634 o.add(buildAddress()); 634 o.add(buildAddress());
635 o.add(buildAddress()); 635 o.add(buildAddress());
636 return o; 636 return o;
637 } 637 }
638 638
639 checkUnnamed1443(core.List<api.Address> o) { 639 checkUnnamed1453(core.List<api.Address> o) {
640 unittest.expect(o, unittest.hasLength(2)); 640 unittest.expect(o, unittest.hasLength(2));
641 checkAddress(o[0]); 641 checkAddress(o[0]);
642 checkAddress(o[1]); 642 checkAddress(o[1]);
643 } 643 }
644 644
645 buildUnnamed1444() { 645 buildUnnamed1454() {
646 var o = new core.List<api.Biography>(); 646 var o = new core.List<api.Biography>();
647 o.add(buildBiography()); 647 o.add(buildBiography());
648 o.add(buildBiography()); 648 o.add(buildBiography());
649 return o; 649 return o;
650 } 650 }
651 651
652 checkUnnamed1444(core.List<api.Biography> o) { 652 checkUnnamed1454(core.List<api.Biography> o) {
653 unittest.expect(o, unittest.hasLength(2)); 653 unittest.expect(o, unittest.hasLength(2));
654 checkBiography(o[0]); 654 checkBiography(o[0]);
655 checkBiography(o[1]); 655 checkBiography(o[1]);
656 } 656 }
657 657
658 buildUnnamed1445() { 658 buildUnnamed1455() {
659 var o = new core.List<api.Birthday>(); 659 var o = new core.List<api.Birthday>();
660 o.add(buildBirthday()); 660 o.add(buildBirthday());
661 o.add(buildBirthday()); 661 o.add(buildBirthday());
662 return o; 662 return o;
663 } 663 }
664 664
665 checkUnnamed1445(core.List<api.Birthday> o) { 665 checkUnnamed1455(core.List<api.Birthday> o) {
666 unittest.expect(o, unittest.hasLength(2)); 666 unittest.expect(o, unittest.hasLength(2));
667 checkBirthday(o[0]); 667 checkBirthday(o[0]);
668 checkBirthday(o[1]); 668 checkBirthday(o[1]);
669 } 669 }
670 670
671 buildUnnamed1446() { 671 buildUnnamed1456() {
672 var o = new core.List<api.BraggingRights>(); 672 var o = new core.List<api.BraggingRights>();
673 o.add(buildBraggingRights()); 673 o.add(buildBraggingRights());
674 o.add(buildBraggingRights()); 674 o.add(buildBraggingRights());
675 return o; 675 return o;
676 } 676 }
677 677
678 checkUnnamed1446(core.List<api.BraggingRights> o) { 678 checkUnnamed1456(core.List<api.BraggingRights> o) {
679 unittest.expect(o, unittest.hasLength(2)); 679 unittest.expect(o, unittest.hasLength(2));
680 checkBraggingRights(o[0]); 680 checkBraggingRights(o[0]);
681 checkBraggingRights(o[1]); 681 checkBraggingRights(o[1]);
682 } 682 }
683 683
684 buildUnnamed1447() { 684 buildUnnamed1457() {
685 var o = new core.List<api.CoverPhoto>(); 685 var o = new core.List<api.CoverPhoto>();
686 o.add(buildCoverPhoto()); 686 o.add(buildCoverPhoto());
687 o.add(buildCoverPhoto()); 687 o.add(buildCoverPhoto());
688 return o; 688 return o;
689 } 689 }
690 690
691 checkUnnamed1447(core.List<api.CoverPhoto> o) { 691 checkUnnamed1457(core.List<api.CoverPhoto> o) {
692 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
693 checkCoverPhoto(o[0]); 693 checkCoverPhoto(o[0]);
694 checkCoverPhoto(o[1]); 694 checkCoverPhoto(o[1]);
695 } 695 }
696 696
697 buildUnnamed1448() { 697 buildUnnamed1458() {
698 var o = new core.List<api.EmailAddress>(); 698 var o = new core.List<api.EmailAddress>();
699 o.add(buildEmailAddress()); 699 o.add(buildEmailAddress());
700 o.add(buildEmailAddress()); 700 o.add(buildEmailAddress());
701 return o; 701 return o;
702 } 702 }
703 703
704 checkUnnamed1448(core.List<api.EmailAddress> o) { 704 checkUnnamed1458(core.List<api.EmailAddress> o) {
705 unittest.expect(o, unittest.hasLength(2)); 705 unittest.expect(o, unittest.hasLength(2));
706 checkEmailAddress(o[0]); 706 checkEmailAddress(o[0]);
707 checkEmailAddress(o[1]); 707 checkEmailAddress(o[1]);
708 } 708 }
709 709
710 buildUnnamed1449() { 710 buildUnnamed1459() {
711 var o = new core.List<api.Event>(); 711 var o = new core.List<api.Event>();
712 o.add(buildEvent()); 712 o.add(buildEvent());
713 o.add(buildEvent()); 713 o.add(buildEvent());
714 return o; 714 return o;
715 } 715 }
716 716
717 checkUnnamed1449(core.List<api.Event> o) { 717 checkUnnamed1459(core.List<api.Event> o) {
718 unittest.expect(o, unittest.hasLength(2)); 718 unittest.expect(o, unittest.hasLength(2));
719 checkEvent(o[0]); 719 checkEvent(o[0]);
720 checkEvent(o[1]); 720 checkEvent(o[1]);
721 } 721 }
722 722
723 buildUnnamed1450() { 723 buildUnnamed1460() {
724 var o = new core.List<api.Gender>(); 724 var o = new core.List<api.Gender>();
725 o.add(buildGender()); 725 o.add(buildGender());
726 o.add(buildGender()); 726 o.add(buildGender());
727 return o; 727 return o;
728 } 728 }
729 729
730 checkUnnamed1450(core.List<api.Gender> o) { 730 checkUnnamed1460(core.List<api.Gender> o) {
731 unittest.expect(o, unittest.hasLength(2)); 731 unittest.expect(o, unittest.hasLength(2));
732 checkGender(o[0]); 732 checkGender(o[0]);
733 checkGender(o[1]); 733 checkGender(o[1]);
734 } 734 }
735 735
736 buildUnnamed1451() { 736 buildUnnamed1461() {
737 var o = new core.List<api.ImClient>(); 737 var o = new core.List<api.ImClient>();
738 o.add(buildImClient()); 738 o.add(buildImClient());
739 o.add(buildImClient()); 739 o.add(buildImClient());
740 return o; 740 return o;
741 } 741 }
742 742
743 checkUnnamed1451(core.List<api.ImClient> o) { 743 checkUnnamed1461(core.List<api.ImClient> o) {
744 unittest.expect(o, unittest.hasLength(2)); 744 unittest.expect(o, unittest.hasLength(2));
745 checkImClient(o[0]); 745 checkImClient(o[0]);
746 checkImClient(o[1]); 746 checkImClient(o[1]);
747 } 747 }
748 748
749 buildUnnamed1452() { 749 buildUnnamed1462() {
750 var o = new core.List<api.Interest>(); 750 var o = new core.List<api.Interest>();
751 o.add(buildInterest()); 751 o.add(buildInterest());
752 o.add(buildInterest()); 752 o.add(buildInterest());
753 return o; 753 return o;
754 } 754 }
755 755
756 checkUnnamed1452(core.List<api.Interest> o) { 756 checkUnnamed1462(core.List<api.Interest> o) {
757 unittest.expect(o, unittest.hasLength(2)); 757 unittest.expect(o, unittest.hasLength(2));
758 checkInterest(o[0]); 758 checkInterest(o[0]);
759 checkInterest(o[1]); 759 checkInterest(o[1]);
760 } 760 }
761 761
762 buildUnnamed1453() { 762 buildUnnamed1463() {
763 var o = new core.List<api.Locale>(); 763 var o = new core.List<api.Locale>();
764 o.add(buildLocale()); 764 o.add(buildLocale());
765 o.add(buildLocale()); 765 o.add(buildLocale());
766 return o; 766 return o;
767 } 767 }
768 768
769 checkUnnamed1453(core.List<api.Locale> o) { 769 checkUnnamed1463(core.List<api.Locale> o) {
770 unittest.expect(o, unittest.hasLength(2)); 770 unittest.expect(o, unittest.hasLength(2));
771 checkLocale(o[0]); 771 checkLocale(o[0]);
772 checkLocale(o[1]); 772 checkLocale(o[1]);
773 } 773 }
774 774
775 buildUnnamed1454() { 775 buildUnnamed1464() {
776 var o = new core.List<api.Membership>(); 776 var o = new core.List<api.Membership>();
777 o.add(buildMembership()); 777 o.add(buildMembership());
778 o.add(buildMembership()); 778 o.add(buildMembership());
779 return o; 779 return o;
780 } 780 }
781 781
782 checkUnnamed1454(core.List<api.Membership> o) { 782 checkUnnamed1464(core.List<api.Membership> o) {
783 unittest.expect(o, unittest.hasLength(2)); 783 unittest.expect(o, unittest.hasLength(2));
784 checkMembership(o[0]); 784 checkMembership(o[0]);
785 checkMembership(o[1]); 785 checkMembership(o[1]);
786 } 786 }
787 787
788 buildUnnamed1455() { 788 buildUnnamed1465() {
789 var o = new core.List<api.Name>(); 789 var o = new core.List<api.Name>();
790 o.add(buildName()); 790 o.add(buildName());
791 o.add(buildName()); 791 o.add(buildName());
792 return o; 792 return o;
793 } 793 }
794 794
795 checkUnnamed1455(core.List<api.Name> o) { 795 checkUnnamed1465(core.List<api.Name> o) {
796 unittest.expect(o, unittest.hasLength(2)); 796 unittest.expect(o, unittest.hasLength(2));
797 checkName(o[0]); 797 checkName(o[0]);
798 checkName(o[1]); 798 checkName(o[1]);
799 } 799 }
800 800
801 buildUnnamed1456() { 801 buildUnnamed1466() {
802 var o = new core.List<api.Nickname>(); 802 var o = new core.List<api.Nickname>();
803 o.add(buildNickname()); 803 o.add(buildNickname());
804 o.add(buildNickname()); 804 o.add(buildNickname());
805 return o; 805 return o;
806 } 806 }
807 807
808 checkUnnamed1456(core.List<api.Nickname> o) { 808 checkUnnamed1466(core.List<api.Nickname> o) {
809 unittest.expect(o, unittest.hasLength(2)); 809 unittest.expect(o, unittest.hasLength(2));
810 checkNickname(o[0]); 810 checkNickname(o[0]);
811 checkNickname(o[1]); 811 checkNickname(o[1]);
812 } 812 }
813 813
814 buildUnnamed1457() { 814 buildUnnamed1467() {
815 var o = new core.List<api.Occupation>(); 815 var o = new core.List<api.Occupation>();
816 o.add(buildOccupation()); 816 o.add(buildOccupation());
817 o.add(buildOccupation()); 817 o.add(buildOccupation());
818 return o; 818 return o;
819 } 819 }
820 820
821 checkUnnamed1457(core.List<api.Occupation> o) { 821 checkUnnamed1467(core.List<api.Occupation> o) {
822 unittest.expect(o, unittest.hasLength(2)); 822 unittest.expect(o, unittest.hasLength(2));
823 checkOccupation(o[0]); 823 checkOccupation(o[0]);
824 checkOccupation(o[1]); 824 checkOccupation(o[1]);
825 } 825 }
826 826
827 buildUnnamed1458() { 827 buildUnnamed1468() {
828 var o = new core.List<api.Organization>(); 828 var o = new core.List<api.Organization>();
829 o.add(buildOrganization()); 829 o.add(buildOrganization());
830 o.add(buildOrganization()); 830 o.add(buildOrganization());
831 return o; 831 return o;
832 } 832 }
833 833
834 checkUnnamed1458(core.List<api.Organization> o) { 834 checkUnnamed1468(core.List<api.Organization> o) {
835 unittest.expect(o, unittest.hasLength(2)); 835 unittest.expect(o, unittest.hasLength(2));
836 checkOrganization(o[0]); 836 checkOrganization(o[0]);
837 checkOrganization(o[1]); 837 checkOrganization(o[1]);
838 } 838 }
839 839
840 buildUnnamed1459() { 840 buildUnnamed1469() {
841 var o = new core.List<api.PhoneNumber>(); 841 var o = new core.List<api.PhoneNumber>();
842 o.add(buildPhoneNumber()); 842 o.add(buildPhoneNumber());
843 o.add(buildPhoneNumber()); 843 o.add(buildPhoneNumber());
844 return o; 844 return o;
845 } 845 }
846 846
847 checkUnnamed1459(core.List<api.PhoneNumber> o) { 847 checkUnnamed1469(core.List<api.PhoneNumber> o) {
848 unittest.expect(o, unittest.hasLength(2)); 848 unittest.expect(o, unittest.hasLength(2));
849 checkPhoneNumber(o[0]); 849 checkPhoneNumber(o[0]);
850 checkPhoneNumber(o[1]); 850 checkPhoneNumber(o[1]);
851 } 851 }
852 852
853 buildUnnamed1460() { 853 buildUnnamed1470() {
854 var o = new core.List<api.Photo>(); 854 var o = new core.List<api.Photo>();
855 o.add(buildPhoto()); 855 o.add(buildPhoto());
856 o.add(buildPhoto()); 856 o.add(buildPhoto());
857 return o; 857 return o;
858 } 858 }
859 859
860 checkUnnamed1460(core.List<api.Photo> o) { 860 checkUnnamed1470(core.List<api.Photo> o) {
861 unittest.expect(o, unittest.hasLength(2)); 861 unittest.expect(o, unittest.hasLength(2));
862 checkPhoto(o[0]); 862 checkPhoto(o[0]);
863 checkPhoto(o[1]); 863 checkPhoto(o[1]);
864 } 864 }
865 865
866 buildUnnamed1461() { 866 buildUnnamed1471() {
867 var o = new core.List<api.Relation>(); 867 var o = new core.List<api.Relation>();
868 o.add(buildRelation()); 868 o.add(buildRelation());
869 o.add(buildRelation()); 869 o.add(buildRelation());
870 return o; 870 return o;
871 } 871 }
872 872
873 checkUnnamed1461(core.List<api.Relation> o) { 873 checkUnnamed1471(core.List<api.Relation> o) {
874 unittest.expect(o, unittest.hasLength(2)); 874 unittest.expect(o, unittest.hasLength(2));
875 checkRelation(o[0]); 875 checkRelation(o[0]);
876 checkRelation(o[1]); 876 checkRelation(o[1]);
877 } 877 }
878 878
879 buildUnnamed1462() { 879 buildUnnamed1472() {
880 var o = new core.List<api.RelationshipInterest>(); 880 var o = new core.List<api.RelationshipInterest>();
881 o.add(buildRelationshipInterest()); 881 o.add(buildRelationshipInterest());
882 o.add(buildRelationshipInterest()); 882 o.add(buildRelationshipInterest());
883 return o; 883 return o;
884 } 884 }
885 885
886 checkUnnamed1462(core.List<api.RelationshipInterest> o) { 886 checkUnnamed1472(core.List<api.RelationshipInterest> o) {
887 unittest.expect(o, unittest.hasLength(2)); 887 unittest.expect(o, unittest.hasLength(2));
888 checkRelationshipInterest(o[0]); 888 checkRelationshipInterest(o[0]);
889 checkRelationshipInterest(o[1]); 889 checkRelationshipInterest(o[1]);
890 } 890 }
891 891
892 buildUnnamed1463() { 892 buildUnnamed1473() {
893 var o = new core.List<api.RelationshipStatus>(); 893 var o = new core.List<api.RelationshipStatus>();
894 o.add(buildRelationshipStatus()); 894 o.add(buildRelationshipStatus());
895 o.add(buildRelationshipStatus()); 895 o.add(buildRelationshipStatus());
896 return o; 896 return o;
897 } 897 }
898 898
899 checkUnnamed1463(core.List<api.RelationshipStatus> o) { 899 checkUnnamed1473(core.List<api.RelationshipStatus> o) {
900 unittest.expect(o, unittest.hasLength(2)); 900 unittest.expect(o, unittest.hasLength(2));
901 checkRelationshipStatus(o[0]); 901 checkRelationshipStatus(o[0]);
902 checkRelationshipStatus(o[1]); 902 checkRelationshipStatus(o[1]);
903 } 903 }
904 904
905 buildUnnamed1464() { 905 buildUnnamed1474() {
906 var o = new core.List<api.Residence>(); 906 var o = new core.List<api.Residence>();
907 o.add(buildResidence()); 907 o.add(buildResidence());
908 o.add(buildResidence()); 908 o.add(buildResidence());
909 return o; 909 return o;
910 } 910 }
911 911
912 checkUnnamed1464(core.List<api.Residence> o) { 912 checkUnnamed1474(core.List<api.Residence> o) {
913 unittest.expect(o, unittest.hasLength(2)); 913 unittest.expect(o, unittest.hasLength(2));
914 checkResidence(o[0]); 914 checkResidence(o[0]);
915 checkResidence(o[1]); 915 checkResidence(o[1]);
916 } 916 }
917 917
918 buildUnnamed1465() { 918 buildUnnamed1475() {
919 var o = new core.List<api.Skill>(); 919 var o = new core.List<api.Skill>();
920 o.add(buildSkill()); 920 o.add(buildSkill());
921 o.add(buildSkill()); 921 o.add(buildSkill());
922 return o; 922 return o;
923 } 923 }
924 924
925 checkUnnamed1465(core.List<api.Skill> o) { 925 checkUnnamed1475(core.List<api.Skill> o) {
926 unittest.expect(o, unittest.hasLength(2)); 926 unittest.expect(o, unittest.hasLength(2));
927 checkSkill(o[0]); 927 checkSkill(o[0]);
928 checkSkill(o[1]); 928 checkSkill(o[1]);
929 } 929 }
930 930
931 buildUnnamed1466() { 931 buildUnnamed1476() {
932 var o = new core.List<api.Tagline>(); 932 var o = new core.List<api.Tagline>();
933 o.add(buildTagline()); 933 o.add(buildTagline());
934 o.add(buildTagline()); 934 o.add(buildTagline());
935 return o; 935 return o;
936 } 936 }
937 937
938 checkUnnamed1466(core.List<api.Tagline> o) { 938 checkUnnamed1476(core.List<api.Tagline> o) {
939 unittest.expect(o, unittest.hasLength(2)); 939 unittest.expect(o, unittest.hasLength(2));
940 checkTagline(o[0]); 940 checkTagline(o[0]);
941 checkTagline(o[1]); 941 checkTagline(o[1]);
942 } 942 }
943 943
944 buildUnnamed1467() { 944 buildUnnamed1477() {
945 var o = new core.List<api.Url>(); 945 var o = new core.List<api.Url>();
946 o.add(buildUrl()); 946 o.add(buildUrl());
947 o.add(buildUrl()); 947 o.add(buildUrl());
948 return o; 948 return o;
949 } 949 }
950 950
951 checkUnnamed1467(core.List<api.Url> o) { 951 checkUnnamed1477(core.List<api.Url> o) {
952 unittest.expect(o, unittest.hasLength(2)); 952 unittest.expect(o, unittest.hasLength(2));
953 checkUrl(o[0]); 953 checkUrl(o[0]);
954 checkUrl(o[1]); 954 checkUrl(o[1]);
955 } 955 }
956 956
957 core.int buildCounterPerson = 0; 957 core.int buildCounterPerson = 0;
958 buildPerson() { 958 buildPerson() {
959 var o = new api.Person(); 959 var o = new api.Person();
960 buildCounterPerson++; 960 buildCounterPerson++;
961 if (buildCounterPerson < 3) { 961 if (buildCounterPerson < 3) {
962 o.addresses = buildUnnamed1443(); 962 o.addresses = buildUnnamed1453();
963 o.ageRange = "foo"; 963 o.ageRange = "foo";
964 o.biographies = buildUnnamed1444(); 964 o.biographies = buildUnnamed1454();
965 o.birthdays = buildUnnamed1445(); 965 o.birthdays = buildUnnamed1455();
966 o.braggingRights = buildUnnamed1446(); 966 o.braggingRights = buildUnnamed1456();
967 o.coverPhotos = buildUnnamed1447(); 967 o.coverPhotos = buildUnnamed1457();
968 o.emailAddresses = buildUnnamed1448(); 968 o.emailAddresses = buildUnnamed1458();
969 o.etag = "foo"; 969 o.etag = "foo";
970 o.events = buildUnnamed1449(); 970 o.events = buildUnnamed1459();
971 o.genders = buildUnnamed1450(); 971 o.genders = buildUnnamed1460();
972 o.imClients = buildUnnamed1451(); 972 o.imClients = buildUnnamed1461();
973 o.interests = buildUnnamed1452(); 973 o.interests = buildUnnamed1462();
974 o.locales = buildUnnamed1453(); 974 o.locales = buildUnnamed1463();
975 o.memberships = buildUnnamed1454(); 975 o.memberships = buildUnnamed1464();
976 o.metadata = buildPersonMetadata(); 976 o.metadata = buildPersonMetadata();
977 o.names = buildUnnamed1455(); 977 o.names = buildUnnamed1465();
978 o.nicknames = buildUnnamed1456(); 978 o.nicknames = buildUnnamed1466();
979 o.occupations = buildUnnamed1457(); 979 o.occupations = buildUnnamed1467();
980 o.organizations = buildUnnamed1458(); 980 o.organizations = buildUnnamed1468();
981 o.phoneNumbers = buildUnnamed1459(); 981 o.phoneNumbers = buildUnnamed1469();
982 o.photos = buildUnnamed1460(); 982 o.photos = buildUnnamed1470();
983 o.relations = buildUnnamed1461(); 983 o.relations = buildUnnamed1471();
984 o.relationshipInterests = buildUnnamed1462(); 984 o.relationshipInterests = buildUnnamed1472();
985 o.relationshipStatuses = buildUnnamed1463(); 985 o.relationshipStatuses = buildUnnamed1473();
986 o.residences = buildUnnamed1464(); 986 o.residences = buildUnnamed1474();
987 o.resourceName = "foo"; 987 o.resourceName = "foo";
988 o.skills = buildUnnamed1465(); 988 o.skills = buildUnnamed1475();
989 o.taglines = buildUnnamed1466(); 989 o.taglines = buildUnnamed1476();
990 o.urls = buildUnnamed1467(); 990 o.urls = buildUnnamed1477();
991 } 991 }
992 buildCounterPerson--; 992 buildCounterPerson--;
993 return o; 993 return o;
994 } 994 }
995 995
996 checkPerson(api.Person o) { 996 checkPerson(api.Person o) {
997 buildCounterPerson++; 997 buildCounterPerson++;
998 if (buildCounterPerson < 3) { 998 if (buildCounterPerson < 3) {
999 checkUnnamed1443(o.addresses); 999 checkUnnamed1453(o.addresses);
1000 unittest.expect(o.ageRange, unittest.equals('foo')); 1000 unittest.expect(o.ageRange, unittest.equals('foo'));
1001 checkUnnamed1444(o.biographies); 1001 checkUnnamed1454(o.biographies);
1002 checkUnnamed1445(o.birthdays); 1002 checkUnnamed1455(o.birthdays);
1003 checkUnnamed1446(o.braggingRights); 1003 checkUnnamed1456(o.braggingRights);
1004 checkUnnamed1447(o.coverPhotos); 1004 checkUnnamed1457(o.coverPhotos);
1005 checkUnnamed1448(o.emailAddresses); 1005 checkUnnamed1458(o.emailAddresses);
1006 unittest.expect(o.etag, unittest.equals('foo')); 1006 unittest.expect(o.etag, unittest.equals('foo'));
1007 checkUnnamed1449(o.events); 1007 checkUnnamed1459(o.events);
1008 checkUnnamed1450(o.genders); 1008 checkUnnamed1460(o.genders);
1009 checkUnnamed1451(o.imClients); 1009 checkUnnamed1461(o.imClients);
1010 checkUnnamed1452(o.interests); 1010 checkUnnamed1462(o.interests);
1011 checkUnnamed1453(o.locales); 1011 checkUnnamed1463(o.locales);
1012 checkUnnamed1454(o.memberships); 1012 checkUnnamed1464(o.memberships);
1013 checkPersonMetadata(o.metadata); 1013 checkPersonMetadata(o.metadata);
1014 checkUnnamed1455(o.names); 1014 checkUnnamed1465(o.names);
1015 checkUnnamed1456(o.nicknames); 1015 checkUnnamed1466(o.nicknames);
1016 checkUnnamed1457(o.occupations); 1016 checkUnnamed1467(o.occupations);
1017 checkUnnamed1458(o.organizations); 1017 checkUnnamed1468(o.organizations);
1018 checkUnnamed1459(o.phoneNumbers); 1018 checkUnnamed1469(o.phoneNumbers);
1019 checkUnnamed1460(o.photos); 1019 checkUnnamed1470(o.photos);
1020 checkUnnamed1461(o.relations); 1020 checkUnnamed1471(o.relations);
1021 checkUnnamed1462(o.relationshipInterests); 1021 checkUnnamed1472(o.relationshipInterests);
1022 checkUnnamed1463(o.relationshipStatuses); 1022 checkUnnamed1473(o.relationshipStatuses);
1023 checkUnnamed1464(o.residences); 1023 checkUnnamed1474(o.residences);
1024 unittest.expect(o.resourceName, unittest.equals('foo')); 1024 unittest.expect(o.resourceName, unittest.equals('foo'));
1025 checkUnnamed1465(o.skills); 1025 checkUnnamed1475(o.skills);
1026 checkUnnamed1466(o.taglines); 1026 checkUnnamed1476(o.taglines);
1027 checkUnnamed1467(o.urls); 1027 checkUnnamed1477(o.urls);
1028 } 1028 }
1029 buildCounterPerson--; 1029 buildCounterPerson--;
1030 } 1030 }
1031 1031
1032 buildUnnamed1468() { 1032 buildUnnamed1478() {
1033 var o = new core.List<core.String>(); 1033 var o = new core.List<core.String>();
1034 o.add("foo"); 1034 o.add("foo");
1035 o.add("foo"); 1035 o.add("foo");
1036 return o; 1036 return o;
1037 } 1037 }
1038 1038
1039 checkUnnamed1468(core.List<core.String> o) { 1039 checkUnnamed1478(core.List<core.String> o) {
1040 unittest.expect(o, unittest.hasLength(2)); 1040 unittest.expect(o, unittest.hasLength(2));
1041 unittest.expect(o[0], unittest.equals('foo')); 1041 unittest.expect(o[0], unittest.equals('foo'));
1042 unittest.expect(o[1], unittest.equals('foo')); 1042 unittest.expect(o[1], unittest.equals('foo'));
1043 } 1043 }
1044 1044
1045 buildUnnamed1469() { 1045 buildUnnamed1479() {
1046 var o = new core.List<api.Source>(); 1046 var o = new core.List<api.Source>();
1047 o.add(buildSource()); 1047 o.add(buildSource());
1048 o.add(buildSource()); 1048 o.add(buildSource());
1049 return o; 1049 return o;
1050 } 1050 }
1051 1051
1052 checkUnnamed1469(core.List<api.Source> o) { 1052 checkUnnamed1479(core.List<api.Source> o) {
1053 unittest.expect(o, unittest.hasLength(2)); 1053 unittest.expect(o, unittest.hasLength(2));
1054 checkSource(o[0]); 1054 checkSource(o[0]);
1055 checkSource(o[1]); 1055 checkSource(o[1]);
1056 } 1056 }
1057 1057
1058 core.int buildCounterPersonMetadata = 0; 1058 core.int buildCounterPersonMetadata = 0;
1059 buildPersonMetadata() { 1059 buildPersonMetadata() {
1060 var o = new api.PersonMetadata(); 1060 var o = new api.PersonMetadata();
1061 buildCounterPersonMetadata++; 1061 buildCounterPersonMetadata++;
1062 if (buildCounterPersonMetadata < 3) { 1062 if (buildCounterPersonMetadata < 3) {
1063 o.deleted = true; 1063 o.deleted = true;
1064 o.objectType = "foo"; 1064 o.objectType = "foo";
1065 o.previousResourceNames = buildUnnamed1468(); 1065 o.previousResourceNames = buildUnnamed1478();
1066 o.sources = buildUnnamed1469(); 1066 o.sources = buildUnnamed1479();
1067 } 1067 }
1068 buildCounterPersonMetadata--; 1068 buildCounterPersonMetadata--;
1069 return o; 1069 return o;
1070 } 1070 }
1071 1071
1072 checkPersonMetadata(api.PersonMetadata o) { 1072 checkPersonMetadata(api.PersonMetadata o) {
1073 buildCounterPersonMetadata++; 1073 buildCounterPersonMetadata++;
1074 if (buildCounterPersonMetadata < 3) { 1074 if (buildCounterPersonMetadata < 3) {
1075 unittest.expect(o.deleted, unittest.isTrue); 1075 unittest.expect(o.deleted, unittest.isTrue);
1076 unittest.expect(o.objectType, unittest.equals('foo')); 1076 unittest.expect(o.objectType, unittest.equals('foo'));
1077 checkUnnamed1468(o.previousResourceNames); 1077 checkUnnamed1478(o.previousResourceNames);
1078 checkUnnamed1469(o.sources); 1078 checkUnnamed1479(o.sources);
1079 } 1079 }
1080 buildCounterPersonMetadata--; 1080 buildCounterPersonMetadata--;
1081 } 1081 }
1082 1082
1083 core.int buildCounterPersonResponse = 0; 1083 core.int buildCounterPersonResponse = 0;
1084 buildPersonResponse() { 1084 buildPersonResponse() {
1085 var o = new api.PersonResponse(); 1085 var o = new api.PersonResponse();
1086 buildCounterPersonResponse++; 1086 buildCounterPersonResponse++;
1087 if (buildCounterPersonResponse < 3) { 1087 if (buildCounterPersonResponse < 3) {
1088 o.httpStatusCode = 42; 1088 o.httpStatusCode = 42;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 buildCounterUrl++; 1326 buildCounterUrl++;
1327 if (buildCounterUrl < 3) { 1327 if (buildCounterUrl < 3) {
1328 unittest.expect(o.formattedType, unittest.equals('foo')); 1328 unittest.expect(o.formattedType, unittest.equals('foo'));
1329 checkFieldMetadata(o.metadata); 1329 checkFieldMetadata(o.metadata);
1330 unittest.expect(o.type, unittest.equals('foo')); 1330 unittest.expect(o.type, unittest.equals('foo'));
1331 unittest.expect(o.value, unittest.equals('foo')); 1331 unittest.expect(o.value, unittest.equals('foo'));
1332 } 1332 }
1333 buildCounterUrl--; 1333 buildCounterUrl--;
1334 } 1334 }
1335 1335
1336 buildUnnamed1470() { 1336 buildUnnamed1480() {
1337 var o = new core.List<core.String>(); 1337 var o = new core.List<core.String>();
1338 o.add("foo"); 1338 o.add("foo");
1339 o.add("foo"); 1339 o.add("foo");
1340 return o; 1340 return o;
1341 } 1341 }
1342 1342
1343 checkUnnamed1470(core.List<core.String> o) { 1343 checkUnnamed1480(core.List<core.String> o) {
1344 unittest.expect(o, unittest.hasLength(2)); 1344 unittest.expect(o, unittest.hasLength(2));
1345 unittest.expect(o[0], unittest.equals('foo')); 1345 unittest.expect(o[0], unittest.equals('foo'));
1346 unittest.expect(o[1], unittest.equals('foo')); 1346 unittest.expect(o[1], unittest.equals('foo'));
1347 } 1347 }
1348 1348
1349 1349
1350 main() { 1350 main() {
1351 unittest.group("obj-schema-Address", () { 1351 unittest.group("obj-schema-Address", () {
1352 unittest.test("to-json--from-json", () { 1352 unittest.test("to-json--from-json", () {
1353 var o = buildAddress(); 1353 var o = buildAddress();
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 }), true); 1708 }), true);
1709 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) { 1709 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) {
1710 checkPerson(response); 1710 checkPerson(response);
1711 }))); 1711 })));
1712 }); 1712 });
1713 1713
1714 unittest.test("method--getBatchGet", () { 1714 unittest.test("method--getBatchGet", () {
1715 1715
1716 var mock = new HttpServerMock(); 1716 var mock = new HttpServerMock();
1717 api.PeopleResourceApi res = new api.PeopleApi(mock).people; 1717 api.PeopleResourceApi res = new api.PeopleApi(mock).people;
1718 var arg_resourceNames = buildUnnamed1470(); 1718 var arg_resourceNames = buildUnnamed1480();
1719 var arg_requestMask_includeField = "foo"; 1719 var arg_requestMask_includeField = "foo";
1720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1720 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1721 var path = (req.url).path; 1721 var path = (req.url).path;
1722 var pathOffset = 0; 1722 var pathOffset = 0;
1723 var index; 1723 var index;
1724 var subPart; 1724 var subPart;
1725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1726 pathOffset += 1; 1726 pathOffset += 1;
1727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet")); 1727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet"));
1728 pathOffset += 18; 1728 pathOffset += 18;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 res.list(arg_resourceName, pageToken: arg_pageToken, pageSize: arg_pageSiz e, sortOrder: arg_sortOrder, syncToken: arg_syncToken, requestMask_includeField: arg_requestMask_includeField).then(unittest.expectAsync(((api.ListConnectionsRe sponse response) { 1815 res.list(arg_resourceName, pageToken: arg_pageToken, pageSize: arg_pageSiz e, sortOrder: arg_sortOrder, syncToken: arg_syncToken, requestMask_includeField: arg_requestMask_includeField).then(unittest.expectAsync(((api.ListConnectionsRe sponse response) {
1816 checkListConnectionsResponse(response); 1816 checkListConnectionsResponse(response);
1817 }))); 1817 })));
1818 }); 1818 });
1819 1819
1820 }); 1820 });
1821 1821
1822 1822
1823 } 1823 }
1824 1824
OLDNEW
« no previous file with comments | « generated/googleapis/test/partners/v2_test.dart ('k') | generated/googleapis/test/playmoviespartner/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698