| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 checkFieldMetadata(o.metadata); | 85 checkFieldMetadata(o.metadata); |
| 86 unittest.expect(o.poBox, unittest.equals('foo')); | 86 unittest.expect(o.poBox, unittest.equals('foo')); |
| 87 unittest.expect(o.postalCode, unittest.equals('foo')); | 87 unittest.expect(o.postalCode, unittest.equals('foo')); |
| 88 unittest.expect(o.region, unittest.equals('foo')); | 88 unittest.expect(o.region, unittest.equals('foo')); |
| 89 unittest.expect(o.streetAddress, unittest.equals('foo')); | 89 unittest.expect(o.streetAddress, unittest.equals('foo')); |
| 90 unittest.expect(o.type, unittest.equals('foo')); | 90 unittest.expect(o.type, unittest.equals('foo')); |
| 91 } | 91 } |
| 92 buildCounterAddress--; | 92 buildCounterAddress--; |
| 93 } | 93 } |
| 94 | 94 |
| 95 core.int buildCounterAgeRangeType = 0; |
| 96 buildAgeRangeType() { |
| 97 var o = new api.AgeRangeType(); |
| 98 buildCounterAgeRangeType++; |
| 99 if (buildCounterAgeRangeType < 3) { |
| 100 o.ageRange = "foo"; |
| 101 o.metadata = buildFieldMetadata(); |
| 102 } |
| 103 buildCounterAgeRangeType--; |
| 104 return o; |
| 105 } |
| 106 |
| 107 checkAgeRangeType(api.AgeRangeType o) { |
| 108 buildCounterAgeRangeType++; |
| 109 if (buildCounterAgeRangeType < 3) { |
| 110 unittest.expect(o.ageRange, unittest.equals('foo')); |
| 111 checkFieldMetadata(o.metadata); |
| 112 } |
| 113 buildCounterAgeRangeType--; |
| 114 } |
| 115 |
| 95 core.int buildCounterBiography = 0; | 116 core.int buildCounterBiography = 0; |
| 96 buildBiography() { | 117 buildBiography() { |
| 97 var o = new api.Biography(); | 118 var o = new api.Biography(); |
| 98 buildCounterBiography++; | 119 buildCounterBiography++; |
| 99 if (buildCounterBiography < 3) { | 120 if (buildCounterBiography < 3) { |
| 100 o.contentType = "foo"; | 121 o.contentType = "foo"; |
| 101 o.metadata = buildFieldMetadata(); | 122 o.metadata = buildFieldMetadata(); |
| 102 o.value = "foo"; | 123 o.value = "foo"; |
| 103 } | 124 } |
| 104 buildCounterBiography--; | 125 buildCounterBiography--; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 checkGender(api.Gender o) { | 355 checkGender(api.Gender o) { |
| 335 buildCounterGender++; | 356 buildCounterGender++; |
| 336 if (buildCounterGender < 3) { | 357 if (buildCounterGender < 3) { |
| 337 unittest.expect(o.formattedValue, unittest.equals('foo')); | 358 unittest.expect(o.formattedValue, unittest.equals('foo')); |
| 338 checkFieldMetadata(o.metadata); | 359 checkFieldMetadata(o.metadata); |
| 339 unittest.expect(o.value, unittest.equals('foo')); | 360 unittest.expect(o.value, unittest.equals('foo')); |
| 340 } | 361 } |
| 341 buildCounterGender--; | 362 buildCounterGender--; |
| 342 } | 363 } |
| 343 | 364 |
| 344 buildUnnamed1215() { | 365 buildUnnamed1247() { |
| 345 var o = new core.List<api.PersonResponse>(); | 366 var o = new core.List<api.PersonResponse>(); |
| 346 o.add(buildPersonResponse()); | 367 o.add(buildPersonResponse()); |
| 347 o.add(buildPersonResponse()); | 368 o.add(buildPersonResponse()); |
| 348 return o; | 369 return o; |
| 349 } | 370 } |
| 350 | 371 |
| 351 checkUnnamed1215(core.List<api.PersonResponse> o) { | 372 checkUnnamed1247(core.List<api.PersonResponse> o) { |
| 352 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
| 353 checkPersonResponse(o[0]); | 374 checkPersonResponse(o[0]); |
| 354 checkPersonResponse(o[1]); | 375 checkPersonResponse(o[1]); |
| 355 } | 376 } |
| 356 | 377 |
| 357 core.int buildCounterGetPeopleResponse = 0; | 378 core.int buildCounterGetPeopleResponse = 0; |
| 358 buildGetPeopleResponse() { | 379 buildGetPeopleResponse() { |
| 359 var o = new api.GetPeopleResponse(); | 380 var o = new api.GetPeopleResponse(); |
| 360 buildCounterGetPeopleResponse++; | 381 buildCounterGetPeopleResponse++; |
| 361 if (buildCounterGetPeopleResponse < 3) { | 382 if (buildCounterGetPeopleResponse < 3) { |
| 362 o.responses = buildUnnamed1215(); | 383 o.responses = buildUnnamed1247(); |
| 363 } | 384 } |
| 364 buildCounterGetPeopleResponse--; | 385 buildCounterGetPeopleResponse--; |
| 365 return o; | 386 return o; |
| 366 } | 387 } |
| 367 | 388 |
| 368 checkGetPeopleResponse(api.GetPeopleResponse o) { | 389 checkGetPeopleResponse(api.GetPeopleResponse o) { |
| 369 buildCounterGetPeopleResponse++; | 390 buildCounterGetPeopleResponse++; |
| 370 if (buildCounterGetPeopleResponse < 3) { | 391 if (buildCounterGetPeopleResponse < 3) { |
| 371 checkUnnamed1215(o.responses); | 392 checkUnnamed1247(o.responses); |
| 372 } | 393 } |
| 373 buildCounterGetPeopleResponse--; | 394 buildCounterGetPeopleResponse--; |
| 374 } | 395 } |
| 375 | 396 |
| 376 core.int buildCounterImClient = 0; | 397 core.int buildCounterImClient = 0; |
| 377 buildImClient() { | 398 buildImClient() { |
| 378 var o = new api.ImClient(); | 399 var o = new api.ImClient(); |
| 379 buildCounterImClient++; | 400 buildCounterImClient++; |
| 380 if (buildCounterImClient < 3) { | 401 if (buildCounterImClient < 3) { |
| 381 o.formattedProtocol = "foo"; | 402 o.formattedProtocol = "foo"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 437 |
| 417 checkInterest(api.Interest o) { | 438 checkInterest(api.Interest o) { |
| 418 buildCounterInterest++; | 439 buildCounterInterest++; |
| 419 if (buildCounterInterest < 3) { | 440 if (buildCounterInterest < 3) { |
| 420 checkFieldMetadata(o.metadata); | 441 checkFieldMetadata(o.metadata); |
| 421 unittest.expect(o.value, unittest.equals('foo')); | 442 unittest.expect(o.value, unittest.equals('foo')); |
| 422 } | 443 } |
| 423 buildCounterInterest--; | 444 buildCounterInterest--; |
| 424 } | 445 } |
| 425 | 446 |
| 426 buildUnnamed1216() { | 447 buildUnnamed1248() { |
| 427 var o = new core.List<api.Person>(); | 448 var o = new core.List<api.Person>(); |
| 428 o.add(buildPerson()); | 449 o.add(buildPerson()); |
| 429 o.add(buildPerson()); | 450 o.add(buildPerson()); |
| 430 return o; | 451 return o; |
| 431 } | 452 } |
| 432 | 453 |
| 433 checkUnnamed1216(core.List<api.Person> o) { | 454 checkUnnamed1248(core.List<api.Person> o) { |
| 434 unittest.expect(o, unittest.hasLength(2)); | 455 unittest.expect(o, unittest.hasLength(2)); |
| 435 checkPerson(o[0]); | 456 checkPerson(o[0]); |
| 436 checkPerson(o[1]); | 457 checkPerson(o[1]); |
| 437 } | 458 } |
| 438 | 459 |
| 439 core.int buildCounterListConnectionsResponse = 0; | 460 core.int buildCounterListConnectionsResponse = 0; |
| 440 buildListConnectionsResponse() { | 461 buildListConnectionsResponse() { |
| 441 var o = new api.ListConnectionsResponse(); | 462 var o = new api.ListConnectionsResponse(); |
| 442 buildCounterListConnectionsResponse++; | 463 buildCounterListConnectionsResponse++; |
| 443 if (buildCounterListConnectionsResponse < 3) { | 464 if (buildCounterListConnectionsResponse < 3) { |
| 444 o.connections = buildUnnamed1216(); | 465 o.connections = buildUnnamed1248(); |
| 445 o.nextPageToken = "foo"; | 466 o.nextPageToken = "foo"; |
| 446 o.nextSyncToken = "foo"; | 467 o.nextSyncToken = "foo"; |
| 447 } | 468 } |
| 448 buildCounterListConnectionsResponse--; | 469 buildCounterListConnectionsResponse--; |
| 449 return o; | 470 return o; |
| 450 } | 471 } |
| 451 | 472 |
| 452 checkListConnectionsResponse(api.ListConnectionsResponse o) { | 473 checkListConnectionsResponse(api.ListConnectionsResponse o) { |
| 453 buildCounterListConnectionsResponse++; | 474 buildCounterListConnectionsResponse++; |
| 454 if (buildCounterListConnectionsResponse < 3) { | 475 if (buildCounterListConnectionsResponse < 3) { |
| 455 checkUnnamed1216(o.connections); | 476 checkUnnamed1248(o.connections); |
| 456 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 477 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 457 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 478 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
| 458 } | 479 } |
| 459 buildCounterListConnectionsResponse--; | 480 buildCounterListConnectionsResponse--; |
| 460 } | 481 } |
| 461 | 482 |
| 462 core.int buildCounterLocale = 0; | 483 core.int buildCounterLocale = 0; |
| 463 buildLocale() { | 484 buildLocale() { |
| 464 var o = new api.Locale(); | 485 var o = new api.Locale(); |
| 465 buildCounterLocale++; | 486 buildCounterLocale++; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 unittest.expect(o.name, unittest.equals('foo')); | 651 unittest.expect(o.name, unittest.equals('foo')); |
| 631 unittest.expect(o.phoneticName, unittest.equals('foo')); | 652 unittest.expect(o.phoneticName, unittest.equals('foo')); |
| 632 checkDate(o.startDate); | 653 checkDate(o.startDate); |
| 633 unittest.expect(o.symbol, unittest.equals('foo')); | 654 unittest.expect(o.symbol, unittest.equals('foo')); |
| 634 unittest.expect(o.title, unittest.equals('foo')); | 655 unittest.expect(o.title, unittest.equals('foo')); |
| 635 unittest.expect(o.type, unittest.equals('foo')); | 656 unittest.expect(o.type, unittest.equals('foo')); |
| 636 } | 657 } |
| 637 buildCounterOrganization--; | 658 buildCounterOrganization--; |
| 638 } | 659 } |
| 639 | 660 |
| 640 buildUnnamed1217() { | 661 buildUnnamed1249() { |
| 641 var o = new core.List<api.Address>(); | 662 var o = new core.List<api.Address>(); |
| 642 o.add(buildAddress()); | 663 o.add(buildAddress()); |
| 643 o.add(buildAddress()); | 664 o.add(buildAddress()); |
| 644 return o; | 665 return o; |
| 645 } | 666 } |
| 646 | 667 |
| 647 checkUnnamed1217(core.List<api.Address> o) { | 668 checkUnnamed1249(core.List<api.Address> o) { |
| 648 unittest.expect(o, unittest.hasLength(2)); | 669 unittest.expect(o, unittest.hasLength(2)); |
| 649 checkAddress(o[0]); | 670 checkAddress(o[0]); |
| 650 checkAddress(o[1]); | 671 checkAddress(o[1]); |
| 651 } | 672 } |
| 652 | 673 |
| 653 buildUnnamed1218() { | 674 buildUnnamed1250() { |
| 675 var o = new core.List<api.AgeRangeType>(); |
| 676 o.add(buildAgeRangeType()); |
| 677 o.add(buildAgeRangeType()); |
| 678 return o; |
| 679 } |
| 680 |
| 681 checkUnnamed1250(core.List<api.AgeRangeType> o) { |
| 682 unittest.expect(o, unittest.hasLength(2)); |
| 683 checkAgeRangeType(o[0]); |
| 684 checkAgeRangeType(o[1]); |
| 685 } |
| 686 |
| 687 buildUnnamed1251() { |
| 654 var o = new core.List<api.Biography>(); | 688 var o = new core.List<api.Biography>(); |
| 655 o.add(buildBiography()); | 689 o.add(buildBiography()); |
| 656 o.add(buildBiography()); | 690 o.add(buildBiography()); |
| 657 return o; | 691 return o; |
| 658 } | 692 } |
| 659 | 693 |
| 660 checkUnnamed1218(core.List<api.Biography> o) { | 694 checkUnnamed1251(core.List<api.Biography> o) { |
| 661 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
| 662 checkBiography(o[0]); | 696 checkBiography(o[0]); |
| 663 checkBiography(o[1]); | 697 checkBiography(o[1]); |
| 664 } | 698 } |
| 665 | 699 |
| 666 buildUnnamed1219() { | 700 buildUnnamed1252() { |
| 667 var o = new core.List<api.Birthday>(); | 701 var o = new core.List<api.Birthday>(); |
| 668 o.add(buildBirthday()); | 702 o.add(buildBirthday()); |
| 669 o.add(buildBirthday()); | 703 o.add(buildBirthday()); |
| 670 return o; | 704 return o; |
| 671 } | 705 } |
| 672 | 706 |
| 673 checkUnnamed1219(core.List<api.Birthday> o) { | 707 checkUnnamed1252(core.List<api.Birthday> o) { |
| 674 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
| 675 checkBirthday(o[0]); | 709 checkBirthday(o[0]); |
| 676 checkBirthday(o[1]); | 710 checkBirthday(o[1]); |
| 677 } | 711 } |
| 678 | 712 |
| 679 buildUnnamed1220() { | 713 buildUnnamed1253() { |
| 680 var o = new core.List<api.BraggingRights>(); | 714 var o = new core.List<api.BraggingRights>(); |
| 681 o.add(buildBraggingRights()); | 715 o.add(buildBraggingRights()); |
| 682 o.add(buildBraggingRights()); | 716 o.add(buildBraggingRights()); |
| 683 return o; | 717 return o; |
| 684 } | 718 } |
| 685 | 719 |
| 686 checkUnnamed1220(core.List<api.BraggingRights> o) { | 720 checkUnnamed1253(core.List<api.BraggingRights> o) { |
| 687 unittest.expect(o, unittest.hasLength(2)); | 721 unittest.expect(o, unittest.hasLength(2)); |
| 688 checkBraggingRights(o[0]); | 722 checkBraggingRights(o[0]); |
| 689 checkBraggingRights(o[1]); | 723 checkBraggingRights(o[1]); |
| 690 } | 724 } |
| 691 | 725 |
| 692 buildUnnamed1221() { | 726 buildUnnamed1254() { |
| 693 var o = new core.List<api.CoverPhoto>(); | 727 var o = new core.List<api.CoverPhoto>(); |
| 694 o.add(buildCoverPhoto()); | 728 o.add(buildCoverPhoto()); |
| 695 o.add(buildCoverPhoto()); | 729 o.add(buildCoverPhoto()); |
| 696 return o; | 730 return o; |
| 697 } | 731 } |
| 698 | 732 |
| 699 checkUnnamed1221(core.List<api.CoverPhoto> o) { | 733 checkUnnamed1254(core.List<api.CoverPhoto> o) { |
| 700 unittest.expect(o, unittest.hasLength(2)); | 734 unittest.expect(o, unittest.hasLength(2)); |
| 701 checkCoverPhoto(o[0]); | 735 checkCoverPhoto(o[0]); |
| 702 checkCoverPhoto(o[1]); | 736 checkCoverPhoto(o[1]); |
| 703 } | 737 } |
| 704 | 738 |
| 705 buildUnnamed1222() { | 739 buildUnnamed1255() { |
| 706 var o = new core.List<api.EmailAddress>(); | 740 var o = new core.List<api.EmailAddress>(); |
| 707 o.add(buildEmailAddress()); | 741 o.add(buildEmailAddress()); |
| 708 o.add(buildEmailAddress()); | 742 o.add(buildEmailAddress()); |
| 709 return o; | 743 return o; |
| 710 } | 744 } |
| 711 | 745 |
| 712 checkUnnamed1222(core.List<api.EmailAddress> o) { | 746 checkUnnamed1255(core.List<api.EmailAddress> o) { |
| 713 unittest.expect(o, unittest.hasLength(2)); | 747 unittest.expect(o, unittest.hasLength(2)); |
| 714 checkEmailAddress(o[0]); | 748 checkEmailAddress(o[0]); |
| 715 checkEmailAddress(o[1]); | 749 checkEmailAddress(o[1]); |
| 716 } | 750 } |
| 717 | 751 |
| 718 buildUnnamed1223() { | 752 buildUnnamed1256() { |
| 719 var o = new core.List<api.Event>(); | 753 var o = new core.List<api.Event>(); |
| 720 o.add(buildEvent()); | 754 o.add(buildEvent()); |
| 721 o.add(buildEvent()); | 755 o.add(buildEvent()); |
| 722 return o; | 756 return o; |
| 723 } | 757 } |
| 724 | 758 |
| 725 checkUnnamed1223(core.List<api.Event> o) { | 759 checkUnnamed1256(core.List<api.Event> o) { |
| 726 unittest.expect(o, unittest.hasLength(2)); | 760 unittest.expect(o, unittest.hasLength(2)); |
| 727 checkEvent(o[0]); | 761 checkEvent(o[0]); |
| 728 checkEvent(o[1]); | 762 checkEvent(o[1]); |
| 729 } | 763 } |
| 730 | 764 |
| 731 buildUnnamed1224() { | 765 buildUnnamed1257() { |
| 732 var o = new core.List<api.Gender>(); | 766 var o = new core.List<api.Gender>(); |
| 733 o.add(buildGender()); | 767 o.add(buildGender()); |
| 734 o.add(buildGender()); | 768 o.add(buildGender()); |
| 735 return o; | 769 return o; |
| 736 } | 770 } |
| 737 | 771 |
| 738 checkUnnamed1224(core.List<api.Gender> o) { | 772 checkUnnamed1257(core.List<api.Gender> o) { |
| 739 unittest.expect(o, unittest.hasLength(2)); | 773 unittest.expect(o, unittest.hasLength(2)); |
| 740 checkGender(o[0]); | 774 checkGender(o[0]); |
| 741 checkGender(o[1]); | 775 checkGender(o[1]); |
| 742 } | 776 } |
| 743 | 777 |
| 744 buildUnnamed1225() { | 778 buildUnnamed1258() { |
| 745 var o = new core.List<api.ImClient>(); | 779 var o = new core.List<api.ImClient>(); |
| 746 o.add(buildImClient()); | 780 o.add(buildImClient()); |
| 747 o.add(buildImClient()); | 781 o.add(buildImClient()); |
| 748 return o; | 782 return o; |
| 749 } | 783 } |
| 750 | 784 |
| 751 checkUnnamed1225(core.List<api.ImClient> o) { | 785 checkUnnamed1258(core.List<api.ImClient> o) { |
| 752 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
| 753 checkImClient(o[0]); | 787 checkImClient(o[0]); |
| 754 checkImClient(o[1]); | 788 checkImClient(o[1]); |
| 755 } | 789 } |
| 756 | 790 |
| 757 buildUnnamed1226() { | 791 buildUnnamed1259() { |
| 758 var o = new core.List<api.Interest>(); | 792 var o = new core.List<api.Interest>(); |
| 759 o.add(buildInterest()); | 793 o.add(buildInterest()); |
| 760 o.add(buildInterest()); | 794 o.add(buildInterest()); |
| 761 return o; | 795 return o; |
| 762 } | 796 } |
| 763 | 797 |
| 764 checkUnnamed1226(core.List<api.Interest> o) { | 798 checkUnnamed1259(core.List<api.Interest> o) { |
| 765 unittest.expect(o, unittest.hasLength(2)); | 799 unittest.expect(o, unittest.hasLength(2)); |
| 766 checkInterest(o[0]); | 800 checkInterest(o[0]); |
| 767 checkInterest(o[1]); | 801 checkInterest(o[1]); |
| 768 } | 802 } |
| 769 | 803 |
| 770 buildUnnamed1227() { | 804 buildUnnamed1260() { |
| 771 var o = new core.List<api.Locale>(); | 805 var o = new core.List<api.Locale>(); |
| 772 o.add(buildLocale()); | 806 o.add(buildLocale()); |
| 773 o.add(buildLocale()); | 807 o.add(buildLocale()); |
| 774 return o; | 808 return o; |
| 775 } | 809 } |
| 776 | 810 |
| 777 checkUnnamed1227(core.List<api.Locale> o) { | 811 checkUnnamed1260(core.List<api.Locale> o) { |
| 778 unittest.expect(o, unittest.hasLength(2)); | 812 unittest.expect(o, unittest.hasLength(2)); |
| 779 checkLocale(o[0]); | 813 checkLocale(o[0]); |
| 780 checkLocale(o[1]); | 814 checkLocale(o[1]); |
| 781 } | 815 } |
| 782 | 816 |
| 783 buildUnnamed1228() { | 817 buildUnnamed1261() { |
| 784 var o = new core.List<api.Membership>(); | 818 var o = new core.List<api.Membership>(); |
| 785 o.add(buildMembership()); | 819 o.add(buildMembership()); |
| 786 o.add(buildMembership()); | 820 o.add(buildMembership()); |
| 787 return o; | 821 return o; |
| 788 } | 822 } |
| 789 | 823 |
| 790 checkUnnamed1228(core.List<api.Membership> o) { | 824 checkUnnamed1261(core.List<api.Membership> o) { |
| 791 unittest.expect(o, unittest.hasLength(2)); | 825 unittest.expect(o, unittest.hasLength(2)); |
| 792 checkMembership(o[0]); | 826 checkMembership(o[0]); |
| 793 checkMembership(o[1]); | 827 checkMembership(o[1]); |
| 794 } | 828 } |
| 795 | 829 |
| 796 buildUnnamed1229() { | 830 buildUnnamed1262() { |
| 797 var o = new core.List<api.Name>(); | 831 var o = new core.List<api.Name>(); |
| 798 o.add(buildName()); | 832 o.add(buildName()); |
| 799 o.add(buildName()); | 833 o.add(buildName()); |
| 800 return o; | 834 return o; |
| 801 } | 835 } |
| 802 | 836 |
| 803 checkUnnamed1229(core.List<api.Name> o) { | 837 checkUnnamed1262(core.List<api.Name> o) { |
| 804 unittest.expect(o, unittest.hasLength(2)); | 838 unittest.expect(o, unittest.hasLength(2)); |
| 805 checkName(o[0]); | 839 checkName(o[0]); |
| 806 checkName(o[1]); | 840 checkName(o[1]); |
| 807 } | 841 } |
| 808 | 842 |
| 809 buildUnnamed1230() { | 843 buildUnnamed1263() { |
| 810 var o = new core.List<api.Nickname>(); | 844 var o = new core.List<api.Nickname>(); |
| 811 o.add(buildNickname()); | 845 o.add(buildNickname()); |
| 812 o.add(buildNickname()); | 846 o.add(buildNickname()); |
| 813 return o; | 847 return o; |
| 814 } | 848 } |
| 815 | 849 |
| 816 checkUnnamed1230(core.List<api.Nickname> o) { | 850 checkUnnamed1263(core.List<api.Nickname> o) { |
| 817 unittest.expect(o, unittest.hasLength(2)); | 851 unittest.expect(o, unittest.hasLength(2)); |
| 818 checkNickname(o[0]); | 852 checkNickname(o[0]); |
| 819 checkNickname(o[1]); | 853 checkNickname(o[1]); |
| 820 } | 854 } |
| 821 | 855 |
| 822 buildUnnamed1231() { | 856 buildUnnamed1264() { |
| 823 var o = new core.List<api.Occupation>(); | 857 var o = new core.List<api.Occupation>(); |
| 824 o.add(buildOccupation()); | 858 o.add(buildOccupation()); |
| 825 o.add(buildOccupation()); | 859 o.add(buildOccupation()); |
| 826 return o; | 860 return o; |
| 827 } | 861 } |
| 828 | 862 |
| 829 checkUnnamed1231(core.List<api.Occupation> o) { | 863 checkUnnamed1264(core.List<api.Occupation> o) { |
| 830 unittest.expect(o, unittest.hasLength(2)); | 864 unittest.expect(o, unittest.hasLength(2)); |
| 831 checkOccupation(o[0]); | 865 checkOccupation(o[0]); |
| 832 checkOccupation(o[1]); | 866 checkOccupation(o[1]); |
| 833 } | 867 } |
| 834 | 868 |
| 835 buildUnnamed1232() { | 869 buildUnnamed1265() { |
| 836 var o = new core.List<api.Organization>(); | 870 var o = new core.List<api.Organization>(); |
| 837 o.add(buildOrganization()); | 871 o.add(buildOrganization()); |
| 838 o.add(buildOrganization()); | 872 o.add(buildOrganization()); |
| 839 return o; | 873 return o; |
| 840 } | 874 } |
| 841 | 875 |
| 842 checkUnnamed1232(core.List<api.Organization> o) { | 876 checkUnnamed1265(core.List<api.Organization> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 877 unittest.expect(o, unittest.hasLength(2)); |
| 844 checkOrganization(o[0]); | 878 checkOrganization(o[0]); |
| 845 checkOrganization(o[1]); | 879 checkOrganization(o[1]); |
| 846 } | 880 } |
| 847 | 881 |
| 848 buildUnnamed1233() { | 882 buildUnnamed1266() { |
| 849 var o = new core.List<api.PhoneNumber>(); | 883 var o = new core.List<api.PhoneNumber>(); |
| 850 o.add(buildPhoneNumber()); | 884 o.add(buildPhoneNumber()); |
| 851 o.add(buildPhoneNumber()); | 885 o.add(buildPhoneNumber()); |
| 852 return o; | 886 return o; |
| 853 } | 887 } |
| 854 | 888 |
| 855 checkUnnamed1233(core.List<api.PhoneNumber> o) { | 889 checkUnnamed1266(core.List<api.PhoneNumber> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
| 857 checkPhoneNumber(o[0]); | 891 checkPhoneNumber(o[0]); |
| 858 checkPhoneNumber(o[1]); | 892 checkPhoneNumber(o[1]); |
| 859 } | 893 } |
| 860 | 894 |
| 861 buildUnnamed1234() { | 895 buildUnnamed1267() { |
| 862 var o = new core.List<api.Photo>(); | 896 var o = new core.List<api.Photo>(); |
| 863 o.add(buildPhoto()); | 897 o.add(buildPhoto()); |
| 864 o.add(buildPhoto()); | 898 o.add(buildPhoto()); |
| 865 return o; | 899 return o; |
| 866 } | 900 } |
| 867 | 901 |
| 868 checkUnnamed1234(core.List<api.Photo> o) { | 902 checkUnnamed1267(core.List<api.Photo> o) { |
| 869 unittest.expect(o, unittest.hasLength(2)); | 903 unittest.expect(o, unittest.hasLength(2)); |
| 870 checkPhoto(o[0]); | 904 checkPhoto(o[0]); |
| 871 checkPhoto(o[1]); | 905 checkPhoto(o[1]); |
| 872 } | 906 } |
| 873 | 907 |
| 874 buildUnnamed1235() { | 908 buildUnnamed1268() { |
| 875 var o = new core.List<api.Relation>(); | 909 var o = new core.List<api.Relation>(); |
| 876 o.add(buildRelation()); | 910 o.add(buildRelation()); |
| 877 o.add(buildRelation()); | 911 o.add(buildRelation()); |
| 878 return o; | 912 return o; |
| 879 } | 913 } |
| 880 | 914 |
| 881 checkUnnamed1235(core.List<api.Relation> o) { | 915 checkUnnamed1268(core.List<api.Relation> o) { |
| 882 unittest.expect(o, unittest.hasLength(2)); | 916 unittest.expect(o, unittest.hasLength(2)); |
| 883 checkRelation(o[0]); | 917 checkRelation(o[0]); |
| 884 checkRelation(o[1]); | 918 checkRelation(o[1]); |
| 885 } | 919 } |
| 886 | 920 |
| 887 buildUnnamed1236() { | 921 buildUnnamed1269() { |
| 888 var o = new core.List<api.RelationshipInterest>(); | 922 var o = new core.List<api.RelationshipInterest>(); |
| 889 o.add(buildRelationshipInterest()); | 923 o.add(buildRelationshipInterest()); |
| 890 o.add(buildRelationshipInterest()); | 924 o.add(buildRelationshipInterest()); |
| 891 return o; | 925 return o; |
| 892 } | 926 } |
| 893 | 927 |
| 894 checkUnnamed1236(core.List<api.RelationshipInterest> o) { | 928 checkUnnamed1269(core.List<api.RelationshipInterest> o) { |
| 895 unittest.expect(o, unittest.hasLength(2)); | 929 unittest.expect(o, unittest.hasLength(2)); |
| 896 checkRelationshipInterest(o[0]); | 930 checkRelationshipInterest(o[0]); |
| 897 checkRelationshipInterest(o[1]); | 931 checkRelationshipInterest(o[1]); |
| 898 } | 932 } |
| 899 | 933 |
| 900 buildUnnamed1237() { | 934 buildUnnamed1270() { |
| 901 var o = new core.List<api.RelationshipStatus>(); | 935 var o = new core.List<api.RelationshipStatus>(); |
| 902 o.add(buildRelationshipStatus()); | 936 o.add(buildRelationshipStatus()); |
| 903 o.add(buildRelationshipStatus()); | 937 o.add(buildRelationshipStatus()); |
| 904 return o; | 938 return o; |
| 905 } | 939 } |
| 906 | 940 |
| 907 checkUnnamed1237(core.List<api.RelationshipStatus> o) { | 941 checkUnnamed1270(core.List<api.RelationshipStatus> o) { |
| 908 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
| 909 checkRelationshipStatus(o[0]); | 943 checkRelationshipStatus(o[0]); |
| 910 checkRelationshipStatus(o[1]); | 944 checkRelationshipStatus(o[1]); |
| 911 } | 945 } |
| 912 | 946 |
| 913 buildUnnamed1238() { | 947 buildUnnamed1271() { |
| 914 var o = new core.List<api.Residence>(); | 948 var o = new core.List<api.Residence>(); |
| 915 o.add(buildResidence()); | 949 o.add(buildResidence()); |
| 916 o.add(buildResidence()); | 950 o.add(buildResidence()); |
| 917 return o; | 951 return o; |
| 918 } | 952 } |
| 919 | 953 |
| 920 checkUnnamed1238(core.List<api.Residence> o) { | 954 checkUnnamed1271(core.List<api.Residence> o) { |
| 921 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
| 922 checkResidence(o[0]); | 956 checkResidence(o[0]); |
| 923 checkResidence(o[1]); | 957 checkResidence(o[1]); |
| 924 } | 958 } |
| 925 | 959 |
| 926 buildUnnamed1239() { | 960 buildUnnamed1272() { |
| 927 var o = new core.List<api.Skill>(); | 961 var o = new core.List<api.Skill>(); |
| 928 o.add(buildSkill()); | 962 o.add(buildSkill()); |
| 929 o.add(buildSkill()); | 963 o.add(buildSkill()); |
| 930 return o; | 964 return o; |
| 931 } | 965 } |
| 932 | 966 |
| 933 checkUnnamed1239(core.List<api.Skill> o) { | 967 checkUnnamed1272(core.List<api.Skill> o) { |
| 934 unittest.expect(o, unittest.hasLength(2)); | 968 unittest.expect(o, unittest.hasLength(2)); |
| 935 checkSkill(o[0]); | 969 checkSkill(o[0]); |
| 936 checkSkill(o[1]); | 970 checkSkill(o[1]); |
| 937 } | 971 } |
| 938 | 972 |
| 939 buildUnnamed1240() { | 973 buildUnnamed1273() { |
| 940 var o = new core.List<api.Tagline>(); | 974 var o = new core.List<api.Tagline>(); |
| 941 o.add(buildTagline()); | 975 o.add(buildTagline()); |
| 942 o.add(buildTagline()); | 976 o.add(buildTagline()); |
| 943 return o; | 977 return o; |
| 944 } | 978 } |
| 945 | 979 |
| 946 checkUnnamed1240(core.List<api.Tagline> o) { | 980 checkUnnamed1273(core.List<api.Tagline> o) { |
| 947 unittest.expect(o, unittest.hasLength(2)); | 981 unittest.expect(o, unittest.hasLength(2)); |
| 948 checkTagline(o[0]); | 982 checkTagline(o[0]); |
| 949 checkTagline(o[1]); | 983 checkTagline(o[1]); |
| 950 } | 984 } |
| 951 | 985 |
| 952 buildUnnamed1241() { | 986 buildUnnamed1274() { |
| 953 var o = new core.List<api.Url>(); | 987 var o = new core.List<api.Url>(); |
| 954 o.add(buildUrl()); | 988 o.add(buildUrl()); |
| 955 o.add(buildUrl()); | 989 o.add(buildUrl()); |
| 956 return o; | 990 return o; |
| 957 } | 991 } |
| 958 | 992 |
| 959 checkUnnamed1241(core.List<api.Url> o) { | 993 checkUnnamed1274(core.List<api.Url> o) { |
| 960 unittest.expect(o, unittest.hasLength(2)); | 994 unittest.expect(o, unittest.hasLength(2)); |
| 961 checkUrl(o[0]); | 995 checkUrl(o[0]); |
| 962 checkUrl(o[1]); | 996 checkUrl(o[1]); |
| 963 } | 997 } |
| 964 | 998 |
| 965 core.int buildCounterPerson = 0; | 999 core.int buildCounterPerson = 0; |
| 966 buildPerson() { | 1000 buildPerson() { |
| 967 var o = new api.Person(); | 1001 var o = new api.Person(); |
| 968 buildCounterPerson++; | 1002 buildCounterPerson++; |
| 969 if (buildCounterPerson < 3) { | 1003 if (buildCounterPerson < 3) { |
| 970 o.addresses = buildUnnamed1217(); | 1004 o.addresses = buildUnnamed1249(); |
| 971 o.ageRange = "foo"; | 1005 o.ageRange = "foo"; |
| 972 o.biographies = buildUnnamed1218(); | 1006 o.ageRanges = buildUnnamed1250(); |
| 973 o.birthdays = buildUnnamed1219(); | 1007 o.biographies = buildUnnamed1251(); |
| 974 o.braggingRights = buildUnnamed1220(); | 1008 o.birthdays = buildUnnamed1252(); |
| 975 o.coverPhotos = buildUnnamed1221(); | 1009 o.braggingRights = buildUnnamed1253(); |
| 976 o.emailAddresses = buildUnnamed1222(); | 1010 o.coverPhotos = buildUnnamed1254(); |
| 1011 o.emailAddresses = buildUnnamed1255(); |
| 977 o.etag = "foo"; | 1012 o.etag = "foo"; |
| 978 o.events = buildUnnamed1223(); | 1013 o.events = buildUnnamed1256(); |
| 979 o.genders = buildUnnamed1224(); | 1014 o.genders = buildUnnamed1257(); |
| 980 o.imClients = buildUnnamed1225(); | 1015 o.imClients = buildUnnamed1258(); |
| 981 o.interests = buildUnnamed1226(); | 1016 o.interests = buildUnnamed1259(); |
| 982 o.locales = buildUnnamed1227(); | 1017 o.locales = buildUnnamed1260(); |
| 983 o.memberships = buildUnnamed1228(); | 1018 o.memberships = buildUnnamed1261(); |
| 984 o.metadata = buildPersonMetadata(); | 1019 o.metadata = buildPersonMetadata(); |
| 985 o.names = buildUnnamed1229(); | 1020 o.names = buildUnnamed1262(); |
| 986 o.nicknames = buildUnnamed1230(); | 1021 o.nicknames = buildUnnamed1263(); |
| 987 o.occupations = buildUnnamed1231(); | 1022 o.occupations = buildUnnamed1264(); |
| 988 o.organizations = buildUnnamed1232(); | 1023 o.organizations = buildUnnamed1265(); |
| 989 o.phoneNumbers = buildUnnamed1233(); | 1024 o.phoneNumbers = buildUnnamed1266(); |
| 990 o.photos = buildUnnamed1234(); | 1025 o.photos = buildUnnamed1267(); |
| 991 o.relations = buildUnnamed1235(); | 1026 o.relations = buildUnnamed1268(); |
| 992 o.relationshipInterests = buildUnnamed1236(); | 1027 o.relationshipInterests = buildUnnamed1269(); |
| 993 o.relationshipStatuses = buildUnnamed1237(); | 1028 o.relationshipStatuses = buildUnnamed1270(); |
| 994 o.residences = buildUnnamed1238(); | 1029 o.residences = buildUnnamed1271(); |
| 995 o.resourceName = "foo"; | 1030 o.resourceName = "foo"; |
| 996 o.skills = buildUnnamed1239(); | 1031 o.skills = buildUnnamed1272(); |
| 997 o.taglines = buildUnnamed1240(); | 1032 o.taglines = buildUnnamed1273(); |
| 998 o.urls = buildUnnamed1241(); | 1033 o.urls = buildUnnamed1274(); |
| 999 } | 1034 } |
| 1000 buildCounterPerson--; | 1035 buildCounterPerson--; |
| 1001 return o; | 1036 return o; |
| 1002 } | 1037 } |
| 1003 | 1038 |
| 1004 checkPerson(api.Person o) { | 1039 checkPerson(api.Person o) { |
| 1005 buildCounterPerson++; | 1040 buildCounterPerson++; |
| 1006 if (buildCounterPerson < 3) { | 1041 if (buildCounterPerson < 3) { |
| 1007 checkUnnamed1217(o.addresses); | 1042 checkUnnamed1249(o.addresses); |
| 1008 unittest.expect(o.ageRange, unittest.equals('foo')); | 1043 unittest.expect(o.ageRange, unittest.equals('foo')); |
| 1009 checkUnnamed1218(o.biographies); | 1044 checkUnnamed1250(o.ageRanges); |
| 1010 checkUnnamed1219(o.birthdays); | 1045 checkUnnamed1251(o.biographies); |
| 1011 checkUnnamed1220(o.braggingRights); | 1046 checkUnnamed1252(o.birthdays); |
| 1012 checkUnnamed1221(o.coverPhotos); | 1047 checkUnnamed1253(o.braggingRights); |
| 1013 checkUnnamed1222(o.emailAddresses); | 1048 checkUnnamed1254(o.coverPhotos); |
| 1049 checkUnnamed1255(o.emailAddresses); |
| 1014 unittest.expect(o.etag, unittest.equals('foo')); | 1050 unittest.expect(o.etag, unittest.equals('foo')); |
| 1015 checkUnnamed1223(o.events); | 1051 checkUnnamed1256(o.events); |
| 1016 checkUnnamed1224(o.genders); | 1052 checkUnnamed1257(o.genders); |
| 1017 checkUnnamed1225(o.imClients); | 1053 checkUnnamed1258(o.imClients); |
| 1018 checkUnnamed1226(o.interests); | 1054 checkUnnamed1259(o.interests); |
| 1019 checkUnnamed1227(o.locales); | 1055 checkUnnamed1260(o.locales); |
| 1020 checkUnnamed1228(o.memberships); | 1056 checkUnnamed1261(o.memberships); |
| 1021 checkPersonMetadata(o.metadata); | 1057 checkPersonMetadata(o.metadata); |
| 1022 checkUnnamed1229(o.names); | 1058 checkUnnamed1262(o.names); |
| 1023 checkUnnamed1230(o.nicknames); | 1059 checkUnnamed1263(o.nicknames); |
| 1024 checkUnnamed1231(o.occupations); | 1060 checkUnnamed1264(o.occupations); |
| 1025 checkUnnamed1232(o.organizations); | 1061 checkUnnamed1265(o.organizations); |
| 1026 checkUnnamed1233(o.phoneNumbers); | 1062 checkUnnamed1266(o.phoneNumbers); |
| 1027 checkUnnamed1234(o.photos); | 1063 checkUnnamed1267(o.photos); |
| 1028 checkUnnamed1235(o.relations); | 1064 checkUnnamed1268(o.relations); |
| 1029 checkUnnamed1236(o.relationshipInterests); | 1065 checkUnnamed1269(o.relationshipInterests); |
| 1030 checkUnnamed1237(o.relationshipStatuses); | 1066 checkUnnamed1270(o.relationshipStatuses); |
| 1031 checkUnnamed1238(o.residences); | 1067 checkUnnamed1271(o.residences); |
| 1032 unittest.expect(o.resourceName, unittest.equals('foo')); | 1068 unittest.expect(o.resourceName, unittest.equals('foo')); |
| 1033 checkUnnamed1239(o.skills); | 1069 checkUnnamed1272(o.skills); |
| 1034 checkUnnamed1240(o.taglines); | 1070 checkUnnamed1273(o.taglines); |
| 1035 checkUnnamed1241(o.urls); | 1071 checkUnnamed1274(o.urls); |
| 1036 } | 1072 } |
| 1037 buildCounterPerson--; | 1073 buildCounterPerson--; |
| 1038 } | 1074 } |
| 1039 | 1075 |
| 1040 buildUnnamed1242() { | 1076 buildUnnamed1275() { |
| 1041 var o = new core.List<core.String>(); | 1077 var o = new core.List<core.String>(); |
| 1042 o.add("foo"); | 1078 o.add("foo"); |
| 1043 o.add("foo"); | 1079 o.add("foo"); |
| 1044 return o; | 1080 return o; |
| 1045 } | 1081 } |
| 1046 | 1082 |
| 1047 checkUnnamed1242(core.List<core.String> o) { | 1083 checkUnnamed1275(core.List<core.String> o) { |
| 1048 unittest.expect(o, unittest.hasLength(2)); | 1084 unittest.expect(o, unittest.hasLength(2)); |
| 1049 unittest.expect(o[0], unittest.equals('foo')); | 1085 unittest.expect(o[0], unittest.equals('foo')); |
| 1050 unittest.expect(o[1], unittest.equals('foo')); | 1086 unittest.expect(o[1], unittest.equals('foo')); |
| 1051 } | 1087 } |
| 1052 | 1088 |
| 1053 buildUnnamed1243() { | 1089 buildUnnamed1276() { |
| 1054 var o = new core.List<core.String>(); | 1090 var o = new core.List<core.String>(); |
| 1055 o.add("foo"); | 1091 o.add("foo"); |
| 1056 o.add("foo"); | 1092 o.add("foo"); |
| 1057 return o; | 1093 return o; |
| 1058 } | 1094 } |
| 1059 | 1095 |
| 1060 checkUnnamed1243(core.List<core.String> o) { | 1096 checkUnnamed1276(core.List<core.String> o) { |
| 1061 unittest.expect(o, unittest.hasLength(2)); | 1097 unittest.expect(o, unittest.hasLength(2)); |
| 1062 unittest.expect(o[0], unittest.equals('foo')); | 1098 unittest.expect(o[0], unittest.equals('foo')); |
| 1063 unittest.expect(o[1], unittest.equals('foo')); | 1099 unittest.expect(o[1], unittest.equals('foo')); |
| 1064 } | 1100 } |
| 1065 | 1101 |
| 1066 buildUnnamed1244() { | 1102 buildUnnamed1277() { |
| 1067 var o = new core.List<api.Source>(); | 1103 var o = new core.List<api.Source>(); |
| 1068 o.add(buildSource()); | 1104 o.add(buildSource()); |
| 1069 o.add(buildSource()); | 1105 o.add(buildSource()); |
| 1070 return o; | 1106 return o; |
| 1071 } | 1107 } |
| 1072 | 1108 |
| 1073 checkUnnamed1244(core.List<api.Source> o) { | 1109 checkUnnamed1277(core.List<api.Source> o) { |
| 1074 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
| 1075 checkSource(o[0]); | 1111 checkSource(o[0]); |
| 1076 checkSource(o[1]); | 1112 checkSource(o[1]); |
| 1077 } | 1113 } |
| 1078 | 1114 |
| 1079 core.int buildCounterPersonMetadata = 0; | 1115 core.int buildCounterPersonMetadata = 0; |
| 1080 buildPersonMetadata() { | 1116 buildPersonMetadata() { |
| 1081 var o = new api.PersonMetadata(); | 1117 var o = new api.PersonMetadata(); |
| 1082 buildCounterPersonMetadata++; | 1118 buildCounterPersonMetadata++; |
| 1083 if (buildCounterPersonMetadata < 3) { | 1119 if (buildCounterPersonMetadata < 3) { |
| 1084 o.deleted = true; | 1120 o.deleted = true; |
| 1085 o.linkedPeopleResourceNames = buildUnnamed1242(); | 1121 o.linkedPeopleResourceNames = buildUnnamed1275(); |
| 1086 o.objectType = "foo"; | 1122 o.objectType = "foo"; |
| 1087 o.previousResourceNames = buildUnnamed1243(); | 1123 o.previousResourceNames = buildUnnamed1276(); |
| 1088 o.sources = buildUnnamed1244(); | 1124 o.sources = buildUnnamed1277(); |
| 1089 } | 1125 } |
| 1090 buildCounterPersonMetadata--; | 1126 buildCounterPersonMetadata--; |
| 1091 return o; | 1127 return o; |
| 1092 } | 1128 } |
| 1093 | 1129 |
| 1094 checkPersonMetadata(api.PersonMetadata o) { | 1130 checkPersonMetadata(api.PersonMetadata o) { |
| 1095 buildCounterPersonMetadata++; | 1131 buildCounterPersonMetadata++; |
| 1096 if (buildCounterPersonMetadata < 3) { | 1132 if (buildCounterPersonMetadata < 3) { |
| 1097 unittest.expect(o.deleted, unittest.isTrue); | 1133 unittest.expect(o.deleted, unittest.isTrue); |
| 1098 checkUnnamed1242(o.linkedPeopleResourceNames); | 1134 checkUnnamed1275(o.linkedPeopleResourceNames); |
| 1099 unittest.expect(o.objectType, unittest.equals('foo')); | 1135 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1100 checkUnnamed1243(o.previousResourceNames); | 1136 checkUnnamed1276(o.previousResourceNames); |
| 1101 checkUnnamed1244(o.sources); | 1137 checkUnnamed1277(o.sources); |
| 1102 } | 1138 } |
| 1103 buildCounterPersonMetadata--; | 1139 buildCounterPersonMetadata--; |
| 1104 } | 1140 } |
| 1105 | 1141 |
| 1106 core.int buildCounterPersonResponse = 0; | 1142 core.int buildCounterPersonResponse = 0; |
| 1107 buildPersonResponse() { | 1143 buildPersonResponse() { |
| 1108 var o = new api.PersonResponse(); | 1144 var o = new api.PersonResponse(); |
| 1109 buildCounterPersonResponse++; | 1145 buildCounterPersonResponse++; |
| 1110 if (buildCounterPersonResponse < 3) { | 1146 if (buildCounterPersonResponse < 3) { |
| 1111 o.httpStatusCode = 42; | 1147 o.httpStatusCode = 42; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 | 1203 |
| 1168 checkPhoto(api.Photo o) { | 1204 checkPhoto(api.Photo o) { |
| 1169 buildCounterPhoto++; | 1205 buildCounterPhoto++; |
| 1170 if (buildCounterPhoto < 3) { | 1206 if (buildCounterPhoto < 3) { |
| 1171 checkFieldMetadata(o.metadata); | 1207 checkFieldMetadata(o.metadata); |
| 1172 unittest.expect(o.url, unittest.equals('foo')); | 1208 unittest.expect(o.url, unittest.equals('foo')); |
| 1173 } | 1209 } |
| 1174 buildCounterPhoto--; | 1210 buildCounterPhoto--; |
| 1175 } | 1211 } |
| 1176 | 1212 |
| 1213 core.int buildCounterProfileMetadata = 0; |
| 1214 buildProfileMetadata() { |
| 1215 var o = new api.ProfileMetadata(); |
| 1216 buildCounterProfileMetadata++; |
| 1217 if (buildCounterProfileMetadata < 3) { |
| 1218 o.objectType = "foo"; |
| 1219 } |
| 1220 buildCounterProfileMetadata--; |
| 1221 return o; |
| 1222 } |
| 1223 |
| 1224 checkProfileMetadata(api.ProfileMetadata o) { |
| 1225 buildCounterProfileMetadata++; |
| 1226 if (buildCounterProfileMetadata < 3) { |
| 1227 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1228 } |
| 1229 buildCounterProfileMetadata--; |
| 1230 } |
| 1231 |
| 1177 core.int buildCounterRelation = 0; | 1232 core.int buildCounterRelation = 0; |
| 1178 buildRelation() { | 1233 buildRelation() { |
| 1179 var o = new api.Relation(); | 1234 var o = new api.Relation(); |
| 1180 buildCounterRelation++; | 1235 buildCounterRelation++; |
| 1181 if (buildCounterRelation < 3) { | 1236 if (buildCounterRelation < 3) { |
| 1182 o.formattedType = "foo"; | 1237 o.formattedType = "foo"; |
| 1183 o.metadata = buildFieldMetadata(); | 1238 o.metadata = buildFieldMetadata(); |
| 1184 o.person = "foo"; | 1239 o.person = "foo"; |
| 1185 o.type = "foo"; | 1240 o.type = "foo"; |
| 1186 } | 1241 } |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 buildCounterSkill--; | 1344 buildCounterSkill--; |
| 1290 } | 1345 } |
| 1291 | 1346 |
| 1292 core.int buildCounterSource = 0; | 1347 core.int buildCounterSource = 0; |
| 1293 buildSource() { | 1348 buildSource() { |
| 1294 var o = new api.Source(); | 1349 var o = new api.Source(); |
| 1295 buildCounterSource++; | 1350 buildCounterSource++; |
| 1296 if (buildCounterSource < 3) { | 1351 if (buildCounterSource < 3) { |
| 1297 o.etag = "foo"; | 1352 o.etag = "foo"; |
| 1298 o.id = "foo"; | 1353 o.id = "foo"; |
| 1299 o.resourceName = "foo"; | 1354 o.profileMetadata = buildProfileMetadata(); |
| 1300 o.type = "foo"; | 1355 o.type = "foo"; |
| 1301 } | 1356 } |
| 1302 buildCounterSource--; | 1357 buildCounterSource--; |
| 1303 return o; | 1358 return o; |
| 1304 } | 1359 } |
| 1305 | 1360 |
| 1306 checkSource(api.Source o) { | 1361 checkSource(api.Source o) { |
| 1307 buildCounterSource++; | 1362 buildCounterSource++; |
| 1308 if (buildCounterSource < 3) { | 1363 if (buildCounterSource < 3) { |
| 1309 unittest.expect(o.etag, unittest.equals('foo')); | 1364 unittest.expect(o.etag, unittest.equals('foo')); |
| 1310 unittest.expect(o.id, unittest.equals('foo')); | 1365 unittest.expect(o.id, unittest.equals('foo')); |
| 1311 unittest.expect(o.resourceName, unittest.equals('foo')); | 1366 checkProfileMetadata(o.profileMetadata); |
| 1312 unittest.expect(o.type, unittest.equals('foo')); | 1367 unittest.expect(o.type, unittest.equals('foo')); |
| 1313 } | 1368 } |
| 1314 buildCounterSource--; | 1369 buildCounterSource--; |
| 1315 } | 1370 } |
| 1316 | 1371 |
| 1317 core.int buildCounterTagline = 0; | 1372 core.int buildCounterTagline = 0; |
| 1318 buildTagline() { | 1373 buildTagline() { |
| 1319 var o = new api.Tagline(); | 1374 var o = new api.Tagline(); |
| 1320 buildCounterTagline++; | 1375 buildCounterTagline++; |
| 1321 if (buildCounterTagline < 3) { | 1376 if (buildCounterTagline < 3) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 buildCounterUrl++; | 1408 buildCounterUrl++; |
| 1354 if (buildCounterUrl < 3) { | 1409 if (buildCounterUrl < 3) { |
| 1355 unittest.expect(o.formattedType, unittest.equals('foo')); | 1410 unittest.expect(o.formattedType, unittest.equals('foo')); |
| 1356 checkFieldMetadata(o.metadata); | 1411 checkFieldMetadata(o.metadata); |
| 1357 unittest.expect(o.type, unittest.equals('foo')); | 1412 unittest.expect(o.type, unittest.equals('foo')); |
| 1358 unittest.expect(o.value, unittest.equals('foo')); | 1413 unittest.expect(o.value, unittest.equals('foo')); |
| 1359 } | 1414 } |
| 1360 buildCounterUrl--; | 1415 buildCounterUrl--; |
| 1361 } | 1416 } |
| 1362 | 1417 |
| 1363 buildUnnamed1245() { | 1418 buildUnnamed1278() { |
| 1364 var o = new core.List<core.String>(); | 1419 var o = new core.List<core.String>(); |
| 1365 o.add("foo"); | 1420 o.add("foo"); |
| 1366 o.add("foo"); | 1421 o.add("foo"); |
| 1367 return o; | 1422 return o; |
| 1368 } | 1423 } |
| 1369 | 1424 |
| 1370 checkUnnamed1245(core.List<core.String> o) { | 1425 checkUnnamed1278(core.List<core.String> o) { |
| 1371 unittest.expect(o, unittest.hasLength(2)); | 1426 unittest.expect(o, unittest.hasLength(2)); |
| 1372 unittest.expect(o[0], unittest.equals('foo')); | 1427 unittest.expect(o[0], unittest.equals('foo')); |
| 1373 unittest.expect(o[1], unittest.equals('foo')); | 1428 unittest.expect(o[1], unittest.equals('foo')); |
| 1374 } | 1429 } |
| 1375 | 1430 |
| 1376 | 1431 |
| 1377 main() { | 1432 main() { |
| 1378 unittest.group("obj-schema-Address", () { | 1433 unittest.group("obj-schema-Address", () { |
| 1379 unittest.test("to-json--from-json", () { | 1434 unittest.test("to-json--from-json", () { |
| 1380 var o = buildAddress(); | 1435 var o = buildAddress(); |
| 1381 var od = new api.Address.fromJson(o.toJson()); | 1436 var od = new api.Address.fromJson(o.toJson()); |
| 1382 checkAddress(od); | 1437 checkAddress(od); |
| 1383 }); | 1438 }); |
| 1384 }); | 1439 }); |
| 1385 | 1440 |
| 1386 | 1441 |
| 1442 unittest.group("obj-schema-AgeRangeType", () { |
| 1443 unittest.test("to-json--from-json", () { |
| 1444 var o = buildAgeRangeType(); |
| 1445 var od = new api.AgeRangeType.fromJson(o.toJson()); |
| 1446 checkAgeRangeType(od); |
| 1447 }); |
| 1448 }); |
| 1449 |
| 1450 |
| 1387 unittest.group("obj-schema-Biography", () { | 1451 unittest.group("obj-schema-Biography", () { |
| 1388 unittest.test("to-json--from-json", () { | 1452 unittest.test("to-json--from-json", () { |
| 1389 var o = buildBiography(); | 1453 var o = buildBiography(); |
| 1390 var od = new api.Biography.fromJson(o.toJson()); | 1454 var od = new api.Biography.fromJson(o.toJson()); |
| 1391 checkBiography(od); | 1455 checkBiography(od); |
| 1392 }); | 1456 }); |
| 1393 }); | 1457 }); |
| 1394 | 1458 |
| 1395 | 1459 |
| 1396 unittest.group("obj-schema-Birthday", () { | 1460 unittest.group("obj-schema-Birthday", () { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 | 1675 |
| 1612 unittest.group("obj-schema-Photo", () { | 1676 unittest.group("obj-schema-Photo", () { |
| 1613 unittest.test("to-json--from-json", () { | 1677 unittest.test("to-json--from-json", () { |
| 1614 var o = buildPhoto(); | 1678 var o = buildPhoto(); |
| 1615 var od = new api.Photo.fromJson(o.toJson()); | 1679 var od = new api.Photo.fromJson(o.toJson()); |
| 1616 checkPhoto(od); | 1680 checkPhoto(od); |
| 1617 }); | 1681 }); |
| 1618 }); | 1682 }); |
| 1619 | 1683 |
| 1620 | 1684 |
| 1685 unittest.group("obj-schema-ProfileMetadata", () { |
| 1686 unittest.test("to-json--from-json", () { |
| 1687 var o = buildProfileMetadata(); |
| 1688 var od = new api.ProfileMetadata.fromJson(o.toJson()); |
| 1689 checkProfileMetadata(od); |
| 1690 }); |
| 1691 }); |
| 1692 |
| 1693 |
| 1621 unittest.group("obj-schema-Relation", () { | 1694 unittest.group("obj-schema-Relation", () { |
| 1622 unittest.test("to-json--from-json", () { | 1695 unittest.test("to-json--from-json", () { |
| 1623 var o = buildRelation(); | 1696 var o = buildRelation(); |
| 1624 var od = new api.Relation.fromJson(o.toJson()); | 1697 var od = new api.Relation.fromJson(o.toJson()); |
| 1625 checkRelation(od); | 1698 checkRelation(od); |
| 1626 }); | 1699 }); |
| 1627 }); | 1700 }); |
| 1628 | 1701 |
| 1629 | 1702 |
| 1630 unittest.group("obj-schema-RelationshipInterest", () { | 1703 unittest.group("obj-schema-RelationshipInterest", () { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ
eField).then(unittest.expectAsync(((api.Person response) { | 1809 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ
eField).then(unittest.expectAsync(((api.Person response) { |
| 1737 checkPerson(response); | 1810 checkPerson(response); |
| 1738 }))); | 1811 }))); |
| 1739 }); | 1812 }); |
| 1740 | 1813 |
| 1741 unittest.test("method--getBatchGet", () { | 1814 unittest.test("method--getBatchGet", () { |
| 1742 | 1815 |
| 1743 var mock = new HttpServerMock(); | 1816 var mock = new HttpServerMock(); |
| 1744 api.PeopleResourceApi res = new api.PeopleApi(mock).people; | 1817 api.PeopleResourceApi res = new api.PeopleApi(mock).people; |
| 1745 var arg_requestMask_includeField = "foo"; | 1818 var arg_requestMask_includeField = "foo"; |
| 1746 var arg_resourceNames = buildUnnamed1245(); | 1819 var arg_resourceNames = buildUnnamed1278(); |
| 1747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1820 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1748 var path = (req.url).path; | 1821 var path = (req.url).path; |
| 1749 var pathOffset = 0; | 1822 var pathOffset = 0; |
| 1750 var index; | 1823 var index; |
| 1751 var subPart; | 1824 var subPart; |
| 1752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1825 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1753 pathOffset += 1; | 1826 pathOffset += 1; |
| 1754 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/people:batchGet")); | 1827 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/people:batchGet")); |
| 1755 pathOffset += 18; | 1828 pathOffset += 18; |
| 1756 | 1829 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1781 return new async.Future.value(stringResponse(200, h, resp)); | 1854 return new async.Future.value(stringResponse(200, h, resp)); |
| 1782 }), true); | 1855 }), true); |
| 1783 res.getBatchGet(requestMask_includeField: arg_requestMask_includeField, re
sourceNames: arg_resourceNames).then(unittest.expectAsync(((api.GetPeopleRespons
e response) { | 1856 res.getBatchGet(requestMask_includeField: arg_requestMask_includeField, re
sourceNames: arg_resourceNames).then(unittest.expectAsync(((api.GetPeopleRespons
e response) { |
| 1784 checkGetPeopleResponse(response); | 1857 checkGetPeopleResponse(response); |
| 1785 }))); | 1858 }))); |
| 1786 }); | 1859 }); |
| 1787 | 1860 |
| 1788 }); | 1861 }); |
| 1789 | 1862 |
| 1790 | 1863 |
| 1791 unittest.group("resource-PeopleMeConnectionsResourceApi", () { | 1864 unittest.group("resource-PeopleConnectionsResourceApi", () { |
| 1792 unittest.test("method--list", () { | 1865 unittest.test("method--list", () { |
| 1793 | 1866 |
| 1794 var mock = new HttpServerMock(); | 1867 var mock = new HttpServerMock(); |
| 1795 api.PeopleMeConnectionsResourceApi res = new api.PeopleApi(mock).people.me
.connections; | 1868 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn
ections; |
| 1869 var arg_resourceName = "foo"; |
| 1870 var arg_requestSyncToken = true; |
| 1871 var arg_pageToken = "foo"; |
| 1872 var arg_requestMask_includeField = "foo"; |
| 1873 var arg_pageSize = 42; |
| 1874 var arg_syncToken = "foo"; |
| 1796 var arg_sortOrder = "foo"; | 1875 var arg_sortOrder = "foo"; |
| 1797 var arg_syncToken = "foo"; | |
| 1798 var arg_pageToken = "foo"; | |
| 1799 var arg_pageSize = 42; | |
| 1800 var arg_requestMask_includeField = "foo"; | |
| 1801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1876 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1802 var path = (req.url).path; | 1877 var path = (req.url).path; |
| 1803 var pathOffset = 0; | 1878 var pathOffset = 0; |
| 1804 var index; | 1879 var index; |
| 1805 var subPart; | 1880 var subPart; |
| 1806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1807 pathOffset += 1; | 1882 pathOffset += 1; |
| 1808 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v1/people/me/connections")); | 1883 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1809 pathOffset += 24; | 1884 pathOffset += 3; |
| 1885 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1810 | 1886 |
| 1811 var query = (req.url).query; | 1887 var query = (req.url).query; |
| 1812 var queryOffset = 0; | 1888 var queryOffset = 0; |
| 1813 var queryMap = {}; | 1889 var queryMap = {}; |
| 1814 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1815 parseBool(n) { | 1891 parseBool(n) { |
| 1816 if (n == "true") return true; | 1892 if (n == "true") return true; |
| 1817 if (n == "false") return false; | 1893 if (n == "false") return false; |
| 1818 if (n == null) return null; | 1894 if (n == null) return null; |
| 1819 throw new core.ArgumentError("Invalid boolean: $n"); | 1895 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1820 } | 1896 } |
| 1821 if (query.length > 0) { | 1897 if (query.length > 0) { |
| 1822 for (var part in query.split("&")) { | 1898 for (var part in query.split("&")) { |
| 1823 var keyvalue = part.split("="); | 1899 var keyvalue = part.split("="); |
| 1824 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1900 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1825 } | 1901 } |
| 1826 } | 1902 } |
| 1903 unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$ar
g_requestSyncToken")); |
| 1904 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1905 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ
als(arg_requestMask_includeField)); |
| 1906 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 1907 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok
en)); |
| 1827 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 1908 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 1828 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok
en)); | |
| 1829 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 1830 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 1831 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ
als(arg_requestMask_includeField)); | |
| 1832 | 1909 |
| 1833 | 1910 |
| 1834 var h = { | 1911 var h = { |
| 1835 "content-type" : "application/json; charset=utf-8", | 1912 "content-type" : "application/json; charset=utf-8", |
| 1836 }; | 1913 }; |
| 1837 var resp = convert.JSON.encode(buildListConnectionsResponse()); | 1914 var resp = convert.JSON.encode(buildListConnectionsResponse()); |
| 1838 return new async.Future.value(stringResponse(200, h, resp)); | 1915 return new async.Future.value(stringResponse(200, h, resp)); |
| 1839 }), true); | 1916 }), true); |
| 1840 res.list(sortOrder: arg_sortOrder, syncToken: arg_syncToken, pageToken: ar
g_pageToken, pageSize: arg_pageSize, requestMask_includeField: arg_requestMask_i
ncludeField).then(unittest.expectAsync(((api.ListConnectionsResponse response) { | 1917 res.list(arg_resourceName, requestSyncToken: arg_requestSyncToken, pageTok
en: arg_pageToken, requestMask_includeField: arg_requestMask_includeField, pageS
ize: arg_pageSize, syncToken: arg_syncToken, sortOrder: arg_sortOrder).then(unit
test.expectAsync(((api.ListConnectionsResponse response) { |
| 1841 checkListConnectionsResponse(response); | 1918 checkListConnectionsResponse(response); |
| 1842 }))); | 1919 }))); |
| 1843 }); | 1920 }); |
| 1844 | 1921 |
| 1845 }); | 1922 }); |
| 1846 | 1923 |
| 1847 | 1924 |
| 1848 } | 1925 } |
| 1849 | 1926 |
| OLD | NEW |