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

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

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 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.plus.v1.test; 1 library googleapis.plus.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;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/plus/v1.dart' as api; 15 import 'package:googleapis/plus/v1.dart' as api;
16 16
17 17
18 18
19 buildUnnamed167() { 19 buildUnnamed170() {
20 var o = new core.List<api.PlusAclentryResource>(); 20 var o = new core.List<api.PlusAclentryResource>();
21 o.add(buildPlusAclentryResource()); 21 o.add(buildPlusAclentryResource());
22 o.add(buildPlusAclentryResource()); 22 o.add(buildPlusAclentryResource());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed167(core.List<api.PlusAclentryResource> o) { 26 checkUnnamed170(core.List<api.PlusAclentryResource> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkPlusAclentryResource(o[0]); 28 checkPlusAclentryResource(o[0]);
29 checkPlusAclentryResource(o[1]); 29 checkPlusAclentryResource(o[1]);
30 } 30 }
31 31
32 core.int buildCounterAcl = 0; 32 core.int buildCounterAcl = 0;
33 buildAcl() { 33 buildAcl() {
34 var o = new api.Acl(); 34 var o = new api.Acl();
35 buildCounterAcl++; 35 buildCounterAcl++;
36 if (buildCounterAcl < 3) { 36 if (buildCounterAcl < 3) {
37 o.description = "foo"; 37 o.description = "foo";
38 o.items = buildUnnamed167(); 38 o.items = buildUnnamed170();
39 o.kind = "foo"; 39 o.kind = "foo";
40 } 40 }
41 buildCounterAcl--; 41 buildCounterAcl--;
42 return o; 42 return o;
43 } 43 }
44 44
45 checkAcl(api.Acl o) { 45 checkAcl(api.Acl o) {
46 buildCounterAcl++; 46 buildCounterAcl++;
47 if (buildCounterAcl < 3) { 47 if (buildCounterAcl < 3) {
48 unittest.expect(o.description, unittest.equals('foo')); 48 unittest.expect(o.description, unittest.equals('foo'));
49 checkUnnamed167(o.items); 49 checkUnnamed170(o.items);
50 unittest.expect(o.kind, unittest.equals('foo')); 50 unittest.expect(o.kind, unittest.equals('foo'));
51 } 51 }
52 buildCounterAcl--; 52 buildCounterAcl--;
53 } 53 }
54 54
55 core.int buildCounterActivityActorImage = 0; 55 core.int buildCounterActivityActorImage = 0;
56 buildActivityActorImage() { 56 buildActivityActorImage() {
57 var o = new api.ActivityActorImage(); 57 var o = new api.ActivityActorImage();
58 buildCounterActivityActorImage++; 58 buildCounterActivityActorImage++;
59 if (buildCounterActivityActorImage < 3) { 59 if (buildCounterActivityActorImage < 3) {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails o) { 275 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails o) {
276 buildCounterActivityObjectAttachmentsThumbnails++; 276 buildCounterActivityObjectAttachmentsThumbnails++;
277 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { 277 if (buildCounterActivityObjectAttachmentsThumbnails < 3) {
278 unittest.expect(o.description, unittest.equals('foo')); 278 unittest.expect(o.description, unittest.equals('foo'));
279 checkActivityObjectAttachmentsThumbnailsImage(o.image); 279 checkActivityObjectAttachmentsThumbnailsImage(o.image);
280 unittest.expect(o.url, unittest.equals('foo')); 280 unittest.expect(o.url, unittest.equals('foo'));
281 } 281 }
282 buildCounterActivityObjectAttachmentsThumbnails--; 282 buildCounterActivityObjectAttachmentsThumbnails--;
283 } 283 }
284 284
285 buildUnnamed168() { 285 buildUnnamed171() {
286 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); 286 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>();
287 o.add(buildActivityObjectAttachmentsThumbnails()); 287 o.add(buildActivityObjectAttachmentsThumbnails());
288 o.add(buildActivityObjectAttachmentsThumbnails()); 288 o.add(buildActivityObjectAttachmentsThumbnails());
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed168(core.List<api.ActivityObjectAttachmentsThumbnails> o) { 292 checkUnnamed171(core.List<api.ActivityObjectAttachmentsThumbnails> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 checkActivityObjectAttachmentsThumbnails(o[0]); 294 checkActivityObjectAttachmentsThumbnails(o[0]);
295 checkActivityObjectAttachmentsThumbnails(o[1]); 295 checkActivityObjectAttachmentsThumbnails(o[1]);
296 } 296 }
297 297
298 core.int buildCounterActivityObjectAttachments = 0; 298 core.int buildCounterActivityObjectAttachments = 0;
299 buildActivityObjectAttachments() { 299 buildActivityObjectAttachments() {
300 var o = new api.ActivityObjectAttachments(); 300 var o = new api.ActivityObjectAttachments();
301 buildCounterActivityObjectAttachments++; 301 buildCounterActivityObjectAttachments++;
302 if (buildCounterActivityObjectAttachments < 3) { 302 if (buildCounterActivityObjectAttachments < 3) {
303 o.content = "foo"; 303 o.content = "foo";
304 o.displayName = "foo"; 304 o.displayName = "foo";
305 o.embed = buildActivityObjectAttachmentsEmbed(); 305 o.embed = buildActivityObjectAttachmentsEmbed();
306 o.fullImage = buildActivityObjectAttachmentsFullImage(); 306 o.fullImage = buildActivityObjectAttachmentsFullImage();
307 o.id = "foo"; 307 o.id = "foo";
308 o.image = buildActivityObjectAttachmentsImage(); 308 o.image = buildActivityObjectAttachmentsImage();
309 o.objectType = "foo"; 309 o.objectType = "foo";
310 o.thumbnails = buildUnnamed168(); 310 o.thumbnails = buildUnnamed171();
311 o.url = "foo"; 311 o.url = "foo";
312 } 312 }
313 buildCounterActivityObjectAttachments--; 313 buildCounterActivityObjectAttachments--;
314 return o; 314 return o;
315 } 315 }
316 316
317 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { 317 checkActivityObjectAttachments(api.ActivityObjectAttachments o) {
318 buildCounterActivityObjectAttachments++; 318 buildCounterActivityObjectAttachments++;
319 if (buildCounterActivityObjectAttachments < 3) { 319 if (buildCounterActivityObjectAttachments < 3) {
320 unittest.expect(o.content, unittest.equals('foo')); 320 unittest.expect(o.content, unittest.equals('foo'));
321 unittest.expect(o.displayName, unittest.equals('foo')); 321 unittest.expect(o.displayName, unittest.equals('foo'));
322 checkActivityObjectAttachmentsEmbed(o.embed); 322 checkActivityObjectAttachmentsEmbed(o.embed);
323 checkActivityObjectAttachmentsFullImage(o.fullImage); 323 checkActivityObjectAttachmentsFullImage(o.fullImage);
324 unittest.expect(o.id, unittest.equals('foo')); 324 unittest.expect(o.id, unittest.equals('foo'));
325 checkActivityObjectAttachmentsImage(o.image); 325 checkActivityObjectAttachmentsImage(o.image);
326 unittest.expect(o.objectType, unittest.equals('foo')); 326 unittest.expect(o.objectType, unittest.equals('foo'));
327 checkUnnamed168(o.thumbnails); 327 checkUnnamed171(o.thumbnails);
328 unittest.expect(o.url, unittest.equals('foo')); 328 unittest.expect(o.url, unittest.equals('foo'));
329 } 329 }
330 buildCounterActivityObjectAttachments--; 330 buildCounterActivityObjectAttachments--;
331 } 331 }
332 332
333 buildUnnamed169() { 333 buildUnnamed172() {
334 var o = new core.List<api.ActivityObjectAttachments>(); 334 var o = new core.List<api.ActivityObjectAttachments>();
335 o.add(buildActivityObjectAttachments()); 335 o.add(buildActivityObjectAttachments());
336 o.add(buildActivityObjectAttachments()); 336 o.add(buildActivityObjectAttachments());
337 return o; 337 return o;
338 } 338 }
339 339
340 checkUnnamed169(core.List<api.ActivityObjectAttachments> o) { 340 checkUnnamed172(core.List<api.ActivityObjectAttachments> o) {
341 unittest.expect(o, unittest.hasLength(2)); 341 unittest.expect(o, unittest.hasLength(2));
342 checkActivityObjectAttachments(o[0]); 342 checkActivityObjectAttachments(o[0]);
343 checkActivityObjectAttachments(o[1]); 343 checkActivityObjectAttachments(o[1]);
344 } 344 }
345 345
346 core.int buildCounterActivityObjectPlusoners = 0; 346 core.int buildCounterActivityObjectPlusoners = 0;
347 buildActivityObjectPlusoners() { 347 buildActivityObjectPlusoners() {
348 var o = new api.ActivityObjectPlusoners(); 348 var o = new api.ActivityObjectPlusoners();
349 buildCounterActivityObjectPlusoners++; 349 buildCounterActivityObjectPlusoners++;
350 if (buildCounterActivityObjectPlusoners < 3) { 350 if (buildCounterActivityObjectPlusoners < 3) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 405 }
406 buildCounterActivityObjectResharers--; 406 buildCounterActivityObjectResharers--;
407 } 407 }
408 408
409 core.int buildCounterActivityObject = 0; 409 core.int buildCounterActivityObject = 0;
410 buildActivityObject() { 410 buildActivityObject() {
411 var o = new api.ActivityObject(); 411 var o = new api.ActivityObject();
412 buildCounterActivityObject++; 412 buildCounterActivityObject++;
413 if (buildCounterActivityObject < 3) { 413 if (buildCounterActivityObject < 3) {
414 o.actor = buildActivityObjectActor(); 414 o.actor = buildActivityObjectActor();
415 o.attachments = buildUnnamed169(); 415 o.attachments = buildUnnamed172();
416 o.content = "foo"; 416 o.content = "foo";
417 o.id = "foo"; 417 o.id = "foo";
418 o.objectType = "foo"; 418 o.objectType = "foo";
419 o.originalContent = "foo"; 419 o.originalContent = "foo";
420 o.plusoners = buildActivityObjectPlusoners(); 420 o.plusoners = buildActivityObjectPlusoners();
421 o.replies = buildActivityObjectReplies(); 421 o.replies = buildActivityObjectReplies();
422 o.resharers = buildActivityObjectResharers(); 422 o.resharers = buildActivityObjectResharers();
423 o.url = "foo"; 423 o.url = "foo";
424 } 424 }
425 buildCounterActivityObject--; 425 buildCounterActivityObject--;
426 return o; 426 return o;
427 } 427 }
428 428
429 checkActivityObject(api.ActivityObject o) { 429 checkActivityObject(api.ActivityObject o) {
430 buildCounterActivityObject++; 430 buildCounterActivityObject++;
431 if (buildCounterActivityObject < 3) { 431 if (buildCounterActivityObject < 3) {
432 checkActivityObjectActor(o.actor); 432 checkActivityObjectActor(o.actor);
433 checkUnnamed169(o.attachments); 433 checkUnnamed172(o.attachments);
434 unittest.expect(o.content, unittest.equals('foo')); 434 unittest.expect(o.content, unittest.equals('foo'));
435 unittest.expect(o.id, unittest.equals('foo')); 435 unittest.expect(o.id, unittest.equals('foo'));
436 unittest.expect(o.objectType, unittest.equals('foo')); 436 unittest.expect(o.objectType, unittest.equals('foo'));
437 unittest.expect(o.originalContent, unittest.equals('foo')); 437 unittest.expect(o.originalContent, unittest.equals('foo'));
438 checkActivityObjectPlusoners(o.plusoners); 438 checkActivityObjectPlusoners(o.plusoners);
439 checkActivityObjectReplies(o.replies); 439 checkActivityObjectReplies(o.replies);
440 checkActivityObjectResharers(o.resharers); 440 checkActivityObjectResharers(o.resharers);
441 unittest.expect(o.url, unittest.equals('foo')); 441 unittest.expect(o.url, unittest.equals('foo'));
442 } 442 }
443 buildCounterActivityObject--; 443 buildCounterActivityObject--;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 512 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
513 unittest.expect(o.radius, unittest.equals('foo')); 513 unittest.expect(o.radius, unittest.equals('foo'));
514 unittest.expect(o.title, unittest.equals('foo')); 514 unittest.expect(o.title, unittest.equals('foo'));
515 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 515 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
516 unittest.expect(o.url, unittest.equals('foo')); 516 unittest.expect(o.url, unittest.equals('foo'));
517 unittest.expect(o.verb, unittest.equals('foo')); 517 unittest.expect(o.verb, unittest.equals('foo'));
518 } 518 }
519 buildCounterActivity--; 519 buildCounterActivity--;
520 } 520 }
521 521
522 buildUnnamed170() { 522 buildUnnamed173() {
523 var o = new core.List<api.Activity>(); 523 var o = new core.List<api.Activity>();
524 o.add(buildActivity()); 524 o.add(buildActivity());
525 o.add(buildActivity()); 525 o.add(buildActivity());
526 return o; 526 return o;
527 } 527 }
528 528
529 checkUnnamed170(core.List<api.Activity> o) { 529 checkUnnamed173(core.List<api.Activity> o) {
530 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
531 checkActivity(o[0]); 531 checkActivity(o[0]);
532 checkActivity(o[1]); 532 checkActivity(o[1]);
533 } 533 }
534 534
535 core.int buildCounterActivityFeed = 0; 535 core.int buildCounterActivityFeed = 0;
536 buildActivityFeed() { 536 buildActivityFeed() {
537 var o = new api.ActivityFeed(); 537 var o = new api.ActivityFeed();
538 buildCounterActivityFeed++; 538 buildCounterActivityFeed++;
539 if (buildCounterActivityFeed < 3) { 539 if (buildCounterActivityFeed < 3) {
540 o.etag = "foo"; 540 o.etag = "foo";
541 o.id = "foo"; 541 o.id = "foo";
542 o.items = buildUnnamed170(); 542 o.items = buildUnnamed173();
543 o.kind = "foo"; 543 o.kind = "foo";
544 o.nextLink = "foo"; 544 o.nextLink = "foo";
545 o.nextPageToken = "foo"; 545 o.nextPageToken = "foo";
546 o.selfLink = "foo"; 546 o.selfLink = "foo";
547 o.title = "foo"; 547 o.title = "foo";
548 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 548 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
549 } 549 }
550 buildCounterActivityFeed--; 550 buildCounterActivityFeed--;
551 return o; 551 return o;
552 } 552 }
553 553
554 checkActivityFeed(api.ActivityFeed o) { 554 checkActivityFeed(api.ActivityFeed o) {
555 buildCounterActivityFeed++; 555 buildCounterActivityFeed++;
556 if (buildCounterActivityFeed < 3) { 556 if (buildCounterActivityFeed < 3) {
557 unittest.expect(o.etag, unittest.equals('foo')); 557 unittest.expect(o.etag, unittest.equals('foo'));
558 unittest.expect(o.id, unittest.equals('foo')); 558 unittest.expect(o.id, unittest.equals('foo'));
559 checkUnnamed170(o.items); 559 checkUnnamed173(o.items);
560 unittest.expect(o.kind, unittest.equals('foo')); 560 unittest.expect(o.kind, unittest.equals('foo'));
561 unittest.expect(o.nextLink, unittest.equals('foo')); 561 unittest.expect(o.nextLink, unittest.equals('foo'));
562 unittest.expect(o.nextPageToken, unittest.equals('foo')); 562 unittest.expect(o.nextPageToken, unittest.equals('foo'));
563 unittest.expect(o.selfLink, unittest.equals('foo')); 563 unittest.expect(o.selfLink, unittest.equals('foo'));
564 unittest.expect(o.title, unittest.equals('foo')); 564 unittest.expect(o.title, unittest.equals('foo'));
565 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 565 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
566 } 566 }
567 buildCounterActivityFeed--; 567 buildCounterActivityFeed--;
568 } 568 }
569 569
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 625
626 checkCommentInReplyTo(api.CommentInReplyTo o) { 626 checkCommentInReplyTo(api.CommentInReplyTo o) {
627 buildCounterCommentInReplyTo++; 627 buildCounterCommentInReplyTo++;
628 if (buildCounterCommentInReplyTo < 3) { 628 if (buildCounterCommentInReplyTo < 3) {
629 unittest.expect(o.id, unittest.equals('foo')); 629 unittest.expect(o.id, unittest.equals('foo'));
630 unittest.expect(o.url, unittest.equals('foo')); 630 unittest.expect(o.url, unittest.equals('foo'));
631 } 631 }
632 buildCounterCommentInReplyTo--; 632 buildCounterCommentInReplyTo--;
633 } 633 }
634 634
635 buildUnnamed171() { 635 buildUnnamed174() {
636 var o = new core.List<api.CommentInReplyTo>(); 636 var o = new core.List<api.CommentInReplyTo>();
637 o.add(buildCommentInReplyTo()); 637 o.add(buildCommentInReplyTo());
638 o.add(buildCommentInReplyTo()); 638 o.add(buildCommentInReplyTo());
639 return o; 639 return o;
640 } 640 }
641 641
642 checkUnnamed171(core.List<api.CommentInReplyTo> o) { 642 checkUnnamed174(core.List<api.CommentInReplyTo> o) {
643 unittest.expect(o, unittest.hasLength(2)); 643 unittest.expect(o, unittest.hasLength(2));
644 checkCommentInReplyTo(o[0]); 644 checkCommentInReplyTo(o[0]);
645 checkCommentInReplyTo(o[1]); 645 checkCommentInReplyTo(o[1]);
646 } 646 }
647 647
648 core.int buildCounterCommentObject = 0; 648 core.int buildCounterCommentObject = 0;
649 buildCommentObject() { 649 buildCommentObject() {
650 var o = new api.CommentObject(); 650 var o = new api.CommentObject();
651 buildCounterCommentObject++; 651 buildCounterCommentObject++;
652 if (buildCounterCommentObject < 3) { 652 if (buildCounterCommentObject < 3) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 688 }
689 689
690 core.int buildCounterComment = 0; 690 core.int buildCounterComment = 0;
691 buildComment() { 691 buildComment() {
692 var o = new api.Comment(); 692 var o = new api.Comment();
693 buildCounterComment++; 693 buildCounterComment++;
694 if (buildCounterComment < 3) { 694 if (buildCounterComment < 3) {
695 o.actor = buildCommentActor(); 695 o.actor = buildCommentActor();
696 o.etag = "foo"; 696 o.etag = "foo";
697 o.id = "foo"; 697 o.id = "foo";
698 o.inReplyTo = buildUnnamed171(); 698 o.inReplyTo = buildUnnamed174();
699 o.kind = "foo"; 699 o.kind = "foo";
700 o.object = buildCommentObject(); 700 o.object = buildCommentObject();
701 o.plusoners = buildCommentPlusoners(); 701 o.plusoners = buildCommentPlusoners();
702 o.published = core.DateTime.parse("2002-02-27T14:01:02"); 702 o.published = core.DateTime.parse("2002-02-27T14:01:02");
703 o.selfLink = "foo"; 703 o.selfLink = "foo";
704 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 704 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
705 o.verb = "foo"; 705 o.verb = "foo";
706 } 706 }
707 buildCounterComment--; 707 buildCounterComment--;
708 return o; 708 return o;
709 } 709 }
710 710
711 checkComment(api.Comment o) { 711 checkComment(api.Comment o) {
712 buildCounterComment++; 712 buildCounterComment++;
713 if (buildCounterComment < 3) { 713 if (buildCounterComment < 3) {
714 checkCommentActor(o.actor); 714 checkCommentActor(o.actor);
715 unittest.expect(o.etag, unittest.equals('foo')); 715 unittest.expect(o.etag, unittest.equals('foo'));
716 unittest.expect(o.id, unittest.equals('foo')); 716 unittest.expect(o.id, unittest.equals('foo'));
717 checkUnnamed171(o.inReplyTo); 717 checkUnnamed174(o.inReplyTo);
718 unittest.expect(o.kind, unittest.equals('foo')); 718 unittest.expect(o.kind, unittest.equals('foo'));
719 checkCommentObject(o.object); 719 checkCommentObject(o.object);
720 checkCommentPlusoners(o.plusoners); 720 checkCommentPlusoners(o.plusoners);
721 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 721 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
722 unittest.expect(o.selfLink, unittest.equals('foo')); 722 unittest.expect(o.selfLink, unittest.equals('foo'));
723 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 723 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
724 unittest.expect(o.verb, unittest.equals('foo')); 724 unittest.expect(o.verb, unittest.equals('foo'));
725 } 725 }
726 buildCounterComment--; 726 buildCounterComment--;
727 } 727 }
728 728
729 buildUnnamed172() { 729 buildUnnamed175() {
730 var o = new core.List<api.Comment>(); 730 var o = new core.List<api.Comment>();
731 o.add(buildComment()); 731 o.add(buildComment());
732 o.add(buildComment()); 732 o.add(buildComment());
733 return o; 733 return o;
734 } 734 }
735 735
736 checkUnnamed172(core.List<api.Comment> o) { 736 checkUnnamed175(core.List<api.Comment> o) {
737 unittest.expect(o, unittest.hasLength(2)); 737 unittest.expect(o, unittest.hasLength(2));
738 checkComment(o[0]); 738 checkComment(o[0]);
739 checkComment(o[1]); 739 checkComment(o[1]);
740 } 740 }
741 741
742 core.int buildCounterCommentFeed = 0; 742 core.int buildCounterCommentFeed = 0;
743 buildCommentFeed() { 743 buildCommentFeed() {
744 var o = new api.CommentFeed(); 744 var o = new api.CommentFeed();
745 buildCounterCommentFeed++; 745 buildCounterCommentFeed++;
746 if (buildCounterCommentFeed < 3) { 746 if (buildCounterCommentFeed < 3) {
747 o.etag = "foo"; 747 o.etag = "foo";
748 o.id = "foo"; 748 o.id = "foo";
749 o.items = buildUnnamed172(); 749 o.items = buildUnnamed175();
750 o.kind = "foo"; 750 o.kind = "foo";
751 o.nextLink = "foo"; 751 o.nextLink = "foo";
752 o.nextPageToken = "foo"; 752 o.nextPageToken = "foo";
753 o.title = "foo"; 753 o.title = "foo";
754 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 754 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
755 } 755 }
756 buildCounterCommentFeed--; 756 buildCounterCommentFeed--;
757 return o; 757 return o;
758 } 758 }
759 759
760 checkCommentFeed(api.CommentFeed o) { 760 checkCommentFeed(api.CommentFeed o) {
761 buildCounterCommentFeed++; 761 buildCounterCommentFeed++;
762 if (buildCounterCommentFeed < 3) { 762 if (buildCounterCommentFeed < 3) {
763 unittest.expect(o.etag, unittest.equals('foo')); 763 unittest.expect(o.etag, unittest.equals('foo'));
764 unittest.expect(o.id, unittest.equals('foo')); 764 unittest.expect(o.id, unittest.equals('foo'));
765 checkUnnamed172(o.items); 765 checkUnnamed175(o.items);
766 unittest.expect(o.kind, unittest.equals('foo')); 766 unittest.expect(o.kind, unittest.equals('foo'));
767 unittest.expect(o.nextLink, unittest.equals('foo')); 767 unittest.expect(o.nextLink, unittest.equals('foo'));
768 unittest.expect(o.nextPageToken, unittest.equals('foo')); 768 unittest.expect(o.nextPageToken, unittest.equals('foo'));
769 unittest.expect(o.title, unittest.equals('foo')); 769 unittest.expect(o.title, unittest.equals('foo'));
770 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 770 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
771 } 771 }
772 buildCounterCommentFeed--; 772 buildCounterCommentFeed--;
773 } 773 }
774 774
775 buildUnnamed173() { 775 buildUnnamed176() {
776 var o = new core.List<core.String>(); 776 var o = new core.List<core.String>();
777 o.add("foo"); 777 o.add("foo");
778 o.add("foo"); 778 o.add("foo");
779 return o; 779 return o;
780 } 780 }
781 781
782 checkUnnamed173(core.List<core.String> o) { 782 checkUnnamed176(core.List<core.String> o) {
783 unittest.expect(o, unittest.hasLength(2)); 783 unittest.expect(o, unittest.hasLength(2));
784 unittest.expect(o[0], unittest.equals('foo')); 784 unittest.expect(o[0], unittest.equals('foo'));
785 unittest.expect(o[1], unittest.equals('foo')); 785 unittest.expect(o[1], unittest.equals('foo'));
786 } 786 }
787 787
788 buildUnnamed174() {
789 var o = new core.List<api.ItemScope>();
790 o.add(buildItemScope());
791 o.add(buildItemScope());
792 return o;
793 }
794
795 checkUnnamed174(core.List<api.ItemScope> o) {
796 unittest.expect(o, unittest.hasLength(2));
797 checkItemScope(o[0]);
798 checkItemScope(o[1]);
799 }
800
801 buildUnnamed175() {
802 var o = new core.List<api.ItemScope>();
803 o.add(buildItemScope());
804 o.add(buildItemScope());
805 return o;
806 }
807
808 checkUnnamed175(core.List<api.ItemScope> o) {
809 unittest.expect(o, unittest.hasLength(2));
810 checkItemScope(o[0]);
811 checkItemScope(o[1]);
812 }
813
814 buildUnnamed176() {
815 var o = new core.List<api.ItemScope>();
816 o.add(buildItemScope());
817 o.add(buildItemScope());
818 return o;
819 }
820
821 checkUnnamed176(core.List<api.ItemScope> o) {
822 unittest.expect(o, unittest.hasLength(2));
823 checkItemScope(o[0]);
824 checkItemScope(o[1]);
825 }
826
827 buildUnnamed177() { 788 buildUnnamed177() {
828 var o = new core.List<api.ItemScope>(); 789 var o = new core.List<api.ItemScope>();
829 o.add(buildItemScope()); 790 o.add(buildItemScope());
830 o.add(buildItemScope()); 791 o.add(buildItemScope());
831 return o; 792 return o;
832 } 793 }
833 794
834 checkUnnamed177(core.List<api.ItemScope> o) { 795 checkUnnamed177(core.List<api.ItemScope> o) {
835 unittest.expect(o, unittest.hasLength(2)); 796 unittest.expect(o, unittest.hasLength(2));
836 checkItemScope(o[0]); 797 checkItemScope(o[0]);
837 checkItemScope(o[1]); 798 checkItemScope(o[1]);
838 } 799 }
839 800
840 buildUnnamed178() { 801 buildUnnamed178() {
841 var o = new core.List<api.ItemScope>(); 802 var o = new core.List<api.ItemScope>();
842 o.add(buildItemScope()); 803 o.add(buildItemScope());
843 o.add(buildItemScope()); 804 o.add(buildItemScope());
844 return o; 805 return o;
845 } 806 }
846 807
847 checkUnnamed178(core.List<api.ItemScope> o) { 808 checkUnnamed178(core.List<api.ItemScope> o) {
848 unittest.expect(o, unittest.hasLength(2)); 809 unittest.expect(o, unittest.hasLength(2));
849 checkItemScope(o[0]); 810 checkItemScope(o[0]);
850 checkItemScope(o[1]); 811 checkItemScope(o[1]);
812 }
813
814 buildUnnamed179() {
815 var o = new core.List<api.ItemScope>();
816 o.add(buildItemScope());
817 o.add(buildItemScope());
818 return o;
819 }
820
821 checkUnnamed179(core.List<api.ItemScope> o) {
822 unittest.expect(o, unittest.hasLength(2));
823 checkItemScope(o[0]);
824 checkItemScope(o[1]);
825 }
826
827 buildUnnamed180() {
828 var o = new core.List<api.ItemScope>();
829 o.add(buildItemScope());
830 o.add(buildItemScope());
831 return o;
832 }
833
834 checkUnnamed180(core.List<api.ItemScope> o) {
835 unittest.expect(o, unittest.hasLength(2));
836 checkItemScope(o[0]);
837 checkItemScope(o[1]);
838 }
839
840 buildUnnamed181() {
841 var o = new core.List<api.ItemScope>();
842 o.add(buildItemScope());
843 o.add(buildItemScope());
844 return o;
845 }
846
847 checkUnnamed181(core.List<api.ItemScope> o) {
848 unittest.expect(o, unittest.hasLength(2));
849 checkItemScope(o[0]);
850 checkItemScope(o[1]);
851 } 851 }
852 852
853 core.int buildCounterItemScope = 0; 853 core.int buildCounterItemScope = 0;
854 buildItemScope() { 854 buildItemScope() {
855 var o = new api.ItemScope(); 855 var o = new api.ItemScope();
856 buildCounterItemScope++; 856 buildCounterItemScope++;
857 if (buildCounterItemScope < 3) { 857 if (buildCounterItemScope < 3) {
858 o.about = buildItemScope(); 858 o.about = buildItemScope();
859 o.additionalName = buildUnnamed173(); 859 o.additionalName = buildUnnamed176();
860 o.address = buildItemScope(); 860 o.address = buildItemScope();
861 o.addressCountry = "foo"; 861 o.addressCountry = "foo";
862 o.addressLocality = "foo"; 862 o.addressLocality = "foo";
863 o.addressRegion = "foo"; 863 o.addressRegion = "foo";
864 o.associatedMedia = buildUnnamed174(); 864 o.associatedMedia = buildUnnamed177();
865 o.attendeeCount = 42; 865 o.attendeeCount = 42;
866 o.attendees = buildUnnamed175(); 866 o.attendees = buildUnnamed178();
867 o.audio = buildItemScope(); 867 o.audio = buildItemScope();
868 o.author = buildUnnamed176(); 868 o.author = buildUnnamed179();
869 o.bestRating = "foo"; 869 o.bestRating = "foo";
870 o.birthDate = "foo"; 870 o.birthDate = "foo";
871 o.byArtist = buildItemScope(); 871 o.byArtist = buildItemScope();
872 o.caption = "foo"; 872 o.caption = "foo";
873 o.contentSize = "foo"; 873 o.contentSize = "foo";
874 o.contentUrl = "foo"; 874 o.contentUrl = "foo";
875 o.contributor = buildUnnamed177(); 875 o.contributor = buildUnnamed180();
876 o.dateCreated = "foo"; 876 o.dateCreated = "foo";
877 o.dateModified = "foo"; 877 o.dateModified = "foo";
878 o.datePublished = "foo"; 878 o.datePublished = "foo";
879 o.description = "foo"; 879 o.description = "foo";
880 o.duration = "foo"; 880 o.duration = "foo";
881 o.embedUrl = "foo"; 881 o.embedUrl = "foo";
882 o.endDate = "foo"; 882 o.endDate = "foo";
883 o.familyName = "foo"; 883 o.familyName = "foo";
884 o.gender = "foo"; 884 o.gender = "foo";
885 o.geo = buildItemScope(); 885 o.geo = buildItemScope();
886 o.givenName = "foo"; 886 o.givenName = "foo";
887 o.height = "foo"; 887 o.height = "foo";
888 o.id = "foo"; 888 o.id = "foo";
889 o.image = "foo"; 889 o.image = "foo";
890 o.inAlbum = buildItemScope(); 890 o.inAlbum = buildItemScope();
891 o.kind = "foo"; 891 o.kind = "foo";
892 o.latitude = 42.0; 892 o.latitude = 42.0;
893 o.location = buildItemScope(); 893 o.location = buildItemScope();
894 o.longitude = 42.0; 894 o.longitude = 42.0;
895 o.name = "foo"; 895 o.name = "foo";
896 o.partOfTVSeries = buildItemScope(); 896 o.partOfTVSeries = buildItemScope();
897 o.performers = buildUnnamed178(); 897 o.performers = buildUnnamed181();
898 o.playerType = "foo"; 898 o.playerType = "foo";
899 o.postOfficeBoxNumber = "foo"; 899 o.postOfficeBoxNumber = "foo";
900 o.postalCode = "foo"; 900 o.postalCode = "foo";
901 o.ratingValue = "foo"; 901 o.ratingValue = "foo";
902 o.reviewRating = buildItemScope(); 902 o.reviewRating = buildItemScope();
903 o.startDate = "foo"; 903 o.startDate = "foo";
904 o.streetAddress = "foo"; 904 o.streetAddress = "foo";
905 o.text = "foo"; 905 o.text = "foo";
906 o.thumbnail = buildItemScope(); 906 o.thumbnail = buildItemScope();
907 o.thumbnailUrl = "foo"; 907 o.thumbnailUrl = "foo";
908 o.tickerSymbol = "foo"; 908 o.tickerSymbol = "foo";
909 o.type = "foo"; 909 o.type = "foo";
910 o.url = "foo"; 910 o.url = "foo";
911 o.width = "foo"; 911 o.width = "foo";
912 o.worstRating = "foo"; 912 o.worstRating = "foo";
913 } 913 }
914 buildCounterItemScope--; 914 buildCounterItemScope--;
915 return o; 915 return o;
916 } 916 }
917 917
918 checkItemScope(api.ItemScope o) { 918 checkItemScope(api.ItemScope o) {
919 buildCounterItemScope++; 919 buildCounterItemScope++;
920 if (buildCounterItemScope < 3) { 920 if (buildCounterItemScope < 3) {
921 checkItemScope(o.about); 921 checkItemScope(o.about);
922 checkUnnamed173(o.additionalName); 922 checkUnnamed176(o.additionalName);
923 checkItemScope(o.address); 923 checkItemScope(o.address);
924 unittest.expect(o.addressCountry, unittest.equals('foo')); 924 unittest.expect(o.addressCountry, unittest.equals('foo'));
925 unittest.expect(o.addressLocality, unittest.equals('foo')); 925 unittest.expect(o.addressLocality, unittest.equals('foo'));
926 unittest.expect(o.addressRegion, unittest.equals('foo')); 926 unittest.expect(o.addressRegion, unittest.equals('foo'));
927 checkUnnamed174(o.associatedMedia); 927 checkUnnamed177(o.associatedMedia);
928 unittest.expect(o.attendeeCount, unittest.equals(42)); 928 unittest.expect(o.attendeeCount, unittest.equals(42));
929 checkUnnamed175(o.attendees); 929 checkUnnamed178(o.attendees);
930 checkItemScope(o.audio); 930 checkItemScope(o.audio);
931 checkUnnamed176(o.author); 931 checkUnnamed179(o.author);
932 unittest.expect(o.bestRating, unittest.equals('foo')); 932 unittest.expect(o.bestRating, unittest.equals('foo'));
933 unittest.expect(o.birthDate, unittest.equals('foo')); 933 unittest.expect(o.birthDate, unittest.equals('foo'));
934 checkItemScope(o.byArtist); 934 checkItemScope(o.byArtist);
935 unittest.expect(o.caption, unittest.equals('foo')); 935 unittest.expect(o.caption, unittest.equals('foo'));
936 unittest.expect(o.contentSize, unittest.equals('foo')); 936 unittest.expect(o.contentSize, unittest.equals('foo'));
937 unittest.expect(o.contentUrl, unittest.equals('foo')); 937 unittest.expect(o.contentUrl, unittest.equals('foo'));
938 checkUnnamed177(o.contributor); 938 checkUnnamed180(o.contributor);
939 unittest.expect(o.dateCreated, unittest.equals('foo')); 939 unittest.expect(o.dateCreated, unittest.equals('foo'));
940 unittest.expect(o.dateModified, unittest.equals('foo')); 940 unittest.expect(o.dateModified, unittest.equals('foo'));
941 unittest.expect(o.datePublished, unittest.equals('foo')); 941 unittest.expect(o.datePublished, unittest.equals('foo'));
942 unittest.expect(o.description, unittest.equals('foo')); 942 unittest.expect(o.description, unittest.equals('foo'));
943 unittest.expect(o.duration, unittest.equals('foo')); 943 unittest.expect(o.duration, unittest.equals('foo'));
944 unittest.expect(o.embedUrl, unittest.equals('foo')); 944 unittest.expect(o.embedUrl, unittest.equals('foo'));
945 unittest.expect(o.endDate, unittest.equals('foo')); 945 unittest.expect(o.endDate, unittest.equals('foo'));
946 unittest.expect(o.familyName, unittest.equals('foo')); 946 unittest.expect(o.familyName, unittest.equals('foo'));
947 unittest.expect(o.gender, unittest.equals('foo')); 947 unittest.expect(o.gender, unittest.equals('foo'));
948 checkItemScope(o.geo); 948 checkItemScope(o.geo);
949 unittest.expect(o.givenName, unittest.equals('foo')); 949 unittest.expect(o.givenName, unittest.equals('foo'));
950 unittest.expect(o.height, unittest.equals('foo')); 950 unittest.expect(o.height, unittest.equals('foo'));
951 unittest.expect(o.id, unittest.equals('foo')); 951 unittest.expect(o.id, unittest.equals('foo'));
952 unittest.expect(o.image, unittest.equals('foo')); 952 unittest.expect(o.image, unittest.equals('foo'));
953 checkItemScope(o.inAlbum); 953 checkItemScope(o.inAlbum);
954 unittest.expect(o.kind, unittest.equals('foo')); 954 unittest.expect(o.kind, unittest.equals('foo'));
955 unittest.expect(o.latitude, unittest.equals(42.0)); 955 unittest.expect(o.latitude, unittest.equals(42.0));
956 checkItemScope(o.location); 956 checkItemScope(o.location);
957 unittest.expect(o.longitude, unittest.equals(42.0)); 957 unittest.expect(o.longitude, unittest.equals(42.0));
958 unittest.expect(o.name, unittest.equals('foo')); 958 unittest.expect(o.name, unittest.equals('foo'));
959 checkItemScope(o.partOfTVSeries); 959 checkItemScope(o.partOfTVSeries);
960 checkUnnamed178(o.performers); 960 checkUnnamed181(o.performers);
961 unittest.expect(o.playerType, unittest.equals('foo')); 961 unittest.expect(o.playerType, unittest.equals('foo'));
962 unittest.expect(o.postOfficeBoxNumber, unittest.equals('foo')); 962 unittest.expect(o.postOfficeBoxNumber, unittest.equals('foo'));
963 unittest.expect(o.postalCode, unittest.equals('foo')); 963 unittest.expect(o.postalCode, unittest.equals('foo'));
964 unittest.expect(o.ratingValue, unittest.equals('foo')); 964 unittest.expect(o.ratingValue, unittest.equals('foo'));
965 checkItemScope(o.reviewRating); 965 checkItemScope(o.reviewRating);
966 unittest.expect(o.startDate, unittest.equals('foo')); 966 unittest.expect(o.startDate, unittest.equals('foo'));
967 unittest.expect(o.streetAddress, unittest.equals('foo')); 967 unittest.expect(o.streetAddress, unittest.equals('foo'));
968 unittest.expect(o.text, unittest.equals('foo')); 968 unittest.expect(o.text, unittest.equals('foo'));
969 checkItemScope(o.thumbnail); 969 checkItemScope(o.thumbnail);
970 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); 970 unittest.expect(o.thumbnailUrl, unittest.equals('foo'));
(...skipping 30 matching lines...) Expand all
1001 unittest.expect(o.kind, unittest.equals('foo')); 1001 unittest.expect(o.kind, unittest.equals('foo'));
1002 checkItemScope(o.object); 1002 checkItemScope(o.object);
1003 checkItemScope(o.result); 1003 checkItemScope(o.result);
1004 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 1004 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
1005 checkItemScope(o.target); 1005 checkItemScope(o.target);
1006 unittest.expect(o.type, unittest.equals('foo')); 1006 unittest.expect(o.type, unittest.equals('foo'));
1007 } 1007 }
1008 buildCounterMoment--; 1008 buildCounterMoment--;
1009 } 1009 }
1010 1010
1011 buildUnnamed179() { 1011 buildUnnamed182() {
1012 var o = new core.List<api.Moment>(); 1012 var o = new core.List<api.Moment>();
1013 o.add(buildMoment()); 1013 o.add(buildMoment());
1014 o.add(buildMoment()); 1014 o.add(buildMoment());
1015 return o; 1015 return o;
1016 } 1016 }
1017 1017
1018 checkUnnamed179(core.List<api.Moment> o) { 1018 checkUnnamed182(core.List<api.Moment> o) {
1019 unittest.expect(o, unittest.hasLength(2)); 1019 unittest.expect(o, unittest.hasLength(2));
1020 checkMoment(o[0]); 1020 checkMoment(o[0]);
1021 checkMoment(o[1]); 1021 checkMoment(o[1]);
1022 } 1022 }
1023 1023
1024 core.int buildCounterMomentsFeed = 0; 1024 core.int buildCounterMomentsFeed = 0;
1025 buildMomentsFeed() { 1025 buildMomentsFeed() {
1026 var o = new api.MomentsFeed(); 1026 var o = new api.MomentsFeed();
1027 buildCounterMomentsFeed++; 1027 buildCounterMomentsFeed++;
1028 if (buildCounterMomentsFeed < 3) { 1028 if (buildCounterMomentsFeed < 3) {
1029 o.etag = "foo"; 1029 o.etag = "foo";
1030 o.items = buildUnnamed179(); 1030 o.items = buildUnnamed182();
1031 o.kind = "foo"; 1031 o.kind = "foo";
1032 o.nextLink = "foo"; 1032 o.nextLink = "foo";
1033 o.nextPageToken = "foo"; 1033 o.nextPageToken = "foo";
1034 o.selfLink = "foo"; 1034 o.selfLink = "foo";
1035 o.title = "foo"; 1035 o.title = "foo";
1036 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 1036 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
1037 } 1037 }
1038 buildCounterMomentsFeed--; 1038 buildCounterMomentsFeed--;
1039 return o; 1039 return o;
1040 } 1040 }
1041 1041
1042 checkMomentsFeed(api.MomentsFeed o) { 1042 checkMomentsFeed(api.MomentsFeed o) {
1043 buildCounterMomentsFeed++; 1043 buildCounterMomentsFeed++;
1044 if (buildCounterMomentsFeed < 3) { 1044 if (buildCounterMomentsFeed < 3) {
1045 unittest.expect(o.etag, unittest.equals('foo')); 1045 unittest.expect(o.etag, unittest.equals('foo'));
1046 checkUnnamed179(o.items); 1046 checkUnnamed182(o.items);
1047 unittest.expect(o.kind, unittest.equals('foo')); 1047 unittest.expect(o.kind, unittest.equals('foo'));
1048 unittest.expect(o.nextLink, unittest.equals('foo')); 1048 unittest.expect(o.nextLink, unittest.equals('foo'));
1049 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1049 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1050 unittest.expect(o.selfLink, unittest.equals('foo')); 1050 unittest.expect(o.selfLink, unittest.equals('foo'));
1051 unittest.expect(o.title, unittest.equals('foo')); 1051 unittest.expect(o.title, unittest.equals('foo'));
1052 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1052 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1053 } 1053 }
1054 buildCounterMomentsFeed--; 1054 buildCounterMomentsFeed--;
1055 } 1055 }
1056 1056
1057 buildUnnamed180() { 1057 buildUnnamed183() {
1058 var o = new core.List<api.Person>(); 1058 var o = new core.List<api.Person>();
1059 o.add(buildPerson()); 1059 o.add(buildPerson());
1060 o.add(buildPerson()); 1060 o.add(buildPerson());
1061 return o; 1061 return o;
1062 } 1062 }
1063 1063
1064 checkUnnamed180(core.List<api.Person> o) { 1064 checkUnnamed183(core.List<api.Person> o) {
1065 unittest.expect(o, unittest.hasLength(2)); 1065 unittest.expect(o, unittest.hasLength(2));
1066 checkPerson(o[0]); 1066 checkPerson(o[0]);
1067 checkPerson(o[1]); 1067 checkPerson(o[1]);
1068 } 1068 }
1069 1069
1070 core.int buildCounterPeopleFeed = 0; 1070 core.int buildCounterPeopleFeed = 0;
1071 buildPeopleFeed() { 1071 buildPeopleFeed() {
1072 var o = new api.PeopleFeed(); 1072 var o = new api.PeopleFeed();
1073 buildCounterPeopleFeed++; 1073 buildCounterPeopleFeed++;
1074 if (buildCounterPeopleFeed < 3) { 1074 if (buildCounterPeopleFeed < 3) {
1075 o.etag = "foo"; 1075 o.etag = "foo";
1076 o.items = buildUnnamed180(); 1076 o.items = buildUnnamed183();
1077 o.kind = "foo"; 1077 o.kind = "foo";
1078 o.nextPageToken = "foo"; 1078 o.nextPageToken = "foo";
1079 o.selfLink = "foo"; 1079 o.selfLink = "foo";
1080 o.title = "foo"; 1080 o.title = "foo";
1081 o.totalItems = 42; 1081 o.totalItems = 42;
1082 } 1082 }
1083 buildCounterPeopleFeed--; 1083 buildCounterPeopleFeed--;
1084 return o; 1084 return o;
1085 } 1085 }
1086 1086
1087 checkPeopleFeed(api.PeopleFeed o) { 1087 checkPeopleFeed(api.PeopleFeed o) {
1088 buildCounterPeopleFeed++; 1088 buildCounterPeopleFeed++;
1089 if (buildCounterPeopleFeed < 3) { 1089 if (buildCounterPeopleFeed < 3) {
1090 unittest.expect(o.etag, unittest.equals('foo')); 1090 unittest.expect(o.etag, unittest.equals('foo'));
1091 checkUnnamed180(o.items); 1091 checkUnnamed183(o.items);
1092 unittest.expect(o.kind, unittest.equals('foo')); 1092 unittest.expect(o.kind, unittest.equals('foo'));
1093 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1093 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1094 unittest.expect(o.selfLink, unittest.equals('foo')); 1094 unittest.expect(o.selfLink, unittest.equals('foo'));
1095 unittest.expect(o.title, unittest.equals('foo')); 1095 unittest.expect(o.title, unittest.equals('foo'));
1096 unittest.expect(o.totalItems, unittest.equals(42)); 1096 unittest.expect(o.totalItems, unittest.equals(42));
1097 } 1097 }
1098 buildCounterPeopleFeed--; 1098 buildCounterPeopleFeed--;
1099 } 1099 }
1100 1100
1101 core.int buildCounterPersonAgeRange = 0; 1101 core.int buildCounterPersonAgeRange = 0;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 1200
1201 checkPersonEmails(api.PersonEmails o) { 1201 checkPersonEmails(api.PersonEmails o) {
1202 buildCounterPersonEmails++; 1202 buildCounterPersonEmails++;
1203 if (buildCounterPersonEmails < 3) { 1203 if (buildCounterPersonEmails < 3) {
1204 unittest.expect(o.type, unittest.equals('foo')); 1204 unittest.expect(o.type, unittest.equals('foo'));
1205 unittest.expect(o.value, unittest.equals('foo')); 1205 unittest.expect(o.value, unittest.equals('foo'));
1206 } 1206 }
1207 buildCounterPersonEmails--; 1207 buildCounterPersonEmails--;
1208 } 1208 }
1209 1209
1210 buildUnnamed181() { 1210 buildUnnamed184() {
1211 var o = new core.List<api.PersonEmails>(); 1211 var o = new core.List<api.PersonEmails>();
1212 o.add(buildPersonEmails()); 1212 o.add(buildPersonEmails());
1213 o.add(buildPersonEmails()); 1213 o.add(buildPersonEmails());
1214 return o; 1214 return o;
1215 } 1215 }
1216 1216
1217 checkUnnamed181(core.List<api.PersonEmails> o) { 1217 checkUnnamed184(core.List<api.PersonEmails> o) {
1218 unittest.expect(o, unittest.hasLength(2)); 1218 unittest.expect(o, unittest.hasLength(2));
1219 checkPersonEmails(o[0]); 1219 checkPersonEmails(o[0]);
1220 checkPersonEmails(o[1]); 1220 checkPersonEmails(o[1]);
1221 } 1221 }
1222 1222
1223 core.int buildCounterPersonImage = 0; 1223 core.int buildCounterPersonImage = 0;
1224 buildPersonImage() { 1224 buildPersonImage() {
1225 var o = new api.PersonImage(); 1225 var o = new api.PersonImage();
1226 buildCounterPersonImage++; 1226 buildCounterPersonImage++;
1227 if (buildCounterPersonImage < 3) { 1227 if (buildCounterPersonImage < 3) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 unittest.expect(o.location, unittest.equals('foo')); 1298 unittest.expect(o.location, unittest.equals('foo'));
1299 unittest.expect(o.name, unittest.equals('foo')); 1299 unittest.expect(o.name, unittest.equals('foo'));
1300 unittest.expect(o.primary, unittest.isTrue); 1300 unittest.expect(o.primary, unittest.isTrue);
1301 unittest.expect(o.startDate, unittest.equals('foo')); 1301 unittest.expect(o.startDate, unittest.equals('foo'));
1302 unittest.expect(o.title, unittest.equals('foo')); 1302 unittest.expect(o.title, unittest.equals('foo'));
1303 unittest.expect(o.type, unittest.equals('foo')); 1303 unittest.expect(o.type, unittest.equals('foo'));
1304 } 1304 }
1305 buildCounterPersonOrganizations--; 1305 buildCounterPersonOrganizations--;
1306 } 1306 }
1307 1307
1308 buildUnnamed182() { 1308 buildUnnamed185() {
1309 var o = new core.List<api.PersonOrganizations>(); 1309 var o = new core.List<api.PersonOrganizations>();
1310 o.add(buildPersonOrganizations()); 1310 o.add(buildPersonOrganizations());
1311 o.add(buildPersonOrganizations()); 1311 o.add(buildPersonOrganizations());
1312 return o; 1312 return o;
1313 } 1313 }
1314 1314
1315 checkUnnamed182(core.List<api.PersonOrganizations> o) { 1315 checkUnnamed185(core.List<api.PersonOrganizations> o) {
1316 unittest.expect(o, unittest.hasLength(2)); 1316 unittest.expect(o, unittest.hasLength(2));
1317 checkPersonOrganizations(o[0]); 1317 checkPersonOrganizations(o[0]);
1318 checkPersonOrganizations(o[1]); 1318 checkPersonOrganizations(o[1]);
1319 } 1319 }
1320 1320
1321 core.int buildCounterPersonPlacesLived = 0; 1321 core.int buildCounterPersonPlacesLived = 0;
1322 buildPersonPlacesLived() { 1322 buildPersonPlacesLived() {
1323 var o = new api.PersonPlacesLived(); 1323 var o = new api.PersonPlacesLived();
1324 buildCounterPersonPlacesLived++; 1324 buildCounterPersonPlacesLived++;
1325 if (buildCounterPersonPlacesLived < 3) { 1325 if (buildCounterPersonPlacesLived < 3) {
1326 o.primary = true; 1326 o.primary = true;
1327 o.value = "foo"; 1327 o.value = "foo";
1328 } 1328 }
1329 buildCounterPersonPlacesLived--; 1329 buildCounterPersonPlacesLived--;
1330 return o; 1330 return o;
1331 } 1331 }
1332 1332
1333 checkPersonPlacesLived(api.PersonPlacesLived o) { 1333 checkPersonPlacesLived(api.PersonPlacesLived o) {
1334 buildCounterPersonPlacesLived++; 1334 buildCounterPersonPlacesLived++;
1335 if (buildCounterPersonPlacesLived < 3) { 1335 if (buildCounterPersonPlacesLived < 3) {
1336 unittest.expect(o.primary, unittest.isTrue); 1336 unittest.expect(o.primary, unittest.isTrue);
1337 unittest.expect(o.value, unittest.equals('foo')); 1337 unittest.expect(o.value, unittest.equals('foo'));
1338 } 1338 }
1339 buildCounterPersonPlacesLived--; 1339 buildCounterPersonPlacesLived--;
1340 } 1340 }
1341 1341
1342 buildUnnamed183() { 1342 buildUnnamed186() {
1343 var o = new core.List<api.PersonPlacesLived>(); 1343 var o = new core.List<api.PersonPlacesLived>();
1344 o.add(buildPersonPlacesLived()); 1344 o.add(buildPersonPlacesLived());
1345 o.add(buildPersonPlacesLived()); 1345 o.add(buildPersonPlacesLived());
1346 return o; 1346 return o;
1347 } 1347 }
1348 1348
1349 checkUnnamed183(core.List<api.PersonPlacesLived> o) { 1349 checkUnnamed186(core.List<api.PersonPlacesLived> o) {
1350 unittest.expect(o, unittest.hasLength(2)); 1350 unittest.expect(o, unittest.hasLength(2));
1351 checkPersonPlacesLived(o[0]); 1351 checkPersonPlacesLived(o[0]);
1352 checkPersonPlacesLived(o[1]); 1352 checkPersonPlacesLived(o[1]);
1353 } 1353 }
1354 1354
1355 core.int buildCounterPersonUrls = 0; 1355 core.int buildCounterPersonUrls = 0;
1356 buildPersonUrls() { 1356 buildPersonUrls() {
1357 var o = new api.PersonUrls(); 1357 var o = new api.PersonUrls();
1358 buildCounterPersonUrls++; 1358 buildCounterPersonUrls++;
1359 if (buildCounterPersonUrls < 3) { 1359 if (buildCounterPersonUrls < 3) {
1360 o.label = "foo"; 1360 o.label = "foo";
1361 o.type = "foo"; 1361 o.type = "foo";
1362 o.value = "foo"; 1362 o.value = "foo";
1363 } 1363 }
1364 buildCounterPersonUrls--; 1364 buildCounterPersonUrls--;
1365 return o; 1365 return o;
1366 } 1366 }
1367 1367
1368 checkPersonUrls(api.PersonUrls o) { 1368 checkPersonUrls(api.PersonUrls o) {
1369 buildCounterPersonUrls++; 1369 buildCounterPersonUrls++;
1370 if (buildCounterPersonUrls < 3) { 1370 if (buildCounterPersonUrls < 3) {
1371 unittest.expect(o.label, unittest.equals('foo')); 1371 unittest.expect(o.label, unittest.equals('foo'));
1372 unittest.expect(o.type, unittest.equals('foo')); 1372 unittest.expect(o.type, unittest.equals('foo'));
1373 unittest.expect(o.value, unittest.equals('foo')); 1373 unittest.expect(o.value, unittest.equals('foo'));
1374 } 1374 }
1375 buildCounterPersonUrls--; 1375 buildCounterPersonUrls--;
1376 } 1376 }
1377 1377
1378 buildUnnamed184() { 1378 buildUnnamed187() {
1379 var o = new core.List<api.PersonUrls>(); 1379 var o = new core.List<api.PersonUrls>();
1380 o.add(buildPersonUrls()); 1380 o.add(buildPersonUrls());
1381 o.add(buildPersonUrls()); 1381 o.add(buildPersonUrls());
1382 return o; 1382 return o;
1383 } 1383 }
1384 1384
1385 checkUnnamed184(core.List<api.PersonUrls> o) { 1385 checkUnnamed187(core.List<api.PersonUrls> o) {
1386 unittest.expect(o, unittest.hasLength(2)); 1386 unittest.expect(o, unittest.hasLength(2));
1387 checkPersonUrls(o[0]); 1387 checkPersonUrls(o[0]);
1388 checkPersonUrls(o[1]); 1388 checkPersonUrls(o[1]);
1389 } 1389 }
1390 1390
1391 core.int buildCounterPerson = 0; 1391 core.int buildCounterPerson = 0;
1392 buildPerson() { 1392 buildPerson() {
1393 var o = new api.Person(); 1393 var o = new api.Person();
1394 buildCounterPerson++; 1394 buildCounterPerson++;
1395 if (buildCounterPerson < 3) { 1395 if (buildCounterPerson < 3) {
1396 o.aboutMe = "foo"; 1396 o.aboutMe = "foo";
1397 o.ageRange = buildPersonAgeRange(); 1397 o.ageRange = buildPersonAgeRange();
1398 o.birthday = "foo"; 1398 o.birthday = "foo";
1399 o.braggingRights = "foo"; 1399 o.braggingRights = "foo";
1400 o.circledByCount = 42; 1400 o.circledByCount = 42;
1401 o.cover = buildPersonCover(); 1401 o.cover = buildPersonCover();
1402 o.currentLocation = "foo"; 1402 o.currentLocation = "foo";
1403 o.displayName = "foo"; 1403 o.displayName = "foo";
1404 o.domain = "foo"; 1404 o.domain = "foo";
1405 o.emails = buildUnnamed181(); 1405 o.emails = buildUnnamed184();
1406 o.etag = "foo"; 1406 o.etag = "foo";
1407 o.gender = "foo"; 1407 o.gender = "foo";
1408 o.id = "foo"; 1408 o.id = "foo";
1409 o.image = buildPersonImage(); 1409 o.image = buildPersonImage();
1410 o.isPlusUser = true; 1410 o.isPlusUser = true;
1411 o.kind = "foo"; 1411 o.kind = "foo";
1412 o.language = "foo"; 1412 o.language = "foo";
1413 o.name = buildPersonName(); 1413 o.name = buildPersonName();
1414 o.nickname = "foo"; 1414 o.nickname = "foo";
1415 o.objectType = "foo"; 1415 o.objectType = "foo";
1416 o.occupation = "foo"; 1416 o.occupation = "foo";
1417 o.organizations = buildUnnamed182(); 1417 o.organizations = buildUnnamed185();
1418 o.placesLived = buildUnnamed183(); 1418 o.placesLived = buildUnnamed186();
1419 o.plusOneCount = 42; 1419 o.plusOneCount = 42;
1420 o.relationshipStatus = "foo"; 1420 o.relationshipStatus = "foo";
1421 o.skills = "foo"; 1421 o.skills = "foo";
1422 o.tagline = "foo"; 1422 o.tagline = "foo";
1423 o.url = "foo"; 1423 o.url = "foo";
1424 o.urls = buildUnnamed184(); 1424 o.urls = buildUnnamed187();
1425 o.verified = true; 1425 o.verified = true;
1426 } 1426 }
1427 buildCounterPerson--; 1427 buildCounterPerson--;
1428 return o; 1428 return o;
1429 } 1429 }
1430 1430
1431 checkPerson(api.Person o) { 1431 checkPerson(api.Person o) {
1432 buildCounterPerson++; 1432 buildCounterPerson++;
1433 if (buildCounterPerson < 3) { 1433 if (buildCounterPerson < 3) {
1434 unittest.expect(o.aboutMe, unittest.equals('foo')); 1434 unittest.expect(o.aboutMe, unittest.equals('foo'));
1435 checkPersonAgeRange(o.ageRange); 1435 checkPersonAgeRange(o.ageRange);
1436 unittest.expect(o.birthday, unittest.equals('foo')); 1436 unittest.expect(o.birthday, unittest.equals('foo'));
1437 unittest.expect(o.braggingRights, unittest.equals('foo')); 1437 unittest.expect(o.braggingRights, unittest.equals('foo'));
1438 unittest.expect(o.circledByCount, unittest.equals(42)); 1438 unittest.expect(o.circledByCount, unittest.equals(42));
1439 checkPersonCover(o.cover); 1439 checkPersonCover(o.cover);
1440 unittest.expect(o.currentLocation, unittest.equals('foo')); 1440 unittest.expect(o.currentLocation, unittest.equals('foo'));
1441 unittest.expect(o.displayName, unittest.equals('foo')); 1441 unittest.expect(o.displayName, unittest.equals('foo'));
1442 unittest.expect(o.domain, unittest.equals('foo')); 1442 unittest.expect(o.domain, unittest.equals('foo'));
1443 checkUnnamed181(o.emails); 1443 checkUnnamed184(o.emails);
1444 unittest.expect(o.etag, unittest.equals('foo')); 1444 unittest.expect(o.etag, unittest.equals('foo'));
1445 unittest.expect(o.gender, unittest.equals('foo')); 1445 unittest.expect(o.gender, unittest.equals('foo'));
1446 unittest.expect(o.id, unittest.equals('foo')); 1446 unittest.expect(o.id, unittest.equals('foo'));
1447 checkPersonImage(o.image); 1447 checkPersonImage(o.image);
1448 unittest.expect(o.isPlusUser, unittest.isTrue); 1448 unittest.expect(o.isPlusUser, unittest.isTrue);
1449 unittest.expect(o.kind, unittest.equals('foo')); 1449 unittest.expect(o.kind, unittest.equals('foo'));
1450 unittest.expect(o.language, unittest.equals('foo')); 1450 unittest.expect(o.language, unittest.equals('foo'));
1451 checkPersonName(o.name); 1451 checkPersonName(o.name);
1452 unittest.expect(o.nickname, unittest.equals('foo')); 1452 unittest.expect(o.nickname, unittest.equals('foo'));
1453 unittest.expect(o.objectType, unittest.equals('foo')); 1453 unittest.expect(o.objectType, unittest.equals('foo'));
1454 unittest.expect(o.occupation, unittest.equals('foo')); 1454 unittest.expect(o.occupation, unittest.equals('foo'));
1455 checkUnnamed182(o.organizations); 1455 checkUnnamed185(o.organizations);
1456 checkUnnamed183(o.placesLived); 1456 checkUnnamed186(o.placesLived);
1457 unittest.expect(o.plusOneCount, unittest.equals(42)); 1457 unittest.expect(o.plusOneCount, unittest.equals(42));
1458 unittest.expect(o.relationshipStatus, unittest.equals('foo')); 1458 unittest.expect(o.relationshipStatus, unittest.equals('foo'));
1459 unittest.expect(o.skills, unittest.equals('foo')); 1459 unittest.expect(o.skills, unittest.equals('foo'));
1460 unittest.expect(o.tagline, unittest.equals('foo')); 1460 unittest.expect(o.tagline, unittest.equals('foo'));
1461 unittest.expect(o.url, unittest.equals('foo')); 1461 unittest.expect(o.url, unittest.equals('foo'));
1462 checkUnnamed184(o.urls); 1462 checkUnnamed187(o.urls);
1463 unittest.expect(o.verified, unittest.isTrue); 1463 unittest.expect(o.verified, unittest.isTrue);
1464 } 1464 }
1465 buildCounterPerson--; 1465 buildCounterPerson--;
1466 } 1466 }
1467 1467
1468 core.int buildCounterPlaceAddress = 0; 1468 core.int buildCounterPlaceAddress = 0;
1469 buildPlaceAddress() { 1469 buildPlaceAddress() {
1470 var o = new api.PlaceAddress(); 1470 var o = new api.PlaceAddress();
1471 buildCounterPlaceAddress++; 1471 buildCounterPlaceAddress++;
1472 if (buildCounterPlaceAddress < 3) { 1472 if (buildCounterPlaceAddress < 3) {
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 unittest.test("method--get", () { 1966 unittest.test("method--get", () {
1967 1967
1968 var mock = new common_test.HttpServerMock(); 1968 var mock = new common_test.HttpServerMock();
1969 api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; 1969 api.ActivitiesResourceApi res = new api.PlusApi(mock).activities;
1970 var arg_activityId = "foo"; 1970 var arg_activityId = "foo";
1971 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1971 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1972 var path = (req.url).path; 1972 var path = (req.url).path;
1973 var pathOffset = 0; 1973 var pathOffset = 0;
1974 var index; 1974 var index;
1975 var subPart; 1975 var subPart;
1976 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 1976 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1977 pathOffset += 9; 1977 pathOffset += 1;
1978 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
1979 pathOffset += 8;
1978 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/")); 1980 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/"));
1979 pathOffset += 11; 1981 pathOffset += 11;
1980 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 1982 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1981 pathOffset = path.length; 1983 pathOffset = path.length;
1982 unittest.expect(subPart, unittest.equals("$arg_activityId")); 1984 unittest.expect(subPart, unittest.equals("$arg_activityId"));
1983 1985
1984 var query = (req.url).query; 1986 var query = (req.url).query;
1985 var queryOffset = 0; 1987 var queryOffset = 0;
1986 var queryMap = {}; 1988 var queryMap = {};
1987 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1989 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
(...skipping 28 matching lines...) Expand all
2016 api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; 2018 api.ActivitiesResourceApi res = new api.PlusApi(mock).activities;
2017 var arg_userId = "foo"; 2019 var arg_userId = "foo";
2018 var arg_collection = "foo"; 2020 var arg_collection = "foo";
2019 var arg_maxResults = 42; 2021 var arg_maxResults = 42;
2020 var arg_pageToken = "foo"; 2022 var arg_pageToken = "foo";
2021 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2023 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2022 var path = (req.url).path; 2024 var path = (req.url).path;
2023 var pathOffset = 0; 2025 var pathOffset = 0;
2024 var index; 2026 var index;
2025 var subPart; 2027 var subPart;
2026 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2028 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2027 pathOffset += 9; 2029 pathOffset += 1;
2030 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2031 pathOffset += 8;
2028 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/")); 2032 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/"));
2029 pathOffset += 7; 2033 pathOffset += 7;
2030 index = path.indexOf("/activities/", pathOffset); 2034 index = path.indexOf("/activities/", pathOffset);
2031 unittest.expect(index >= 0, unittest.isTrue); 2035 unittest.expect(index >= 0, unittest.isTrue);
2032 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2036 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2033 pathOffset = index; 2037 pathOffset = index;
2034 unittest.expect(subPart, unittest.equals("$arg_userId")); 2038 unittest.expect(subPart, unittest.equals("$arg_userId"));
2035 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/activities/")); 2039 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/activities/"));
2036 pathOffset += 12; 2040 pathOffset += 12;
2037 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2041 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 var arg_query = "foo"; 2080 var arg_query = "foo";
2077 var arg_language = "foo"; 2081 var arg_language = "foo";
2078 var arg_maxResults = 42; 2082 var arg_maxResults = 42;
2079 var arg_orderBy = "foo"; 2083 var arg_orderBy = "foo";
2080 var arg_pageToken = "foo"; 2084 var arg_pageToken = "foo";
2081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2085 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2082 var path = (req.url).path; 2086 var path = (req.url).path;
2083 var pathOffset = 0; 2087 var pathOffset = 0;
2084 var index; 2088 var index;
2085 var subPart; 2089 var subPart;
2086 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2090 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2087 pathOffset += 9; 2091 pathOffset += 1;
2092 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2093 pathOffset += 8;
2088 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("activities")); 2094 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("activities"));
2089 pathOffset += 10; 2095 pathOffset += 10;
2090 2096
2091 var query = (req.url).query; 2097 var query = (req.url).query;
2092 var queryOffset = 0; 2098 var queryOffset = 0;
2093 var queryMap = {}; 2099 var queryMap = {};
2094 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2095 parseBool(n) { 2101 parseBool(n) {
2096 if (n == "true") return true; 2102 if (n == "true") return true;
2097 if (n == "false") return false; 2103 if (n == "false") return false;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 unittest.test("method--get", () { 2135 unittest.test("method--get", () {
2130 2136
2131 var mock = new common_test.HttpServerMock(); 2137 var mock = new common_test.HttpServerMock();
2132 api.CommentsResourceApi res = new api.PlusApi(mock).comments; 2138 api.CommentsResourceApi res = new api.PlusApi(mock).comments;
2133 var arg_commentId = "foo"; 2139 var arg_commentId = "foo";
2134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2140 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2135 var path = (req.url).path; 2141 var path = (req.url).path;
2136 var pathOffset = 0; 2142 var pathOffset = 0;
2137 var index; 2143 var index;
2138 var subPart; 2144 var subPart;
2139 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2140 pathOffset += 9; 2146 pathOffset += 1;
2147 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2148 pathOffset += 8;
2141 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("comments/")); 2149 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("comments/"));
2142 pathOffset += 9; 2150 pathOffset += 9;
2143 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2151 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2144 pathOffset = path.length; 2152 pathOffset = path.length;
2145 unittest.expect(subPart, unittest.equals("$arg_commentId")); 2153 unittest.expect(subPart, unittest.equals("$arg_commentId"));
2146 2154
2147 var query = (req.url).query; 2155 var query = (req.url).query;
2148 var queryOffset = 0; 2156 var queryOffset = 0;
2149 var queryMap = {}; 2157 var queryMap = {};
2150 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2158 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
(...skipping 28 matching lines...) Expand all
2179 api.CommentsResourceApi res = new api.PlusApi(mock).comments; 2187 api.CommentsResourceApi res = new api.PlusApi(mock).comments;
2180 var arg_activityId = "foo"; 2188 var arg_activityId = "foo";
2181 var arg_maxResults = 42; 2189 var arg_maxResults = 42;
2182 var arg_pageToken = "foo"; 2190 var arg_pageToken = "foo";
2183 var arg_sortOrder = "foo"; 2191 var arg_sortOrder = "foo";
2184 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2192 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2185 var path = (req.url).path; 2193 var path = (req.url).path;
2186 var pathOffset = 0; 2194 var pathOffset = 0;
2187 var index; 2195 var index;
2188 var subPart; 2196 var subPart;
2189 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2190 pathOffset += 9; 2198 pathOffset += 1;
2199 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2200 pathOffset += 8;
2191 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/")); 2201 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/"));
2192 pathOffset += 11; 2202 pathOffset += 11;
2193 index = path.indexOf("/comments", pathOffset); 2203 index = path.indexOf("/comments", pathOffset);
2194 unittest.expect(index >= 0, unittest.isTrue); 2204 unittest.expect(index >= 0, unittest.isTrue);
2195 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2205 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2196 pathOffset = index; 2206 pathOffset = index;
2197 unittest.expect(subPart, unittest.equals("$arg_activityId")); 2207 unittest.expect(subPart, unittest.equals("$arg_activityId"));
2198 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/comments")); 2208 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/comments"));
2199 pathOffset += 9; 2209 pathOffset += 9;
2200 2210
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 var arg_collection = "foo"; 2253 var arg_collection = "foo";
2244 var arg_debug = true; 2254 var arg_debug = true;
2245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2255 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2246 var obj = new api.Moment.fromJson(json); 2256 var obj = new api.Moment.fromJson(json);
2247 checkMoment(obj); 2257 checkMoment(obj);
2248 2258
2249 var path = (req.url).path; 2259 var path = (req.url).path;
2250 var pathOffset = 0; 2260 var pathOffset = 0;
2251 var index; 2261 var index;
2252 var subPart; 2262 var subPart;
2253 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2263 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2254 pathOffset += 9; 2264 pathOffset += 1;
2265 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2266 pathOffset += 8;
2255 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/")); 2267 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/"));
2256 pathOffset += 7; 2268 pathOffset += 7;
2257 index = path.indexOf("/moments/", pathOffset); 2269 index = path.indexOf("/moments/", pathOffset);
2258 unittest.expect(index >= 0, unittest.isTrue); 2270 unittest.expect(index >= 0, unittest.isTrue);
2259 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2271 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2260 pathOffset = index; 2272 pathOffset = index;
2261 unittest.expect(subPart, unittest.equals("$arg_userId")); 2273 unittest.expect(subPart, unittest.equals("$arg_userId"));
2262 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/moments/")); 2274 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/moments/"));
2263 pathOffset += 9; 2275 pathOffset += 9;
2264 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2276 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 var arg_collection = "foo"; 2315 var arg_collection = "foo";
2304 var arg_maxResults = 42; 2316 var arg_maxResults = 42;
2305 var arg_pageToken = "foo"; 2317 var arg_pageToken = "foo";
2306 var arg_targetUrl = "foo"; 2318 var arg_targetUrl = "foo";
2307 var arg_type = "foo"; 2319 var arg_type = "foo";
2308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2320 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2309 var path = (req.url).path; 2321 var path = (req.url).path;
2310 var pathOffset = 0; 2322 var pathOffset = 0;
2311 var index; 2323 var index;
2312 var subPart; 2324 var subPart;
2313 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2314 pathOffset += 9; 2326 pathOffset += 1;
2327 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2328 pathOffset += 8;
2315 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/")); 2329 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/"));
2316 pathOffset += 7; 2330 pathOffset += 7;
2317 index = path.indexOf("/moments/", pathOffset); 2331 index = path.indexOf("/moments/", pathOffset);
2318 unittest.expect(index >= 0, unittest.isTrue); 2332 unittest.expect(index >= 0, unittest.isTrue);
2319 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2333 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2320 pathOffset = index; 2334 pathOffset = index;
2321 unittest.expect(subPart, unittest.equals("$arg_userId")); 2335 unittest.expect(subPart, unittest.equals("$arg_userId"));
2322 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/moments/")); 2336 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/moments/"));
2323 pathOffset += 9; 2337 pathOffset += 9;
2324 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2338 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 unittest.test("method--remove", () { 2375 unittest.test("method--remove", () {
2362 2376
2363 var mock = new common_test.HttpServerMock(); 2377 var mock = new common_test.HttpServerMock();
2364 api.MomentsResourceApi res = new api.PlusApi(mock).moments; 2378 api.MomentsResourceApi res = new api.PlusApi(mock).moments;
2365 var arg_id = "foo"; 2379 var arg_id = "foo";
2366 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2380 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2367 var path = (req.url).path; 2381 var path = (req.url).path;
2368 var pathOffset = 0; 2382 var pathOffset = 0;
2369 var index; 2383 var index;
2370 var subPart; 2384 var subPart;
2371 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2385 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2372 pathOffset += 9; 2386 pathOffset += 1;
2387 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2388 pathOffset += 8;
2373 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("moments/")); 2389 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("moments/"));
2374 pathOffset += 8; 2390 pathOffset += 8;
2375 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2376 pathOffset = path.length; 2392 pathOffset = path.length;
2377 unittest.expect(subPart, unittest.equals("$arg_id")); 2393 unittest.expect(subPart, unittest.equals("$arg_id"));
2378 2394
2379 var query = (req.url).query; 2395 var query = (req.url).query;
2380 var queryOffset = 0; 2396 var queryOffset = 0;
2381 var queryMap = {}; 2397 var queryMap = {};
2382 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2398 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
(...skipping 27 matching lines...) Expand all
2410 unittest.test("method--get", () { 2426 unittest.test("method--get", () {
2411 2427
2412 var mock = new common_test.HttpServerMock(); 2428 var mock = new common_test.HttpServerMock();
2413 api.PeopleResourceApi res = new api.PlusApi(mock).people; 2429 api.PeopleResourceApi res = new api.PlusApi(mock).people;
2414 var arg_userId = "foo"; 2430 var arg_userId = "foo";
2415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2431 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2416 var path = (req.url).path; 2432 var path = (req.url).path;
2417 var pathOffset = 0; 2433 var pathOffset = 0;
2418 var index; 2434 var index;
2419 var subPart; 2435 var subPart;
2420 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2421 pathOffset += 9; 2437 pathOffset += 1;
2438 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2439 pathOffset += 8;
2422 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/")); 2440 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/"));
2423 pathOffset += 7; 2441 pathOffset += 7;
2424 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2442 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2425 pathOffset = path.length; 2443 pathOffset = path.length;
2426 unittest.expect(subPart, unittest.equals("$arg_userId")); 2444 unittest.expect(subPart, unittest.equals("$arg_userId"));
2427 2445
2428 var query = (req.url).query; 2446 var query = (req.url).query;
2429 var queryOffset = 0; 2447 var queryOffset = 0;
2430 var queryMap = {}; 2448 var queryMap = {};
2431 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2449 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
(...skipping 29 matching lines...) Expand all
2461 var arg_userId = "foo"; 2479 var arg_userId = "foo";
2462 var arg_collection = "foo"; 2480 var arg_collection = "foo";
2463 var arg_maxResults = 42; 2481 var arg_maxResults = 42;
2464 var arg_orderBy = "foo"; 2482 var arg_orderBy = "foo";
2465 var arg_pageToken = "foo"; 2483 var arg_pageToken = "foo";
2466 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2484 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2467 var path = (req.url).path; 2485 var path = (req.url).path;
2468 var pathOffset = 0; 2486 var pathOffset = 0;
2469 var index; 2487 var index;
2470 var subPart; 2488 var subPart;
2471 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2489 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2472 pathOffset += 9; 2490 pathOffset += 1;
2491 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2492 pathOffset += 8;
2473 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/")); 2493 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("people/"));
2474 pathOffset += 7; 2494 pathOffset += 7;
2475 index = path.indexOf("/people/", pathOffset); 2495 index = path.indexOf("/people/", pathOffset);
2476 unittest.expect(index >= 0, unittest.isTrue); 2496 unittest.expect(index >= 0, unittest.isTrue);
2477 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2497 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2478 pathOffset = index; 2498 pathOffset = index;
2479 unittest.expect(subPart, unittest.equals("$arg_userId")); 2499 unittest.expect(subPart, unittest.equals("$arg_userId"));
2480 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/people/")); 2500 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/people/"));
2481 pathOffset += 8; 2501 pathOffset += 8;
2482 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2502 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 api.PeopleResourceApi res = new api.PlusApi(mock).people; 2541 api.PeopleResourceApi res = new api.PlusApi(mock).people;
2522 var arg_activityId = "foo"; 2542 var arg_activityId = "foo";
2523 var arg_collection = "foo"; 2543 var arg_collection = "foo";
2524 var arg_maxResults = 42; 2544 var arg_maxResults = 42;
2525 var arg_pageToken = "foo"; 2545 var arg_pageToken = "foo";
2526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2546 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2527 var path = (req.url).path; 2547 var path = (req.url).path;
2528 var pathOffset = 0; 2548 var pathOffset = 0;
2529 var index; 2549 var index;
2530 var subPart; 2550 var subPart;
2531 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2551 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2532 pathOffset += 9; 2552 pathOffset += 1;
2553 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2554 pathOffset += 8;
2533 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/")); 2555 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("activities/"));
2534 pathOffset += 11; 2556 pathOffset += 11;
2535 index = path.indexOf("/people/", pathOffset); 2557 index = path.indexOf("/people/", pathOffset);
2536 unittest.expect(index >= 0, unittest.isTrue); 2558 unittest.expect(index >= 0, unittest.isTrue);
2537 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2559 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2538 pathOffset = index; 2560 pathOffset = index;
2539 unittest.expect(subPart, unittest.equals("$arg_activityId")); 2561 unittest.expect(subPart, unittest.equals("$arg_activityId"));
2540 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/people/")); 2562 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/people/"));
2541 pathOffset += 8; 2563 pathOffset += 8;
2542 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2564 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2580 api.PeopleResourceApi res = new api.PlusApi(mock).people; 2602 api.PeopleResourceApi res = new api.PlusApi(mock).people;
2581 var arg_query = "foo"; 2603 var arg_query = "foo";
2582 var arg_language = "foo"; 2604 var arg_language = "foo";
2583 var arg_maxResults = 42; 2605 var arg_maxResults = 42;
2584 var arg_pageToken = "foo"; 2606 var arg_pageToken = "foo";
2585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2607 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2586 var path = (req.url).path; 2608 var path = (req.url).path;
2587 var pathOffset = 0; 2609 var pathOffset = 0;
2588 var index; 2610 var index;
2589 var subPart; 2611 var subPart;
2590 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/plus/v1/")); 2612 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2591 pathOffset += 9; 2613 pathOffset += 1;
2614 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("plus/v1/"));
2615 pathOffset += 8;
2592 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("people")); 2616 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("people"));
2593 pathOffset += 6; 2617 pathOffset += 6;
2594 2618
2595 var query = (req.url).query; 2619 var query = (req.url).query;
2596 var queryOffset = 0; 2620 var queryOffset = 0;
2597 var queryMap = {}; 2621 var queryMap = {};
2598 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2622 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2599 parseBool(n) { 2623 parseBool(n) {
2600 if (n == "true") return true; 2624 if (n == "true") return true;
2601 if (n == "false") return false; 2625 if (n == "false") return false;
(...skipping 21 matching lines...) Expand all
2623 res.search(arg_query, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { 2647 res.search(arg_query, language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) {
2624 checkPeopleFeed(response); 2648 checkPeopleFeed(response);
2625 }))); 2649 })));
2626 }); 2650 });
2627 2651
2628 }); 2652 });
2629 2653
2630 2654
2631 } 2655 }
2632 2656
OLDNEW
« no previous file with comments | « generated/googleapis/test/pagespeedonline/v1_test.dart ('k') | generated/googleapis/test/plusdomains/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698