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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.people.v1.test; 1 library googleapis.people.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 buildCounterBiography = 0; 95 core.int buildCounterBiography = 0;
96 buildBiography() { 96 buildBiography() {
97 var o = new api.Biography(); 97 var o = new api.Biography();
98 buildCounterBiography++; 98 buildCounterBiography++;
99 if (buildCounterBiography < 3) { 99 if (buildCounterBiography < 3) {
100 o.contentType = "foo";
100 o.metadata = buildFieldMetadata(); 101 o.metadata = buildFieldMetadata();
101 o.value = "foo"; 102 o.value = "foo";
102 } 103 }
103 buildCounterBiography--; 104 buildCounterBiography--;
104 return o; 105 return o;
105 } 106 }
106 107
107 checkBiography(api.Biography o) { 108 checkBiography(api.Biography o) {
108 buildCounterBiography++; 109 buildCounterBiography++;
109 if (buildCounterBiography < 3) { 110 if (buildCounterBiography < 3) {
111 unittest.expect(o.contentType, unittest.equals('foo'));
110 checkFieldMetadata(o.metadata); 112 checkFieldMetadata(o.metadata);
111 unittest.expect(o.value, unittest.equals('foo')); 113 unittest.expect(o.value, unittest.equals('foo'));
112 } 114 }
113 buildCounterBiography--; 115 buildCounterBiography--;
114 } 116 }
115 117
116 core.int buildCounterBirthday = 0; 118 core.int buildCounterBirthday = 0;
117 buildBirthday() { 119 buildBirthday() {
118 var o = new api.Birthday(); 120 var o = new api.Birthday();
119 buildCounterBirthday++; 121 buildCounterBirthday++;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 unittest.expect(o.inViewerDomain, unittest.isTrue); 241 unittest.expect(o.inViewerDomain, unittest.isTrue);
240 } 242 }
241 buildCounterDomainMembership--; 243 buildCounterDomainMembership--;
242 } 244 }
243 245
244 core.int buildCounterEmailAddress = 0; 246 core.int buildCounterEmailAddress = 0;
245 buildEmailAddress() { 247 buildEmailAddress() {
246 var o = new api.EmailAddress(); 248 var o = new api.EmailAddress();
247 buildCounterEmailAddress++; 249 buildCounterEmailAddress++;
248 if (buildCounterEmailAddress < 3) { 250 if (buildCounterEmailAddress < 3) {
251 o.displayName = "foo";
249 o.formattedType = "foo"; 252 o.formattedType = "foo";
250 o.metadata = buildFieldMetadata(); 253 o.metadata = buildFieldMetadata();
251 o.type = "foo"; 254 o.type = "foo";
252 o.value = "foo"; 255 o.value = "foo";
253 } 256 }
254 buildCounterEmailAddress--; 257 buildCounterEmailAddress--;
255 return o; 258 return o;
256 } 259 }
257 260
258 checkEmailAddress(api.EmailAddress o) { 261 checkEmailAddress(api.EmailAddress o) {
259 buildCounterEmailAddress++; 262 buildCounterEmailAddress++;
260 if (buildCounterEmailAddress < 3) { 263 if (buildCounterEmailAddress < 3) {
264 unittest.expect(o.displayName, unittest.equals('foo'));
261 unittest.expect(o.formattedType, unittest.equals('foo')); 265 unittest.expect(o.formattedType, unittest.equals('foo'));
262 checkFieldMetadata(o.metadata); 266 checkFieldMetadata(o.metadata);
263 unittest.expect(o.type, unittest.equals('foo')); 267 unittest.expect(o.type, unittest.equals('foo'));
264 unittest.expect(o.value, unittest.equals('foo')); 268 unittest.expect(o.value, unittest.equals('foo'));
265 } 269 }
266 buildCounterEmailAddress--; 270 buildCounterEmailAddress--;
267 } 271 }
268 272
269 core.int buildCounterEvent = 0; 273 core.int buildCounterEvent = 0;
270 buildEvent() { 274 buildEvent() {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 checkGender(api.Gender o) { 334 checkGender(api.Gender o) {
331 buildCounterGender++; 335 buildCounterGender++;
332 if (buildCounterGender < 3) { 336 if (buildCounterGender < 3) {
333 unittest.expect(o.formattedValue, unittest.equals('foo')); 337 unittest.expect(o.formattedValue, unittest.equals('foo'));
334 checkFieldMetadata(o.metadata); 338 checkFieldMetadata(o.metadata);
335 unittest.expect(o.value, unittest.equals('foo')); 339 unittest.expect(o.value, unittest.equals('foo'));
336 } 340 }
337 buildCounterGender--; 341 buildCounterGender--;
338 } 342 }
339 343
340 buildUnnamed1204() { 344 buildUnnamed1215() {
341 var o = new core.List<api.PersonResponse>(); 345 var o = new core.List<api.PersonResponse>();
342 o.add(buildPersonResponse()); 346 o.add(buildPersonResponse());
343 o.add(buildPersonResponse()); 347 o.add(buildPersonResponse());
344 return o; 348 return o;
345 } 349 }
346 350
347 checkUnnamed1204(core.List<api.PersonResponse> o) { 351 checkUnnamed1215(core.List<api.PersonResponse> o) {
348 unittest.expect(o, unittest.hasLength(2)); 352 unittest.expect(o, unittest.hasLength(2));
349 checkPersonResponse(o[0]); 353 checkPersonResponse(o[0]);
350 checkPersonResponse(o[1]); 354 checkPersonResponse(o[1]);
351 } 355 }
352 356
353 core.int buildCounterGetPeopleResponse = 0; 357 core.int buildCounterGetPeopleResponse = 0;
354 buildGetPeopleResponse() { 358 buildGetPeopleResponse() {
355 var o = new api.GetPeopleResponse(); 359 var o = new api.GetPeopleResponse();
356 buildCounterGetPeopleResponse++; 360 buildCounterGetPeopleResponse++;
357 if (buildCounterGetPeopleResponse < 3) { 361 if (buildCounterGetPeopleResponse < 3) {
358 o.responses = buildUnnamed1204(); 362 o.responses = buildUnnamed1215();
359 } 363 }
360 buildCounterGetPeopleResponse--; 364 buildCounterGetPeopleResponse--;
361 return o; 365 return o;
362 } 366 }
363 367
364 checkGetPeopleResponse(api.GetPeopleResponse o) { 368 checkGetPeopleResponse(api.GetPeopleResponse o) {
365 buildCounterGetPeopleResponse++; 369 buildCounterGetPeopleResponse++;
366 if (buildCounterGetPeopleResponse < 3) { 370 if (buildCounterGetPeopleResponse < 3) {
367 checkUnnamed1204(o.responses); 371 checkUnnamed1215(o.responses);
368 } 372 }
369 buildCounterGetPeopleResponse--; 373 buildCounterGetPeopleResponse--;
370 } 374 }
371 375
372 core.int buildCounterImClient = 0; 376 core.int buildCounterImClient = 0;
373 buildImClient() { 377 buildImClient() {
374 var o = new api.ImClient(); 378 var o = new api.ImClient();
375 buildCounterImClient++; 379 buildCounterImClient++;
376 if (buildCounterImClient < 3) { 380 if (buildCounterImClient < 3) {
377 o.formattedProtocol = "foo"; 381 o.formattedProtocol = "foo";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 416
413 checkInterest(api.Interest o) { 417 checkInterest(api.Interest o) {
414 buildCounterInterest++; 418 buildCounterInterest++;
415 if (buildCounterInterest < 3) { 419 if (buildCounterInterest < 3) {
416 checkFieldMetadata(o.metadata); 420 checkFieldMetadata(o.metadata);
417 unittest.expect(o.value, unittest.equals('foo')); 421 unittest.expect(o.value, unittest.equals('foo'));
418 } 422 }
419 buildCounterInterest--; 423 buildCounterInterest--;
420 } 424 }
421 425
422 buildUnnamed1205() { 426 buildUnnamed1216() {
423 var o = new core.List<api.Person>(); 427 var o = new core.List<api.Person>();
424 o.add(buildPerson()); 428 o.add(buildPerson());
425 o.add(buildPerson()); 429 o.add(buildPerson());
426 return o; 430 return o;
427 } 431 }
428 432
429 checkUnnamed1205(core.List<api.Person> o) { 433 checkUnnamed1216(core.List<api.Person> o) {
430 unittest.expect(o, unittest.hasLength(2)); 434 unittest.expect(o, unittest.hasLength(2));
431 checkPerson(o[0]); 435 checkPerson(o[0]);
432 checkPerson(o[1]); 436 checkPerson(o[1]);
433 } 437 }
434 438
435 core.int buildCounterListConnectionsResponse = 0; 439 core.int buildCounterListConnectionsResponse = 0;
436 buildListConnectionsResponse() { 440 buildListConnectionsResponse() {
437 var o = new api.ListConnectionsResponse(); 441 var o = new api.ListConnectionsResponse();
438 buildCounterListConnectionsResponse++; 442 buildCounterListConnectionsResponse++;
439 if (buildCounterListConnectionsResponse < 3) { 443 if (buildCounterListConnectionsResponse < 3) {
440 o.connections = buildUnnamed1205(); 444 o.connections = buildUnnamed1216();
441 o.nextPageToken = "foo"; 445 o.nextPageToken = "foo";
442 o.nextSyncToken = "foo"; 446 o.nextSyncToken = "foo";
443 } 447 }
444 buildCounterListConnectionsResponse--; 448 buildCounterListConnectionsResponse--;
445 return o; 449 return o;
446 } 450 }
447 451
448 checkListConnectionsResponse(api.ListConnectionsResponse o) { 452 checkListConnectionsResponse(api.ListConnectionsResponse o) {
449 buildCounterListConnectionsResponse++; 453 buildCounterListConnectionsResponse++;
450 if (buildCounterListConnectionsResponse < 3) { 454 if (buildCounterListConnectionsResponse < 3) {
451 checkUnnamed1205(o.connections); 455 checkUnnamed1216(o.connections);
452 unittest.expect(o.nextPageToken, unittest.equals('foo')); 456 unittest.expect(o.nextPageToken, unittest.equals('foo'));
453 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 457 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
454 } 458 }
455 buildCounterListConnectionsResponse--; 459 buildCounterListConnectionsResponse--;
456 } 460 }
457 461
458 core.int buildCounterLocale = 0; 462 core.int buildCounterLocale = 0;
459 buildLocale() { 463 buildLocale() {
460 var o = new api.Locale(); 464 var o = new api.Locale();
461 buildCounterLocale++; 465 buildCounterLocale++;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 502 }
499 buildCounterMembership--; 503 buildCounterMembership--;
500 } 504 }
501 505
502 core.int buildCounterName = 0; 506 core.int buildCounterName = 0;
503 buildName() { 507 buildName() {
504 var o = new api.Name(); 508 var o = new api.Name();
505 buildCounterName++; 509 buildCounterName++;
506 if (buildCounterName < 3) { 510 if (buildCounterName < 3) {
507 o.displayName = "foo"; 511 o.displayName = "foo";
512 o.displayNameLastFirst = "foo";
508 o.familyName = "foo"; 513 o.familyName = "foo";
509 o.givenName = "foo"; 514 o.givenName = "foo";
510 o.honorificPrefix = "foo"; 515 o.honorificPrefix = "foo";
511 o.honorificSuffix = "foo"; 516 o.honorificSuffix = "foo";
512 o.metadata = buildFieldMetadata(); 517 o.metadata = buildFieldMetadata();
513 o.middleName = "foo"; 518 o.middleName = "foo";
514 o.phoneticFamilyName = "foo"; 519 o.phoneticFamilyName = "foo";
520 o.phoneticFullName = "foo";
515 o.phoneticGivenName = "foo"; 521 o.phoneticGivenName = "foo";
516 o.phoneticHonorificPrefix = "foo"; 522 o.phoneticHonorificPrefix = "foo";
517 o.phoneticHonorificSuffix = "foo"; 523 o.phoneticHonorificSuffix = "foo";
518 o.phoneticMiddleName = "foo"; 524 o.phoneticMiddleName = "foo";
519 } 525 }
520 buildCounterName--; 526 buildCounterName--;
521 return o; 527 return o;
522 } 528 }
523 529
524 checkName(api.Name o) { 530 checkName(api.Name o) {
525 buildCounterName++; 531 buildCounterName++;
526 if (buildCounterName < 3) { 532 if (buildCounterName < 3) {
527 unittest.expect(o.displayName, unittest.equals('foo')); 533 unittest.expect(o.displayName, unittest.equals('foo'));
534 unittest.expect(o.displayNameLastFirst, unittest.equals('foo'));
528 unittest.expect(o.familyName, unittest.equals('foo')); 535 unittest.expect(o.familyName, unittest.equals('foo'));
529 unittest.expect(o.givenName, unittest.equals('foo')); 536 unittest.expect(o.givenName, unittest.equals('foo'));
530 unittest.expect(o.honorificPrefix, unittest.equals('foo')); 537 unittest.expect(o.honorificPrefix, unittest.equals('foo'));
531 unittest.expect(o.honorificSuffix, unittest.equals('foo')); 538 unittest.expect(o.honorificSuffix, unittest.equals('foo'));
532 checkFieldMetadata(o.metadata); 539 checkFieldMetadata(o.metadata);
533 unittest.expect(o.middleName, unittest.equals('foo')); 540 unittest.expect(o.middleName, unittest.equals('foo'));
534 unittest.expect(o.phoneticFamilyName, unittest.equals('foo')); 541 unittest.expect(o.phoneticFamilyName, unittest.equals('foo'));
542 unittest.expect(o.phoneticFullName, unittest.equals('foo'));
535 unittest.expect(o.phoneticGivenName, unittest.equals('foo')); 543 unittest.expect(o.phoneticGivenName, unittest.equals('foo'));
536 unittest.expect(o.phoneticHonorificPrefix, unittest.equals('foo')); 544 unittest.expect(o.phoneticHonorificPrefix, unittest.equals('foo'));
537 unittest.expect(o.phoneticHonorificSuffix, unittest.equals('foo')); 545 unittest.expect(o.phoneticHonorificSuffix, unittest.equals('foo'));
538 unittest.expect(o.phoneticMiddleName, unittest.equals('foo')); 546 unittest.expect(o.phoneticMiddleName, unittest.equals('foo'));
539 } 547 }
540 buildCounterName--; 548 buildCounterName--;
541 } 549 }
542 550
543 core.int buildCounterNickname = 0; 551 core.int buildCounterNickname = 0;
544 buildNickname() { 552 buildNickname() {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 unittest.expect(o.name, unittest.equals('foo')); 630 unittest.expect(o.name, unittest.equals('foo'));
623 unittest.expect(o.phoneticName, unittest.equals('foo')); 631 unittest.expect(o.phoneticName, unittest.equals('foo'));
624 checkDate(o.startDate); 632 checkDate(o.startDate);
625 unittest.expect(o.symbol, unittest.equals('foo')); 633 unittest.expect(o.symbol, unittest.equals('foo'));
626 unittest.expect(o.title, unittest.equals('foo')); 634 unittest.expect(o.title, unittest.equals('foo'));
627 unittest.expect(o.type, unittest.equals('foo')); 635 unittest.expect(o.type, unittest.equals('foo'));
628 } 636 }
629 buildCounterOrganization--; 637 buildCounterOrganization--;
630 } 638 }
631 639
632 buildUnnamed1206() { 640 buildUnnamed1217() {
633 var o = new core.List<api.Address>(); 641 var o = new core.List<api.Address>();
634 o.add(buildAddress()); 642 o.add(buildAddress());
635 o.add(buildAddress()); 643 o.add(buildAddress());
636 return o; 644 return o;
637 } 645 }
638 646
639 checkUnnamed1206(core.List<api.Address> o) { 647 checkUnnamed1217(core.List<api.Address> o) {
640 unittest.expect(o, unittest.hasLength(2)); 648 unittest.expect(o, unittest.hasLength(2));
641 checkAddress(o[0]); 649 checkAddress(o[0]);
642 checkAddress(o[1]); 650 checkAddress(o[1]);
643 } 651 }
644 652
645 buildUnnamed1207() { 653 buildUnnamed1218() {
646 var o = new core.List<api.Biography>(); 654 var o = new core.List<api.Biography>();
647 o.add(buildBiography()); 655 o.add(buildBiography());
648 o.add(buildBiography()); 656 o.add(buildBiography());
649 return o; 657 return o;
650 } 658 }
651 659
652 checkUnnamed1207(core.List<api.Biography> o) { 660 checkUnnamed1218(core.List<api.Biography> o) {
653 unittest.expect(o, unittest.hasLength(2)); 661 unittest.expect(o, unittest.hasLength(2));
654 checkBiography(o[0]); 662 checkBiography(o[0]);
655 checkBiography(o[1]); 663 checkBiography(o[1]);
656 } 664 }
657 665
658 buildUnnamed1208() { 666 buildUnnamed1219() {
659 var o = new core.List<api.Birthday>(); 667 var o = new core.List<api.Birthday>();
660 o.add(buildBirthday()); 668 o.add(buildBirthday());
661 o.add(buildBirthday()); 669 o.add(buildBirthday());
662 return o; 670 return o;
663 } 671 }
664 672
665 checkUnnamed1208(core.List<api.Birthday> o) { 673 checkUnnamed1219(core.List<api.Birthday> o) {
666 unittest.expect(o, unittest.hasLength(2)); 674 unittest.expect(o, unittest.hasLength(2));
667 checkBirthday(o[0]); 675 checkBirthday(o[0]);
668 checkBirthday(o[1]); 676 checkBirthday(o[1]);
669 } 677 }
670 678
671 buildUnnamed1209() { 679 buildUnnamed1220() {
672 var o = new core.List<api.BraggingRights>(); 680 var o = new core.List<api.BraggingRights>();
673 o.add(buildBraggingRights()); 681 o.add(buildBraggingRights());
674 o.add(buildBraggingRights()); 682 o.add(buildBraggingRights());
675 return o; 683 return o;
676 } 684 }
677 685
678 checkUnnamed1209(core.List<api.BraggingRights> o) { 686 checkUnnamed1220(core.List<api.BraggingRights> o) {
679 unittest.expect(o, unittest.hasLength(2)); 687 unittest.expect(o, unittest.hasLength(2));
680 checkBraggingRights(o[0]); 688 checkBraggingRights(o[0]);
681 checkBraggingRights(o[1]); 689 checkBraggingRights(o[1]);
682 } 690 }
683 691
684 buildUnnamed1210() { 692 buildUnnamed1221() {
685 var o = new core.List<api.CoverPhoto>(); 693 var o = new core.List<api.CoverPhoto>();
686 o.add(buildCoverPhoto()); 694 o.add(buildCoverPhoto());
687 o.add(buildCoverPhoto()); 695 o.add(buildCoverPhoto());
688 return o; 696 return o;
689 } 697 }
690 698
691 checkUnnamed1210(core.List<api.CoverPhoto> o) { 699 checkUnnamed1221(core.List<api.CoverPhoto> o) {
692 unittest.expect(o, unittest.hasLength(2)); 700 unittest.expect(o, unittest.hasLength(2));
693 checkCoverPhoto(o[0]); 701 checkCoverPhoto(o[0]);
694 checkCoverPhoto(o[1]); 702 checkCoverPhoto(o[1]);
695 } 703 }
696 704
697 buildUnnamed1211() { 705 buildUnnamed1222() {
698 var o = new core.List<api.EmailAddress>(); 706 var o = new core.List<api.EmailAddress>();
699 o.add(buildEmailAddress()); 707 o.add(buildEmailAddress());
700 o.add(buildEmailAddress()); 708 o.add(buildEmailAddress());
701 return o; 709 return o;
702 } 710 }
703 711
704 checkUnnamed1211(core.List<api.EmailAddress> o) { 712 checkUnnamed1222(core.List<api.EmailAddress> o) {
705 unittest.expect(o, unittest.hasLength(2)); 713 unittest.expect(o, unittest.hasLength(2));
706 checkEmailAddress(o[0]); 714 checkEmailAddress(o[0]);
707 checkEmailAddress(o[1]); 715 checkEmailAddress(o[1]);
708 } 716 }
709 717
710 buildUnnamed1212() { 718 buildUnnamed1223() {
711 var o = new core.List<api.Event>(); 719 var o = new core.List<api.Event>();
712 o.add(buildEvent()); 720 o.add(buildEvent());
713 o.add(buildEvent()); 721 o.add(buildEvent());
714 return o; 722 return o;
715 } 723 }
716 724
717 checkUnnamed1212(core.List<api.Event> o) { 725 checkUnnamed1223(core.List<api.Event> o) {
718 unittest.expect(o, unittest.hasLength(2)); 726 unittest.expect(o, unittest.hasLength(2));
719 checkEvent(o[0]); 727 checkEvent(o[0]);
720 checkEvent(o[1]); 728 checkEvent(o[1]);
721 } 729 }
722 730
723 buildUnnamed1213() { 731 buildUnnamed1224() {
724 var o = new core.List<api.Gender>(); 732 var o = new core.List<api.Gender>();
725 o.add(buildGender()); 733 o.add(buildGender());
726 o.add(buildGender()); 734 o.add(buildGender());
727 return o; 735 return o;
728 } 736 }
729 737
730 checkUnnamed1213(core.List<api.Gender> o) { 738 checkUnnamed1224(core.List<api.Gender> o) {
731 unittest.expect(o, unittest.hasLength(2)); 739 unittest.expect(o, unittest.hasLength(2));
732 checkGender(o[0]); 740 checkGender(o[0]);
733 checkGender(o[1]); 741 checkGender(o[1]);
734 } 742 }
735 743
736 buildUnnamed1214() { 744 buildUnnamed1225() {
737 var o = new core.List<api.ImClient>(); 745 var o = new core.List<api.ImClient>();
738 o.add(buildImClient()); 746 o.add(buildImClient());
739 o.add(buildImClient()); 747 o.add(buildImClient());
740 return o; 748 return o;
741 } 749 }
742 750
743 checkUnnamed1214(core.List<api.ImClient> o) { 751 checkUnnamed1225(core.List<api.ImClient> o) {
744 unittest.expect(o, unittest.hasLength(2)); 752 unittest.expect(o, unittest.hasLength(2));
745 checkImClient(o[0]); 753 checkImClient(o[0]);
746 checkImClient(o[1]); 754 checkImClient(o[1]);
747 } 755 }
748 756
749 buildUnnamed1215() { 757 buildUnnamed1226() {
750 var o = new core.List<api.Interest>(); 758 var o = new core.List<api.Interest>();
751 o.add(buildInterest()); 759 o.add(buildInterest());
752 o.add(buildInterest()); 760 o.add(buildInterest());
753 return o; 761 return o;
754 } 762 }
755 763
756 checkUnnamed1215(core.List<api.Interest> o) { 764 checkUnnamed1226(core.List<api.Interest> o) {
757 unittest.expect(o, unittest.hasLength(2)); 765 unittest.expect(o, unittest.hasLength(2));
758 checkInterest(o[0]); 766 checkInterest(o[0]);
759 checkInterest(o[1]); 767 checkInterest(o[1]);
760 } 768 }
761 769
762 buildUnnamed1216() { 770 buildUnnamed1227() {
763 var o = new core.List<api.Locale>(); 771 var o = new core.List<api.Locale>();
764 o.add(buildLocale()); 772 o.add(buildLocale());
765 o.add(buildLocale()); 773 o.add(buildLocale());
766 return o; 774 return o;
767 } 775 }
768 776
769 checkUnnamed1216(core.List<api.Locale> o) { 777 checkUnnamed1227(core.List<api.Locale> o) {
770 unittest.expect(o, unittest.hasLength(2)); 778 unittest.expect(o, unittest.hasLength(2));
771 checkLocale(o[0]); 779 checkLocale(o[0]);
772 checkLocale(o[1]); 780 checkLocale(o[1]);
773 } 781 }
774 782
775 buildUnnamed1217() { 783 buildUnnamed1228() {
776 var o = new core.List<api.Membership>(); 784 var o = new core.List<api.Membership>();
777 o.add(buildMembership()); 785 o.add(buildMembership());
778 o.add(buildMembership()); 786 o.add(buildMembership());
779 return o; 787 return o;
780 } 788 }
781 789
782 checkUnnamed1217(core.List<api.Membership> o) { 790 checkUnnamed1228(core.List<api.Membership> o) {
783 unittest.expect(o, unittest.hasLength(2)); 791 unittest.expect(o, unittest.hasLength(2));
784 checkMembership(o[0]); 792 checkMembership(o[0]);
785 checkMembership(o[1]); 793 checkMembership(o[1]);
786 } 794 }
787 795
788 buildUnnamed1218() { 796 buildUnnamed1229() {
789 var o = new core.List<api.Name>(); 797 var o = new core.List<api.Name>();
790 o.add(buildName()); 798 o.add(buildName());
791 o.add(buildName()); 799 o.add(buildName());
792 return o; 800 return o;
793 } 801 }
794 802
795 checkUnnamed1218(core.List<api.Name> o) { 803 checkUnnamed1229(core.List<api.Name> o) {
796 unittest.expect(o, unittest.hasLength(2)); 804 unittest.expect(o, unittest.hasLength(2));
797 checkName(o[0]); 805 checkName(o[0]);
798 checkName(o[1]); 806 checkName(o[1]);
799 } 807 }
800 808
801 buildUnnamed1219() { 809 buildUnnamed1230() {
802 var o = new core.List<api.Nickname>(); 810 var o = new core.List<api.Nickname>();
803 o.add(buildNickname()); 811 o.add(buildNickname());
804 o.add(buildNickname()); 812 o.add(buildNickname());
805 return o; 813 return o;
806 } 814 }
807 815
808 checkUnnamed1219(core.List<api.Nickname> o) { 816 checkUnnamed1230(core.List<api.Nickname> o) {
809 unittest.expect(o, unittest.hasLength(2)); 817 unittest.expect(o, unittest.hasLength(2));
810 checkNickname(o[0]); 818 checkNickname(o[0]);
811 checkNickname(o[1]); 819 checkNickname(o[1]);
812 } 820 }
813 821
814 buildUnnamed1220() { 822 buildUnnamed1231() {
815 var o = new core.List<api.Occupation>(); 823 var o = new core.List<api.Occupation>();
816 o.add(buildOccupation()); 824 o.add(buildOccupation());
817 o.add(buildOccupation()); 825 o.add(buildOccupation());
818 return o; 826 return o;
819 } 827 }
820 828
821 checkUnnamed1220(core.List<api.Occupation> o) { 829 checkUnnamed1231(core.List<api.Occupation> o) {
822 unittest.expect(o, unittest.hasLength(2)); 830 unittest.expect(o, unittest.hasLength(2));
823 checkOccupation(o[0]); 831 checkOccupation(o[0]);
824 checkOccupation(o[1]); 832 checkOccupation(o[1]);
825 } 833 }
826 834
827 buildUnnamed1221() { 835 buildUnnamed1232() {
828 var o = new core.List<api.Organization>(); 836 var o = new core.List<api.Organization>();
829 o.add(buildOrganization()); 837 o.add(buildOrganization());
830 o.add(buildOrganization()); 838 o.add(buildOrganization());
831 return o; 839 return o;
832 } 840 }
833 841
834 checkUnnamed1221(core.List<api.Organization> o) { 842 checkUnnamed1232(core.List<api.Organization> o) {
835 unittest.expect(o, unittest.hasLength(2)); 843 unittest.expect(o, unittest.hasLength(2));
836 checkOrganization(o[0]); 844 checkOrganization(o[0]);
837 checkOrganization(o[1]); 845 checkOrganization(o[1]);
838 } 846 }
839 847
840 buildUnnamed1222() { 848 buildUnnamed1233() {
841 var o = new core.List<api.PhoneNumber>(); 849 var o = new core.List<api.PhoneNumber>();
842 o.add(buildPhoneNumber()); 850 o.add(buildPhoneNumber());
843 o.add(buildPhoneNumber()); 851 o.add(buildPhoneNumber());
844 return o; 852 return o;
845 } 853 }
846 854
847 checkUnnamed1222(core.List<api.PhoneNumber> o) { 855 checkUnnamed1233(core.List<api.PhoneNumber> o) {
848 unittest.expect(o, unittest.hasLength(2)); 856 unittest.expect(o, unittest.hasLength(2));
849 checkPhoneNumber(o[0]); 857 checkPhoneNumber(o[0]);
850 checkPhoneNumber(o[1]); 858 checkPhoneNumber(o[1]);
851 } 859 }
852 860
853 buildUnnamed1223() { 861 buildUnnamed1234() {
854 var o = new core.List<api.Photo>(); 862 var o = new core.List<api.Photo>();
855 o.add(buildPhoto()); 863 o.add(buildPhoto());
856 o.add(buildPhoto()); 864 o.add(buildPhoto());
857 return o; 865 return o;
858 } 866 }
859 867
860 checkUnnamed1223(core.List<api.Photo> o) { 868 checkUnnamed1234(core.List<api.Photo> o) {
861 unittest.expect(o, unittest.hasLength(2)); 869 unittest.expect(o, unittest.hasLength(2));
862 checkPhoto(o[0]); 870 checkPhoto(o[0]);
863 checkPhoto(o[1]); 871 checkPhoto(o[1]);
864 } 872 }
865 873
866 buildUnnamed1224() { 874 buildUnnamed1235() {
867 var o = new core.List<api.Relation>(); 875 var o = new core.List<api.Relation>();
868 o.add(buildRelation()); 876 o.add(buildRelation());
869 o.add(buildRelation()); 877 o.add(buildRelation());
870 return o; 878 return o;
871 } 879 }
872 880
873 checkUnnamed1224(core.List<api.Relation> o) { 881 checkUnnamed1235(core.List<api.Relation> o) {
874 unittest.expect(o, unittest.hasLength(2)); 882 unittest.expect(o, unittest.hasLength(2));
875 checkRelation(o[0]); 883 checkRelation(o[0]);
876 checkRelation(o[1]); 884 checkRelation(o[1]);
877 } 885 }
878 886
879 buildUnnamed1225() { 887 buildUnnamed1236() {
880 var o = new core.List<api.RelationshipInterest>(); 888 var o = new core.List<api.RelationshipInterest>();
881 o.add(buildRelationshipInterest()); 889 o.add(buildRelationshipInterest());
882 o.add(buildRelationshipInterest()); 890 o.add(buildRelationshipInterest());
883 return o; 891 return o;
884 } 892 }
885 893
886 checkUnnamed1225(core.List<api.RelationshipInterest> o) { 894 checkUnnamed1236(core.List<api.RelationshipInterest> o) {
887 unittest.expect(o, unittest.hasLength(2)); 895 unittest.expect(o, unittest.hasLength(2));
888 checkRelationshipInterest(o[0]); 896 checkRelationshipInterest(o[0]);
889 checkRelationshipInterest(o[1]); 897 checkRelationshipInterest(o[1]);
890 } 898 }
891 899
892 buildUnnamed1226() { 900 buildUnnamed1237() {
893 var o = new core.List<api.RelationshipStatus>(); 901 var o = new core.List<api.RelationshipStatus>();
894 o.add(buildRelationshipStatus()); 902 o.add(buildRelationshipStatus());
895 o.add(buildRelationshipStatus()); 903 o.add(buildRelationshipStatus());
896 return o; 904 return o;
897 } 905 }
898 906
899 checkUnnamed1226(core.List<api.RelationshipStatus> o) { 907 checkUnnamed1237(core.List<api.RelationshipStatus> o) {
900 unittest.expect(o, unittest.hasLength(2)); 908 unittest.expect(o, unittest.hasLength(2));
901 checkRelationshipStatus(o[0]); 909 checkRelationshipStatus(o[0]);
902 checkRelationshipStatus(o[1]); 910 checkRelationshipStatus(o[1]);
903 } 911 }
904 912
905 buildUnnamed1227() { 913 buildUnnamed1238() {
906 var o = new core.List<api.Residence>(); 914 var o = new core.List<api.Residence>();
907 o.add(buildResidence()); 915 o.add(buildResidence());
908 o.add(buildResidence()); 916 o.add(buildResidence());
909 return o; 917 return o;
910 } 918 }
911 919
912 checkUnnamed1227(core.List<api.Residence> o) { 920 checkUnnamed1238(core.List<api.Residence> o) {
913 unittest.expect(o, unittest.hasLength(2)); 921 unittest.expect(o, unittest.hasLength(2));
914 checkResidence(o[0]); 922 checkResidence(o[0]);
915 checkResidence(o[1]); 923 checkResidence(o[1]);
916 } 924 }
917 925
918 buildUnnamed1228() { 926 buildUnnamed1239() {
919 var o = new core.List<api.Skill>(); 927 var o = new core.List<api.Skill>();
920 o.add(buildSkill()); 928 o.add(buildSkill());
921 o.add(buildSkill()); 929 o.add(buildSkill());
922 return o; 930 return o;
923 } 931 }
924 932
925 checkUnnamed1228(core.List<api.Skill> o) { 933 checkUnnamed1239(core.List<api.Skill> o) {
926 unittest.expect(o, unittest.hasLength(2)); 934 unittest.expect(o, unittest.hasLength(2));
927 checkSkill(o[0]); 935 checkSkill(o[0]);
928 checkSkill(o[1]); 936 checkSkill(o[1]);
929 } 937 }
930 938
931 buildUnnamed1229() { 939 buildUnnamed1240() {
932 var o = new core.List<api.Tagline>(); 940 var o = new core.List<api.Tagline>();
933 o.add(buildTagline()); 941 o.add(buildTagline());
934 o.add(buildTagline()); 942 o.add(buildTagline());
935 return o; 943 return o;
936 } 944 }
937 945
938 checkUnnamed1229(core.List<api.Tagline> o) { 946 checkUnnamed1240(core.List<api.Tagline> o) {
939 unittest.expect(o, unittest.hasLength(2)); 947 unittest.expect(o, unittest.hasLength(2));
940 checkTagline(o[0]); 948 checkTagline(o[0]);
941 checkTagline(o[1]); 949 checkTagline(o[1]);
942 } 950 }
943 951
944 buildUnnamed1230() { 952 buildUnnamed1241() {
945 var o = new core.List<api.Url>(); 953 var o = new core.List<api.Url>();
946 o.add(buildUrl()); 954 o.add(buildUrl());
947 o.add(buildUrl()); 955 o.add(buildUrl());
948 return o; 956 return o;
949 } 957 }
950 958
951 checkUnnamed1230(core.List<api.Url> o) { 959 checkUnnamed1241(core.List<api.Url> o) {
952 unittest.expect(o, unittest.hasLength(2)); 960 unittest.expect(o, unittest.hasLength(2));
953 checkUrl(o[0]); 961 checkUrl(o[0]);
954 checkUrl(o[1]); 962 checkUrl(o[1]);
955 } 963 }
956 964
957 core.int buildCounterPerson = 0; 965 core.int buildCounterPerson = 0;
958 buildPerson() { 966 buildPerson() {
959 var o = new api.Person(); 967 var o = new api.Person();
960 buildCounterPerson++; 968 buildCounterPerson++;
961 if (buildCounterPerson < 3) { 969 if (buildCounterPerson < 3) {
962 o.addresses = buildUnnamed1206(); 970 o.addresses = buildUnnamed1217();
963 o.ageRange = "foo"; 971 o.ageRange = "foo";
964 o.biographies = buildUnnamed1207(); 972 o.biographies = buildUnnamed1218();
965 o.birthdays = buildUnnamed1208(); 973 o.birthdays = buildUnnamed1219();
966 o.braggingRights = buildUnnamed1209(); 974 o.braggingRights = buildUnnamed1220();
967 o.coverPhotos = buildUnnamed1210(); 975 o.coverPhotos = buildUnnamed1221();
968 o.emailAddresses = buildUnnamed1211(); 976 o.emailAddresses = buildUnnamed1222();
969 o.etag = "foo"; 977 o.etag = "foo";
970 o.events = buildUnnamed1212(); 978 o.events = buildUnnamed1223();
971 o.genders = buildUnnamed1213(); 979 o.genders = buildUnnamed1224();
972 o.imClients = buildUnnamed1214(); 980 o.imClients = buildUnnamed1225();
973 o.interests = buildUnnamed1215(); 981 o.interests = buildUnnamed1226();
974 o.locales = buildUnnamed1216(); 982 o.locales = buildUnnamed1227();
975 o.memberships = buildUnnamed1217(); 983 o.memberships = buildUnnamed1228();
976 o.metadata = buildPersonMetadata(); 984 o.metadata = buildPersonMetadata();
977 o.names = buildUnnamed1218(); 985 o.names = buildUnnamed1229();
978 o.nicknames = buildUnnamed1219(); 986 o.nicknames = buildUnnamed1230();
979 o.occupations = buildUnnamed1220(); 987 o.occupations = buildUnnamed1231();
980 o.organizations = buildUnnamed1221(); 988 o.organizations = buildUnnamed1232();
981 o.phoneNumbers = buildUnnamed1222(); 989 o.phoneNumbers = buildUnnamed1233();
982 o.photos = buildUnnamed1223(); 990 o.photos = buildUnnamed1234();
983 o.relations = buildUnnamed1224(); 991 o.relations = buildUnnamed1235();
984 o.relationshipInterests = buildUnnamed1225(); 992 o.relationshipInterests = buildUnnamed1236();
985 o.relationshipStatuses = buildUnnamed1226(); 993 o.relationshipStatuses = buildUnnamed1237();
986 o.residences = buildUnnamed1227(); 994 o.residences = buildUnnamed1238();
987 o.resourceName = "foo"; 995 o.resourceName = "foo";
988 o.skills = buildUnnamed1228(); 996 o.skills = buildUnnamed1239();
989 o.taglines = buildUnnamed1229(); 997 o.taglines = buildUnnamed1240();
990 o.urls = buildUnnamed1230(); 998 o.urls = buildUnnamed1241();
991 } 999 }
992 buildCounterPerson--; 1000 buildCounterPerson--;
993 return o; 1001 return o;
994 } 1002 }
995 1003
996 checkPerson(api.Person o) { 1004 checkPerson(api.Person o) {
997 buildCounterPerson++; 1005 buildCounterPerson++;
998 if (buildCounterPerson < 3) { 1006 if (buildCounterPerson < 3) {
999 checkUnnamed1206(o.addresses); 1007 checkUnnamed1217(o.addresses);
1000 unittest.expect(o.ageRange, unittest.equals('foo')); 1008 unittest.expect(o.ageRange, unittest.equals('foo'));
1001 checkUnnamed1207(o.biographies); 1009 checkUnnamed1218(o.biographies);
1002 checkUnnamed1208(o.birthdays); 1010 checkUnnamed1219(o.birthdays);
1003 checkUnnamed1209(o.braggingRights); 1011 checkUnnamed1220(o.braggingRights);
1004 checkUnnamed1210(o.coverPhotos); 1012 checkUnnamed1221(o.coverPhotos);
1005 checkUnnamed1211(o.emailAddresses); 1013 checkUnnamed1222(o.emailAddresses);
1006 unittest.expect(o.etag, unittest.equals('foo')); 1014 unittest.expect(o.etag, unittest.equals('foo'));
1007 checkUnnamed1212(o.events); 1015 checkUnnamed1223(o.events);
1008 checkUnnamed1213(o.genders); 1016 checkUnnamed1224(o.genders);
1009 checkUnnamed1214(o.imClients); 1017 checkUnnamed1225(o.imClients);
1010 checkUnnamed1215(o.interests); 1018 checkUnnamed1226(o.interests);
1011 checkUnnamed1216(o.locales); 1019 checkUnnamed1227(o.locales);
1012 checkUnnamed1217(o.memberships); 1020 checkUnnamed1228(o.memberships);
1013 checkPersonMetadata(o.metadata); 1021 checkPersonMetadata(o.metadata);
1014 checkUnnamed1218(o.names); 1022 checkUnnamed1229(o.names);
1015 checkUnnamed1219(o.nicknames); 1023 checkUnnamed1230(o.nicknames);
1016 checkUnnamed1220(o.occupations); 1024 checkUnnamed1231(o.occupations);
1017 checkUnnamed1221(o.organizations); 1025 checkUnnamed1232(o.organizations);
1018 checkUnnamed1222(o.phoneNumbers); 1026 checkUnnamed1233(o.phoneNumbers);
1019 checkUnnamed1223(o.photos); 1027 checkUnnamed1234(o.photos);
1020 checkUnnamed1224(o.relations); 1028 checkUnnamed1235(o.relations);
1021 checkUnnamed1225(o.relationshipInterests); 1029 checkUnnamed1236(o.relationshipInterests);
1022 checkUnnamed1226(o.relationshipStatuses); 1030 checkUnnamed1237(o.relationshipStatuses);
1023 checkUnnamed1227(o.residences); 1031 checkUnnamed1238(o.residences);
1024 unittest.expect(o.resourceName, unittest.equals('foo')); 1032 unittest.expect(o.resourceName, unittest.equals('foo'));
1025 checkUnnamed1228(o.skills); 1033 checkUnnamed1239(o.skills);
1026 checkUnnamed1229(o.taglines); 1034 checkUnnamed1240(o.taglines);
1027 checkUnnamed1230(o.urls); 1035 checkUnnamed1241(o.urls);
1028 } 1036 }
1029 buildCounterPerson--; 1037 buildCounterPerson--;
1030 } 1038 }
1031 1039
1032 buildUnnamed1231() { 1040 buildUnnamed1242() {
1033 var o = new core.List<core.String>(); 1041 var o = new core.List<core.String>();
1034 o.add("foo"); 1042 o.add("foo");
1035 o.add("foo"); 1043 o.add("foo");
1036 return o; 1044 return o;
1037 } 1045 }
1038 1046
1039 checkUnnamed1231(core.List<core.String> o) { 1047 checkUnnamed1242(core.List<core.String> o) {
1040 unittest.expect(o, unittest.hasLength(2)); 1048 unittest.expect(o, unittest.hasLength(2));
1041 unittest.expect(o[0], unittest.equals('foo')); 1049 unittest.expect(o[0], unittest.equals('foo'));
1042 unittest.expect(o[1], unittest.equals('foo')); 1050 unittest.expect(o[1], unittest.equals('foo'));
1043 } 1051 }
1044 1052
1045 buildUnnamed1232() { 1053 buildUnnamed1243() {
1054 var o = new core.List<core.String>();
1055 o.add("foo");
1056 o.add("foo");
1057 return o;
1058 }
1059
1060 checkUnnamed1243(core.List<core.String> o) {
1061 unittest.expect(o, unittest.hasLength(2));
1062 unittest.expect(o[0], unittest.equals('foo'));
1063 unittest.expect(o[1], unittest.equals('foo'));
1064 }
1065
1066 buildUnnamed1244() {
1046 var o = new core.List<api.Source>(); 1067 var o = new core.List<api.Source>();
1047 o.add(buildSource()); 1068 o.add(buildSource());
1048 o.add(buildSource()); 1069 o.add(buildSource());
1049 return o; 1070 return o;
1050 } 1071 }
1051 1072
1052 checkUnnamed1232(core.List<api.Source> o) { 1073 checkUnnamed1244(core.List<api.Source> o) {
1053 unittest.expect(o, unittest.hasLength(2)); 1074 unittest.expect(o, unittest.hasLength(2));
1054 checkSource(o[0]); 1075 checkSource(o[0]);
1055 checkSource(o[1]); 1076 checkSource(o[1]);
1056 } 1077 }
1057 1078
1058 core.int buildCounterPersonMetadata = 0; 1079 core.int buildCounterPersonMetadata = 0;
1059 buildPersonMetadata() { 1080 buildPersonMetadata() {
1060 var o = new api.PersonMetadata(); 1081 var o = new api.PersonMetadata();
1061 buildCounterPersonMetadata++; 1082 buildCounterPersonMetadata++;
1062 if (buildCounterPersonMetadata < 3) { 1083 if (buildCounterPersonMetadata < 3) {
1063 o.deleted = true; 1084 o.deleted = true;
1085 o.linkedPeopleResourceNames = buildUnnamed1242();
1064 o.objectType = "foo"; 1086 o.objectType = "foo";
1065 o.previousResourceNames = buildUnnamed1231(); 1087 o.previousResourceNames = buildUnnamed1243();
1066 o.sources = buildUnnamed1232(); 1088 o.sources = buildUnnamed1244();
1067 } 1089 }
1068 buildCounterPersonMetadata--; 1090 buildCounterPersonMetadata--;
1069 return o; 1091 return o;
1070 } 1092 }
1071 1093
1072 checkPersonMetadata(api.PersonMetadata o) { 1094 checkPersonMetadata(api.PersonMetadata o) {
1073 buildCounterPersonMetadata++; 1095 buildCounterPersonMetadata++;
1074 if (buildCounterPersonMetadata < 3) { 1096 if (buildCounterPersonMetadata < 3) {
1075 unittest.expect(o.deleted, unittest.isTrue); 1097 unittest.expect(o.deleted, unittest.isTrue);
1098 checkUnnamed1242(o.linkedPeopleResourceNames);
1076 unittest.expect(o.objectType, unittest.equals('foo')); 1099 unittest.expect(o.objectType, unittest.equals('foo'));
1077 checkUnnamed1231(o.previousResourceNames); 1100 checkUnnamed1243(o.previousResourceNames);
1078 checkUnnamed1232(o.sources); 1101 checkUnnamed1244(o.sources);
1079 } 1102 }
1080 buildCounterPersonMetadata--; 1103 buildCounterPersonMetadata--;
1081 } 1104 }
1082 1105
1083 core.int buildCounterPersonResponse = 0; 1106 core.int buildCounterPersonResponse = 0;
1084 buildPersonResponse() { 1107 buildPersonResponse() {
1085 var o = new api.PersonResponse(); 1108 var o = new api.PersonResponse();
1086 buildCounterPersonResponse++; 1109 buildCounterPersonResponse++;
1087 if (buildCounterPersonResponse < 3) { 1110 if (buildCounterPersonResponse < 3) {
1088 o.httpStatusCode = 42; 1111 o.httpStatusCode = 42;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 unittest.expect(o.value, unittest.equals('foo')); 1287 unittest.expect(o.value, unittest.equals('foo'));
1265 } 1288 }
1266 buildCounterSkill--; 1289 buildCounterSkill--;
1267 } 1290 }
1268 1291
1269 core.int buildCounterSource = 0; 1292 core.int buildCounterSource = 0;
1270 buildSource() { 1293 buildSource() {
1271 var o = new api.Source(); 1294 var o = new api.Source();
1272 buildCounterSource++; 1295 buildCounterSource++;
1273 if (buildCounterSource < 3) { 1296 if (buildCounterSource < 3) {
1297 o.etag = "foo";
1274 o.id = "foo"; 1298 o.id = "foo";
1299 o.resourceName = "foo";
1275 o.type = "foo"; 1300 o.type = "foo";
1276 } 1301 }
1277 buildCounterSource--; 1302 buildCounterSource--;
1278 return o; 1303 return o;
1279 } 1304 }
1280 1305
1281 checkSource(api.Source o) { 1306 checkSource(api.Source o) {
1282 buildCounterSource++; 1307 buildCounterSource++;
1283 if (buildCounterSource < 3) { 1308 if (buildCounterSource < 3) {
1309 unittest.expect(o.etag, unittest.equals('foo'));
1284 unittest.expect(o.id, unittest.equals('foo')); 1310 unittest.expect(o.id, unittest.equals('foo'));
1311 unittest.expect(o.resourceName, unittest.equals('foo'));
1285 unittest.expect(o.type, unittest.equals('foo')); 1312 unittest.expect(o.type, unittest.equals('foo'));
1286 } 1313 }
1287 buildCounterSource--; 1314 buildCounterSource--;
1288 } 1315 }
1289 1316
1290 core.int buildCounterTagline = 0; 1317 core.int buildCounterTagline = 0;
1291 buildTagline() { 1318 buildTagline() {
1292 var o = new api.Tagline(); 1319 var o = new api.Tagline();
1293 buildCounterTagline++; 1320 buildCounterTagline++;
1294 if (buildCounterTagline < 3) { 1321 if (buildCounterTagline < 3) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 buildCounterUrl++; 1353 buildCounterUrl++;
1327 if (buildCounterUrl < 3) { 1354 if (buildCounterUrl < 3) {
1328 unittest.expect(o.formattedType, unittest.equals('foo')); 1355 unittest.expect(o.formattedType, unittest.equals('foo'));
1329 checkFieldMetadata(o.metadata); 1356 checkFieldMetadata(o.metadata);
1330 unittest.expect(o.type, unittest.equals('foo')); 1357 unittest.expect(o.type, unittest.equals('foo'));
1331 unittest.expect(o.value, unittest.equals('foo')); 1358 unittest.expect(o.value, unittest.equals('foo'));
1332 } 1359 }
1333 buildCounterUrl--; 1360 buildCounterUrl--;
1334 } 1361 }
1335 1362
1336 buildUnnamed1233() { 1363 buildUnnamed1245() {
1337 var o = new core.List<core.String>(); 1364 var o = new core.List<core.String>();
1338 o.add("foo"); 1365 o.add("foo");
1339 o.add("foo"); 1366 o.add("foo");
1340 return o; 1367 return o;
1341 } 1368 }
1342 1369
1343 checkUnnamed1233(core.List<core.String> o) { 1370 checkUnnamed1245(core.List<core.String> o) {
1344 unittest.expect(o, unittest.hasLength(2)); 1371 unittest.expect(o, unittest.hasLength(2));
1345 unittest.expect(o[0], unittest.equals('foo')); 1372 unittest.expect(o[0], unittest.equals('foo'));
1346 unittest.expect(o[1], unittest.equals('foo')); 1373 unittest.expect(o[1], unittest.equals('foo'));
1347 } 1374 }
1348 1375
1349 1376
1350 main() { 1377 main() {
1351 unittest.group("obj-schema-Address", () { 1378 unittest.group("obj-schema-Address", () {
1352 unittest.test("to-json--from-json", () { 1379 unittest.test("to-json--from-json", () {
1353 var o = buildAddress(); 1380 var o = buildAddress();
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 }), true); 1735 }), true);
1709 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) { 1736 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ eField).then(unittest.expectAsync(((api.Person response) {
1710 checkPerson(response); 1737 checkPerson(response);
1711 }))); 1738 })));
1712 }); 1739 });
1713 1740
1714 unittest.test("method--getBatchGet", () { 1741 unittest.test("method--getBatchGet", () {
1715 1742
1716 var mock = new HttpServerMock(); 1743 var mock = new HttpServerMock();
1717 api.PeopleResourceApi res = new api.PeopleApi(mock).people; 1744 api.PeopleResourceApi res = new api.PeopleApi(mock).people;
1718 var arg_resourceNames = buildUnnamed1233();
1719 var arg_requestMask_includeField = "foo"; 1745 var arg_requestMask_includeField = "foo";
1746 var arg_resourceNames = buildUnnamed1245();
1720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1747 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1721 var path = (req.url).path; 1748 var path = (req.url).path;
1722 var pathOffset = 0; 1749 var pathOffset = 0;
1723 var index; 1750 var index;
1724 var subPart; 1751 var subPart;
1725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1726 pathOffset += 1; 1753 pathOffset += 1;
1727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet")); 1754 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("v1/people:batchGet"));
1728 pathOffset += 18; 1755 pathOffset += 18;
1729 1756
1730 var query = (req.url).query; 1757 var query = (req.url).query;
1731 var queryOffset = 0; 1758 var queryOffset = 0;
1732 var queryMap = {}; 1759 var queryMap = {};
1733 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1760 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1734 parseBool(n) { 1761 parseBool(n) {
1735 if (n == "true") return true; 1762 if (n == "true") return true;
1736 if (n == "false") return false; 1763 if (n == "false") return false;
1737 if (n == null) return null; 1764 if (n == null) return null;
1738 throw new core.ArgumentError("Invalid boolean: $n"); 1765 throw new core.ArgumentError("Invalid boolean: $n");
1739 } 1766 }
1740 if (query.length > 0) { 1767 if (query.length > 0) {
1741 for (var part in query.split("&")) { 1768 for (var part in query.split("&")) {
1742 var keyvalue = part.split("="); 1769 var keyvalue = part.split("=");
1743 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1770 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1744 } 1771 }
1745 } 1772 }
1773 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField));
1746 unittest.expect(queryMap["resourceNames"], unittest.equals(arg_resourceN ames)); 1774 unittest.expect(queryMap["resourceNames"], unittest.equals(arg_resourceN ames));
1747 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField));
1748 1775
1749 1776
1750 var h = { 1777 var h = {
1751 "content-type" : "application/json; charset=utf-8", 1778 "content-type" : "application/json; charset=utf-8",
1752 }; 1779 };
1753 var resp = convert.JSON.encode(buildGetPeopleResponse()); 1780 var resp = convert.JSON.encode(buildGetPeopleResponse());
1754 return new async.Future.value(stringResponse(200, h, resp)); 1781 return new async.Future.value(stringResponse(200, h, resp));
1755 }), true); 1782 }), true);
1756 res.getBatchGet(resourceNames: arg_resourceNames, requestMask_includeField : arg_requestMask_includeField).then(unittest.expectAsync(((api.GetPeopleRespons e response) { 1783 res.getBatchGet(requestMask_includeField: arg_requestMask_includeField, re sourceNames: arg_resourceNames).then(unittest.expectAsync(((api.GetPeopleRespons e response) {
1757 checkGetPeopleResponse(response); 1784 checkGetPeopleResponse(response);
1758 }))); 1785 })));
1759 }); 1786 });
1760 1787
1761 }); 1788 });
1762 1789
1763 1790
1764 unittest.group("resource-PeopleConnectionsResourceApi", () { 1791 unittest.group("resource-PeopleMeConnectionsResourceApi", () {
1765 unittest.test("method--list", () { 1792 unittest.test("method--list", () {
1766 1793
1767 var mock = new HttpServerMock(); 1794 var mock = new HttpServerMock();
1768 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn ections; 1795 api.PeopleMeConnectionsResourceApi res = new api.PeopleApi(mock).people.me .connections;
1769 var arg_resourceName = "foo"; 1796 var arg_sortOrder = "foo";
1797 var arg_syncToken = "foo";
1770 var arg_pageToken = "foo"; 1798 var arg_pageToken = "foo";
1771 var arg_pageSize = 42; 1799 var arg_pageSize = 42;
1772 var arg_sortOrder = "foo";
1773 var arg_syncToken = "foo";
1774 var arg_requestMask_includeField = "foo"; 1800 var arg_requestMask_includeField = "foo";
1775 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1801 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1776 var path = (req.url).path; 1802 var path = (req.url).path;
1777 var pathOffset = 0; 1803 var pathOffset = 0;
1778 var index; 1804 var index;
1779 var subPart; 1805 var subPart;
1780 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1781 pathOffset += 1; 1807 pathOffset += 1;
1782 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 1808 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq uals("v1/people/me/connections"));
1783 pathOffset += 3; 1809 pathOffset += 24;
1784 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1785 1810
1786 var query = (req.url).query; 1811 var query = (req.url).query;
1787 var queryOffset = 0; 1812 var queryOffset = 0;
1788 var queryMap = {}; 1813 var queryMap = {};
1789 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1814 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1790 parseBool(n) { 1815 parseBool(n) {
1791 if (n == "true") return true; 1816 if (n == "true") return true;
1792 if (n == "false") return false; 1817 if (n == "false") return false;
1793 if (n == null) return null; 1818 if (n == null) return null;
1794 throw new core.ArgumentError("Invalid boolean: $n"); 1819 throw new core.ArgumentError("Invalid boolean: $n");
1795 } 1820 }
1796 if (query.length > 0) { 1821 if (query.length > 0) {
1797 for (var part in query.split("&")) { 1822 for (var part in query.split("&")) {
1798 var keyvalue = part.split("="); 1823 var keyvalue = part.split("=");
1799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1824 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1800 } 1825 }
1801 } 1826 }
1827 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
1828 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok en));
1802 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1829 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1803 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1830 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1804 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
1805 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok en));
1806 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField)); 1831 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ als(arg_requestMask_includeField));
1807 1832
1808 1833
1809 var h = { 1834 var h = {
1810 "content-type" : "application/json; charset=utf-8", 1835 "content-type" : "application/json; charset=utf-8",
1811 }; 1836 };
1812 var resp = convert.JSON.encode(buildListConnectionsResponse()); 1837 var resp = convert.JSON.encode(buildListConnectionsResponse());
1813 return new async.Future.value(stringResponse(200, h, resp)); 1838 return new async.Future.value(stringResponse(200, h, resp));
1814 }), true); 1839 }), true);
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) { 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) {
1816 checkListConnectionsResponse(response); 1841 checkListConnectionsResponse(response);
1817 }))); 1842 })));
1818 }); 1843 });
1819 1844
1820 }); 1845 });
1821 1846
1822 1847
1823 } 1848 }
1824 1849
OLDNEW
« no previous file with comments | « generated/googleapis/test/partners/v2_test.dart ('k') | generated/googleapis/test/playmoviespartner/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698