OLD | NEW |
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 Loading... |
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 buildUnnamed2554() { | 340 buildUnnamed1305() { |
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 checkUnnamed2554(core.List<api.PersonResponse> o) { | 347 checkUnnamed1305(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 = buildUnnamed2554(); | 358 o.responses = buildUnnamed1305(); |
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 checkUnnamed2554(o.responses); | 367 checkUnnamed1305(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 Loading... |
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 buildUnnamed2555() { | 422 buildUnnamed1306() { |
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 checkUnnamed2555(core.List<api.Person> o) { | 429 checkUnnamed1306(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 = buildUnnamed2555(); | 440 o.connections = buildUnnamed1306(); |
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 checkUnnamed2555(o.connections); | 451 checkUnnamed1306(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 Loading... |
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 buildUnnamed2556() { | 632 buildUnnamed1307() { |
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 checkUnnamed2556(core.List<api.Address> o) { | 639 checkUnnamed1307(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 buildUnnamed2557() { | 645 buildUnnamed1308() { |
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 checkUnnamed2557(core.List<api.Biography> o) { | 652 checkUnnamed1308(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 buildUnnamed2558() { | 658 buildUnnamed1309() { |
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 checkUnnamed2558(core.List<api.Birthday> o) { | 665 checkUnnamed1309(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 buildUnnamed2559() { | 671 buildUnnamed1310() { |
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 checkUnnamed2559(core.List<api.BraggingRights> o) { | 678 checkUnnamed1310(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 buildUnnamed2560() { | 684 buildUnnamed1311() { |
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 checkUnnamed2560(core.List<api.CoverPhoto> o) { | 691 checkUnnamed1311(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 buildUnnamed2561() { | 697 buildUnnamed1312() { |
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 checkUnnamed2561(core.List<api.EmailAddress> o) { | 704 checkUnnamed1312(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 buildUnnamed2562() { | 710 buildUnnamed1313() { |
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 checkUnnamed2562(core.List<api.Event> o) { | 717 checkUnnamed1313(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 buildUnnamed2563() { | 723 buildUnnamed1314() { |
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 checkUnnamed2563(core.List<api.Gender> o) { | 730 checkUnnamed1314(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 buildUnnamed2564() { | 736 buildUnnamed1315() { |
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 checkUnnamed2564(core.List<api.ImClient> o) { | 743 checkUnnamed1315(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 buildUnnamed2565() { | 749 buildUnnamed1316() { |
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 checkUnnamed2565(core.List<api.Interest> o) { | 756 checkUnnamed1316(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 buildUnnamed2566() { | 762 buildUnnamed1317() { |
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 checkUnnamed2566(core.List<api.Locale> o) { | 769 checkUnnamed1317(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 buildUnnamed2567() { | 775 buildUnnamed1318() { |
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 checkUnnamed2567(core.List<api.Membership> o) { | 782 checkUnnamed1318(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 buildUnnamed2568() { | 788 buildUnnamed1319() { |
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 checkUnnamed2568(core.List<api.Name> o) { | 795 checkUnnamed1319(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 buildUnnamed2569() { | 801 buildUnnamed1320() { |
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 checkUnnamed2569(core.List<api.Nickname> o) { | 808 checkUnnamed1320(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 buildUnnamed2570() { | 814 buildUnnamed1321() { |
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 checkUnnamed2570(core.List<api.Occupation> o) { | 821 checkUnnamed1321(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 buildUnnamed2571() { | 827 buildUnnamed1322() { |
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 checkUnnamed2571(core.List<api.Organization> o) { | 834 checkUnnamed1322(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 buildUnnamed2572() { | 840 buildUnnamed1323() { |
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 checkUnnamed2572(core.List<api.PhoneNumber> o) { | 847 checkUnnamed1323(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 buildUnnamed2573() { | 853 buildUnnamed1324() { |
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 checkUnnamed2573(core.List<api.Photo> o) { | 860 checkUnnamed1324(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 buildUnnamed2574() { | 866 buildUnnamed1325() { |
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 checkUnnamed2574(core.List<api.Relation> o) { | 873 checkUnnamed1325(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 buildUnnamed2575() { | 879 buildUnnamed1326() { |
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 checkUnnamed2575(core.List<api.RelationshipInterest> o) { | 886 checkUnnamed1326(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 buildUnnamed2576() { | 892 buildUnnamed1327() { |
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 checkUnnamed2576(core.List<api.RelationshipStatus> o) { | 899 checkUnnamed1327(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 buildUnnamed2577() { | 905 buildUnnamed1328() { |
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 checkUnnamed2577(core.List<api.Residence> o) { | 912 checkUnnamed1328(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 buildUnnamed2578() { | 918 buildUnnamed1329() { |
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 checkUnnamed2578(core.List<api.Skill> o) { | 925 checkUnnamed1329(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 buildUnnamed2579() { | 931 buildUnnamed1330() { |
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 checkUnnamed2579(core.List<api.Tagline> o) { | 938 checkUnnamed1330(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 buildUnnamed2580() { | 944 buildUnnamed1331() { |
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 checkUnnamed2580(core.List<api.Url> o) { | 951 checkUnnamed1331(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 = buildUnnamed2556(); | 962 o.addresses = buildUnnamed1307(); |
963 o.ageRange = "foo"; | 963 o.ageRange = "foo"; |
964 o.biographies = buildUnnamed2557(); | 964 o.biographies = buildUnnamed1308(); |
965 o.birthdays = buildUnnamed2558(); | 965 o.birthdays = buildUnnamed1309(); |
966 o.braggingRights = buildUnnamed2559(); | 966 o.braggingRights = buildUnnamed1310(); |
967 o.coverPhotos = buildUnnamed2560(); | 967 o.coverPhotos = buildUnnamed1311(); |
968 o.emailAddresses = buildUnnamed2561(); | 968 o.emailAddresses = buildUnnamed1312(); |
969 o.etag = "foo"; | 969 o.etag = "foo"; |
970 o.events = buildUnnamed2562(); | 970 o.events = buildUnnamed1313(); |
971 o.genders = buildUnnamed2563(); | 971 o.genders = buildUnnamed1314(); |
972 o.imClients = buildUnnamed2564(); | 972 o.imClients = buildUnnamed1315(); |
973 o.interests = buildUnnamed2565(); | 973 o.interests = buildUnnamed1316(); |
974 o.locales = buildUnnamed2566(); | 974 o.locales = buildUnnamed1317(); |
975 o.memberships = buildUnnamed2567(); | 975 o.memberships = buildUnnamed1318(); |
976 o.metadata = buildPersonMetadata(); | 976 o.metadata = buildPersonMetadata(); |
977 o.names = buildUnnamed2568(); | 977 o.names = buildUnnamed1319(); |
978 o.nicknames = buildUnnamed2569(); | 978 o.nicknames = buildUnnamed1320(); |
979 o.occupations = buildUnnamed2570(); | 979 o.occupations = buildUnnamed1321(); |
980 o.organizations = buildUnnamed2571(); | 980 o.organizations = buildUnnamed1322(); |
981 o.phoneNumbers = buildUnnamed2572(); | 981 o.phoneNumbers = buildUnnamed1323(); |
982 o.photos = buildUnnamed2573(); | 982 o.photos = buildUnnamed1324(); |
983 o.relations = buildUnnamed2574(); | 983 o.relations = buildUnnamed1325(); |
984 o.relationshipInterests = buildUnnamed2575(); | 984 o.relationshipInterests = buildUnnamed1326(); |
985 o.relationshipStatuses = buildUnnamed2576(); | 985 o.relationshipStatuses = buildUnnamed1327(); |
986 o.residences = buildUnnamed2577(); | 986 o.residences = buildUnnamed1328(); |
987 o.resourceName = "foo"; | 987 o.resourceName = "foo"; |
988 o.skills = buildUnnamed2578(); | 988 o.skills = buildUnnamed1329(); |
989 o.taglines = buildUnnamed2579(); | 989 o.taglines = buildUnnamed1330(); |
990 o.urls = buildUnnamed2580(); | 990 o.urls = buildUnnamed1331(); |
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 checkUnnamed2556(o.addresses); | 999 checkUnnamed1307(o.addresses); |
1000 unittest.expect(o.ageRange, unittest.equals('foo')); | 1000 unittest.expect(o.ageRange, unittest.equals('foo')); |
1001 checkUnnamed2557(o.biographies); | 1001 checkUnnamed1308(o.biographies); |
1002 checkUnnamed2558(o.birthdays); | 1002 checkUnnamed1309(o.birthdays); |
1003 checkUnnamed2559(o.braggingRights); | 1003 checkUnnamed1310(o.braggingRights); |
1004 checkUnnamed2560(o.coverPhotos); | 1004 checkUnnamed1311(o.coverPhotos); |
1005 checkUnnamed2561(o.emailAddresses); | 1005 checkUnnamed1312(o.emailAddresses); |
1006 unittest.expect(o.etag, unittest.equals('foo')); | 1006 unittest.expect(o.etag, unittest.equals('foo')); |
1007 checkUnnamed2562(o.events); | 1007 checkUnnamed1313(o.events); |
1008 checkUnnamed2563(o.genders); | 1008 checkUnnamed1314(o.genders); |
1009 checkUnnamed2564(o.imClients); | 1009 checkUnnamed1315(o.imClients); |
1010 checkUnnamed2565(o.interests); | 1010 checkUnnamed1316(o.interests); |
1011 checkUnnamed2566(o.locales); | 1011 checkUnnamed1317(o.locales); |
1012 checkUnnamed2567(o.memberships); | 1012 checkUnnamed1318(o.memberships); |
1013 checkPersonMetadata(o.metadata); | 1013 checkPersonMetadata(o.metadata); |
1014 checkUnnamed2568(o.names); | 1014 checkUnnamed1319(o.names); |
1015 checkUnnamed2569(o.nicknames); | 1015 checkUnnamed1320(o.nicknames); |
1016 checkUnnamed2570(o.occupations); | 1016 checkUnnamed1321(o.occupations); |
1017 checkUnnamed2571(o.organizations); | 1017 checkUnnamed1322(o.organizations); |
1018 checkUnnamed2572(o.phoneNumbers); | 1018 checkUnnamed1323(o.phoneNumbers); |
1019 checkUnnamed2573(o.photos); | 1019 checkUnnamed1324(o.photos); |
1020 checkUnnamed2574(o.relations); | 1020 checkUnnamed1325(o.relations); |
1021 checkUnnamed2575(o.relationshipInterests); | 1021 checkUnnamed1326(o.relationshipInterests); |
1022 checkUnnamed2576(o.relationshipStatuses); | 1022 checkUnnamed1327(o.relationshipStatuses); |
1023 checkUnnamed2577(o.residences); | 1023 checkUnnamed1328(o.residences); |
1024 unittest.expect(o.resourceName, unittest.equals('foo')); | 1024 unittest.expect(o.resourceName, unittest.equals('foo')); |
1025 checkUnnamed2578(o.skills); | 1025 checkUnnamed1329(o.skills); |
1026 checkUnnamed2579(o.taglines); | 1026 checkUnnamed1330(o.taglines); |
1027 checkUnnamed2580(o.urls); | 1027 checkUnnamed1331(o.urls); |
1028 } | 1028 } |
1029 buildCounterPerson--; | 1029 buildCounterPerson--; |
1030 } | 1030 } |
1031 | 1031 |
1032 buildUnnamed2581() { | 1032 buildUnnamed1332() { |
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 checkUnnamed2581(core.List<core.String> o) { | 1039 checkUnnamed1332(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 buildUnnamed2582() { | 1045 buildUnnamed1333() { |
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 checkUnnamed2582(core.List<api.Source> o) { | 1052 checkUnnamed1333(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 = buildUnnamed2581(); | 1065 o.previousResourceNames = buildUnnamed1332(); |
1066 o.sources = buildUnnamed2582(); | 1066 o.sources = buildUnnamed1333(); |
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 checkUnnamed2581(o.previousResourceNames); | 1077 checkUnnamed1332(o.previousResourceNames); |
1078 checkUnnamed2582(o.sources); | 1078 checkUnnamed1333(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 Loading... |
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 buildUnnamed2583() { | 1336 buildUnnamed1334() { |
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 checkUnnamed2583(core.List<core.String> o) { | 1343 checkUnnamed1334(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 Loading... |
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 = buildUnnamed2583(); | 1718 var arg_resourceNames = buildUnnamed1334(); |
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 Loading... |
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 |
OLD | NEW |