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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 checkGender(api.Gender o) { 355 checkGender(api.Gender o) {
356 buildCounterGender++; 356 buildCounterGender++;
357 if (buildCounterGender < 3) { 357 if (buildCounterGender < 3) {
358 unittest.expect(o.formattedValue, unittest.equals('foo')); 358 unittest.expect(o.formattedValue, unittest.equals('foo'));
359 checkFieldMetadata(o.metadata); 359 checkFieldMetadata(o.metadata);
360 unittest.expect(o.value, unittest.equals('foo')); 360 unittest.expect(o.value, unittest.equals('foo'));
361 } 361 }
362 buildCounterGender--; 362 buildCounterGender--;
363 } 363 }
364 364
365 buildUnnamed1300() { 365 buildUnnamed1295() {
366 var o = new core.List<api.PersonResponse>(); 366 var o = new core.List<api.PersonResponse>();
367 o.add(buildPersonResponse()); 367 o.add(buildPersonResponse());
368 o.add(buildPersonResponse()); 368 o.add(buildPersonResponse());
369 return o; 369 return o;
370 } 370 }
371 371
372 checkUnnamed1300(core.List<api.PersonResponse> o) { 372 checkUnnamed1295(core.List<api.PersonResponse> o) {
373 unittest.expect(o, unittest.hasLength(2)); 373 unittest.expect(o, unittest.hasLength(2));
374 checkPersonResponse(o[0]); 374 checkPersonResponse(o[0]);
375 checkPersonResponse(o[1]); 375 checkPersonResponse(o[1]);
376 } 376 }
377 377
378 core.int buildCounterGetPeopleResponse = 0; 378 core.int buildCounterGetPeopleResponse = 0;
379 buildGetPeopleResponse() { 379 buildGetPeopleResponse() {
380 var o = new api.GetPeopleResponse(); 380 var o = new api.GetPeopleResponse();
381 buildCounterGetPeopleResponse++; 381 buildCounterGetPeopleResponse++;
382 if (buildCounterGetPeopleResponse < 3) { 382 if (buildCounterGetPeopleResponse < 3) {
383 o.responses = buildUnnamed1300(); 383 o.responses = buildUnnamed1295();
384 } 384 }
385 buildCounterGetPeopleResponse--; 385 buildCounterGetPeopleResponse--;
386 return o; 386 return o;
387 } 387 }
388 388
389 checkGetPeopleResponse(api.GetPeopleResponse o) { 389 checkGetPeopleResponse(api.GetPeopleResponse o) {
390 buildCounterGetPeopleResponse++; 390 buildCounterGetPeopleResponse++;
391 if (buildCounterGetPeopleResponse < 3) { 391 if (buildCounterGetPeopleResponse < 3) {
392 checkUnnamed1300(o.responses); 392 checkUnnamed1295(o.responses);
393 } 393 }
394 buildCounterGetPeopleResponse--; 394 buildCounterGetPeopleResponse--;
395 } 395 }
396 396
397 core.int buildCounterImClient = 0; 397 core.int buildCounterImClient = 0;
398 buildImClient() { 398 buildImClient() {
399 var o = new api.ImClient(); 399 var o = new api.ImClient();
400 buildCounterImClient++; 400 buildCounterImClient++;
401 if (buildCounterImClient < 3) { 401 if (buildCounterImClient < 3) {
402 o.formattedProtocol = "foo"; 402 o.formattedProtocol = "foo";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 437
438 checkInterest(api.Interest o) { 438 checkInterest(api.Interest o) {
439 buildCounterInterest++; 439 buildCounterInterest++;
440 if (buildCounterInterest < 3) { 440 if (buildCounterInterest < 3) {
441 checkFieldMetadata(o.metadata); 441 checkFieldMetadata(o.metadata);
442 unittest.expect(o.value, unittest.equals('foo')); 442 unittest.expect(o.value, unittest.equals('foo'));
443 } 443 }
444 buildCounterInterest--; 444 buildCounterInterest--;
445 } 445 }
446 446
447 buildUnnamed1301() { 447 buildUnnamed1296() {
448 var o = new core.List<api.Person>(); 448 var o = new core.List<api.Person>();
449 o.add(buildPerson()); 449 o.add(buildPerson());
450 o.add(buildPerson()); 450 o.add(buildPerson());
451 return o; 451 return o;
452 } 452 }
453 453
454 checkUnnamed1301(core.List<api.Person> o) { 454 checkUnnamed1296(core.List<api.Person> o) {
455 unittest.expect(o, unittest.hasLength(2)); 455 unittest.expect(o, unittest.hasLength(2));
456 checkPerson(o[0]); 456 checkPerson(o[0]);
457 checkPerson(o[1]); 457 checkPerson(o[1]);
458 } 458 }
459 459
460 core.int buildCounterListConnectionsResponse = 0; 460 core.int buildCounterListConnectionsResponse = 0;
461 buildListConnectionsResponse() { 461 buildListConnectionsResponse() {
462 var o = new api.ListConnectionsResponse(); 462 var o = new api.ListConnectionsResponse();
463 buildCounterListConnectionsResponse++; 463 buildCounterListConnectionsResponse++;
464 if (buildCounterListConnectionsResponse < 3) { 464 if (buildCounterListConnectionsResponse < 3) {
465 o.connections = buildUnnamed1301(); 465 o.connections = buildUnnamed1296();
466 o.nextPageToken = "foo"; 466 o.nextPageToken = "foo";
467 o.nextSyncToken = "foo"; 467 o.nextSyncToken = "foo";
468 o.totalPeople = 42; 468 o.totalPeople = 42;
469 } 469 }
470 buildCounterListConnectionsResponse--; 470 buildCounterListConnectionsResponse--;
471 return o; 471 return o;
472 } 472 }
473 473
474 checkListConnectionsResponse(api.ListConnectionsResponse o) { 474 checkListConnectionsResponse(api.ListConnectionsResponse o) {
475 buildCounterListConnectionsResponse++; 475 buildCounterListConnectionsResponse++;
476 if (buildCounterListConnectionsResponse < 3) { 476 if (buildCounterListConnectionsResponse < 3) {
477 checkUnnamed1301(o.connections); 477 checkUnnamed1296(o.connections);
478 unittest.expect(o.nextPageToken, unittest.equals('foo')); 478 unittest.expect(o.nextPageToken, unittest.equals('foo'));
479 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 479 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
480 unittest.expect(o.totalPeople, unittest.equals(42)); 480 unittest.expect(o.totalPeople, unittest.equals(42));
481 } 481 }
482 buildCounterListConnectionsResponse--; 482 buildCounterListConnectionsResponse--;
483 } 483 }
484 484
485 core.int buildCounterLocale = 0; 485 core.int buildCounterLocale = 0;
486 buildLocale() { 486 buildLocale() {
487 var o = new api.Locale(); 487 var o = new api.Locale();
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 unittest.expect(o.name, unittest.equals('foo')); 653 unittest.expect(o.name, unittest.equals('foo'));
654 unittest.expect(o.phoneticName, unittest.equals('foo')); 654 unittest.expect(o.phoneticName, unittest.equals('foo'));
655 checkDate(o.startDate); 655 checkDate(o.startDate);
656 unittest.expect(o.symbol, unittest.equals('foo')); 656 unittest.expect(o.symbol, unittest.equals('foo'));
657 unittest.expect(o.title, unittest.equals('foo')); 657 unittest.expect(o.title, unittest.equals('foo'));
658 unittest.expect(o.type, unittest.equals('foo')); 658 unittest.expect(o.type, unittest.equals('foo'));
659 } 659 }
660 buildCounterOrganization--; 660 buildCounterOrganization--;
661 } 661 }
662 662
663 buildUnnamed1302() { 663 buildUnnamed1297() {
664 var o = new core.List<api.Address>(); 664 var o = new core.List<api.Address>();
665 o.add(buildAddress()); 665 o.add(buildAddress());
666 o.add(buildAddress()); 666 o.add(buildAddress());
667 return o; 667 return o;
668 } 668 }
669 669
670 checkUnnamed1302(core.List<api.Address> o) { 670 checkUnnamed1297(core.List<api.Address> o) {
671 unittest.expect(o, unittest.hasLength(2)); 671 unittest.expect(o, unittest.hasLength(2));
672 checkAddress(o[0]); 672 checkAddress(o[0]);
673 checkAddress(o[1]); 673 checkAddress(o[1]);
674 } 674 }
675 675
676 buildUnnamed1303() { 676 buildUnnamed1298() {
677 var o = new core.List<api.AgeRangeType>(); 677 var o = new core.List<api.AgeRangeType>();
678 o.add(buildAgeRangeType()); 678 o.add(buildAgeRangeType());
679 o.add(buildAgeRangeType()); 679 o.add(buildAgeRangeType());
680 return o; 680 return o;
681 } 681 }
682 682
683 checkUnnamed1303(core.List<api.AgeRangeType> o) { 683 checkUnnamed1298(core.List<api.AgeRangeType> o) {
684 unittest.expect(o, unittest.hasLength(2)); 684 unittest.expect(o, unittest.hasLength(2));
685 checkAgeRangeType(o[0]); 685 checkAgeRangeType(o[0]);
686 checkAgeRangeType(o[1]); 686 checkAgeRangeType(o[1]);
687 } 687 }
688 688
689 buildUnnamed1304() { 689 buildUnnamed1299() {
690 var o = new core.List<api.Biography>(); 690 var o = new core.List<api.Biography>();
691 o.add(buildBiography()); 691 o.add(buildBiography());
692 o.add(buildBiography()); 692 o.add(buildBiography());
693 return o; 693 return o;
694 } 694 }
695 695
696 checkUnnamed1304(core.List<api.Biography> o) { 696 checkUnnamed1299(core.List<api.Biography> o) {
697 unittest.expect(o, unittest.hasLength(2)); 697 unittest.expect(o, unittest.hasLength(2));
698 checkBiography(o[0]); 698 checkBiography(o[0]);
699 checkBiography(o[1]); 699 checkBiography(o[1]);
700 } 700 }
701 701
702 buildUnnamed1305() { 702 buildUnnamed1300() {
703 var o = new core.List<api.Birthday>(); 703 var o = new core.List<api.Birthday>();
704 o.add(buildBirthday()); 704 o.add(buildBirthday());
705 o.add(buildBirthday()); 705 o.add(buildBirthday());
706 return o; 706 return o;
707 } 707 }
708 708
709 checkUnnamed1305(core.List<api.Birthday> o) { 709 checkUnnamed1300(core.List<api.Birthday> o) {
710 unittest.expect(o, unittest.hasLength(2)); 710 unittest.expect(o, unittest.hasLength(2));
711 checkBirthday(o[0]); 711 checkBirthday(o[0]);
712 checkBirthday(o[1]); 712 checkBirthday(o[1]);
713 } 713 }
714 714
715 buildUnnamed1306() { 715 buildUnnamed1301() {
716 var o = new core.List<api.BraggingRights>(); 716 var o = new core.List<api.BraggingRights>();
717 o.add(buildBraggingRights()); 717 o.add(buildBraggingRights());
718 o.add(buildBraggingRights()); 718 o.add(buildBraggingRights());
719 return o; 719 return o;
720 } 720 }
721 721
722 checkUnnamed1306(core.List<api.BraggingRights> o) { 722 checkUnnamed1301(core.List<api.BraggingRights> o) {
723 unittest.expect(o, unittest.hasLength(2)); 723 unittest.expect(o, unittest.hasLength(2));
724 checkBraggingRights(o[0]); 724 checkBraggingRights(o[0]);
725 checkBraggingRights(o[1]); 725 checkBraggingRights(o[1]);
726 } 726 }
727 727
728 buildUnnamed1307() { 728 buildUnnamed1302() {
729 var o = new core.List<api.CoverPhoto>(); 729 var o = new core.List<api.CoverPhoto>();
730 o.add(buildCoverPhoto()); 730 o.add(buildCoverPhoto());
731 o.add(buildCoverPhoto()); 731 o.add(buildCoverPhoto());
732 return o; 732 return o;
733 } 733 }
734 734
735 checkUnnamed1307(core.List<api.CoverPhoto> o) { 735 checkUnnamed1302(core.List<api.CoverPhoto> o) {
736 unittest.expect(o, unittest.hasLength(2)); 736 unittest.expect(o, unittest.hasLength(2));
737 checkCoverPhoto(o[0]); 737 checkCoverPhoto(o[0]);
738 checkCoverPhoto(o[1]); 738 checkCoverPhoto(o[1]);
739 } 739 }
740 740
741 buildUnnamed1308() { 741 buildUnnamed1303() {
742 var o = new core.List<api.EmailAddress>(); 742 var o = new core.List<api.EmailAddress>();
743 o.add(buildEmailAddress()); 743 o.add(buildEmailAddress());
744 o.add(buildEmailAddress()); 744 o.add(buildEmailAddress());
745 return o; 745 return o;
746 } 746 }
747 747
748 checkUnnamed1308(core.List<api.EmailAddress> o) { 748 checkUnnamed1303(core.List<api.EmailAddress> o) {
749 unittest.expect(o, unittest.hasLength(2)); 749 unittest.expect(o, unittest.hasLength(2));
750 checkEmailAddress(o[0]); 750 checkEmailAddress(o[0]);
751 checkEmailAddress(o[1]); 751 checkEmailAddress(o[1]);
752 } 752 }
753 753
754 buildUnnamed1309() { 754 buildUnnamed1304() {
755 var o = new core.List<api.Event>(); 755 var o = new core.List<api.Event>();
756 o.add(buildEvent()); 756 o.add(buildEvent());
757 o.add(buildEvent()); 757 o.add(buildEvent());
758 return o; 758 return o;
759 } 759 }
760 760
761 checkUnnamed1309(core.List<api.Event> o) { 761 checkUnnamed1304(core.List<api.Event> o) {
762 unittest.expect(o, unittest.hasLength(2)); 762 unittest.expect(o, unittest.hasLength(2));
763 checkEvent(o[0]); 763 checkEvent(o[0]);
764 checkEvent(o[1]); 764 checkEvent(o[1]);
765 } 765 }
766 766
767 buildUnnamed1310() { 767 buildUnnamed1305() {
768 var o = new core.List<api.Gender>(); 768 var o = new core.List<api.Gender>();
769 o.add(buildGender()); 769 o.add(buildGender());
770 o.add(buildGender()); 770 o.add(buildGender());
771 return o; 771 return o;
772 } 772 }
773 773
774 checkUnnamed1310(core.List<api.Gender> o) { 774 checkUnnamed1305(core.List<api.Gender> o) {
775 unittest.expect(o, unittest.hasLength(2)); 775 unittest.expect(o, unittest.hasLength(2));
776 checkGender(o[0]); 776 checkGender(o[0]);
777 checkGender(o[1]); 777 checkGender(o[1]);
778 } 778 }
779 779
780 buildUnnamed1311() { 780 buildUnnamed1306() {
781 var o = new core.List<api.ImClient>(); 781 var o = new core.List<api.ImClient>();
782 o.add(buildImClient()); 782 o.add(buildImClient());
783 o.add(buildImClient()); 783 o.add(buildImClient());
784 return o; 784 return o;
785 } 785 }
786 786
787 checkUnnamed1311(core.List<api.ImClient> o) { 787 checkUnnamed1306(core.List<api.ImClient> o) {
788 unittest.expect(o, unittest.hasLength(2)); 788 unittest.expect(o, unittest.hasLength(2));
789 checkImClient(o[0]); 789 checkImClient(o[0]);
790 checkImClient(o[1]); 790 checkImClient(o[1]);
791 } 791 }
792 792
793 buildUnnamed1312() { 793 buildUnnamed1307() {
794 var o = new core.List<api.Interest>(); 794 var o = new core.List<api.Interest>();
795 o.add(buildInterest()); 795 o.add(buildInterest());
796 o.add(buildInterest()); 796 o.add(buildInterest());
797 return o; 797 return o;
798 } 798 }
799 799
800 checkUnnamed1312(core.List<api.Interest> o) { 800 checkUnnamed1307(core.List<api.Interest> o) {
801 unittest.expect(o, unittest.hasLength(2)); 801 unittest.expect(o, unittest.hasLength(2));
802 checkInterest(o[0]); 802 checkInterest(o[0]);
803 checkInterest(o[1]); 803 checkInterest(o[1]);
804 } 804 }
805 805
806 buildUnnamed1313() { 806 buildUnnamed1308() {
807 var o = new core.List<api.Locale>(); 807 var o = new core.List<api.Locale>();
808 o.add(buildLocale()); 808 o.add(buildLocale());
809 o.add(buildLocale()); 809 o.add(buildLocale());
810 return o; 810 return o;
811 } 811 }
812 812
813 checkUnnamed1313(core.List<api.Locale> o) { 813 checkUnnamed1308(core.List<api.Locale> o) {
814 unittest.expect(o, unittest.hasLength(2)); 814 unittest.expect(o, unittest.hasLength(2));
815 checkLocale(o[0]); 815 checkLocale(o[0]);
816 checkLocale(o[1]); 816 checkLocale(o[1]);
817 } 817 }
818 818
819 buildUnnamed1314() { 819 buildUnnamed1309() {
820 var o = new core.List<api.Membership>(); 820 var o = new core.List<api.Membership>();
821 o.add(buildMembership()); 821 o.add(buildMembership());
822 o.add(buildMembership()); 822 o.add(buildMembership());
823 return o; 823 return o;
824 } 824 }
825 825
826 checkUnnamed1314(core.List<api.Membership> o) { 826 checkUnnamed1309(core.List<api.Membership> o) {
827 unittest.expect(o, unittest.hasLength(2)); 827 unittest.expect(o, unittest.hasLength(2));
828 checkMembership(o[0]); 828 checkMembership(o[0]);
829 checkMembership(o[1]); 829 checkMembership(o[1]);
830 } 830 }
831 831
832 buildUnnamed1315() { 832 buildUnnamed1310() {
833 var o = new core.List<api.Name>(); 833 var o = new core.List<api.Name>();
834 o.add(buildName()); 834 o.add(buildName());
835 o.add(buildName()); 835 o.add(buildName());
836 return o; 836 return o;
837 } 837 }
838 838
839 checkUnnamed1315(core.List<api.Name> o) { 839 checkUnnamed1310(core.List<api.Name> o) {
840 unittest.expect(o, unittest.hasLength(2)); 840 unittest.expect(o, unittest.hasLength(2));
841 checkName(o[0]); 841 checkName(o[0]);
842 checkName(o[1]); 842 checkName(o[1]);
843 } 843 }
844 844
845 buildUnnamed1316() { 845 buildUnnamed1311() {
846 var o = new core.List<api.Nickname>(); 846 var o = new core.List<api.Nickname>();
847 o.add(buildNickname()); 847 o.add(buildNickname());
848 o.add(buildNickname()); 848 o.add(buildNickname());
849 return o; 849 return o;
850 } 850 }
851 851
852 checkUnnamed1316(core.List<api.Nickname> o) { 852 checkUnnamed1311(core.List<api.Nickname> o) {
853 unittest.expect(o, unittest.hasLength(2)); 853 unittest.expect(o, unittest.hasLength(2));
854 checkNickname(o[0]); 854 checkNickname(o[0]);
855 checkNickname(o[1]); 855 checkNickname(o[1]);
856 } 856 }
857 857
858 buildUnnamed1317() { 858 buildUnnamed1312() {
859 var o = new core.List<api.Occupation>(); 859 var o = new core.List<api.Occupation>();
860 o.add(buildOccupation()); 860 o.add(buildOccupation());
861 o.add(buildOccupation()); 861 o.add(buildOccupation());
862 return o; 862 return o;
863 } 863 }
864 864
865 checkUnnamed1317(core.List<api.Occupation> o) { 865 checkUnnamed1312(core.List<api.Occupation> o) {
866 unittest.expect(o, unittest.hasLength(2)); 866 unittest.expect(o, unittest.hasLength(2));
867 checkOccupation(o[0]); 867 checkOccupation(o[0]);
868 checkOccupation(o[1]); 868 checkOccupation(o[1]);
869 } 869 }
870 870
871 buildUnnamed1318() { 871 buildUnnamed1313() {
872 var o = new core.List<api.Organization>(); 872 var o = new core.List<api.Organization>();
873 o.add(buildOrganization()); 873 o.add(buildOrganization());
874 o.add(buildOrganization()); 874 o.add(buildOrganization());
875 return o; 875 return o;
876 } 876 }
877 877
878 checkUnnamed1318(core.List<api.Organization> o) { 878 checkUnnamed1313(core.List<api.Organization> o) {
879 unittest.expect(o, unittest.hasLength(2)); 879 unittest.expect(o, unittest.hasLength(2));
880 checkOrganization(o[0]); 880 checkOrganization(o[0]);
881 checkOrganization(o[1]); 881 checkOrganization(o[1]);
882 } 882 }
883 883
884 buildUnnamed1319() { 884 buildUnnamed1314() {
885 var o = new core.List<api.PhoneNumber>(); 885 var o = new core.List<api.PhoneNumber>();
886 o.add(buildPhoneNumber()); 886 o.add(buildPhoneNumber());
887 o.add(buildPhoneNumber()); 887 o.add(buildPhoneNumber());
888 return o; 888 return o;
889 } 889 }
890 890
891 checkUnnamed1319(core.List<api.PhoneNumber> o) { 891 checkUnnamed1314(core.List<api.PhoneNumber> o) {
892 unittest.expect(o, unittest.hasLength(2)); 892 unittest.expect(o, unittest.hasLength(2));
893 checkPhoneNumber(o[0]); 893 checkPhoneNumber(o[0]);
894 checkPhoneNumber(o[1]); 894 checkPhoneNumber(o[1]);
895 } 895 }
896 896
897 buildUnnamed1320() { 897 buildUnnamed1315() {
898 var o = new core.List<api.Photo>(); 898 var o = new core.List<api.Photo>();
899 o.add(buildPhoto()); 899 o.add(buildPhoto());
900 o.add(buildPhoto()); 900 o.add(buildPhoto());
901 return o; 901 return o;
902 } 902 }
903 903
904 checkUnnamed1320(core.List<api.Photo> o) { 904 checkUnnamed1315(core.List<api.Photo> o) {
905 unittest.expect(o, unittest.hasLength(2)); 905 unittest.expect(o, unittest.hasLength(2));
906 checkPhoto(o[0]); 906 checkPhoto(o[0]);
907 checkPhoto(o[1]); 907 checkPhoto(o[1]);
908 } 908 }
909 909
910 buildUnnamed1321() { 910 buildUnnamed1316() {
911 var o = new core.List<api.Relation>(); 911 var o = new core.List<api.Relation>();
912 o.add(buildRelation()); 912 o.add(buildRelation());
913 o.add(buildRelation()); 913 o.add(buildRelation());
914 return o; 914 return o;
915 } 915 }
916 916
917 checkUnnamed1321(core.List<api.Relation> o) { 917 checkUnnamed1316(core.List<api.Relation> o) {
918 unittest.expect(o, unittest.hasLength(2)); 918 unittest.expect(o, unittest.hasLength(2));
919 checkRelation(o[0]); 919 checkRelation(o[0]);
920 checkRelation(o[1]); 920 checkRelation(o[1]);
921 } 921 }
922 922
923 buildUnnamed1322() { 923 buildUnnamed1317() {
924 var o = new core.List<api.RelationshipInterest>(); 924 var o = new core.List<api.RelationshipInterest>();
925 o.add(buildRelationshipInterest()); 925 o.add(buildRelationshipInterest());
926 o.add(buildRelationshipInterest()); 926 o.add(buildRelationshipInterest());
927 return o; 927 return o;
928 } 928 }
929 929
930 checkUnnamed1322(core.List<api.RelationshipInterest> o) { 930 checkUnnamed1317(core.List<api.RelationshipInterest> o) {
931 unittest.expect(o, unittest.hasLength(2)); 931 unittest.expect(o, unittest.hasLength(2));
932 checkRelationshipInterest(o[0]); 932 checkRelationshipInterest(o[0]);
933 checkRelationshipInterest(o[1]); 933 checkRelationshipInterest(o[1]);
934 } 934 }
935 935
936 buildUnnamed1323() { 936 buildUnnamed1318() {
937 var o = new core.List<api.RelationshipStatus>(); 937 var o = new core.List<api.RelationshipStatus>();
938 o.add(buildRelationshipStatus()); 938 o.add(buildRelationshipStatus());
939 o.add(buildRelationshipStatus()); 939 o.add(buildRelationshipStatus());
940 return o; 940 return o;
941 } 941 }
942 942
943 checkUnnamed1323(core.List<api.RelationshipStatus> o) { 943 checkUnnamed1318(core.List<api.RelationshipStatus> o) {
944 unittest.expect(o, unittest.hasLength(2)); 944 unittest.expect(o, unittest.hasLength(2));
945 checkRelationshipStatus(o[0]); 945 checkRelationshipStatus(o[0]);
946 checkRelationshipStatus(o[1]); 946 checkRelationshipStatus(o[1]);
947 } 947 }
948 948
949 buildUnnamed1324() { 949 buildUnnamed1319() {
950 var o = new core.List<api.Residence>(); 950 var o = new core.List<api.Residence>();
951 o.add(buildResidence()); 951 o.add(buildResidence());
952 o.add(buildResidence()); 952 o.add(buildResidence());
953 return o; 953 return o;
954 } 954 }
955 955
956 checkUnnamed1324(core.List<api.Residence> o) { 956 checkUnnamed1319(core.List<api.Residence> o) {
957 unittest.expect(o, unittest.hasLength(2)); 957 unittest.expect(o, unittest.hasLength(2));
958 checkResidence(o[0]); 958 checkResidence(o[0]);
959 checkResidence(o[1]); 959 checkResidence(o[1]);
960 } 960 }
961 961
962 buildUnnamed1325() { 962 buildUnnamed1320() {
963 var o = new core.List<api.Skill>(); 963 var o = new core.List<api.Skill>();
964 o.add(buildSkill()); 964 o.add(buildSkill());
965 o.add(buildSkill()); 965 o.add(buildSkill());
966 return o; 966 return o;
967 } 967 }
968 968
969 checkUnnamed1325(core.List<api.Skill> o) { 969 checkUnnamed1320(core.List<api.Skill> o) {
970 unittest.expect(o, unittest.hasLength(2)); 970 unittest.expect(o, unittest.hasLength(2));
971 checkSkill(o[0]); 971 checkSkill(o[0]);
972 checkSkill(o[1]); 972 checkSkill(o[1]);
973 } 973 }
974 974
975 buildUnnamed1326() { 975 buildUnnamed1321() {
976 var o = new core.List<api.Tagline>(); 976 var o = new core.List<api.Tagline>();
977 o.add(buildTagline()); 977 o.add(buildTagline());
978 o.add(buildTagline()); 978 o.add(buildTagline());
979 return o; 979 return o;
980 } 980 }
981 981
982 checkUnnamed1326(core.List<api.Tagline> o) { 982 checkUnnamed1321(core.List<api.Tagline> o) {
983 unittest.expect(o, unittest.hasLength(2)); 983 unittest.expect(o, unittest.hasLength(2));
984 checkTagline(o[0]); 984 checkTagline(o[0]);
985 checkTagline(o[1]); 985 checkTagline(o[1]);
986 } 986 }
987 987
988 buildUnnamed1327() { 988 buildUnnamed1322() {
989 var o = new core.List<api.Url>(); 989 var o = new core.List<api.Url>();
990 o.add(buildUrl()); 990 o.add(buildUrl());
991 o.add(buildUrl()); 991 o.add(buildUrl());
992 return o; 992 return o;
993 } 993 }
994 994
995 checkUnnamed1327(core.List<api.Url> o) { 995 checkUnnamed1322(core.List<api.Url> o) {
996 unittest.expect(o, unittest.hasLength(2)); 996 unittest.expect(o, unittest.hasLength(2));
997 checkUrl(o[0]); 997 checkUrl(o[0]);
998 checkUrl(o[1]); 998 checkUrl(o[1]);
999 } 999 }
1000 1000
1001 core.int buildCounterPerson = 0; 1001 core.int buildCounterPerson = 0;
1002 buildPerson() { 1002 buildPerson() {
1003 var o = new api.Person(); 1003 var o = new api.Person();
1004 buildCounterPerson++; 1004 buildCounterPerson++;
1005 if (buildCounterPerson < 3) { 1005 if (buildCounterPerson < 3) {
1006 o.addresses = buildUnnamed1302(); 1006 o.addresses = buildUnnamed1297();
1007 o.ageRange = "foo"; 1007 o.ageRange = "foo";
1008 o.ageRanges = buildUnnamed1303(); 1008 o.ageRanges = buildUnnamed1298();
1009 o.biographies = buildUnnamed1304(); 1009 o.biographies = buildUnnamed1299();
1010 o.birthdays = buildUnnamed1305(); 1010 o.birthdays = buildUnnamed1300();
1011 o.braggingRights = buildUnnamed1306(); 1011 o.braggingRights = buildUnnamed1301();
1012 o.coverPhotos = buildUnnamed1307(); 1012 o.coverPhotos = buildUnnamed1302();
1013 o.emailAddresses = buildUnnamed1308(); 1013 o.emailAddresses = buildUnnamed1303();
1014 o.etag = "foo"; 1014 o.etag = "foo";
1015 o.events = buildUnnamed1309(); 1015 o.events = buildUnnamed1304();
1016 o.genders = buildUnnamed1310(); 1016 o.genders = buildUnnamed1305();
1017 o.imClients = buildUnnamed1311(); 1017 o.imClients = buildUnnamed1306();
1018 o.interests = buildUnnamed1312(); 1018 o.interests = buildUnnamed1307();
1019 o.locales = buildUnnamed1313(); 1019 o.locales = buildUnnamed1308();
1020 o.memberships = buildUnnamed1314(); 1020 o.memberships = buildUnnamed1309();
1021 o.metadata = buildPersonMetadata(); 1021 o.metadata = buildPersonMetadata();
1022 o.names = buildUnnamed1315(); 1022 o.names = buildUnnamed1310();
1023 o.nicknames = buildUnnamed1316(); 1023 o.nicknames = buildUnnamed1311();
1024 o.occupations = buildUnnamed1317(); 1024 o.occupations = buildUnnamed1312();
1025 o.organizations = buildUnnamed1318(); 1025 o.organizations = buildUnnamed1313();
1026 o.phoneNumbers = buildUnnamed1319(); 1026 o.phoneNumbers = buildUnnamed1314();
1027 o.photos = buildUnnamed1320(); 1027 o.photos = buildUnnamed1315();
1028 o.relations = buildUnnamed1321(); 1028 o.relations = buildUnnamed1316();
1029 o.relationshipInterests = buildUnnamed1322(); 1029 o.relationshipInterests = buildUnnamed1317();
1030 o.relationshipStatuses = buildUnnamed1323(); 1030 o.relationshipStatuses = buildUnnamed1318();
1031 o.residences = buildUnnamed1324(); 1031 o.residences = buildUnnamed1319();
1032 o.resourceName = "foo"; 1032 o.resourceName = "foo";
1033 o.skills = buildUnnamed1325(); 1033 o.skills = buildUnnamed1320();
1034 o.taglines = buildUnnamed1326(); 1034 o.taglines = buildUnnamed1321();
1035 o.urls = buildUnnamed1327(); 1035 o.urls = buildUnnamed1322();
1036 } 1036 }
1037 buildCounterPerson--; 1037 buildCounterPerson--;
1038 return o; 1038 return o;
1039 } 1039 }
1040 1040
1041 checkPerson(api.Person o) { 1041 checkPerson(api.Person o) {
1042 buildCounterPerson++; 1042 buildCounterPerson++;
1043 if (buildCounterPerson < 3) { 1043 if (buildCounterPerson < 3) {
1044 checkUnnamed1302(o.addresses); 1044 checkUnnamed1297(o.addresses);
1045 unittest.expect(o.ageRange, unittest.equals('foo')); 1045 unittest.expect(o.ageRange, unittest.equals('foo'));
1046 checkUnnamed1303(o.ageRanges); 1046 checkUnnamed1298(o.ageRanges);
1047 checkUnnamed1304(o.biographies); 1047 checkUnnamed1299(o.biographies);
1048 checkUnnamed1305(o.birthdays); 1048 checkUnnamed1300(o.birthdays);
1049 checkUnnamed1306(o.braggingRights); 1049 checkUnnamed1301(o.braggingRights);
1050 checkUnnamed1307(o.coverPhotos); 1050 checkUnnamed1302(o.coverPhotos);
1051 checkUnnamed1308(o.emailAddresses); 1051 checkUnnamed1303(o.emailAddresses);
1052 unittest.expect(o.etag, unittest.equals('foo')); 1052 unittest.expect(o.etag, unittest.equals('foo'));
1053 checkUnnamed1309(o.events); 1053 checkUnnamed1304(o.events);
1054 checkUnnamed1310(o.genders); 1054 checkUnnamed1305(o.genders);
1055 checkUnnamed1311(o.imClients); 1055 checkUnnamed1306(o.imClients);
1056 checkUnnamed1312(o.interests); 1056 checkUnnamed1307(o.interests);
1057 checkUnnamed1313(o.locales); 1057 checkUnnamed1308(o.locales);
1058 checkUnnamed1314(o.memberships); 1058 checkUnnamed1309(o.memberships);
1059 checkPersonMetadata(o.metadata); 1059 checkPersonMetadata(o.metadata);
1060 checkUnnamed1315(o.names); 1060 checkUnnamed1310(o.names);
1061 checkUnnamed1316(o.nicknames); 1061 checkUnnamed1311(o.nicknames);
1062 checkUnnamed1317(o.occupations); 1062 checkUnnamed1312(o.occupations);
1063 checkUnnamed1318(o.organizations); 1063 checkUnnamed1313(o.organizations);
1064 checkUnnamed1319(o.phoneNumbers); 1064 checkUnnamed1314(o.phoneNumbers);
1065 checkUnnamed1320(o.photos); 1065 checkUnnamed1315(o.photos);
1066 checkUnnamed1321(o.relations); 1066 checkUnnamed1316(o.relations);
1067 checkUnnamed1322(o.relationshipInterests); 1067 checkUnnamed1317(o.relationshipInterests);
1068 checkUnnamed1323(o.relationshipStatuses); 1068 checkUnnamed1318(o.relationshipStatuses);
1069 checkUnnamed1324(o.residences); 1069 checkUnnamed1319(o.residences);
1070 unittest.expect(o.resourceName, unittest.equals('foo')); 1070 unittest.expect(o.resourceName, unittest.equals('foo'));
1071 checkUnnamed1325(o.skills); 1071 checkUnnamed1320(o.skills);
1072 checkUnnamed1326(o.taglines); 1072 checkUnnamed1321(o.taglines);
1073 checkUnnamed1327(o.urls); 1073 checkUnnamed1322(o.urls);
1074 } 1074 }
1075 buildCounterPerson--; 1075 buildCounterPerson--;
1076 } 1076 }
1077 1077
1078 buildUnnamed1328() { 1078 buildUnnamed1323() {
1079 var o = new core.List<core.String>(); 1079 var o = new core.List<core.String>();
1080 o.add("foo"); 1080 o.add("foo");
1081 o.add("foo"); 1081 o.add("foo");
1082 return o; 1082 return o;
1083 } 1083 }
1084 1084
1085 checkUnnamed1328(core.List<core.String> o) { 1085 checkUnnamed1323(core.List<core.String> o) {
1086 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1087 unittest.expect(o[0], unittest.equals('foo')); 1087 unittest.expect(o[0], unittest.equals('foo'));
1088 unittest.expect(o[1], unittest.equals('foo')); 1088 unittest.expect(o[1], unittest.equals('foo'));
1089 } 1089 }
1090 1090
1091 buildUnnamed1329() { 1091 buildUnnamed1324() {
1092 var o = new core.List<core.String>(); 1092 var o = new core.List<core.String>();
1093 o.add("foo"); 1093 o.add("foo");
1094 o.add("foo"); 1094 o.add("foo");
1095 return o; 1095 return o;
1096 } 1096 }
1097 1097
1098 checkUnnamed1329(core.List<core.String> o) { 1098 checkUnnamed1324(core.List<core.String> o) {
1099 unittest.expect(o, unittest.hasLength(2)); 1099 unittest.expect(o, unittest.hasLength(2));
1100 unittest.expect(o[0], unittest.equals('foo')); 1100 unittest.expect(o[0], unittest.equals('foo'));
1101 unittest.expect(o[1], unittest.equals('foo')); 1101 unittest.expect(o[1], unittest.equals('foo'));
1102 } 1102 }
1103 1103
1104 buildUnnamed1330() { 1104 buildUnnamed1325() {
1105 var o = new core.List<api.Source>(); 1105 var o = new core.List<api.Source>();
1106 o.add(buildSource()); 1106 o.add(buildSource());
1107 o.add(buildSource()); 1107 o.add(buildSource());
1108 return o; 1108 return o;
1109 } 1109 }
1110 1110
1111 checkUnnamed1330(core.List<api.Source> o) { 1111 checkUnnamed1325(core.List<api.Source> o) {
1112 unittest.expect(o, unittest.hasLength(2)); 1112 unittest.expect(o, unittest.hasLength(2));
1113 checkSource(o[0]); 1113 checkSource(o[0]);
1114 checkSource(o[1]); 1114 checkSource(o[1]);
1115 } 1115 }
1116 1116
1117 core.int buildCounterPersonMetadata = 0; 1117 core.int buildCounterPersonMetadata = 0;
1118 buildPersonMetadata() { 1118 buildPersonMetadata() {
1119 var o = new api.PersonMetadata(); 1119 var o = new api.PersonMetadata();
1120 buildCounterPersonMetadata++; 1120 buildCounterPersonMetadata++;
1121 if (buildCounterPersonMetadata < 3) { 1121 if (buildCounterPersonMetadata < 3) {
1122 o.deleted = true; 1122 o.deleted = true;
1123 o.linkedPeopleResourceNames = buildUnnamed1328(); 1123 o.linkedPeopleResourceNames = buildUnnamed1323();
1124 o.objectType = "foo"; 1124 o.objectType = "foo";
1125 o.previousResourceNames = buildUnnamed1329(); 1125 o.previousResourceNames = buildUnnamed1324();
1126 o.sources = buildUnnamed1330(); 1126 o.sources = buildUnnamed1325();
1127 } 1127 }
1128 buildCounterPersonMetadata--; 1128 buildCounterPersonMetadata--;
1129 return o; 1129 return o;
1130 } 1130 }
1131 1131
1132 checkPersonMetadata(api.PersonMetadata o) { 1132 checkPersonMetadata(api.PersonMetadata o) {
1133 buildCounterPersonMetadata++; 1133 buildCounterPersonMetadata++;
1134 if (buildCounterPersonMetadata < 3) { 1134 if (buildCounterPersonMetadata < 3) {
1135 unittest.expect(o.deleted, unittest.isTrue); 1135 unittest.expect(o.deleted, unittest.isTrue);
1136 checkUnnamed1328(o.linkedPeopleResourceNames); 1136 checkUnnamed1323(o.linkedPeopleResourceNames);
1137 unittest.expect(o.objectType, unittest.equals('foo')); 1137 unittest.expect(o.objectType, unittest.equals('foo'));
1138 checkUnnamed1329(o.previousResourceNames); 1138 checkUnnamed1324(o.previousResourceNames);
1139 checkUnnamed1330(o.sources); 1139 checkUnnamed1325(o.sources);
1140 } 1140 }
1141 buildCounterPersonMetadata--; 1141 buildCounterPersonMetadata--;
1142 } 1142 }
1143 1143
1144 core.int buildCounterPersonResponse = 0; 1144 core.int buildCounterPersonResponse = 0;
1145 buildPersonResponse() { 1145 buildPersonResponse() {
1146 var o = new api.PersonResponse(); 1146 var o = new api.PersonResponse();
1147 buildCounterPersonResponse++; 1147 buildCounterPersonResponse++;
1148 if (buildCounterPersonResponse < 3) { 1148 if (buildCounterPersonResponse < 3) {
1149 o.httpStatusCode = 42; 1149 o.httpStatusCode = 42;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 buildCounterUrl++; 1410 buildCounterUrl++;
1411 if (buildCounterUrl < 3) { 1411 if (buildCounterUrl < 3) {
1412 unittest.expect(o.formattedType, unittest.equals('foo')); 1412 unittest.expect(o.formattedType, unittest.equals('foo'));
1413 checkFieldMetadata(o.metadata); 1413 checkFieldMetadata(o.metadata);
1414 unittest.expect(o.type, unittest.equals('foo')); 1414 unittest.expect(o.type, unittest.equals('foo'));
1415 unittest.expect(o.value, unittest.equals('foo')); 1415 unittest.expect(o.value, unittest.equals('foo'));
1416 } 1416 }
1417 buildCounterUrl--; 1417 buildCounterUrl--;
1418 } 1418 }
1419 1419
1420 buildUnnamed1331() { 1420 buildUnnamed1326() {
1421 var o = new core.List<core.String>(); 1421 var o = new core.List<core.String>();
1422 o.add("foo"); 1422 o.add("foo");
1423 o.add("foo"); 1423 o.add("foo");
1424 return o; 1424 return o;
1425 } 1425 }
1426 1426
1427 checkUnnamed1331(core.List<core.String> o) { 1427 checkUnnamed1326(core.List<core.String> o) {
1428 unittest.expect(o, unittest.hasLength(2)); 1428 unittest.expect(o, unittest.hasLength(2));
1429 unittest.expect(o[0], unittest.equals('foo')); 1429 unittest.expect(o[0], unittest.equals('foo'));
1430 unittest.expect(o[1], unittest.equals('foo')); 1430 unittest.expect(o[1], unittest.equals('foo'));
1431 } 1431 }
1432 1432
1433 1433
1434 main() { 1434 main() {
1435 unittest.group("obj-schema-Address", () { 1435 unittest.group("obj-schema-Address", () {
1436 unittest.test("to-json--from-json", () { 1436 unittest.test("to-json--from-json", () {
1437 var o = buildAddress(); 1437 var o = buildAddress();
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) { 1811 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) {
1812 checkPerson(response); 1812 checkPerson(response);
1813 }))); 1813 })));
1814 }); 1814 });
1815 1815
1816 unittest.test("method--getBatchGet", () { 1816 unittest.test("method--getBatchGet", () {
1817 1817
1818 var mock = new HttpServerMock(); 1818 var mock = new HttpServerMock();
1819 api.PeopleResourceApi res = new api.PeopleApi(mock).people; 1819 api.PeopleResourceApi res = new api.PeopleApi(mock).people;
1820 var arg_requestMask_includeField = "foo"; 1820 var arg_requestMask_includeField = "foo";
1821 var arg_resourceNames = buildUnnamed1331(); 1821 var arg_resourceNames = buildUnnamed1326();
1822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1822 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1823 var path = (req.url).path; 1823 var path = (req.url).path;
1824 var pathOffset = 0; 1824 var pathOffset = 0;
1825 var index; 1825 var index;
1826 var subPart; 1826 var subPart;
1827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1828 pathOffset += 1; 1828 pathOffset += 1;
1829 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet")); 1829 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet"));
1830 pathOffset += 18; 1830 pathOffset += 18;
1831 1831
(...skipping 30 matching lines...) Expand all
1862 1862
1863 }); 1863 });
1864 1864
1865 1865
1866 unittest.group("resource-PeopleConnectionsResourceApi", () { 1866 unittest.group("resource-PeopleConnectionsResourceApi", () {
1867 unittest.test("method--list", () { 1867 unittest.test("method--list", () {
1868 1868
1869 var mock = new HttpServerMock(); 1869 var mock = new HttpServerMock();
1870 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn ections; 1870 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn ections;
1871 var arg_resourceName = "foo"; 1871 var arg_resourceName = "foo";
1872 var arg_requestSyncToken = true;
1872 var arg_pageToken = "foo"; 1873 var arg_pageToken = "foo";
1874 var arg_pageSize = 42;
1873 var arg_requestMask_includeField = "foo"; 1875 var arg_requestMask_includeField = "foo";
1874 var arg_pageSize = 42;
1875 var arg_syncToken = "foo"; 1876 var arg_syncToken = "foo";
1876 var arg_sortOrder = "foo"; 1877 var arg_sortOrder = "foo";
1877 var arg_requestSyncToken = true;
1878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1878 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1879 var path = (req.url).path; 1879 var path = (req.url).path;
1880 var pathOffset = 0; 1880 var pathOffset = 0;
1881 var index; 1881 var index;
1882 var subPart; 1882 var subPart;
1883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1884 pathOffset += 1; 1884 pathOffset += 1;
1885 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 1885 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
1886 pathOffset += 3; 1886 pathOffset += 3;
1887 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1887 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1888 1888
1889 var query = (req.url).query; 1889 var query = (req.url).query;
1890 var queryOffset = 0; 1890 var queryOffset = 0;
1891 var queryMap = {}; 1891 var queryMap = {};
1892 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1892 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1893 parseBool(n) { 1893 parseBool(n) {
1894 if (n == "true") return true; 1894 if (n == "true") return true;
1895 if (n == "false") return false; 1895 if (n == "false") return false;
1896 if (n == null) return null; 1896 if (n == null) return null;
1897 throw new core.ArgumentError("Invalid boolean: $n"); 1897 throw new core.ArgumentError("Invalid boolean: $n");
1898 } 1898 }
1899 if (query.length > 0) { 1899 if (query.length > 0) {
1900 for (var part in query.split("&")) { 1900 for (var part in query.split("&")) {
1901 var keyvalue = part.split("="); 1901 var keyvalue = part.split("=");
1902 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1902 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1903 } 1903 }
1904 } 1904 }
1905 unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$ar g_requestSyncToken"));
1905 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1906 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1907 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1906 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField)); 1908 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField));
1907 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1908 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok en)); 1909 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok en));
1909 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 1910 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
1910 unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$ar g_requestSyncToken"));
1911 1911
1912 1912
1913 var h = { 1913 var h = {
1914 "content-type" : "application/json; charset=utf-8", 1914 "content-type" : "application/json; charset=utf-8",
1915 }; 1915 };
1916 var resp = convert.JSON.encode(buildListConnectionsResponse()); 1916 var resp = convert.JSON.encode(buildListConnectionsResponse());
1917 return new async.Future.value(stringResponse(200, h, resp)); 1917 return new async.Future.value(stringResponse(200, h, resp));
1918 }), true); 1918 }), true);
1919 res.list(arg_resourceName, pageToken: arg_pageToken, requestMask_includeFi eld: arg_requestMask_includeField, pageSize: arg_pageSize, syncToken: arg_syncTo ken, sortOrder: arg_sortOrder, requestSyncToken: arg_requestSyncToken).then(unit test.expectAsync(((api.ListConnectionsResponse response) { 1919 res.list(arg_resourceName, requestSyncToken: arg_requestSyncToken, pageTok en: arg_pageToken, pageSize: arg_pageSize, requestMask_includeField: arg_request Mask_includeField, syncToken: arg_syncToken, sortOrder: arg_sortOrder).then(unit test.expectAsync(((api.ListConnectionsResponse response) {
1920 checkListConnectionsResponse(response); 1920 checkListConnectionsResponse(response);
1921 }))); 1921 })));
1922 }); 1922 });
1923 1923
1924 }); 1924 });
1925 1925
1926 1926
1927 } 1927 }
1928 1928
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