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

Side by Side Diff: generated/googleapis/test/youtube/v3_test.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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.youtube.v3.test; 1 library googleapis.youtube.v3.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:test/test.dart' as unittest;
11 11
12 import 'package:googleapis/youtube/v3.dart' as api; 12 import 'package:googleapis/youtube/v3.dart' as api;
13 13
14 class HttpServerMock extends http.BaseClient { 14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 15 core.Function _callback;
16 core.bool _expectJson; 16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) { 18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 19 _callback = callback;
20 _expectJson = expectJson; 20 _expectJson = expectJson;
(...skipping 18 matching lines...) Expand all
39 } else { 39 } else {
40 return stream.toBytes().then((data) { 40 return stream.toBytes().then((data) {
41 return _callback(request, data); 41 return _callback(request, data);
42 }); 42 });
43 } 43 }
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed505() { 54 buildUnnamed507() {
55 var o = new core.List<core.String>(); 55 var o = new core.List<core.String>();
56 o.add("foo"); 56 o.add("foo");
57 o.add("foo"); 57 o.add("foo");
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed505(core.List<core.String> o) { 61 checkUnnamed507(core.List<core.String> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 unittest.expect(o[0], unittest.equals('foo')); 63 unittest.expect(o[0], unittest.equals('foo'));
64 unittest.expect(o[1], unittest.equals('foo')); 64 unittest.expect(o[1], unittest.equals('foo'));
65 } 65 }
66 66
67 core.int buildCounterAccessPolicy = 0; 67 core.int buildCounterAccessPolicy = 0;
68 buildAccessPolicy() { 68 buildAccessPolicy() {
69 var o = new api.AccessPolicy(); 69 var o = new api.AccessPolicy();
70 buildCounterAccessPolicy++; 70 buildCounterAccessPolicy++;
71 if (buildCounterAccessPolicy < 3) { 71 if (buildCounterAccessPolicy < 3) {
72 o.allowed = true; 72 o.allowed = true;
73 o.exception = buildUnnamed505(); 73 o.exception = buildUnnamed507();
74 } 74 }
75 buildCounterAccessPolicy--; 75 buildCounterAccessPolicy--;
76 return o; 76 return o;
77 } 77 }
78 78
79 checkAccessPolicy(api.AccessPolicy o) { 79 checkAccessPolicy(api.AccessPolicy o) {
80 buildCounterAccessPolicy++; 80 buildCounterAccessPolicy++;
81 if (buildCounterAccessPolicy < 3) { 81 if (buildCounterAccessPolicy < 3) {
82 unittest.expect(o.allowed, unittest.isTrue); 82 unittest.expect(o.allowed, unittest.isTrue);
83 checkUnnamed505(o.exception); 83 checkUnnamed507(o.exception);
84 } 84 }
85 buildCounterAccessPolicy--; 85 buildCounterAccessPolicy--;
86 } 86 }
87 87
88 core.int buildCounterActivity = 0; 88 core.int buildCounterActivity = 0;
89 buildActivity() { 89 buildActivity() {
90 var o = new api.Activity(); 90 var o = new api.Activity();
91 buildCounterActivity++; 91 buildCounterActivity++;
92 if (buildCounterActivity < 3) { 92 if (buildCounterActivity < 3) {
93 o.contentDetails = buildActivityContentDetails(); 93 o.contentDetails = buildActivityContentDetails();
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o ) { 262 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o ) {
263 buildCounterActivityContentDetailsPlaylistItem++; 263 buildCounterActivityContentDetailsPlaylistItem++;
264 if (buildCounterActivityContentDetailsPlaylistItem < 3) { 264 if (buildCounterActivityContentDetailsPlaylistItem < 3) {
265 unittest.expect(o.playlistId, unittest.equals('foo')); 265 unittest.expect(o.playlistId, unittest.equals('foo'));
266 unittest.expect(o.playlistItemId, unittest.equals('foo')); 266 unittest.expect(o.playlistItemId, unittest.equals('foo'));
267 checkResourceId(o.resourceId); 267 checkResourceId(o.resourceId);
268 } 268 }
269 buildCounterActivityContentDetailsPlaylistItem--; 269 buildCounterActivityContentDetailsPlaylistItem--;
270 } 270 }
271 271
272 buildUnnamed506() { 272 buildUnnamed508() {
273 var o = new core.List<core.String>(); 273 var o = new core.List<core.String>();
274 o.add("foo"); 274 o.add("foo");
275 o.add("foo"); 275 o.add("foo");
276 return o; 276 return o;
277 } 277 }
278 278
279 checkUnnamed506(core.List<core.String> o) { 279 checkUnnamed508(core.List<core.String> o) {
280 unittest.expect(o, unittest.hasLength(2)); 280 unittest.expect(o, unittest.hasLength(2));
281 unittest.expect(o[0], unittest.equals('foo')); 281 unittest.expect(o[0], unittest.equals('foo'));
282 unittest.expect(o[1], unittest.equals('foo')); 282 unittest.expect(o[1], unittest.equals('foo'));
283 } 283 }
284 284
285 buildUnnamed507() { 285 buildUnnamed509() {
286 var o = new core.List<core.String>(); 286 var o = new core.List<core.String>();
287 o.add("foo"); 287 o.add("foo");
288 o.add("foo"); 288 o.add("foo");
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed507(core.List<core.String> o) { 292 checkUnnamed509(core.List<core.String> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 unittest.expect(o[0], unittest.equals('foo')); 294 unittest.expect(o[0], unittest.equals('foo'));
295 unittest.expect(o[1], unittest.equals('foo')); 295 unittest.expect(o[1], unittest.equals('foo'));
296 } 296 }
297 297
298 core.int buildCounterActivityContentDetailsPromotedItem = 0; 298 core.int buildCounterActivityContentDetailsPromotedItem = 0;
299 buildActivityContentDetailsPromotedItem() { 299 buildActivityContentDetailsPromotedItem() {
300 var o = new api.ActivityContentDetailsPromotedItem(); 300 var o = new api.ActivityContentDetailsPromotedItem();
301 buildCounterActivityContentDetailsPromotedItem++; 301 buildCounterActivityContentDetailsPromotedItem++;
302 if (buildCounterActivityContentDetailsPromotedItem < 3) { 302 if (buildCounterActivityContentDetailsPromotedItem < 3) {
303 o.adTag = "foo"; 303 o.adTag = "foo";
304 o.clickTrackingUrl = "foo"; 304 o.clickTrackingUrl = "foo";
305 o.creativeViewUrl = "foo"; 305 o.creativeViewUrl = "foo";
306 o.ctaType = "foo"; 306 o.ctaType = "foo";
307 o.customCtaButtonText = "foo"; 307 o.customCtaButtonText = "foo";
308 o.descriptionText = "foo"; 308 o.descriptionText = "foo";
309 o.destinationUrl = "foo"; 309 o.destinationUrl = "foo";
310 o.forecastingUrl = buildUnnamed506(); 310 o.forecastingUrl = buildUnnamed508();
311 o.impressionUrl = buildUnnamed507(); 311 o.impressionUrl = buildUnnamed509();
312 o.videoId = "foo"; 312 o.videoId = "foo";
313 } 313 }
314 buildCounterActivityContentDetailsPromotedItem--; 314 buildCounterActivityContentDetailsPromotedItem--;
315 return o; 315 return o;
316 } 316 }
317 317
318 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o ) { 318 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o ) {
319 buildCounterActivityContentDetailsPromotedItem++; 319 buildCounterActivityContentDetailsPromotedItem++;
320 if (buildCounterActivityContentDetailsPromotedItem < 3) { 320 if (buildCounterActivityContentDetailsPromotedItem < 3) {
321 unittest.expect(o.adTag, unittest.equals('foo')); 321 unittest.expect(o.adTag, unittest.equals('foo'));
322 unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); 322 unittest.expect(o.clickTrackingUrl, unittest.equals('foo'));
323 unittest.expect(o.creativeViewUrl, unittest.equals('foo')); 323 unittest.expect(o.creativeViewUrl, unittest.equals('foo'));
324 unittest.expect(o.ctaType, unittest.equals('foo')); 324 unittest.expect(o.ctaType, unittest.equals('foo'));
325 unittest.expect(o.customCtaButtonText, unittest.equals('foo')); 325 unittest.expect(o.customCtaButtonText, unittest.equals('foo'));
326 unittest.expect(o.descriptionText, unittest.equals('foo')); 326 unittest.expect(o.descriptionText, unittest.equals('foo'));
327 unittest.expect(o.destinationUrl, unittest.equals('foo')); 327 unittest.expect(o.destinationUrl, unittest.equals('foo'));
328 checkUnnamed506(o.forecastingUrl); 328 checkUnnamed508(o.forecastingUrl);
329 checkUnnamed507(o.impressionUrl); 329 checkUnnamed509(o.impressionUrl);
330 unittest.expect(o.videoId, unittest.equals('foo')); 330 unittest.expect(o.videoId, unittest.equals('foo'));
331 } 331 }
332 buildCounterActivityContentDetailsPromotedItem--; 332 buildCounterActivityContentDetailsPromotedItem--;
333 } 333 }
334 334
335 core.int buildCounterActivityContentDetailsRecommendation = 0; 335 core.int buildCounterActivityContentDetailsRecommendation = 0;
336 buildActivityContentDetailsRecommendation() { 336 buildActivityContentDetailsRecommendation() {
337 var o = new api.ActivityContentDetailsRecommendation(); 337 var o = new api.ActivityContentDetailsRecommendation();
338 buildCounterActivityContentDetailsRecommendation++; 338 buildCounterActivityContentDetailsRecommendation++;
339 if (buildCounterActivityContentDetailsRecommendation < 3) { 339 if (buildCounterActivityContentDetailsRecommendation < 3) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 413 }
414 414
415 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) { 415 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) {
416 buildCounterActivityContentDetailsUpload++; 416 buildCounterActivityContentDetailsUpload++;
417 if (buildCounterActivityContentDetailsUpload < 3) { 417 if (buildCounterActivityContentDetailsUpload < 3) {
418 unittest.expect(o.videoId, unittest.equals('foo')); 418 unittest.expect(o.videoId, unittest.equals('foo'));
419 } 419 }
420 buildCounterActivityContentDetailsUpload--; 420 buildCounterActivityContentDetailsUpload--;
421 } 421 }
422 422
423 buildUnnamed508() { 423 buildUnnamed510() {
424 var o = new core.List<api.Activity>(); 424 var o = new core.List<api.Activity>();
425 o.add(buildActivity()); 425 o.add(buildActivity());
426 o.add(buildActivity()); 426 o.add(buildActivity());
427 return o; 427 return o;
428 } 428 }
429 429
430 checkUnnamed508(core.List<api.Activity> o) { 430 checkUnnamed510(core.List<api.Activity> o) {
431 unittest.expect(o, unittest.hasLength(2)); 431 unittest.expect(o, unittest.hasLength(2));
432 checkActivity(o[0]); 432 checkActivity(o[0]);
433 checkActivity(o[1]); 433 checkActivity(o[1]);
434 } 434 }
435 435
436 core.int buildCounterActivityListResponse = 0; 436 core.int buildCounterActivityListResponse = 0;
437 buildActivityListResponse() { 437 buildActivityListResponse() {
438 var o = new api.ActivityListResponse(); 438 var o = new api.ActivityListResponse();
439 buildCounterActivityListResponse++; 439 buildCounterActivityListResponse++;
440 if (buildCounterActivityListResponse < 3) { 440 if (buildCounterActivityListResponse < 3) {
441 o.etag = "foo"; 441 o.etag = "foo";
442 o.eventId = "foo"; 442 o.eventId = "foo";
443 o.items = buildUnnamed508(); 443 o.items = buildUnnamed510();
444 o.kind = "foo"; 444 o.kind = "foo";
445 o.nextPageToken = "foo"; 445 o.nextPageToken = "foo";
446 o.pageInfo = buildPageInfo(); 446 o.pageInfo = buildPageInfo();
447 o.prevPageToken = "foo"; 447 o.prevPageToken = "foo";
448 o.tokenPagination = buildTokenPagination(); 448 o.tokenPagination = buildTokenPagination();
449 o.visitorId = "foo"; 449 o.visitorId = "foo";
450 } 450 }
451 buildCounterActivityListResponse--; 451 buildCounterActivityListResponse--;
452 return o; 452 return o;
453 } 453 }
454 454
455 checkActivityListResponse(api.ActivityListResponse o) { 455 checkActivityListResponse(api.ActivityListResponse o) {
456 buildCounterActivityListResponse++; 456 buildCounterActivityListResponse++;
457 if (buildCounterActivityListResponse < 3) { 457 if (buildCounterActivityListResponse < 3) {
458 unittest.expect(o.etag, unittest.equals('foo')); 458 unittest.expect(o.etag, unittest.equals('foo'));
459 unittest.expect(o.eventId, unittest.equals('foo')); 459 unittest.expect(o.eventId, unittest.equals('foo'));
460 checkUnnamed508(o.items); 460 checkUnnamed510(o.items);
461 unittest.expect(o.kind, unittest.equals('foo')); 461 unittest.expect(o.kind, unittest.equals('foo'));
462 unittest.expect(o.nextPageToken, unittest.equals('foo')); 462 unittest.expect(o.nextPageToken, unittest.equals('foo'));
463 checkPageInfo(o.pageInfo); 463 checkPageInfo(o.pageInfo);
464 unittest.expect(o.prevPageToken, unittest.equals('foo')); 464 unittest.expect(o.prevPageToken, unittest.equals('foo'));
465 checkTokenPagination(o.tokenPagination); 465 checkTokenPagination(o.tokenPagination);
466 unittest.expect(o.visitorId, unittest.equals('foo')); 466 unittest.expect(o.visitorId, unittest.equals('foo'));
467 } 467 }
468 buildCounterActivityListResponse--; 468 buildCounterActivityListResponse--;
469 } 469 }
470 470
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 buildCounterCaption++; 519 buildCounterCaption++;
520 if (buildCounterCaption < 3) { 520 if (buildCounterCaption < 3) {
521 unittest.expect(o.etag, unittest.equals('foo')); 521 unittest.expect(o.etag, unittest.equals('foo'));
522 unittest.expect(o.id, unittest.equals('foo')); 522 unittest.expect(o.id, unittest.equals('foo'));
523 unittest.expect(o.kind, unittest.equals('foo')); 523 unittest.expect(o.kind, unittest.equals('foo'));
524 checkCaptionSnippet(o.snippet); 524 checkCaptionSnippet(o.snippet);
525 } 525 }
526 buildCounterCaption--; 526 buildCounterCaption--;
527 } 527 }
528 528
529 buildUnnamed509() { 529 buildUnnamed511() {
530 var o = new core.List<api.Caption>(); 530 var o = new core.List<api.Caption>();
531 o.add(buildCaption()); 531 o.add(buildCaption());
532 o.add(buildCaption()); 532 o.add(buildCaption());
533 return o; 533 return o;
534 } 534 }
535 535
536 checkUnnamed509(core.List<api.Caption> o) { 536 checkUnnamed511(core.List<api.Caption> o) {
537 unittest.expect(o, unittest.hasLength(2)); 537 unittest.expect(o, unittest.hasLength(2));
538 checkCaption(o[0]); 538 checkCaption(o[0]);
539 checkCaption(o[1]); 539 checkCaption(o[1]);
540 } 540 }
541 541
542 core.int buildCounterCaptionListResponse = 0; 542 core.int buildCounterCaptionListResponse = 0;
543 buildCaptionListResponse() { 543 buildCaptionListResponse() {
544 var o = new api.CaptionListResponse(); 544 var o = new api.CaptionListResponse();
545 buildCounterCaptionListResponse++; 545 buildCounterCaptionListResponse++;
546 if (buildCounterCaptionListResponse < 3) { 546 if (buildCounterCaptionListResponse < 3) {
547 o.etag = "foo"; 547 o.etag = "foo";
548 o.eventId = "foo"; 548 o.eventId = "foo";
549 o.items = buildUnnamed509(); 549 o.items = buildUnnamed511();
550 o.kind = "foo"; 550 o.kind = "foo";
551 o.visitorId = "foo"; 551 o.visitorId = "foo";
552 } 552 }
553 buildCounterCaptionListResponse--; 553 buildCounterCaptionListResponse--;
554 return o; 554 return o;
555 } 555 }
556 556
557 checkCaptionListResponse(api.CaptionListResponse o) { 557 checkCaptionListResponse(api.CaptionListResponse o) {
558 buildCounterCaptionListResponse++; 558 buildCounterCaptionListResponse++;
559 if (buildCounterCaptionListResponse < 3) { 559 if (buildCounterCaptionListResponse < 3) {
560 unittest.expect(o.etag, unittest.equals('foo')); 560 unittest.expect(o.etag, unittest.equals('foo'));
561 unittest.expect(o.eventId, unittest.equals('foo')); 561 unittest.expect(o.eventId, unittest.equals('foo'));
562 checkUnnamed509(o.items); 562 checkUnnamed511(o.items);
563 unittest.expect(o.kind, unittest.equals('foo')); 563 unittest.expect(o.kind, unittest.equals('foo'));
564 unittest.expect(o.visitorId, unittest.equals('foo')); 564 unittest.expect(o.visitorId, unittest.equals('foo'));
565 } 565 }
566 buildCounterCaptionListResponse--; 566 buildCounterCaptionListResponse--;
567 } 567 }
568 568
569 core.int buildCounterCaptionSnippet = 0; 569 core.int buildCounterCaptionSnippet = 0;
570 buildCaptionSnippet() { 570 buildCaptionSnippet() {
571 var o = new api.CaptionSnippet(); 571 var o = new api.CaptionSnippet();
572 buildCounterCaptionSnippet++; 572 buildCounterCaptionSnippet++;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 if (buildCounterCdnSettings < 3) { 629 if (buildCounterCdnSettings < 3) {
630 unittest.expect(o.format, unittest.equals('foo')); 630 unittest.expect(o.format, unittest.equals('foo'));
631 unittest.expect(o.frameRate, unittest.equals('foo')); 631 unittest.expect(o.frameRate, unittest.equals('foo'));
632 checkIngestionInfo(o.ingestionInfo); 632 checkIngestionInfo(o.ingestionInfo);
633 unittest.expect(o.ingestionType, unittest.equals('foo')); 633 unittest.expect(o.ingestionType, unittest.equals('foo'));
634 unittest.expect(o.resolution, unittest.equals('foo')); 634 unittest.expect(o.resolution, unittest.equals('foo'));
635 } 635 }
636 buildCounterCdnSettings--; 636 buildCounterCdnSettings--;
637 } 637 }
638 638
639 buildUnnamed510() { 639 buildUnnamed512() {
640 var o = new core.Map<core.String, api.ChannelLocalization>(); 640 var o = new core.Map<core.String, api.ChannelLocalization>();
641 o["x"] = buildChannelLocalization(); 641 o["x"] = buildChannelLocalization();
642 o["y"] = buildChannelLocalization(); 642 o["y"] = buildChannelLocalization();
643 return o; 643 return o;
644 } 644 }
645 645
646 checkUnnamed510(core.Map<core.String, api.ChannelLocalization> o) { 646 checkUnnamed512(core.Map<core.String, api.ChannelLocalization> o) {
647 unittest.expect(o, unittest.hasLength(2)); 647 unittest.expect(o, unittest.hasLength(2));
648 checkChannelLocalization(o["x"]); 648 checkChannelLocalization(o["x"]);
649 checkChannelLocalization(o["y"]); 649 checkChannelLocalization(o["y"]);
650 } 650 }
651 651
652 core.int buildCounterChannel = 0; 652 core.int buildCounterChannel = 0;
653 buildChannel() { 653 buildChannel() {
654 var o = new api.Channel(); 654 var o = new api.Channel();
655 buildCounterChannel++; 655 buildCounterChannel++;
656 if (buildCounterChannel < 3) { 656 if (buildCounterChannel < 3) {
657 o.auditDetails = buildChannelAuditDetails(); 657 o.auditDetails = buildChannelAuditDetails();
658 o.brandingSettings = buildChannelBrandingSettings(); 658 o.brandingSettings = buildChannelBrandingSettings();
659 o.contentDetails = buildChannelContentDetails(); 659 o.contentDetails = buildChannelContentDetails();
660 o.contentOwnerDetails = buildChannelContentOwnerDetails(); 660 o.contentOwnerDetails = buildChannelContentOwnerDetails();
661 o.conversionPings = buildChannelConversionPings(); 661 o.conversionPings = buildChannelConversionPings();
662 o.etag = "foo"; 662 o.etag = "foo";
663 o.id = "foo"; 663 o.id = "foo";
664 o.invideoPromotion = buildInvideoPromotion(); 664 o.invideoPromotion = buildInvideoPromotion();
665 o.kind = "foo"; 665 o.kind = "foo";
666 o.localizations = buildUnnamed510(); 666 o.localizations = buildUnnamed512();
667 o.snippet = buildChannelSnippet(); 667 o.snippet = buildChannelSnippet();
668 o.statistics = buildChannelStatistics(); 668 o.statistics = buildChannelStatistics();
669 o.status = buildChannelStatus(); 669 o.status = buildChannelStatus();
670 o.topicDetails = buildChannelTopicDetails(); 670 o.topicDetails = buildChannelTopicDetails();
671 } 671 }
672 buildCounterChannel--; 672 buildCounterChannel--;
673 return o; 673 return o;
674 } 674 }
675 675
676 checkChannel(api.Channel o) { 676 checkChannel(api.Channel o) {
677 buildCounterChannel++; 677 buildCounterChannel++;
678 if (buildCounterChannel < 3) { 678 if (buildCounterChannel < 3) {
679 checkChannelAuditDetails(o.auditDetails); 679 checkChannelAuditDetails(o.auditDetails);
680 checkChannelBrandingSettings(o.brandingSettings); 680 checkChannelBrandingSettings(o.brandingSettings);
681 checkChannelContentDetails(o.contentDetails); 681 checkChannelContentDetails(o.contentDetails);
682 checkChannelContentOwnerDetails(o.contentOwnerDetails); 682 checkChannelContentOwnerDetails(o.contentOwnerDetails);
683 checkChannelConversionPings(o.conversionPings); 683 checkChannelConversionPings(o.conversionPings);
684 unittest.expect(o.etag, unittest.equals('foo')); 684 unittest.expect(o.etag, unittest.equals('foo'));
685 unittest.expect(o.id, unittest.equals('foo')); 685 unittest.expect(o.id, unittest.equals('foo'));
686 checkInvideoPromotion(o.invideoPromotion); 686 checkInvideoPromotion(o.invideoPromotion);
687 unittest.expect(o.kind, unittest.equals('foo')); 687 unittest.expect(o.kind, unittest.equals('foo'));
688 checkUnnamed510(o.localizations); 688 checkUnnamed512(o.localizations);
689 checkChannelSnippet(o.snippet); 689 checkChannelSnippet(o.snippet);
690 checkChannelStatistics(o.statistics); 690 checkChannelStatistics(o.statistics);
691 checkChannelStatus(o.status); 691 checkChannelStatus(o.status);
692 checkChannelTopicDetails(o.topicDetails); 692 checkChannelTopicDetails(o.topicDetails);
693 } 693 }
694 buildCounterChannel--; 694 buildCounterChannel--;
695 } 695 }
696 696
697 core.int buildCounterChannelAuditDetails = 0; 697 core.int buildCounterChannelAuditDetails = 0;
698 buildChannelAuditDetails() { 698 buildChannelAuditDetails() {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 checkChannelBannerResource(api.ChannelBannerResource o) { 735 checkChannelBannerResource(api.ChannelBannerResource o) {
736 buildCounterChannelBannerResource++; 736 buildCounterChannelBannerResource++;
737 if (buildCounterChannelBannerResource < 3) { 737 if (buildCounterChannelBannerResource < 3) {
738 unittest.expect(o.etag, unittest.equals('foo')); 738 unittest.expect(o.etag, unittest.equals('foo'));
739 unittest.expect(o.kind, unittest.equals('foo')); 739 unittest.expect(o.kind, unittest.equals('foo'));
740 unittest.expect(o.url, unittest.equals('foo')); 740 unittest.expect(o.url, unittest.equals('foo'));
741 } 741 }
742 buildCounterChannelBannerResource--; 742 buildCounterChannelBannerResource--;
743 } 743 }
744 744
745 buildUnnamed511() { 745 buildUnnamed513() {
746 var o = new core.List<api.PropertyValue>(); 746 var o = new core.List<api.PropertyValue>();
747 o.add(buildPropertyValue()); 747 o.add(buildPropertyValue());
748 o.add(buildPropertyValue()); 748 o.add(buildPropertyValue());
749 return o; 749 return o;
750 } 750 }
751 751
752 checkUnnamed511(core.List<api.PropertyValue> o) { 752 checkUnnamed513(core.List<api.PropertyValue> o) {
753 unittest.expect(o, unittest.hasLength(2)); 753 unittest.expect(o, unittest.hasLength(2));
754 checkPropertyValue(o[0]); 754 checkPropertyValue(o[0]);
755 checkPropertyValue(o[1]); 755 checkPropertyValue(o[1]);
756 } 756 }
757 757
758 core.int buildCounterChannelBrandingSettings = 0; 758 core.int buildCounterChannelBrandingSettings = 0;
759 buildChannelBrandingSettings() { 759 buildChannelBrandingSettings() {
760 var o = new api.ChannelBrandingSettings(); 760 var o = new api.ChannelBrandingSettings();
761 buildCounterChannelBrandingSettings++; 761 buildCounterChannelBrandingSettings++;
762 if (buildCounterChannelBrandingSettings < 3) { 762 if (buildCounterChannelBrandingSettings < 3) {
763 o.channel = buildChannelSettings(); 763 o.channel = buildChannelSettings();
764 o.hints = buildUnnamed511(); 764 o.hints = buildUnnamed513();
765 o.image = buildImageSettings(); 765 o.image = buildImageSettings();
766 o.watch = buildWatchSettings(); 766 o.watch = buildWatchSettings();
767 } 767 }
768 buildCounterChannelBrandingSettings--; 768 buildCounterChannelBrandingSettings--;
769 return o; 769 return o;
770 } 770 }
771 771
772 checkChannelBrandingSettings(api.ChannelBrandingSettings o) { 772 checkChannelBrandingSettings(api.ChannelBrandingSettings o) {
773 buildCounterChannelBrandingSettings++; 773 buildCounterChannelBrandingSettings++;
774 if (buildCounterChannelBrandingSettings < 3) { 774 if (buildCounterChannelBrandingSettings < 3) {
775 checkChannelSettings(o.channel); 775 checkChannelSettings(o.channel);
776 checkUnnamed511(o.hints); 776 checkUnnamed513(o.hints);
777 checkImageSettings(o.image); 777 checkImageSettings(o.image);
778 checkWatchSettings(o.watch); 778 checkWatchSettings(o.watch);
779 } 779 }
780 buildCounterChannelBrandingSettings--; 780 buildCounterChannelBrandingSettings--;
781 } 781 }
782 782
783 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0; 783 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0;
784 buildChannelContentDetailsRelatedPlaylists() { 784 buildChannelContentDetailsRelatedPlaylists() {
785 var o = new api.ChannelContentDetailsRelatedPlaylists(); 785 var o = new api.ChannelContentDetailsRelatedPlaylists();
786 buildCounterChannelContentDetailsRelatedPlaylists++; 786 buildCounterChannelContentDetailsRelatedPlaylists++;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 861
862 checkChannelConversionPing(api.ChannelConversionPing o) { 862 checkChannelConversionPing(api.ChannelConversionPing o) {
863 buildCounterChannelConversionPing++; 863 buildCounterChannelConversionPing++;
864 if (buildCounterChannelConversionPing < 3) { 864 if (buildCounterChannelConversionPing < 3) {
865 unittest.expect(o.context, unittest.equals('foo')); 865 unittest.expect(o.context, unittest.equals('foo'));
866 unittest.expect(o.conversionUrl, unittest.equals('foo')); 866 unittest.expect(o.conversionUrl, unittest.equals('foo'));
867 } 867 }
868 buildCounterChannelConversionPing--; 868 buildCounterChannelConversionPing--;
869 } 869 }
870 870
871 buildUnnamed512() { 871 buildUnnamed514() {
872 var o = new core.List<api.ChannelConversionPing>(); 872 var o = new core.List<api.ChannelConversionPing>();
873 o.add(buildChannelConversionPing()); 873 o.add(buildChannelConversionPing());
874 o.add(buildChannelConversionPing()); 874 o.add(buildChannelConversionPing());
875 return o; 875 return o;
876 } 876 }
877 877
878 checkUnnamed512(core.List<api.ChannelConversionPing> o) { 878 checkUnnamed514(core.List<api.ChannelConversionPing> o) {
879 unittest.expect(o, unittest.hasLength(2)); 879 unittest.expect(o, unittest.hasLength(2));
880 checkChannelConversionPing(o[0]); 880 checkChannelConversionPing(o[0]);
881 checkChannelConversionPing(o[1]); 881 checkChannelConversionPing(o[1]);
882 } 882 }
883 883
884 core.int buildCounterChannelConversionPings = 0; 884 core.int buildCounterChannelConversionPings = 0;
885 buildChannelConversionPings() { 885 buildChannelConversionPings() {
886 var o = new api.ChannelConversionPings(); 886 var o = new api.ChannelConversionPings();
887 buildCounterChannelConversionPings++; 887 buildCounterChannelConversionPings++;
888 if (buildCounterChannelConversionPings < 3) { 888 if (buildCounterChannelConversionPings < 3) {
889 o.pings = buildUnnamed512(); 889 o.pings = buildUnnamed514();
890 } 890 }
891 buildCounterChannelConversionPings--; 891 buildCounterChannelConversionPings--;
892 return o; 892 return o;
893 } 893 }
894 894
895 checkChannelConversionPings(api.ChannelConversionPings o) { 895 checkChannelConversionPings(api.ChannelConversionPings o) {
896 buildCounterChannelConversionPings++; 896 buildCounterChannelConversionPings++;
897 if (buildCounterChannelConversionPings < 3) { 897 if (buildCounterChannelConversionPings < 3) {
898 checkUnnamed512(o.pings); 898 checkUnnamed514(o.pings);
899 } 899 }
900 buildCounterChannelConversionPings--; 900 buildCounterChannelConversionPings--;
901 } 901 }
902 902
903 buildUnnamed513() { 903 buildUnnamed515() {
904 var o = new core.List<api.Channel>(); 904 var o = new core.List<api.Channel>();
905 o.add(buildChannel()); 905 o.add(buildChannel());
906 o.add(buildChannel()); 906 o.add(buildChannel());
907 return o; 907 return o;
908 } 908 }
909 909
910 checkUnnamed513(core.List<api.Channel> o) { 910 checkUnnamed515(core.List<api.Channel> o) {
911 unittest.expect(o, unittest.hasLength(2)); 911 unittest.expect(o, unittest.hasLength(2));
912 checkChannel(o[0]); 912 checkChannel(o[0]);
913 checkChannel(o[1]); 913 checkChannel(o[1]);
914 } 914 }
915 915
916 core.int buildCounterChannelListResponse = 0; 916 core.int buildCounterChannelListResponse = 0;
917 buildChannelListResponse() { 917 buildChannelListResponse() {
918 var o = new api.ChannelListResponse(); 918 var o = new api.ChannelListResponse();
919 buildCounterChannelListResponse++; 919 buildCounterChannelListResponse++;
920 if (buildCounterChannelListResponse < 3) { 920 if (buildCounterChannelListResponse < 3) {
921 o.etag = "foo"; 921 o.etag = "foo";
922 o.eventId = "foo"; 922 o.eventId = "foo";
923 o.items = buildUnnamed513(); 923 o.items = buildUnnamed515();
924 o.kind = "foo"; 924 o.kind = "foo";
925 o.nextPageToken = "foo"; 925 o.nextPageToken = "foo";
926 o.pageInfo = buildPageInfo(); 926 o.pageInfo = buildPageInfo();
927 o.prevPageToken = "foo"; 927 o.prevPageToken = "foo";
928 o.tokenPagination = buildTokenPagination(); 928 o.tokenPagination = buildTokenPagination();
929 o.visitorId = "foo"; 929 o.visitorId = "foo";
930 } 930 }
931 buildCounterChannelListResponse--; 931 buildCounterChannelListResponse--;
932 return o; 932 return o;
933 } 933 }
934 934
935 checkChannelListResponse(api.ChannelListResponse o) { 935 checkChannelListResponse(api.ChannelListResponse o) {
936 buildCounterChannelListResponse++; 936 buildCounterChannelListResponse++;
937 if (buildCounterChannelListResponse < 3) { 937 if (buildCounterChannelListResponse < 3) {
938 unittest.expect(o.etag, unittest.equals('foo')); 938 unittest.expect(o.etag, unittest.equals('foo'));
939 unittest.expect(o.eventId, unittest.equals('foo')); 939 unittest.expect(o.eventId, unittest.equals('foo'));
940 checkUnnamed513(o.items); 940 checkUnnamed515(o.items);
941 unittest.expect(o.kind, unittest.equals('foo')); 941 unittest.expect(o.kind, unittest.equals('foo'));
942 unittest.expect(o.nextPageToken, unittest.equals('foo')); 942 unittest.expect(o.nextPageToken, unittest.equals('foo'));
943 checkPageInfo(o.pageInfo); 943 checkPageInfo(o.pageInfo);
944 unittest.expect(o.prevPageToken, unittest.equals('foo')); 944 unittest.expect(o.prevPageToken, unittest.equals('foo'));
945 checkTokenPagination(o.tokenPagination); 945 checkTokenPagination(o.tokenPagination);
946 unittest.expect(o.visitorId, unittest.equals('foo')); 946 unittest.expect(o.visitorId, unittest.equals('foo'));
947 } 947 }
948 buildCounterChannelListResponse--; 948 buildCounterChannelListResponse--;
949 } 949 }
950 950
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 buildCounterChannelProfileDetails++; 987 buildCounterChannelProfileDetails++;
988 if (buildCounterChannelProfileDetails < 3) { 988 if (buildCounterChannelProfileDetails < 3) {
989 unittest.expect(o.channelId, unittest.equals('foo')); 989 unittest.expect(o.channelId, unittest.equals('foo'));
990 unittest.expect(o.channelUrl, unittest.equals('foo')); 990 unittest.expect(o.channelUrl, unittest.equals('foo'));
991 unittest.expect(o.displayName, unittest.equals('foo')); 991 unittest.expect(o.displayName, unittest.equals('foo'));
992 unittest.expect(o.profileImageUrl, unittest.equals('foo')); 992 unittest.expect(o.profileImageUrl, unittest.equals('foo'));
993 } 993 }
994 buildCounterChannelProfileDetails--; 994 buildCounterChannelProfileDetails--;
995 } 995 }
996 996
997 buildUnnamed514() { 997 buildUnnamed516() {
998 var o = new core.Map<core.String, api.ChannelSectionLocalization>(); 998 var o = new core.Map<core.String, api.ChannelSectionLocalization>();
999 o["x"] = buildChannelSectionLocalization(); 999 o["x"] = buildChannelSectionLocalization();
1000 o["y"] = buildChannelSectionLocalization(); 1000 o["y"] = buildChannelSectionLocalization();
1001 return o; 1001 return o;
1002 } 1002 }
1003 1003
1004 checkUnnamed514(core.Map<core.String, api.ChannelSectionLocalization> o) { 1004 checkUnnamed516(core.Map<core.String, api.ChannelSectionLocalization> o) {
1005 unittest.expect(o, unittest.hasLength(2)); 1005 unittest.expect(o, unittest.hasLength(2));
1006 checkChannelSectionLocalization(o["x"]); 1006 checkChannelSectionLocalization(o["x"]);
1007 checkChannelSectionLocalization(o["y"]); 1007 checkChannelSectionLocalization(o["y"]);
1008 } 1008 }
1009 1009
1010 core.int buildCounterChannelSection = 0; 1010 core.int buildCounterChannelSection = 0;
1011 buildChannelSection() { 1011 buildChannelSection() {
1012 var o = new api.ChannelSection(); 1012 var o = new api.ChannelSection();
1013 buildCounterChannelSection++; 1013 buildCounterChannelSection++;
1014 if (buildCounterChannelSection < 3) { 1014 if (buildCounterChannelSection < 3) {
1015 o.contentDetails = buildChannelSectionContentDetails(); 1015 o.contentDetails = buildChannelSectionContentDetails();
1016 o.etag = "foo"; 1016 o.etag = "foo";
1017 o.id = "foo"; 1017 o.id = "foo";
1018 o.kind = "foo"; 1018 o.kind = "foo";
1019 o.localizations = buildUnnamed514(); 1019 o.localizations = buildUnnamed516();
1020 o.snippet = buildChannelSectionSnippet(); 1020 o.snippet = buildChannelSectionSnippet();
1021 o.targeting = buildChannelSectionTargeting(); 1021 o.targeting = buildChannelSectionTargeting();
1022 } 1022 }
1023 buildCounterChannelSection--; 1023 buildCounterChannelSection--;
1024 return o; 1024 return o;
1025 } 1025 }
1026 1026
1027 checkChannelSection(api.ChannelSection o) { 1027 checkChannelSection(api.ChannelSection o) {
1028 buildCounterChannelSection++; 1028 buildCounterChannelSection++;
1029 if (buildCounterChannelSection < 3) { 1029 if (buildCounterChannelSection < 3) {
1030 checkChannelSectionContentDetails(o.contentDetails); 1030 checkChannelSectionContentDetails(o.contentDetails);
1031 unittest.expect(o.etag, unittest.equals('foo')); 1031 unittest.expect(o.etag, unittest.equals('foo'));
1032 unittest.expect(o.id, unittest.equals('foo')); 1032 unittest.expect(o.id, unittest.equals('foo'));
1033 unittest.expect(o.kind, unittest.equals('foo')); 1033 unittest.expect(o.kind, unittest.equals('foo'));
1034 checkUnnamed514(o.localizations); 1034 checkUnnamed516(o.localizations);
1035 checkChannelSectionSnippet(o.snippet); 1035 checkChannelSectionSnippet(o.snippet);
1036 checkChannelSectionTargeting(o.targeting); 1036 checkChannelSectionTargeting(o.targeting);
1037 } 1037 }
1038 buildCounterChannelSection--; 1038 buildCounterChannelSection--;
1039 } 1039 }
1040 1040
1041 buildUnnamed515() { 1041 buildUnnamed517() {
1042 var o = new core.List<core.String>(); 1042 var o = new core.List<core.String>();
1043 o.add("foo"); 1043 o.add("foo");
1044 o.add("foo"); 1044 o.add("foo");
1045 return o; 1045 return o;
1046 } 1046 }
1047 1047
1048 checkUnnamed515(core.List<core.String> o) { 1048 checkUnnamed517(core.List<core.String> o) {
1049 unittest.expect(o, unittest.hasLength(2)); 1049 unittest.expect(o, unittest.hasLength(2));
1050 unittest.expect(o[0], unittest.equals('foo')); 1050 unittest.expect(o[0], unittest.equals('foo'));
1051 unittest.expect(o[1], unittest.equals('foo')); 1051 unittest.expect(o[1], unittest.equals('foo'));
1052 } 1052 }
1053 1053
1054 buildUnnamed516() { 1054 buildUnnamed518() {
1055 var o = new core.List<core.String>(); 1055 var o = new core.List<core.String>();
1056 o.add("foo"); 1056 o.add("foo");
1057 o.add("foo"); 1057 o.add("foo");
1058 return o; 1058 return o;
1059 } 1059 }
1060 1060
1061 checkUnnamed516(core.List<core.String> o) { 1061 checkUnnamed518(core.List<core.String> o) {
1062 unittest.expect(o, unittest.hasLength(2)); 1062 unittest.expect(o, unittest.hasLength(2));
1063 unittest.expect(o[0], unittest.equals('foo')); 1063 unittest.expect(o[0], unittest.equals('foo'));
1064 unittest.expect(o[1], unittest.equals('foo')); 1064 unittest.expect(o[1], unittest.equals('foo'));
1065 } 1065 }
1066 1066
1067 core.int buildCounterChannelSectionContentDetails = 0; 1067 core.int buildCounterChannelSectionContentDetails = 0;
1068 buildChannelSectionContentDetails() { 1068 buildChannelSectionContentDetails() {
1069 var o = new api.ChannelSectionContentDetails(); 1069 var o = new api.ChannelSectionContentDetails();
1070 buildCounterChannelSectionContentDetails++; 1070 buildCounterChannelSectionContentDetails++;
1071 if (buildCounterChannelSectionContentDetails < 3) { 1071 if (buildCounterChannelSectionContentDetails < 3) {
1072 o.channels = buildUnnamed515(); 1072 o.channels = buildUnnamed517();
1073 o.playlists = buildUnnamed516(); 1073 o.playlists = buildUnnamed518();
1074 } 1074 }
1075 buildCounterChannelSectionContentDetails--; 1075 buildCounterChannelSectionContentDetails--;
1076 return o; 1076 return o;
1077 } 1077 }
1078 1078
1079 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { 1079 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) {
1080 buildCounterChannelSectionContentDetails++; 1080 buildCounterChannelSectionContentDetails++;
1081 if (buildCounterChannelSectionContentDetails < 3) { 1081 if (buildCounterChannelSectionContentDetails < 3) {
1082 checkUnnamed515(o.channels); 1082 checkUnnamed517(o.channels);
1083 checkUnnamed516(o.playlists); 1083 checkUnnamed518(o.playlists);
1084 } 1084 }
1085 buildCounterChannelSectionContentDetails--; 1085 buildCounterChannelSectionContentDetails--;
1086 } 1086 }
1087 1087
1088 buildUnnamed517() { 1088 buildUnnamed519() {
1089 var o = new core.List<api.ChannelSection>(); 1089 var o = new core.List<api.ChannelSection>();
1090 o.add(buildChannelSection()); 1090 o.add(buildChannelSection());
1091 o.add(buildChannelSection()); 1091 o.add(buildChannelSection());
1092 return o; 1092 return o;
1093 } 1093 }
1094 1094
1095 checkUnnamed517(core.List<api.ChannelSection> o) { 1095 checkUnnamed519(core.List<api.ChannelSection> o) {
1096 unittest.expect(o, unittest.hasLength(2)); 1096 unittest.expect(o, unittest.hasLength(2));
1097 checkChannelSection(o[0]); 1097 checkChannelSection(o[0]);
1098 checkChannelSection(o[1]); 1098 checkChannelSection(o[1]);
1099 } 1099 }
1100 1100
1101 core.int buildCounterChannelSectionListResponse = 0; 1101 core.int buildCounterChannelSectionListResponse = 0;
1102 buildChannelSectionListResponse() { 1102 buildChannelSectionListResponse() {
1103 var o = new api.ChannelSectionListResponse(); 1103 var o = new api.ChannelSectionListResponse();
1104 buildCounterChannelSectionListResponse++; 1104 buildCounterChannelSectionListResponse++;
1105 if (buildCounterChannelSectionListResponse < 3) { 1105 if (buildCounterChannelSectionListResponse < 3) {
1106 o.etag = "foo"; 1106 o.etag = "foo";
1107 o.eventId = "foo"; 1107 o.eventId = "foo";
1108 o.items = buildUnnamed517(); 1108 o.items = buildUnnamed519();
1109 o.kind = "foo"; 1109 o.kind = "foo";
1110 o.visitorId = "foo"; 1110 o.visitorId = "foo";
1111 } 1111 }
1112 buildCounterChannelSectionListResponse--; 1112 buildCounterChannelSectionListResponse--;
1113 return o; 1113 return o;
1114 } 1114 }
1115 1115
1116 checkChannelSectionListResponse(api.ChannelSectionListResponse o) { 1116 checkChannelSectionListResponse(api.ChannelSectionListResponse o) {
1117 buildCounterChannelSectionListResponse++; 1117 buildCounterChannelSectionListResponse++;
1118 if (buildCounterChannelSectionListResponse < 3) { 1118 if (buildCounterChannelSectionListResponse < 3) {
1119 unittest.expect(o.etag, unittest.equals('foo')); 1119 unittest.expect(o.etag, unittest.equals('foo'));
1120 unittest.expect(o.eventId, unittest.equals('foo')); 1120 unittest.expect(o.eventId, unittest.equals('foo'));
1121 checkUnnamed517(o.items); 1121 checkUnnamed519(o.items);
1122 unittest.expect(o.kind, unittest.equals('foo')); 1122 unittest.expect(o.kind, unittest.equals('foo'));
1123 unittest.expect(o.visitorId, unittest.equals('foo')); 1123 unittest.expect(o.visitorId, unittest.equals('foo'));
1124 } 1124 }
1125 buildCounterChannelSectionListResponse--; 1125 buildCounterChannelSectionListResponse--;
1126 } 1126 }
1127 1127
1128 core.int buildCounterChannelSectionLocalization = 0; 1128 core.int buildCounterChannelSectionLocalization = 0;
1129 buildChannelSectionLocalization() { 1129 buildChannelSectionLocalization() {
1130 var o = new api.ChannelSectionLocalization(); 1130 var o = new api.ChannelSectionLocalization();
1131 buildCounterChannelSectionLocalization++; 1131 buildCounterChannelSectionLocalization++;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 1168 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
1169 checkChannelSectionLocalization(o.localized); 1169 checkChannelSectionLocalization(o.localized);
1170 unittest.expect(o.position, unittest.equals(42)); 1170 unittest.expect(o.position, unittest.equals(42));
1171 unittest.expect(o.style, unittest.equals('foo')); 1171 unittest.expect(o.style, unittest.equals('foo'));
1172 unittest.expect(o.title, unittest.equals('foo')); 1172 unittest.expect(o.title, unittest.equals('foo'));
1173 unittest.expect(o.type, unittest.equals('foo')); 1173 unittest.expect(o.type, unittest.equals('foo'));
1174 } 1174 }
1175 buildCounterChannelSectionSnippet--; 1175 buildCounterChannelSectionSnippet--;
1176 } 1176 }
1177 1177
1178 buildUnnamed518() {
1179 var o = new core.List<core.String>();
1180 o.add("foo");
1181 o.add("foo");
1182 return o;
1183 }
1184
1185 checkUnnamed518(core.List<core.String> o) {
1186 unittest.expect(o, unittest.hasLength(2));
1187 unittest.expect(o[0], unittest.equals('foo'));
1188 unittest.expect(o[1], unittest.equals('foo'));
1189 }
1190
1191 buildUnnamed519() {
1192 var o = new core.List<core.String>();
1193 o.add("foo");
1194 o.add("foo");
1195 return o;
1196 }
1197
1198 checkUnnamed519(core.List<core.String> o) {
1199 unittest.expect(o, unittest.hasLength(2));
1200 unittest.expect(o[0], unittest.equals('foo'));
1201 unittest.expect(o[1], unittest.equals('foo'));
1202 }
1203
1204 buildUnnamed520() { 1178 buildUnnamed520() {
1205 var o = new core.List<core.String>(); 1179 var o = new core.List<core.String>();
1206 o.add("foo"); 1180 o.add("foo");
1207 o.add("foo"); 1181 o.add("foo");
1208 return o; 1182 return o;
1209 } 1183 }
1210 1184
1211 checkUnnamed520(core.List<core.String> o) { 1185 checkUnnamed520(core.List<core.String> o) {
1212 unittest.expect(o, unittest.hasLength(2)); 1186 unittest.expect(o, unittest.hasLength(2));
1213 unittest.expect(o[0], unittest.equals('foo')); 1187 unittest.expect(o[0], unittest.equals('foo'));
1214 unittest.expect(o[1], unittest.equals('foo')); 1188 unittest.expect(o[1], unittest.equals('foo'));
1189 }
1190
1191 buildUnnamed521() {
1192 var o = new core.List<core.String>();
1193 o.add("foo");
1194 o.add("foo");
1195 return o;
1196 }
1197
1198 checkUnnamed521(core.List<core.String> o) {
1199 unittest.expect(o, unittest.hasLength(2));
1200 unittest.expect(o[0], unittest.equals('foo'));
1201 unittest.expect(o[1], unittest.equals('foo'));
1202 }
1203
1204 buildUnnamed522() {
1205 var o = new core.List<core.String>();
1206 o.add("foo");
1207 o.add("foo");
1208 return o;
1209 }
1210
1211 checkUnnamed522(core.List<core.String> o) {
1212 unittest.expect(o, unittest.hasLength(2));
1213 unittest.expect(o[0], unittest.equals('foo'));
1214 unittest.expect(o[1], unittest.equals('foo'));
1215 } 1215 }
1216 1216
1217 core.int buildCounterChannelSectionTargeting = 0; 1217 core.int buildCounterChannelSectionTargeting = 0;
1218 buildChannelSectionTargeting() { 1218 buildChannelSectionTargeting() {
1219 var o = new api.ChannelSectionTargeting(); 1219 var o = new api.ChannelSectionTargeting();
1220 buildCounterChannelSectionTargeting++; 1220 buildCounterChannelSectionTargeting++;
1221 if (buildCounterChannelSectionTargeting < 3) { 1221 if (buildCounterChannelSectionTargeting < 3) {
1222 o.countries = buildUnnamed518(); 1222 o.countries = buildUnnamed520();
1223 o.languages = buildUnnamed519(); 1223 o.languages = buildUnnamed521();
1224 o.regions = buildUnnamed520(); 1224 o.regions = buildUnnamed522();
1225 } 1225 }
1226 buildCounterChannelSectionTargeting--; 1226 buildCounterChannelSectionTargeting--;
1227 return o; 1227 return o;
1228 } 1228 }
1229 1229
1230 checkChannelSectionTargeting(api.ChannelSectionTargeting o) { 1230 checkChannelSectionTargeting(api.ChannelSectionTargeting o) {
1231 buildCounterChannelSectionTargeting++; 1231 buildCounterChannelSectionTargeting++;
1232 if (buildCounterChannelSectionTargeting < 3) { 1232 if (buildCounterChannelSectionTargeting < 3) {
1233 checkUnnamed518(o.countries); 1233 checkUnnamed520(o.countries);
1234 checkUnnamed519(o.languages); 1234 checkUnnamed521(o.languages);
1235 checkUnnamed520(o.regions); 1235 checkUnnamed522(o.regions);
1236 } 1236 }
1237 buildCounterChannelSectionTargeting--; 1237 buildCounterChannelSectionTargeting--;
1238 } 1238 }
1239 1239
1240 buildUnnamed521() { 1240 buildUnnamed523() {
1241 var o = new core.List<core.String>(); 1241 var o = new core.List<core.String>();
1242 o.add("foo"); 1242 o.add("foo");
1243 o.add("foo"); 1243 o.add("foo");
1244 return o; 1244 return o;
1245 } 1245 }
1246 1246
1247 checkUnnamed521(core.List<core.String> o) { 1247 checkUnnamed523(core.List<core.String> o) {
1248 unittest.expect(o, unittest.hasLength(2)); 1248 unittest.expect(o, unittest.hasLength(2));
1249 unittest.expect(o[0], unittest.equals('foo')); 1249 unittest.expect(o[0], unittest.equals('foo'));
1250 unittest.expect(o[1], unittest.equals('foo')); 1250 unittest.expect(o[1], unittest.equals('foo'));
1251 } 1251 }
1252 1252
1253 core.int buildCounterChannelSettings = 0; 1253 core.int buildCounterChannelSettings = 0;
1254 buildChannelSettings() { 1254 buildChannelSettings() {
1255 var o = new api.ChannelSettings(); 1255 var o = new api.ChannelSettings();
1256 buildCounterChannelSettings++; 1256 buildCounterChannelSettings++;
1257 if (buildCounterChannelSettings < 3) { 1257 if (buildCounterChannelSettings < 3) {
1258 o.country = "foo"; 1258 o.country = "foo";
1259 o.defaultLanguage = "foo"; 1259 o.defaultLanguage = "foo";
1260 o.defaultTab = "foo"; 1260 o.defaultTab = "foo";
1261 o.description = "foo"; 1261 o.description = "foo";
1262 o.featuredChannelsTitle = "foo"; 1262 o.featuredChannelsTitle = "foo";
1263 o.featuredChannelsUrls = buildUnnamed521(); 1263 o.featuredChannelsUrls = buildUnnamed523();
1264 o.keywords = "foo"; 1264 o.keywords = "foo";
1265 o.moderateComments = true; 1265 o.moderateComments = true;
1266 o.profileColor = "foo"; 1266 o.profileColor = "foo";
1267 o.showBrowseView = true; 1267 o.showBrowseView = true;
1268 o.showRelatedChannels = true; 1268 o.showRelatedChannels = true;
1269 o.title = "foo"; 1269 o.title = "foo";
1270 o.trackingAnalyticsAccountId = "foo"; 1270 o.trackingAnalyticsAccountId = "foo";
1271 o.unsubscribedTrailer = "foo"; 1271 o.unsubscribedTrailer = "foo";
1272 } 1272 }
1273 buildCounterChannelSettings--; 1273 buildCounterChannelSettings--;
1274 return o; 1274 return o;
1275 } 1275 }
1276 1276
1277 checkChannelSettings(api.ChannelSettings o) { 1277 checkChannelSettings(api.ChannelSettings o) {
1278 buildCounterChannelSettings++; 1278 buildCounterChannelSettings++;
1279 if (buildCounterChannelSettings < 3) { 1279 if (buildCounterChannelSettings < 3) {
1280 unittest.expect(o.country, unittest.equals('foo')); 1280 unittest.expect(o.country, unittest.equals('foo'));
1281 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 1281 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
1282 unittest.expect(o.defaultTab, unittest.equals('foo')); 1282 unittest.expect(o.defaultTab, unittest.equals('foo'));
1283 unittest.expect(o.description, unittest.equals('foo')); 1283 unittest.expect(o.description, unittest.equals('foo'));
1284 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); 1284 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo'));
1285 checkUnnamed521(o.featuredChannelsUrls); 1285 checkUnnamed523(o.featuredChannelsUrls);
1286 unittest.expect(o.keywords, unittest.equals('foo')); 1286 unittest.expect(o.keywords, unittest.equals('foo'));
1287 unittest.expect(o.moderateComments, unittest.isTrue); 1287 unittest.expect(o.moderateComments, unittest.isTrue);
1288 unittest.expect(o.profileColor, unittest.equals('foo')); 1288 unittest.expect(o.profileColor, unittest.equals('foo'));
1289 unittest.expect(o.showBrowseView, unittest.isTrue); 1289 unittest.expect(o.showBrowseView, unittest.isTrue);
1290 unittest.expect(o.showRelatedChannels, unittest.isTrue); 1290 unittest.expect(o.showRelatedChannels, unittest.isTrue);
1291 unittest.expect(o.title, unittest.equals('foo')); 1291 unittest.expect(o.title, unittest.equals('foo'));
1292 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo')); 1292 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo'));
1293 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo')); 1293 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo'));
1294 } 1294 }
1295 buildCounterChannelSettings--; 1295 buildCounterChannelSettings--;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 checkChannelStatus(api.ChannelStatus o) { 1371 checkChannelStatus(api.ChannelStatus o) {
1372 buildCounterChannelStatus++; 1372 buildCounterChannelStatus++;
1373 if (buildCounterChannelStatus < 3) { 1373 if (buildCounterChannelStatus < 3) {
1374 unittest.expect(o.isLinked, unittest.isTrue); 1374 unittest.expect(o.isLinked, unittest.isTrue);
1375 unittest.expect(o.longUploadsStatus, unittest.equals('foo')); 1375 unittest.expect(o.longUploadsStatus, unittest.equals('foo'));
1376 unittest.expect(o.privacyStatus, unittest.equals('foo')); 1376 unittest.expect(o.privacyStatus, unittest.equals('foo'));
1377 } 1377 }
1378 buildCounterChannelStatus--; 1378 buildCounterChannelStatus--;
1379 } 1379 }
1380 1380
1381 buildUnnamed522() { 1381 buildUnnamed524() {
1382 var o = new core.List<core.String>(); 1382 var o = new core.List<core.String>();
1383 o.add("foo"); 1383 o.add("foo");
1384 o.add("foo"); 1384 o.add("foo");
1385 return o; 1385 return o;
1386 } 1386 }
1387 1387
1388 checkUnnamed522(core.List<core.String> o) { 1388 checkUnnamed524(core.List<core.String> o) {
1389 unittest.expect(o, unittest.hasLength(2)); 1389 unittest.expect(o, unittest.hasLength(2));
1390 unittest.expect(o[0], unittest.equals('foo')); 1390 unittest.expect(o[0], unittest.equals('foo'));
1391 unittest.expect(o[1], unittest.equals('foo')); 1391 unittest.expect(o[1], unittest.equals('foo'));
1392 } 1392 }
1393 1393
1394 buildUnnamed523() { 1394 buildUnnamed525() {
1395 var o = new core.List<core.String>(); 1395 var o = new core.List<core.String>();
1396 o.add("foo"); 1396 o.add("foo");
1397 o.add("foo"); 1397 o.add("foo");
1398 return o; 1398 return o;
1399 } 1399 }
1400 1400
1401 checkUnnamed523(core.List<core.String> o) { 1401 checkUnnamed525(core.List<core.String> o) {
1402 unittest.expect(o, unittest.hasLength(2)); 1402 unittest.expect(o, unittest.hasLength(2));
1403 unittest.expect(o[0], unittest.equals('foo')); 1403 unittest.expect(o[0], unittest.equals('foo'));
1404 unittest.expect(o[1], unittest.equals('foo')); 1404 unittest.expect(o[1], unittest.equals('foo'));
1405 } 1405 }
1406 1406
1407 core.int buildCounterChannelTopicDetails = 0; 1407 core.int buildCounterChannelTopicDetails = 0;
1408 buildChannelTopicDetails() { 1408 buildChannelTopicDetails() {
1409 var o = new api.ChannelTopicDetails(); 1409 var o = new api.ChannelTopicDetails();
1410 buildCounterChannelTopicDetails++; 1410 buildCounterChannelTopicDetails++;
1411 if (buildCounterChannelTopicDetails < 3) { 1411 if (buildCounterChannelTopicDetails < 3) {
1412 o.topicCategories = buildUnnamed522(); 1412 o.topicCategories = buildUnnamed524();
1413 o.topicIds = buildUnnamed523(); 1413 o.topicIds = buildUnnamed525();
1414 } 1414 }
1415 buildCounterChannelTopicDetails--; 1415 buildCounterChannelTopicDetails--;
1416 return o; 1416 return o;
1417 } 1417 }
1418 1418
1419 checkChannelTopicDetails(api.ChannelTopicDetails o) { 1419 checkChannelTopicDetails(api.ChannelTopicDetails o) {
1420 buildCounterChannelTopicDetails++; 1420 buildCounterChannelTopicDetails++;
1421 if (buildCounterChannelTopicDetails < 3) { 1421 if (buildCounterChannelTopicDetails < 3) {
1422 checkUnnamed522(o.topicCategories); 1422 checkUnnamed524(o.topicCategories);
1423 checkUnnamed523(o.topicIds); 1423 checkUnnamed525(o.topicIds);
1424 } 1424 }
1425 buildCounterChannelTopicDetails--; 1425 buildCounterChannelTopicDetails--;
1426 } 1426 }
1427 1427
1428 core.int buildCounterComment = 0; 1428 core.int buildCounterComment = 0;
1429 buildComment() { 1429 buildComment() {
1430 var o = new api.Comment(); 1430 var o = new api.Comment();
1431 buildCounterComment++; 1431 buildCounterComment++;
1432 if (buildCounterComment < 3) { 1432 if (buildCounterComment < 3) {
1433 o.etag = "foo"; 1433 o.etag = "foo";
1434 o.id = "foo"; 1434 o.id = "foo";
1435 o.kind = "foo"; 1435 o.kind = "foo";
1436 o.snippet = buildCommentSnippet(); 1436 o.snippet = buildCommentSnippet();
1437 } 1437 }
1438 buildCounterComment--; 1438 buildCounterComment--;
1439 return o; 1439 return o;
1440 } 1440 }
1441 1441
1442 checkComment(api.Comment o) { 1442 checkComment(api.Comment o) {
1443 buildCounterComment++; 1443 buildCounterComment++;
1444 if (buildCounterComment < 3) { 1444 if (buildCounterComment < 3) {
1445 unittest.expect(o.etag, unittest.equals('foo')); 1445 unittest.expect(o.etag, unittest.equals('foo'));
1446 unittest.expect(o.id, unittest.equals('foo')); 1446 unittest.expect(o.id, unittest.equals('foo'));
1447 unittest.expect(o.kind, unittest.equals('foo')); 1447 unittest.expect(o.kind, unittest.equals('foo'));
1448 checkCommentSnippet(o.snippet); 1448 checkCommentSnippet(o.snippet);
1449 } 1449 }
1450 buildCounterComment--; 1450 buildCounterComment--;
1451 } 1451 }
1452 1452
1453 buildUnnamed524() { 1453 buildUnnamed526() {
1454 var o = new core.List<api.Comment>(); 1454 var o = new core.List<api.Comment>();
1455 o.add(buildComment()); 1455 o.add(buildComment());
1456 o.add(buildComment()); 1456 o.add(buildComment());
1457 return o; 1457 return o;
1458 } 1458 }
1459 1459
1460 checkUnnamed524(core.List<api.Comment> o) { 1460 checkUnnamed526(core.List<api.Comment> o) {
1461 unittest.expect(o, unittest.hasLength(2)); 1461 unittest.expect(o, unittest.hasLength(2));
1462 checkComment(o[0]); 1462 checkComment(o[0]);
1463 checkComment(o[1]); 1463 checkComment(o[1]);
1464 } 1464 }
1465 1465
1466 core.int buildCounterCommentListResponse = 0; 1466 core.int buildCounterCommentListResponse = 0;
1467 buildCommentListResponse() { 1467 buildCommentListResponse() {
1468 var o = new api.CommentListResponse(); 1468 var o = new api.CommentListResponse();
1469 buildCounterCommentListResponse++; 1469 buildCounterCommentListResponse++;
1470 if (buildCounterCommentListResponse < 3) { 1470 if (buildCounterCommentListResponse < 3) {
1471 o.etag = "foo"; 1471 o.etag = "foo";
1472 o.eventId = "foo"; 1472 o.eventId = "foo";
1473 o.items = buildUnnamed524(); 1473 o.items = buildUnnamed526();
1474 o.kind = "foo"; 1474 o.kind = "foo";
1475 o.nextPageToken = "foo"; 1475 o.nextPageToken = "foo";
1476 o.pageInfo = buildPageInfo(); 1476 o.pageInfo = buildPageInfo();
1477 o.tokenPagination = buildTokenPagination(); 1477 o.tokenPagination = buildTokenPagination();
1478 o.visitorId = "foo"; 1478 o.visitorId = "foo";
1479 } 1479 }
1480 buildCounterCommentListResponse--; 1480 buildCounterCommentListResponse--;
1481 return o; 1481 return o;
1482 } 1482 }
1483 1483
1484 checkCommentListResponse(api.CommentListResponse o) { 1484 checkCommentListResponse(api.CommentListResponse o) {
1485 buildCounterCommentListResponse++; 1485 buildCounterCommentListResponse++;
1486 if (buildCounterCommentListResponse < 3) { 1486 if (buildCounterCommentListResponse < 3) {
1487 unittest.expect(o.etag, unittest.equals('foo')); 1487 unittest.expect(o.etag, unittest.equals('foo'));
1488 unittest.expect(o.eventId, unittest.equals('foo')); 1488 unittest.expect(o.eventId, unittest.equals('foo'));
1489 checkUnnamed524(o.items); 1489 checkUnnamed526(o.items);
1490 unittest.expect(o.kind, unittest.equals('foo')); 1490 unittest.expect(o.kind, unittest.equals('foo'));
1491 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1491 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1492 checkPageInfo(o.pageInfo); 1492 checkPageInfo(o.pageInfo);
1493 checkTokenPagination(o.tokenPagination); 1493 checkTokenPagination(o.tokenPagination);
1494 unittest.expect(o.visitorId, unittest.equals('foo')); 1494 unittest.expect(o.visitorId, unittest.equals('foo'));
1495 } 1495 }
1496 buildCounterCommentListResponse--; 1496 buildCounterCommentListResponse--;
1497 } 1497 }
1498 1498
1499 core.int buildCounterCommentSnippet = 0; 1499 core.int buildCounterCommentSnippet = 0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 if (buildCounterCommentThread < 3) { 1563 if (buildCounterCommentThread < 3) {
1564 unittest.expect(o.etag, unittest.equals('foo')); 1564 unittest.expect(o.etag, unittest.equals('foo'));
1565 unittest.expect(o.id, unittest.equals('foo')); 1565 unittest.expect(o.id, unittest.equals('foo'));
1566 unittest.expect(o.kind, unittest.equals('foo')); 1566 unittest.expect(o.kind, unittest.equals('foo'));
1567 checkCommentThreadReplies(o.replies); 1567 checkCommentThreadReplies(o.replies);
1568 checkCommentThreadSnippet(o.snippet); 1568 checkCommentThreadSnippet(o.snippet);
1569 } 1569 }
1570 buildCounterCommentThread--; 1570 buildCounterCommentThread--;
1571 } 1571 }
1572 1572
1573 buildUnnamed525() { 1573 buildUnnamed527() {
1574 var o = new core.List<api.CommentThread>(); 1574 var o = new core.List<api.CommentThread>();
1575 o.add(buildCommentThread()); 1575 o.add(buildCommentThread());
1576 o.add(buildCommentThread()); 1576 o.add(buildCommentThread());
1577 return o; 1577 return o;
1578 } 1578 }
1579 1579
1580 checkUnnamed525(core.List<api.CommentThread> o) { 1580 checkUnnamed527(core.List<api.CommentThread> o) {
1581 unittest.expect(o, unittest.hasLength(2)); 1581 unittest.expect(o, unittest.hasLength(2));
1582 checkCommentThread(o[0]); 1582 checkCommentThread(o[0]);
1583 checkCommentThread(o[1]); 1583 checkCommentThread(o[1]);
1584 } 1584 }
1585 1585
1586 core.int buildCounterCommentThreadListResponse = 0; 1586 core.int buildCounterCommentThreadListResponse = 0;
1587 buildCommentThreadListResponse() { 1587 buildCommentThreadListResponse() {
1588 var o = new api.CommentThreadListResponse(); 1588 var o = new api.CommentThreadListResponse();
1589 buildCounterCommentThreadListResponse++; 1589 buildCounterCommentThreadListResponse++;
1590 if (buildCounterCommentThreadListResponse < 3) { 1590 if (buildCounterCommentThreadListResponse < 3) {
1591 o.etag = "foo"; 1591 o.etag = "foo";
1592 o.eventId = "foo"; 1592 o.eventId = "foo";
1593 o.items = buildUnnamed525(); 1593 o.items = buildUnnamed527();
1594 o.kind = "foo"; 1594 o.kind = "foo";
1595 o.nextPageToken = "foo"; 1595 o.nextPageToken = "foo";
1596 o.pageInfo = buildPageInfo(); 1596 o.pageInfo = buildPageInfo();
1597 o.tokenPagination = buildTokenPagination(); 1597 o.tokenPagination = buildTokenPagination();
1598 o.visitorId = "foo"; 1598 o.visitorId = "foo";
1599 } 1599 }
1600 buildCounterCommentThreadListResponse--; 1600 buildCounterCommentThreadListResponse--;
1601 return o; 1601 return o;
1602 } 1602 }
1603 1603
1604 checkCommentThreadListResponse(api.CommentThreadListResponse o) { 1604 checkCommentThreadListResponse(api.CommentThreadListResponse o) {
1605 buildCounterCommentThreadListResponse++; 1605 buildCounterCommentThreadListResponse++;
1606 if (buildCounterCommentThreadListResponse < 3) { 1606 if (buildCounterCommentThreadListResponse < 3) {
1607 unittest.expect(o.etag, unittest.equals('foo')); 1607 unittest.expect(o.etag, unittest.equals('foo'));
1608 unittest.expect(o.eventId, unittest.equals('foo')); 1608 unittest.expect(o.eventId, unittest.equals('foo'));
1609 checkUnnamed525(o.items); 1609 checkUnnamed527(o.items);
1610 unittest.expect(o.kind, unittest.equals('foo')); 1610 unittest.expect(o.kind, unittest.equals('foo'));
1611 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1611 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1612 checkPageInfo(o.pageInfo); 1612 checkPageInfo(o.pageInfo);
1613 checkTokenPagination(o.tokenPagination); 1613 checkTokenPagination(o.tokenPagination);
1614 unittest.expect(o.visitorId, unittest.equals('foo')); 1614 unittest.expect(o.visitorId, unittest.equals('foo'));
1615 } 1615 }
1616 buildCounterCommentThreadListResponse--; 1616 buildCounterCommentThreadListResponse--;
1617 } 1617 }
1618 1618
1619 buildUnnamed526() { 1619 buildUnnamed528() {
1620 var o = new core.List<api.Comment>(); 1620 var o = new core.List<api.Comment>();
1621 o.add(buildComment()); 1621 o.add(buildComment());
1622 o.add(buildComment()); 1622 o.add(buildComment());
1623 return o; 1623 return o;
1624 } 1624 }
1625 1625
1626 checkUnnamed526(core.List<api.Comment> o) { 1626 checkUnnamed528(core.List<api.Comment> o) {
1627 unittest.expect(o, unittest.hasLength(2)); 1627 unittest.expect(o, unittest.hasLength(2));
1628 checkComment(o[0]); 1628 checkComment(o[0]);
1629 checkComment(o[1]); 1629 checkComment(o[1]);
1630 } 1630 }
1631 1631
1632 core.int buildCounterCommentThreadReplies = 0; 1632 core.int buildCounterCommentThreadReplies = 0;
1633 buildCommentThreadReplies() { 1633 buildCommentThreadReplies() {
1634 var o = new api.CommentThreadReplies(); 1634 var o = new api.CommentThreadReplies();
1635 buildCounterCommentThreadReplies++; 1635 buildCounterCommentThreadReplies++;
1636 if (buildCounterCommentThreadReplies < 3) { 1636 if (buildCounterCommentThreadReplies < 3) {
1637 o.comments = buildUnnamed526(); 1637 o.comments = buildUnnamed528();
1638 } 1638 }
1639 buildCounterCommentThreadReplies--; 1639 buildCounterCommentThreadReplies--;
1640 return o; 1640 return o;
1641 } 1641 }
1642 1642
1643 checkCommentThreadReplies(api.CommentThreadReplies o) { 1643 checkCommentThreadReplies(api.CommentThreadReplies o) {
1644 buildCounterCommentThreadReplies++; 1644 buildCounterCommentThreadReplies++;
1645 if (buildCounterCommentThreadReplies < 3) { 1645 if (buildCounterCommentThreadReplies < 3) {
1646 checkUnnamed526(o.comments); 1646 checkUnnamed528(o.comments);
1647 } 1647 }
1648 buildCounterCommentThreadReplies--; 1648 buildCounterCommentThreadReplies--;
1649 } 1649 }
1650 1650
1651 core.int buildCounterCommentThreadSnippet = 0; 1651 core.int buildCounterCommentThreadSnippet = 0;
1652 buildCommentThreadSnippet() { 1652 buildCommentThreadSnippet() {
1653 var o = new api.CommentThreadSnippet(); 1653 var o = new api.CommentThreadSnippet();
1654 buildCounterCommentThreadSnippet++; 1654 buildCounterCommentThreadSnippet++;
1655 if (buildCounterCommentThreadSnippet < 3) { 1655 if (buildCounterCommentThreadSnippet < 3) {
1656 o.canReply = true; 1656 o.canReply = true;
(...skipping 13 matching lines...) Expand all
1670 unittest.expect(o.canReply, unittest.isTrue); 1670 unittest.expect(o.canReply, unittest.isTrue);
1671 unittest.expect(o.channelId, unittest.equals('foo')); 1671 unittest.expect(o.channelId, unittest.equals('foo'));
1672 unittest.expect(o.isPublic, unittest.isTrue); 1672 unittest.expect(o.isPublic, unittest.isTrue);
1673 checkComment(o.topLevelComment); 1673 checkComment(o.topLevelComment);
1674 unittest.expect(o.totalReplyCount, unittest.equals(42)); 1674 unittest.expect(o.totalReplyCount, unittest.equals(42));
1675 unittest.expect(o.videoId, unittest.equals('foo')); 1675 unittest.expect(o.videoId, unittest.equals('foo'));
1676 } 1676 }
1677 buildCounterCommentThreadSnippet--; 1677 buildCounterCommentThreadSnippet--;
1678 } 1678 }
1679 1679
1680 buildUnnamed527() { 1680 buildUnnamed529() {
1681 var o = new core.List<core.String>(); 1681 var o = new core.List<core.String>();
1682 o.add("foo"); 1682 o.add("foo");
1683 o.add("foo"); 1683 o.add("foo");
1684 return o; 1684 return o;
1685 } 1685 }
1686 1686
1687 checkUnnamed527(core.List<core.String> o) { 1687 checkUnnamed529(core.List<core.String> o) {
1688 unittest.expect(o, unittest.hasLength(2)); 1688 unittest.expect(o, unittest.hasLength(2));
1689 unittest.expect(o[0], unittest.equals('foo')); 1689 unittest.expect(o[0], unittest.equals('foo'));
1690 unittest.expect(o[1], unittest.equals('foo')); 1690 unittest.expect(o[1], unittest.equals('foo'));
1691 } 1691 }
1692 1692
1693 buildUnnamed528() { 1693 buildUnnamed530() {
1694 var o = new core.List<core.String>(); 1694 var o = new core.List<core.String>();
1695 o.add("foo"); 1695 o.add("foo");
1696 o.add("foo"); 1696 o.add("foo");
1697 return o; 1697 return o;
1698 } 1698 }
1699 1699
1700 checkUnnamed528(core.List<core.String> o) { 1700 checkUnnamed530(core.List<core.String> o) {
1701 unittest.expect(o, unittest.hasLength(2)); 1701 unittest.expect(o, unittest.hasLength(2));
1702 unittest.expect(o[0], unittest.equals('foo')); 1702 unittest.expect(o[0], unittest.equals('foo'));
1703 unittest.expect(o[1], unittest.equals('foo')); 1703 unittest.expect(o[1], unittest.equals('foo'));
1704 } 1704 }
1705 1705
1706 core.int buildCounterContentRating = 0; 1706 core.int buildCounterContentRating = 0;
1707 buildContentRating() { 1707 buildContentRating() {
1708 var o = new api.ContentRating(); 1708 var o = new api.ContentRating();
1709 buildCounterContentRating++; 1709 buildCounterContentRating++;
1710 if (buildCounterContentRating < 3) { 1710 if (buildCounterContentRating < 3) {
(...skipping 10 matching lines...) Expand all
1721 o.cceRating = "foo"; 1721 o.cceRating = "foo";
1722 o.chfilmRating = "foo"; 1722 o.chfilmRating = "foo";
1723 o.chvrsRating = "foo"; 1723 o.chvrsRating = "foo";
1724 o.cicfRating = "foo"; 1724 o.cicfRating = "foo";
1725 o.cnaRating = "foo"; 1725 o.cnaRating = "foo";
1726 o.cncRating = "foo"; 1726 o.cncRating = "foo";
1727 o.csaRating = "foo"; 1727 o.csaRating = "foo";
1728 o.cscfRating = "foo"; 1728 o.cscfRating = "foo";
1729 o.czfilmRating = "foo"; 1729 o.czfilmRating = "foo";
1730 o.djctqRating = "foo"; 1730 o.djctqRating = "foo";
1731 o.djctqRatingReasons = buildUnnamed527(); 1731 o.djctqRatingReasons = buildUnnamed529();
1732 o.ecbmctRating = "foo"; 1732 o.ecbmctRating = "foo";
1733 o.eefilmRating = "foo"; 1733 o.eefilmRating = "foo";
1734 o.egfilmRating = "foo"; 1734 o.egfilmRating = "foo";
1735 o.eirinRating = "foo"; 1735 o.eirinRating = "foo";
1736 o.fcbmRating = "foo"; 1736 o.fcbmRating = "foo";
1737 o.fcoRating = "foo"; 1737 o.fcoRating = "foo";
1738 o.fmocRating = "foo"; 1738 o.fmocRating = "foo";
1739 o.fpbRating = "foo"; 1739 o.fpbRating = "foo";
1740 o.fpbRatingReasons = buildUnnamed528(); 1740 o.fpbRatingReasons = buildUnnamed530();
1741 o.fskRating = "foo"; 1741 o.fskRating = "foo";
1742 o.grfilmRating = "foo"; 1742 o.grfilmRating = "foo";
1743 o.icaaRating = "foo"; 1743 o.icaaRating = "foo";
1744 o.ifcoRating = "foo"; 1744 o.ifcoRating = "foo";
1745 o.ilfilmRating = "foo"; 1745 o.ilfilmRating = "foo";
1746 o.incaaRating = "foo"; 1746 o.incaaRating = "foo";
1747 o.kfcbRating = "foo"; 1747 o.kfcbRating = "foo";
1748 o.kijkwijzerRating = "foo"; 1748 o.kijkwijzerRating = "foo";
1749 o.kmrbRating = "foo"; 1749 o.kmrbRating = "foo";
1750 o.lsfRating = "foo"; 1750 o.lsfRating = "foo";
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 unittest.expect(o.cceRating, unittest.equals('foo')); 1797 unittest.expect(o.cceRating, unittest.equals('foo'));
1798 unittest.expect(o.chfilmRating, unittest.equals('foo')); 1798 unittest.expect(o.chfilmRating, unittest.equals('foo'));
1799 unittest.expect(o.chvrsRating, unittest.equals('foo')); 1799 unittest.expect(o.chvrsRating, unittest.equals('foo'));
1800 unittest.expect(o.cicfRating, unittest.equals('foo')); 1800 unittest.expect(o.cicfRating, unittest.equals('foo'));
1801 unittest.expect(o.cnaRating, unittest.equals('foo')); 1801 unittest.expect(o.cnaRating, unittest.equals('foo'));
1802 unittest.expect(o.cncRating, unittest.equals('foo')); 1802 unittest.expect(o.cncRating, unittest.equals('foo'));
1803 unittest.expect(o.csaRating, unittest.equals('foo')); 1803 unittest.expect(o.csaRating, unittest.equals('foo'));
1804 unittest.expect(o.cscfRating, unittest.equals('foo')); 1804 unittest.expect(o.cscfRating, unittest.equals('foo'));
1805 unittest.expect(o.czfilmRating, unittest.equals('foo')); 1805 unittest.expect(o.czfilmRating, unittest.equals('foo'));
1806 unittest.expect(o.djctqRating, unittest.equals('foo')); 1806 unittest.expect(o.djctqRating, unittest.equals('foo'));
1807 checkUnnamed527(o.djctqRatingReasons); 1807 checkUnnamed529(o.djctqRatingReasons);
1808 unittest.expect(o.ecbmctRating, unittest.equals('foo')); 1808 unittest.expect(o.ecbmctRating, unittest.equals('foo'));
1809 unittest.expect(o.eefilmRating, unittest.equals('foo')); 1809 unittest.expect(o.eefilmRating, unittest.equals('foo'));
1810 unittest.expect(o.egfilmRating, unittest.equals('foo')); 1810 unittest.expect(o.egfilmRating, unittest.equals('foo'));
1811 unittest.expect(o.eirinRating, unittest.equals('foo')); 1811 unittest.expect(o.eirinRating, unittest.equals('foo'));
1812 unittest.expect(o.fcbmRating, unittest.equals('foo')); 1812 unittest.expect(o.fcbmRating, unittest.equals('foo'));
1813 unittest.expect(o.fcoRating, unittest.equals('foo')); 1813 unittest.expect(o.fcoRating, unittest.equals('foo'));
1814 unittest.expect(o.fmocRating, unittest.equals('foo')); 1814 unittest.expect(o.fmocRating, unittest.equals('foo'));
1815 unittest.expect(o.fpbRating, unittest.equals('foo')); 1815 unittest.expect(o.fpbRating, unittest.equals('foo'));
1816 checkUnnamed528(o.fpbRatingReasons); 1816 checkUnnamed530(o.fpbRatingReasons);
1817 unittest.expect(o.fskRating, unittest.equals('foo')); 1817 unittest.expect(o.fskRating, unittest.equals('foo'));
1818 unittest.expect(o.grfilmRating, unittest.equals('foo')); 1818 unittest.expect(o.grfilmRating, unittest.equals('foo'));
1819 unittest.expect(o.icaaRating, unittest.equals('foo')); 1819 unittest.expect(o.icaaRating, unittest.equals('foo'));
1820 unittest.expect(o.ifcoRating, unittest.equals('foo')); 1820 unittest.expect(o.ifcoRating, unittest.equals('foo'));
1821 unittest.expect(o.ilfilmRating, unittest.equals('foo')); 1821 unittest.expect(o.ilfilmRating, unittest.equals('foo'));
1822 unittest.expect(o.incaaRating, unittest.equals('foo')); 1822 unittest.expect(o.incaaRating, unittest.equals('foo'));
1823 unittest.expect(o.kfcbRating, unittest.equals('foo')); 1823 unittest.expect(o.kfcbRating, unittest.equals('foo'));
1824 unittest.expect(o.kijkwijzerRating, unittest.equals('foo')); 1824 unittest.expect(o.kijkwijzerRating, unittest.equals('foo'));
1825 unittest.expect(o.kmrbRating, unittest.equals('foo')); 1825 unittest.expect(o.kmrbRating, unittest.equals('foo'));
1826 unittest.expect(o.lsfRating, unittest.equals('foo')); 1826 unittest.expect(o.lsfRating, unittest.equals('foo'));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 buildCounterFanFundingEvent++; 1874 buildCounterFanFundingEvent++;
1875 if (buildCounterFanFundingEvent < 3) { 1875 if (buildCounterFanFundingEvent < 3) {
1876 unittest.expect(o.etag, unittest.equals('foo')); 1876 unittest.expect(o.etag, unittest.equals('foo'));
1877 unittest.expect(o.id, unittest.equals('foo')); 1877 unittest.expect(o.id, unittest.equals('foo'));
1878 unittest.expect(o.kind, unittest.equals('foo')); 1878 unittest.expect(o.kind, unittest.equals('foo'));
1879 checkFanFundingEventSnippet(o.snippet); 1879 checkFanFundingEventSnippet(o.snippet);
1880 } 1880 }
1881 buildCounterFanFundingEvent--; 1881 buildCounterFanFundingEvent--;
1882 } 1882 }
1883 1883
1884 buildUnnamed529() { 1884 buildUnnamed531() {
1885 var o = new core.List<api.FanFundingEvent>(); 1885 var o = new core.List<api.FanFundingEvent>();
1886 o.add(buildFanFundingEvent()); 1886 o.add(buildFanFundingEvent());
1887 o.add(buildFanFundingEvent()); 1887 o.add(buildFanFundingEvent());
1888 return o; 1888 return o;
1889 } 1889 }
1890 1890
1891 checkUnnamed529(core.List<api.FanFundingEvent> o) { 1891 checkUnnamed531(core.List<api.FanFundingEvent> o) {
1892 unittest.expect(o, unittest.hasLength(2)); 1892 unittest.expect(o, unittest.hasLength(2));
1893 checkFanFundingEvent(o[0]); 1893 checkFanFundingEvent(o[0]);
1894 checkFanFundingEvent(o[1]); 1894 checkFanFundingEvent(o[1]);
1895 } 1895 }
1896 1896
1897 core.int buildCounterFanFundingEventListResponse = 0; 1897 core.int buildCounterFanFundingEventListResponse = 0;
1898 buildFanFundingEventListResponse() { 1898 buildFanFundingEventListResponse() {
1899 var o = new api.FanFundingEventListResponse(); 1899 var o = new api.FanFundingEventListResponse();
1900 buildCounterFanFundingEventListResponse++; 1900 buildCounterFanFundingEventListResponse++;
1901 if (buildCounterFanFundingEventListResponse < 3) { 1901 if (buildCounterFanFundingEventListResponse < 3) {
1902 o.etag = "foo"; 1902 o.etag = "foo";
1903 o.eventId = "foo"; 1903 o.eventId = "foo";
1904 o.items = buildUnnamed529(); 1904 o.items = buildUnnamed531();
1905 o.kind = "foo"; 1905 o.kind = "foo";
1906 o.nextPageToken = "foo"; 1906 o.nextPageToken = "foo";
1907 o.pageInfo = buildPageInfo(); 1907 o.pageInfo = buildPageInfo();
1908 o.tokenPagination = buildTokenPagination(); 1908 o.tokenPagination = buildTokenPagination();
1909 o.visitorId = "foo"; 1909 o.visitorId = "foo";
1910 } 1910 }
1911 buildCounterFanFundingEventListResponse--; 1911 buildCounterFanFundingEventListResponse--;
1912 return o; 1912 return o;
1913 } 1913 }
1914 1914
1915 checkFanFundingEventListResponse(api.FanFundingEventListResponse o) { 1915 checkFanFundingEventListResponse(api.FanFundingEventListResponse o) {
1916 buildCounterFanFundingEventListResponse++; 1916 buildCounterFanFundingEventListResponse++;
1917 if (buildCounterFanFundingEventListResponse < 3) { 1917 if (buildCounterFanFundingEventListResponse < 3) {
1918 unittest.expect(o.etag, unittest.equals('foo')); 1918 unittest.expect(o.etag, unittest.equals('foo'));
1919 unittest.expect(o.eventId, unittest.equals('foo')); 1919 unittest.expect(o.eventId, unittest.equals('foo'));
1920 checkUnnamed529(o.items); 1920 checkUnnamed531(o.items);
1921 unittest.expect(o.kind, unittest.equals('foo')); 1921 unittest.expect(o.kind, unittest.equals('foo'));
1922 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1922 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1923 checkPageInfo(o.pageInfo); 1923 checkPageInfo(o.pageInfo);
1924 checkTokenPagination(o.tokenPagination); 1924 checkTokenPagination(o.tokenPagination);
1925 unittest.expect(o.visitorId, unittest.equals('foo')); 1925 unittest.expect(o.visitorId, unittest.equals('foo'));
1926 } 1926 }
1927 buildCounterFanFundingEventListResponse--; 1927 buildCounterFanFundingEventListResponse--;
1928 } 1928 }
1929 1929
1930 core.int buildCounterFanFundingEventSnippet = 0; 1930 core.int buildCounterFanFundingEventSnippet = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 buildCounterGuideCategory++; 1999 buildCounterGuideCategory++;
2000 if (buildCounterGuideCategory < 3) { 2000 if (buildCounterGuideCategory < 3) {
2001 unittest.expect(o.etag, unittest.equals('foo')); 2001 unittest.expect(o.etag, unittest.equals('foo'));
2002 unittest.expect(o.id, unittest.equals('foo')); 2002 unittest.expect(o.id, unittest.equals('foo'));
2003 unittest.expect(o.kind, unittest.equals('foo')); 2003 unittest.expect(o.kind, unittest.equals('foo'));
2004 checkGuideCategorySnippet(o.snippet); 2004 checkGuideCategorySnippet(o.snippet);
2005 } 2005 }
2006 buildCounterGuideCategory--; 2006 buildCounterGuideCategory--;
2007 } 2007 }
2008 2008
2009 buildUnnamed530() { 2009 buildUnnamed532() {
2010 var o = new core.List<api.GuideCategory>(); 2010 var o = new core.List<api.GuideCategory>();
2011 o.add(buildGuideCategory()); 2011 o.add(buildGuideCategory());
2012 o.add(buildGuideCategory()); 2012 o.add(buildGuideCategory());
2013 return o; 2013 return o;
2014 } 2014 }
2015 2015
2016 checkUnnamed530(core.List<api.GuideCategory> o) { 2016 checkUnnamed532(core.List<api.GuideCategory> o) {
2017 unittest.expect(o, unittest.hasLength(2)); 2017 unittest.expect(o, unittest.hasLength(2));
2018 checkGuideCategory(o[0]); 2018 checkGuideCategory(o[0]);
2019 checkGuideCategory(o[1]); 2019 checkGuideCategory(o[1]);
2020 } 2020 }
2021 2021
2022 core.int buildCounterGuideCategoryListResponse = 0; 2022 core.int buildCounterGuideCategoryListResponse = 0;
2023 buildGuideCategoryListResponse() { 2023 buildGuideCategoryListResponse() {
2024 var o = new api.GuideCategoryListResponse(); 2024 var o = new api.GuideCategoryListResponse();
2025 buildCounterGuideCategoryListResponse++; 2025 buildCounterGuideCategoryListResponse++;
2026 if (buildCounterGuideCategoryListResponse < 3) { 2026 if (buildCounterGuideCategoryListResponse < 3) {
2027 o.etag = "foo"; 2027 o.etag = "foo";
2028 o.eventId = "foo"; 2028 o.eventId = "foo";
2029 o.items = buildUnnamed530(); 2029 o.items = buildUnnamed532();
2030 o.kind = "foo"; 2030 o.kind = "foo";
2031 o.nextPageToken = "foo"; 2031 o.nextPageToken = "foo";
2032 o.pageInfo = buildPageInfo(); 2032 o.pageInfo = buildPageInfo();
2033 o.prevPageToken = "foo"; 2033 o.prevPageToken = "foo";
2034 o.tokenPagination = buildTokenPagination(); 2034 o.tokenPagination = buildTokenPagination();
2035 o.visitorId = "foo"; 2035 o.visitorId = "foo";
2036 } 2036 }
2037 buildCounterGuideCategoryListResponse--; 2037 buildCounterGuideCategoryListResponse--;
2038 return o; 2038 return o;
2039 } 2039 }
2040 2040
2041 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { 2041 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) {
2042 buildCounterGuideCategoryListResponse++; 2042 buildCounterGuideCategoryListResponse++;
2043 if (buildCounterGuideCategoryListResponse < 3) { 2043 if (buildCounterGuideCategoryListResponse < 3) {
2044 unittest.expect(o.etag, unittest.equals('foo')); 2044 unittest.expect(o.etag, unittest.equals('foo'));
2045 unittest.expect(o.eventId, unittest.equals('foo')); 2045 unittest.expect(o.eventId, unittest.equals('foo'));
2046 checkUnnamed530(o.items); 2046 checkUnnamed532(o.items);
2047 unittest.expect(o.kind, unittest.equals('foo')); 2047 unittest.expect(o.kind, unittest.equals('foo'));
2048 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2048 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2049 checkPageInfo(o.pageInfo); 2049 checkPageInfo(o.pageInfo);
2050 unittest.expect(o.prevPageToken, unittest.equals('foo')); 2050 unittest.expect(o.prevPageToken, unittest.equals('foo'));
2051 checkTokenPagination(o.tokenPagination); 2051 checkTokenPagination(o.tokenPagination);
2052 unittest.expect(o.visitorId, unittest.equals('foo')); 2052 unittest.expect(o.visitorId, unittest.equals('foo'));
2053 } 2053 }
2054 buildCounterGuideCategoryListResponse--; 2054 buildCounterGuideCategoryListResponse--;
2055 } 2055 }
2056 2056
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 buildCounterI18nLanguage++; 2093 buildCounterI18nLanguage++;
2094 if (buildCounterI18nLanguage < 3) { 2094 if (buildCounterI18nLanguage < 3) {
2095 unittest.expect(o.etag, unittest.equals('foo')); 2095 unittest.expect(o.etag, unittest.equals('foo'));
2096 unittest.expect(o.id, unittest.equals('foo')); 2096 unittest.expect(o.id, unittest.equals('foo'));
2097 unittest.expect(o.kind, unittest.equals('foo')); 2097 unittest.expect(o.kind, unittest.equals('foo'));
2098 checkI18nLanguageSnippet(o.snippet); 2098 checkI18nLanguageSnippet(o.snippet);
2099 } 2099 }
2100 buildCounterI18nLanguage--; 2100 buildCounterI18nLanguage--;
2101 } 2101 }
2102 2102
2103 buildUnnamed531() { 2103 buildUnnamed533() {
2104 var o = new core.List<api.I18nLanguage>(); 2104 var o = new core.List<api.I18nLanguage>();
2105 o.add(buildI18nLanguage()); 2105 o.add(buildI18nLanguage());
2106 o.add(buildI18nLanguage()); 2106 o.add(buildI18nLanguage());
2107 return o; 2107 return o;
2108 } 2108 }
2109 2109
2110 checkUnnamed531(core.List<api.I18nLanguage> o) { 2110 checkUnnamed533(core.List<api.I18nLanguage> o) {
2111 unittest.expect(o, unittest.hasLength(2)); 2111 unittest.expect(o, unittest.hasLength(2));
2112 checkI18nLanguage(o[0]); 2112 checkI18nLanguage(o[0]);
2113 checkI18nLanguage(o[1]); 2113 checkI18nLanguage(o[1]);
2114 } 2114 }
2115 2115
2116 core.int buildCounterI18nLanguageListResponse = 0; 2116 core.int buildCounterI18nLanguageListResponse = 0;
2117 buildI18nLanguageListResponse() { 2117 buildI18nLanguageListResponse() {
2118 var o = new api.I18nLanguageListResponse(); 2118 var o = new api.I18nLanguageListResponse();
2119 buildCounterI18nLanguageListResponse++; 2119 buildCounterI18nLanguageListResponse++;
2120 if (buildCounterI18nLanguageListResponse < 3) { 2120 if (buildCounterI18nLanguageListResponse < 3) {
2121 o.etag = "foo"; 2121 o.etag = "foo";
2122 o.eventId = "foo"; 2122 o.eventId = "foo";
2123 o.items = buildUnnamed531(); 2123 o.items = buildUnnamed533();
2124 o.kind = "foo"; 2124 o.kind = "foo";
2125 o.visitorId = "foo"; 2125 o.visitorId = "foo";
2126 } 2126 }
2127 buildCounterI18nLanguageListResponse--; 2127 buildCounterI18nLanguageListResponse--;
2128 return o; 2128 return o;
2129 } 2129 }
2130 2130
2131 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) { 2131 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) {
2132 buildCounterI18nLanguageListResponse++; 2132 buildCounterI18nLanguageListResponse++;
2133 if (buildCounterI18nLanguageListResponse < 3) { 2133 if (buildCounterI18nLanguageListResponse < 3) {
2134 unittest.expect(o.etag, unittest.equals('foo')); 2134 unittest.expect(o.etag, unittest.equals('foo'));
2135 unittest.expect(o.eventId, unittest.equals('foo')); 2135 unittest.expect(o.eventId, unittest.equals('foo'));
2136 checkUnnamed531(o.items); 2136 checkUnnamed533(o.items);
2137 unittest.expect(o.kind, unittest.equals('foo')); 2137 unittest.expect(o.kind, unittest.equals('foo'));
2138 unittest.expect(o.visitorId, unittest.equals('foo')); 2138 unittest.expect(o.visitorId, unittest.equals('foo'));
2139 } 2139 }
2140 buildCounterI18nLanguageListResponse--; 2140 buildCounterI18nLanguageListResponse--;
2141 } 2141 }
2142 2142
2143 core.int buildCounterI18nLanguageSnippet = 0; 2143 core.int buildCounterI18nLanguageSnippet = 0;
2144 buildI18nLanguageSnippet() { 2144 buildI18nLanguageSnippet() {
2145 var o = new api.I18nLanguageSnippet(); 2145 var o = new api.I18nLanguageSnippet();
2146 buildCounterI18nLanguageSnippet++; 2146 buildCounterI18nLanguageSnippet++;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 buildCounterI18nRegion++; 2179 buildCounterI18nRegion++;
2180 if (buildCounterI18nRegion < 3) { 2180 if (buildCounterI18nRegion < 3) {
2181 unittest.expect(o.etag, unittest.equals('foo')); 2181 unittest.expect(o.etag, unittest.equals('foo'));
2182 unittest.expect(o.id, unittest.equals('foo')); 2182 unittest.expect(o.id, unittest.equals('foo'));
2183 unittest.expect(o.kind, unittest.equals('foo')); 2183 unittest.expect(o.kind, unittest.equals('foo'));
2184 checkI18nRegionSnippet(o.snippet); 2184 checkI18nRegionSnippet(o.snippet);
2185 } 2185 }
2186 buildCounterI18nRegion--; 2186 buildCounterI18nRegion--;
2187 } 2187 }
2188 2188
2189 buildUnnamed532() { 2189 buildUnnamed534() {
2190 var o = new core.List<api.I18nRegion>(); 2190 var o = new core.List<api.I18nRegion>();
2191 o.add(buildI18nRegion()); 2191 o.add(buildI18nRegion());
2192 o.add(buildI18nRegion()); 2192 o.add(buildI18nRegion());
2193 return o; 2193 return o;
2194 } 2194 }
2195 2195
2196 checkUnnamed532(core.List<api.I18nRegion> o) { 2196 checkUnnamed534(core.List<api.I18nRegion> o) {
2197 unittest.expect(o, unittest.hasLength(2)); 2197 unittest.expect(o, unittest.hasLength(2));
2198 checkI18nRegion(o[0]); 2198 checkI18nRegion(o[0]);
2199 checkI18nRegion(o[1]); 2199 checkI18nRegion(o[1]);
2200 } 2200 }
2201 2201
2202 core.int buildCounterI18nRegionListResponse = 0; 2202 core.int buildCounterI18nRegionListResponse = 0;
2203 buildI18nRegionListResponse() { 2203 buildI18nRegionListResponse() {
2204 var o = new api.I18nRegionListResponse(); 2204 var o = new api.I18nRegionListResponse();
2205 buildCounterI18nRegionListResponse++; 2205 buildCounterI18nRegionListResponse++;
2206 if (buildCounterI18nRegionListResponse < 3) { 2206 if (buildCounterI18nRegionListResponse < 3) {
2207 o.etag = "foo"; 2207 o.etag = "foo";
2208 o.eventId = "foo"; 2208 o.eventId = "foo";
2209 o.items = buildUnnamed532(); 2209 o.items = buildUnnamed534();
2210 o.kind = "foo"; 2210 o.kind = "foo";
2211 o.visitorId = "foo"; 2211 o.visitorId = "foo";
2212 } 2212 }
2213 buildCounterI18nRegionListResponse--; 2213 buildCounterI18nRegionListResponse--;
2214 return o; 2214 return o;
2215 } 2215 }
2216 2216
2217 checkI18nRegionListResponse(api.I18nRegionListResponse o) { 2217 checkI18nRegionListResponse(api.I18nRegionListResponse o) {
2218 buildCounterI18nRegionListResponse++; 2218 buildCounterI18nRegionListResponse++;
2219 if (buildCounterI18nRegionListResponse < 3) { 2219 if (buildCounterI18nRegionListResponse < 3) {
2220 unittest.expect(o.etag, unittest.equals('foo')); 2220 unittest.expect(o.etag, unittest.equals('foo'));
2221 unittest.expect(o.eventId, unittest.equals('foo')); 2221 unittest.expect(o.eventId, unittest.equals('foo'));
2222 checkUnnamed532(o.items); 2222 checkUnnamed534(o.items);
2223 unittest.expect(o.kind, unittest.equals('foo')); 2223 unittest.expect(o.kind, unittest.equals('foo'));
2224 unittest.expect(o.visitorId, unittest.equals('foo')); 2224 unittest.expect(o.visitorId, unittest.equals('foo'));
2225 } 2225 }
2226 buildCounterI18nRegionListResponse--; 2226 buildCounterI18nRegionListResponse--;
2227 } 2227 }
2228 2228
2229 core.int buildCounterI18nRegionSnippet = 0; 2229 core.int buildCounterI18nRegionSnippet = 0;
2230 buildI18nRegionSnippet() { 2230 buildI18nRegionSnippet() {
2231 var o = new api.I18nRegionSnippet(); 2231 var o = new api.I18nRegionSnippet();
2232 buildCounterI18nRegionSnippet++; 2232 buildCounterI18nRegionSnippet++;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2372 2372
2373 checkInvideoPosition(api.InvideoPosition o) { 2373 checkInvideoPosition(api.InvideoPosition o) {
2374 buildCounterInvideoPosition++; 2374 buildCounterInvideoPosition++;
2375 if (buildCounterInvideoPosition < 3) { 2375 if (buildCounterInvideoPosition < 3) {
2376 unittest.expect(o.cornerPosition, unittest.equals('foo')); 2376 unittest.expect(o.cornerPosition, unittest.equals('foo'));
2377 unittest.expect(o.type, unittest.equals('foo')); 2377 unittest.expect(o.type, unittest.equals('foo'));
2378 } 2378 }
2379 buildCounterInvideoPosition--; 2379 buildCounterInvideoPosition--;
2380 } 2380 }
2381 2381
2382 buildUnnamed533() { 2382 buildUnnamed535() {
2383 var o = new core.List<api.PromotedItem>(); 2383 var o = new core.List<api.PromotedItem>();
2384 o.add(buildPromotedItem()); 2384 o.add(buildPromotedItem());
2385 o.add(buildPromotedItem()); 2385 o.add(buildPromotedItem());
2386 return o; 2386 return o;
2387 } 2387 }
2388 2388
2389 checkUnnamed533(core.List<api.PromotedItem> o) { 2389 checkUnnamed535(core.List<api.PromotedItem> o) {
2390 unittest.expect(o, unittest.hasLength(2)); 2390 unittest.expect(o, unittest.hasLength(2));
2391 checkPromotedItem(o[0]); 2391 checkPromotedItem(o[0]);
2392 checkPromotedItem(o[1]); 2392 checkPromotedItem(o[1]);
2393 } 2393 }
2394 2394
2395 core.int buildCounterInvideoPromotion = 0; 2395 core.int buildCounterInvideoPromotion = 0;
2396 buildInvideoPromotion() { 2396 buildInvideoPromotion() {
2397 var o = new api.InvideoPromotion(); 2397 var o = new api.InvideoPromotion();
2398 buildCounterInvideoPromotion++; 2398 buildCounterInvideoPromotion++;
2399 if (buildCounterInvideoPromotion < 3) { 2399 if (buildCounterInvideoPromotion < 3) {
2400 o.defaultTiming = buildInvideoTiming(); 2400 o.defaultTiming = buildInvideoTiming();
2401 o.items = buildUnnamed533(); 2401 o.items = buildUnnamed535();
2402 o.position = buildInvideoPosition(); 2402 o.position = buildInvideoPosition();
2403 o.useSmartTiming = true; 2403 o.useSmartTiming = true;
2404 } 2404 }
2405 buildCounterInvideoPromotion--; 2405 buildCounterInvideoPromotion--;
2406 return o; 2406 return o;
2407 } 2407 }
2408 2408
2409 checkInvideoPromotion(api.InvideoPromotion o) { 2409 checkInvideoPromotion(api.InvideoPromotion o) {
2410 buildCounterInvideoPromotion++; 2410 buildCounterInvideoPromotion++;
2411 if (buildCounterInvideoPromotion < 3) { 2411 if (buildCounterInvideoPromotion < 3) {
2412 checkInvideoTiming(o.defaultTiming); 2412 checkInvideoTiming(o.defaultTiming);
2413 checkUnnamed533(o.items); 2413 checkUnnamed535(o.items);
2414 checkInvideoPosition(o.position); 2414 checkInvideoPosition(o.position);
2415 unittest.expect(o.useSmartTiming, unittest.isTrue); 2415 unittest.expect(o.useSmartTiming, unittest.isTrue);
2416 } 2416 }
2417 buildCounterInvideoPromotion--; 2417 buildCounterInvideoPromotion--;
2418 } 2418 }
2419 2419
2420 core.int buildCounterInvideoTiming = 0; 2420 core.int buildCounterInvideoTiming = 0;
2421 buildInvideoTiming() { 2421 buildInvideoTiming() {
2422 var o = new api.InvideoTiming(); 2422 var o = new api.InvideoTiming();
2423 buildCounterInvideoTiming++; 2423 buildCounterInvideoTiming++;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2526 unittest.expect(o.enableEmbed, unittest.isTrue); 2526 unittest.expect(o.enableEmbed, unittest.isTrue);
2527 unittest.expect(o.enableLowLatency, unittest.isTrue); 2527 unittest.expect(o.enableLowLatency, unittest.isTrue);
2528 checkMonitorStreamInfo(o.monitorStream); 2528 checkMonitorStreamInfo(o.monitorStream);
2529 unittest.expect(o.projection, unittest.equals('foo')); 2529 unittest.expect(o.projection, unittest.equals('foo'));
2530 unittest.expect(o.recordFromStart, unittest.isTrue); 2530 unittest.expect(o.recordFromStart, unittest.isTrue);
2531 unittest.expect(o.startWithSlate, unittest.isTrue); 2531 unittest.expect(o.startWithSlate, unittest.isTrue);
2532 } 2532 }
2533 buildCounterLiveBroadcastContentDetails--; 2533 buildCounterLiveBroadcastContentDetails--;
2534 } 2534 }
2535 2535
2536 buildUnnamed534() { 2536 buildUnnamed536() {
2537 var o = new core.List<api.LiveBroadcast>(); 2537 var o = new core.List<api.LiveBroadcast>();
2538 o.add(buildLiveBroadcast()); 2538 o.add(buildLiveBroadcast());
2539 o.add(buildLiveBroadcast()); 2539 o.add(buildLiveBroadcast());
2540 return o; 2540 return o;
2541 } 2541 }
2542 2542
2543 checkUnnamed534(core.List<api.LiveBroadcast> o) { 2543 checkUnnamed536(core.List<api.LiveBroadcast> o) {
2544 unittest.expect(o, unittest.hasLength(2)); 2544 unittest.expect(o, unittest.hasLength(2));
2545 checkLiveBroadcast(o[0]); 2545 checkLiveBroadcast(o[0]);
2546 checkLiveBroadcast(o[1]); 2546 checkLiveBroadcast(o[1]);
2547 } 2547 }
2548 2548
2549 core.int buildCounterLiveBroadcastListResponse = 0; 2549 core.int buildCounterLiveBroadcastListResponse = 0;
2550 buildLiveBroadcastListResponse() { 2550 buildLiveBroadcastListResponse() {
2551 var o = new api.LiveBroadcastListResponse(); 2551 var o = new api.LiveBroadcastListResponse();
2552 buildCounterLiveBroadcastListResponse++; 2552 buildCounterLiveBroadcastListResponse++;
2553 if (buildCounterLiveBroadcastListResponse < 3) { 2553 if (buildCounterLiveBroadcastListResponse < 3) {
2554 o.etag = "foo"; 2554 o.etag = "foo";
2555 o.eventId = "foo"; 2555 o.eventId = "foo";
2556 o.items = buildUnnamed534(); 2556 o.items = buildUnnamed536();
2557 o.kind = "foo"; 2557 o.kind = "foo";
2558 o.nextPageToken = "foo"; 2558 o.nextPageToken = "foo";
2559 o.pageInfo = buildPageInfo(); 2559 o.pageInfo = buildPageInfo();
2560 o.prevPageToken = "foo"; 2560 o.prevPageToken = "foo";
2561 o.tokenPagination = buildTokenPagination(); 2561 o.tokenPagination = buildTokenPagination();
2562 o.visitorId = "foo"; 2562 o.visitorId = "foo";
2563 } 2563 }
2564 buildCounterLiveBroadcastListResponse--; 2564 buildCounterLiveBroadcastListResponse--;
2565 return o; 2565 return o;
2566 } 2566 }
2567 2567
2568 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) { 2568 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) {
2569 buildCounterLiveBroadcastListResponse++; 2569 buildCounterLiveBroadcastListResponse++;
2570 if (buildCounterLiveBroadcastListResponse < 3) { 2570 if (buildCounterLiveBroadcastListResponse < 3) {
2571 unittest.expect(o.etag, unittest.equals('foo')); 2571 unittest.expect(o.etag, unittest.equals('foo'));
2572 unittest.expect(o.eventId, unittest.equals('foo')); 2572 unittest.expect(o.eventId, unittest.equals('foo'));
2573 checkUnnamed534(o.items); 2573 checkUnnamed536(o.items);
2574 unittest.expect(o.kind, unittest.equals('foo')); 2574 unittest.expect(o.kind, unittest.equals('foo'));
2575 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2575 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2576 checkPageInfo(o.pageInfo); 2576 checkPageInfo(o.pageInfo);
2577 unittest.expect(o.prevPageToken, unittest.equals('foo')); 2577 unittest.expect(o.prevPageToken, unittest.equals('foo'));
2578 checkTokenPagination(o.tokenPagination); 2578 checkTokenPagination(o.tokenPagination);
2579 unittest.expect(o.visitorId, unittest.equals('foo')); 2579 unittest.expect(o.visitorId, unittest.equals('foo'));
2580 } 2580 }
2581 buildCounterLiveBroadcastListResponse--; 2581 buildCounterLiveBroadcastListResponse--;
2582 } 2582 }
2583 2583
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
2682 checkLiveBroadcastTopic(api.LiveBroadcastTopic o) { 2682 checkLiveBroadcastTopic(api.LiveBroadcastTopic o) {
2683 buildCounterLiveBroadcastTopic++; 2683 buildCounterLiveBroadcastTopic++;
2684 if (buildCounterLiveBroadcastTopic < 3) { 2684 if (buildCounterLiveBroadcastTopic < 3) {
2685 checkLiveBroadcastTopicSnippet(o.snippet); 2685 checkLiveBroadcastTopicSnippet(o.snippet);
2686 unittest.expect(o.type, unittest.equals('foo')); 2686 unittest.expect(o.type, unittest.equals('foo'));
2687 unittest.expect(o.unmatched, unittest.isTrue); 2687 unittest.expect(o.unmatched, unittest.isTrue);
2688 } 2688 }
2689 buildCounterLiveBroadcastTopic--; 2689 buildCounterLiveBroadcastTopic--;
2690 } 2690 }
2691 2691
2692 buildUnnamed535() { 2692 buildUnnamed537() {
2693 var o = new core.List<api.LiveBroadcastTopic>(); 2693 var o = new core.List<api.LiveBroadcastTopic>();
2694 o.add(buildLiveBroadcastTopic()); 2694 o.add(buildLiveBroadcastTopic());
2695 o.add(buildLiveBroadcastTopic()); 2695 o.add(buildLiveBroadcastTopic());
2696 return o; 2696 return o;
2697 } 2697 }
2698 2698
2699 checkUnnamed535(core.List<api.LiveBroadcastTopic> o) { 2699 checkUnnamed537(core.List<api.LiveBroadcastTopic> o) {
2700 unittest.expect(o, unittest.hasLength(2)); 2700 unittest.expect(o, unittest.hasLength(2));
2701 checkLiveBroadcastTopic(o[0]); 2701 checkLiveBroadcastTopic(o[0]);
2702 checkLiveBroadcastTopic(o[1]); 2702 checkLiveBroadcastTopic(o[1]);
2703 } 2703 }
2704 2704
2705 core.int buildCounterLiveBroadcastTopicDetails = 0; 2705 core.int buildCounterLiveBroadcastTopicDetails = 0;
2706 buildLiveBroadcastTopicDetails() { 2706 buildLiveBroadcastTopicDetails() {
2707 var o = new api.LiveBroadcastTopicDetails(); 2707 var o = new api.LiveBroadcastTopicDetails();
2708 buildCounterLiveBroadcastTopicDetails++; 2708 buildCounterLiveBroadcastTopicDetails++;
2709 if (buildCounterLiveBroadcastTopicDetails < 3) { 2709 if (buildCounterLiveBroadcastTopicDetails < 3) {
2710 o.topics = buildUnnamed535(); 2710 o.topics = buildUnnamed537();
2711 } 2711 }
2712 buildCounterLiveBroadcastTopicDetails--; 2712 buildCounterLiveBroadcastTopicDetails--;
2713 return o; 2713 return o;
2714 } 2714 }
2715 2715
2716 checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { 2716 checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) {
2717 buildCounterLiveBroadcastTopicDetails++; 2717 buildCounterLiveBroadcastTopicDetails++;
2718 if (buildCounterLiveBroadcastTopicDetails < 3) { 2718 if (buildCounterLiveBroadcastTopicDetails < 3) {
2719 checkUnnamed535(o.topics); 2719 checkUnnamed537(o.topics);
2720 } 2720 }
2721 buildCounterLiveBroadcastTopicDetails--; 2721 buildCounterLiveBroadcastTopicDetails--;
2722 } 2722 }
2723 2723
2724 core.int buildCounterLiveBroadcastTopicSnippet = 0; 2724 core.int buildCounterLiveBroadcastTopicSnippet = 0;
2725 buildLiveBroadcastTopicSnippet() { 2725 buildLiveBroadcastTopicSnippet() {
2726 var o = new api.LiveBroadcastTopicSnippet(); 2726 var o = new api.LiveBroadcastTopicSnippet();
2727 buildCounterLiveBroadcastTopicSnippet++; 2727 buildCounterLiveBroadcastTopicSnippet++;
2728 if (buildCounterLiveBroadcastTopicSnippet < 3) { 2728 if (buildCounterLiveBroadcastTopicSnippet < 3) {
2729 o.name = "foo"; 2729 o.name = "foo";
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 } 2889 }
2890 2890
2891 checkLiveChatMessageDeletedDetails(api.LiveChatMessageDeletedDetails o) { 2891 checkLiveChatMessageDeletedDetails(api.LiveChatMessageDeletedDetails o) {
2892 buildCounterLiveChatMessageDeletedDetails++; 2892 buildCounterLiveChatMessageDeletedDetails++;
2893 if (buildCounterLiveChatMessageDeletedDetails < 3) { 2893 if (buildCounterLiveChatMessageDeletedDetails < 3) {
2894 unittest.expect(o.deletedMessageId, unittest.equals('foo')); 2894 unittest.expect(o.deletedMessageId, unittest.equals('foo'));
2895 } 2895 }
2896 buildCounterLiveChatMessageDeletedDetails--; 2896 buildCounterLiveChatMessageDeletedDetails--;
2897 } 2897 }
2898 2898
2899 buildUnnamed536() { 2899 buildUnnamed538() {
2900 var o = new core.List<api.LiveChatMessage>(); 2900 var o = new core.List<api.LiveChatMessage>();
2901 o.add(buildLiveChatMessage()); 2901 o.add(buildLiveChatMessage());
2902 o.add(buildLiveChatMessage()); 2902 o.add(buildLiveChatMessage());
2903 return o; 2903 return o;
2904 } 2904 }
2905 2905
2906 checkUnnamed536(core.List<api.LiveChatMessage> o) { 2906 checkUnnamed538(core.List<api.LiveChatMessage> o) {
2907 unittest.expect(o, unittest.hasLength(2)); 2907 unittest.expect(o, unittest.hasLength(2));
2908 checkLiveChatMessage(o[0]); 2908 checkLiveChatMessage(o[0]);
2909 checkLiveChatMessage(o[1]); 2909 checkLiveChatMessage(o[1]);
2910 } 2910 }
2911 2911
2912 core.int buildCounterLiveChatMessageListResponse = 0; 2912 core.int buildCounterLiveChatMessageListResponse = 0;
2913 buildLiveChatMessageListResponse() { 2913 buildLiveChatMessageListResponse() {
2914 var o = new api.LiveChatMessageListResponse(); 2914 var o = new api.LiveChatMessageListResponse();
2915 buildCounterLiveChatMessageListResponse++; 2915 buildCounterLiveChatMessageListResponse++;
2916 if (buildCounterLiveChatMessageListResponse < 3) { 2916 if (buildCounterLiveChatMessageListResponse < 3) {
2917 o.etag = "foo"; 2917 o.etag = "foo";
2918 o.eventId = "foo"; 2918 o.eventId = "foo";
2919 o.items = buildUnnamed536(); 2919 o.items = buildUnnamed538();
2920 o.kind = "foo"; 2920 o.kind = "foo";
2921 o.nextPageToken = "foo"; 2921 o.nextPageToken = "foo";
2922 o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); 2922 o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02");
2923 o.pageInfo = buildPageInfo(); 2923 o.pageInfo = buildPageInfo();
2924 o.pollingIntervalMillis = 42; 2924 o.pollingIntervalMillis = 42;
2925 o.tokenPagination = buildTokenPagination(); 2925 o.tokenPagination = buildTokenPagination();
2926 o.visitorId = "foo"; 2926 o.visitorId = "foo";
2927 } 2927 }
2928 buildCounterLiveChatMessageListResponse--; 2928 buildCounterLiveChatMessageListResponse--;
2929 return o; 2929 return o;
2930 } 2930 }
2931 2931
2932 checkLiveChatMessageListResponse(api.LiveChatMessageListResponse o) { 2932 checkLiveChatMessageListResponse(api.LiveChatMessageListResponse o) {
2933 buildCounterLiveChatMessageListResponse++; 2933 buildCounterLiveChatMessageListResponse++;
2934 if (buildCounterLiveChatMessageListResponse < 3) { 2934 if (buildCounterLiveChatMessageListResponse < 3) {
2935 unittest.expect(o.etag, unittest.equals('foo')); 2935 unittest.expect(o.etag, unittest.equals('foo'));
2936 unittest.expect(o.eventId, unittest.equals('foo')); 2936 unittest.expect(o.eventId, unittest.equals('foo'));
2937 checkUnnamed536(o.items); 2937 checkUnnamed538(o.items);
2938 unittest.expect(o.kind, unittest.equals('foo')); 2938 unittest.expect(o.kind, unittest.equals('foo'));
2939 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2939 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2940 unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 2940 unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
2941 checkPageInfo(o.pageInfo); 2941 checkPageInfo(o.pageInfo);
2942 unittest.expect(o.pollingIntervalMillis, unittest.equals(42)); 2942 unittest.expect(o.pollingIntervalMillis, unittest.equals(42));
2943 checkTokenPagination(o.tokenPagination); 2943 checkTokenPagination(o.tokenPagination);
2944 unittest.expect(o.visitorId, unittest.equals('foo')); 2944 unittest.expect(o.visitorId, unittest.equals('foo'));
2945 } 2945 }
2946 buildCounterLiveChatMessageListResponse--; 2946 buildCounterLiveChatMessageListResponse--;
2947 } 2947 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 buildCounterLiveChatModerator++; 3032 buildCounterLiveChatModerator++;
3033 if (buildCounterLiveChatModerator < 3) { 3033 if (buildCounterLiveChatModerator < 3) {
3034 unittest.expect(o.etag, unittest.equals('foo')); 3034 unittest.expect(o.etag, unittest.equals('foo'));
3035 unittest.expect(o.id, unittest.equals('foo')); 3035 unittest.expect(o.id, unittest.equals('foo'));
3036 unittest.expect(o.kind, unittest.equals('foo')); 3036 unittest.expect(o.kind, unittest.equals('foo'));
3037 checkLiveChatModeratorSnippet(o.snippet); 3037 checkLiveChatModeratorSnippet(o.snippet);
3038 } 3038 }
3039 buildCounterLiveChatModerator--; 3039 buildCounterLiveChatModerator--;
3040 } 3040 }
3041 3041
3042 buildUnnamed537() { 3042 buildUnnamed539() {
3043 var o = new core.List<api.LiveChatModerator>(); 3043 var o = new core.List<api.LiveChatModerator>();
3044 o.add(buildLiveChatModerator()); 3044 o.add(buildLiveChatModerator());
3045 o.add(buildLiveChatModerator()); 3045 o.add(buildLiveChatModerator());
3046 return o; 3046 return o;
3047 } 3047 }
3048 3048
3049 checkUnnamed537(core.List<api.LiveChatModerator> o) { 3049 checkUnnamed539(core.List<api.LiveChatModerator> o) {
3050 unittest.expect(o, unittest.hasLength(2)); 3050 unittest.expect(o, unittest.hasLength(2));
3051 checkLiveChatModerator(o[0]); 3051 checkLiveChatModerator(o[0]);
3052 checkLiveChatModerator(o[1]); 3052 checkLiveChatModerator(o[1]);
3053 } 3053 }
3054 3054
3055 core.int buildCounterLiveChatModeratorListResponse = 0; 3055 core.int buildCounterLiveChatModeratorListResponse = 0;
3056 buildLiveChatModeratorListResponse() { 3056 buildLiveChatModeratorListResponse() {
3057 var o = new api.LiveChatModeratorListResponse(); 3057 var o = new api.LiveChatModeratorListResponse();
3058 buildCounterLiveChatModeratorListResponse++; 3058 buildCounterLiveChatModeratorListResponse++;
3059 if (buildCounterLiveChatModeratorListResponse < 3) { 3059 if (buildCounterLiveChatModeratorListResponse < 3) {
3060 o.etag = "foo"; 3060 o.etag = "foo";
3061 o.eventId = "foo"; 3061 o.eventId = "foo";
3062 o.items = buildUnnamed537(); 3062 o.items = buildUnnamed539();
3063 o.kind = "foo"; 3063 o.kind = "foo";
3064 o.nextPageToken = "foo"; 3064 o.nextPageToken = "foo";
3065 o.pageInfo = buildPageInfo(); 3065 o.pageInfo = buildPageInfo();
3066 o.prevPageToken = "foo"; 3066 o.prevPageToken = "foo";
3067 o.tokenPagination = buildTokenPagination(); 3067 o.tokenPagination = buildTokenPagination();
3068 o.visitorId = "foo"; 3068 o.visitorId = "foo";
3069 } 3069 }
3070 buildCounterLiveChatModeratorListResponse--; 3070 buildCounterLiveChatModeratorListResponse--;
3071 return o; 3071 return o;
3072 } 3072 }
3073 3073
3074 checkLiveChatModeratorListResponse(api.LiveChatModeratorListResponse o) { 3074 checkLiveChatModeratorListResponse(api.LiveChatModeratorListResponse o) {
3075 buildCounterLiveChatModeratorListResponse++; 3075 buildCounterLiveChatModeratorListResponse++;
3076 if (buildCounterLiveChatModeratorListResponse < 3) { 3076 if (buildCounterLiveChatModeratorListResponse < 3) {
3077 unittest.expect(o.etag, unittest.equals('foo')); 3077 unittest.expect(o.etag, unittest.equals('foo'));
3078 unittest.expect(o.eventId, unittest.equals('foo')); 3078 unittest.expect(o.eventId, unittest.equals('foo'));
3079 checkUnnamed537(o.items); 3079 checkUnnamed539(o.items);
3080 unittest.expect(o.kind, unittest.equals('foo')); 3080 unittest.expect(o.kind, unittest.equals('foo'));
3081 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3081 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3082 checkPageInfo(o.pageInfo); 3082 checkPageInfo(o.pageInfo);
3083 unittest.expect(o.prevPageToken, unittest.equals('foo')); 3083 unittest.expect(o.prevPageToken, unittest.equals('foo'));
3084 checkTokenPagination(o.tokenPagination); 3084 checkTokenPagination(o.tokenPagination);
3085 unittest.expect(o.visitorId, unittest.equals('foo')); 3085 unittest.expect(o.visitorId, unittest.equals('foo'));
3086 } 3086 }
3087 buildCounterLiveChatModeratorListResponse--; 3087 buildCounterLiveChatModeratorListResponse--;
3088 } 3088 }
3089 3089
(...skipping 30 matching lines...) Expand all
3120 } 3120 }
3121 3121
3122 checkLiveChatPollClosedDetails(api.LiveChatPollClosedDetails o) { 3122 checkLiveChatPollClosedDetails(api.LiveChatPollClosedDetails o) {
3123 buildCounterLiveChatPollClosedDetails++; 3123 buildCounterLiveChatPollClosedDetails++;
3124 if (buildCounterLiveChatPollClosedDetails < 3) { 3124 if (buildCounterLiveChatPollClosedDetails < 3) {
3125 unittest.expect(o.pollId, unittest.equals('foo')); 3125 unittest.expect(o.pollId, unittest.equals('foo'));
3126 } 3126 }
3127 buildCounterLiveChatPollClosedDetails--; 3127 buildCounterLiveChatPollClosedDetails--;
3128 } 3128 }
3129 3129
3130 buildUnnamed538() { 3130 buildUnnamed540() {
3131 var o = new core.List<api.LiveChatPollItem>(); 3131 var o = new core.List<api.LiveChatPollItem>();
3132 o.add(buildLiveChatPollItem()); 3132 o.add(buildLiveChatPollItem());
3133 o.add(buildLiveChatPollItem()); 3133 o.add(buildLiveChatPollItem());
3134 return o; 3134 return o;
3135 } 3135 }
3136 3136
3137 checkUnnamed538(core.List<api.LiveChatPollItem> o) { 3137 checkUnnamed540(core.List<api.LiveChatPollItem> o) {
3138 unittest.expect(o, unittest.hasLength(2)); 3138 unittest.expect(o, unittest.hasLength(2));
3139 checkLiveChatPollItem(o[0]); 3139 checkLiveChatPollItem(o[0]);
3140 checkLiveChatPollItem(o[1]); 3140 checkLiveChatPollItem(o[1]);
3141 } 3141 }
3142 3142
3143 core.int buildCounterLiveChatPollEditedDetails = 0; 3143 core.int buildCounterLiveChatPollEditedDetails = 0;
3144 buildLiveChatPollEditedDetails() { 3144 buildLiveChatPollEditedDetails() {
3145 var o = new api.LiveChatPollEditedDetails(); 3145 var o = new api.LiveChatPollEditedDetails();
3146 buildCounterLiveChatPollEditedDetails++; 3146 buildCounterLiveChatPollEditedDetails++;
3147 if (buildCounterLiveChatPollEditedDetails < 3) { 3147 if (buildCounterLiveChatPollEditedDetails < 3) {
3148 o.id = "foo"; 3148 o.id = "foo";
3149 o.items = buildUnnamed538(); 3149 o.items = buildUnnamed540();
3150 o.prompt = "foo"; 3150 o.prompt = "foo";
3151 } 3151 }
3152 buildCounterLiveChatPollEditedDetails--; 3152 buildCounterLiveChatPollEditedDetails--;
3153 return o; 3153 return o;
3154 } 3154 }
3155 3155
3156 checkLiveChatPollEditedDetails(api.LiveChatPollEditedDetails o) { 3156 checkLiveChatPollEditedDetails(api.LiveChatPollEditedDetails o) {
3157 buildCounterLiveChatPollEditedDetails++; 3157 buildCounterLiveChatPollEditedDetails++;
3158 if (buildCounterLiveChatPollEditedDetails < 3) { 3158 if (buildCounterLiveChatPollEditedDetails < 3) {
3159 unittest.expect(o.id, unittest.equals('foo')); 3159 unittest.expect(o.id, unittest.equals('foo'));
3160 checkUnnamed538(o.items); 3160 checkUnnamed540(o.items);
3161 unittest.expect(o.prompt, unittest.equals('foo')); 3161 unittest.expect(o.prompt, unittest.equals('foo'));
3162 } 3162 }
3163 buildCounterLiveChatPollEditedDetails--; 3163 buildCounterLiveChatPollEditedDetails--;
3164 } 3164 }
3165 3165
3166 core.int buildCounterLiveChatPollItem = 0; 3166 core.int buildCounterLiveChatPollItem = 0;
3167 buildLiveChatPollItem() { 3167 buildLiveChatPollItem() {
3168 var o = new api.LiveChatPollItem(); 3168 var o = new api.LiveChatPollItem();
3169 buildCounterLiveChatPollItem++; 3169 buildCounterLiveChatPollItem++;
3170 if (buildCounterLiveChatPollItem < 3) { 3170 if (buildCounterLiveChatPollItem < 3) {
3171 o.description = "foo"; 3171 o.description = "foo";
3172 o.itemId = "foo"; 3172 o.itemId = "foo";
3173 } 3173 }
3174 buildCounterLiveChatPollItem--; 3174 buildCounterLiveChatPollItem--;
3175 return o; 3175 return o;
3176 } 3176 }
3177 3177
3178 checkLiveChatPollItem(api.LiveChatPollItem o) { 3178 checkLiveChatPollItem(api.LiveChatPollItem o) {
3179 buildCounterLiveChatPollItem++; 3179 buildCounterLiveChatPollItem++;
3180 if (buildCounterLiveChatPollItem < 3) { 3180 if (buildCounterLiveChatPollItem < 3) {
3181 unittest.expect(o.description, unittest.equals('foo')); 3181 unittest.expect(o.description, unittest.equals('foo'));
3182 unittest.expect(o.itemId, unittest.equals('foo')); 3182 unittest.expect(o.itemId, unittest.equals('foo'));
3183 } 3183 }
3184 buildCounterLiveChatPollItem--; 3184 buildCounterLiveChatPollItem--;
3185 } 3185 }
3186 3186
3187 buildUnnamed539() { 3187 buildUnnamed541() {
3188 var o = new core.List<api.LiveChatPollItem>(); 3188 var o = new core.List<api.LiveChatPollItem>();
3189 o.add(buildLiveChatPollItem()); 3189 o.add(buildLiveChatPollItem());
3190 o.add(buildLiveChatPollItem()); 3190 o.add(buildLiveChatPollItem());
3191 return o; 3191 return o;
3192 } 3192 }
3193 3193
3194 checkUnnamed539(core.List<api.LiveChatPollItem> o) { 3194 checkUnnamed541(core.List<api.LiveChatPollItem> o) {
3195 unittest.expect(o, unittest.hasLength(2)); 3195 unittest.expect(o, unittest.hasLength(2));
3196 checkLiveChatPollItem(o[0]); 3196 checkLiveChatPollItem(o[0]);
3197 checkLiveChatPollItem(o[1]); 3197 checkLiveChatPollItem(o[1]);
3198 } 3198 }
3199 3199
3200 core.int buildCounterLiveChatPollOpenedDetails = 0; 3200 core.int buildCounterLiveChatPollOpenedDetails = 0;
3201 buildLiveChatPollOpenedDetails() { 3201 buildLiveChatPollOpenedDetails() {
3202 var o = new api.LiveChatPollOpenedDetails(); 3202 var o = new api.LiveChatPollOpenedDetails();
3203 buildCounterLiveChatPollOpenedDetails++; 3203 buildCounterLiveChatPollOpenedDetails++;
3204 if (buildCounterLiveChatPollOpenedDetails < 3) { 3204 if (buildCounterLiveChatPollOpenedDetails < 3) {
3205 o.id = "foo"; 3205 o.id = "foo";
3206 o.items = buildUnnamed539(); 3206 o.items = buildUnnamed541();
3207 o.prompt = "foo"; 3207 o.prompt = "foo";
3208 } 3208 }
3209 buildCounterLiveChatPollOpenedDetails--; 3209 buildCounterLiveChatPollOpenedDetails--;
3210 return o; 3210 return o;
3211 } 3211 }
3212 3212
3213 checkLiveChatPollOpenedDetails(api.LiveChatPollOpenedDetails o) { 3213 checkLiveChatPollOpenedDetails(api.LiveChatPollOpenedDetails o) {
3214 buildCounterLiveChatPollOpenedDetails++; 3214 buildCounterLiveChatPollOpenedDetails++;
3215 if (buildCounterLiveChatPollOpenedDetails < 3) { 3215 if (buildCounterLiveChatPollOpenedDetails < 3) {
3216 unittest.expect(o.id, unittest.equals('foo')); 3216 unittest.expect(o.id, unittest.equals('foo'));
3217 checkUnnamed539(o.items); 3217 checkUnnamed541(o.items);
3218 unittest.expect(o.prompt, unittest.equals('foo')); 3218 unittest.expect(o.prompt, unittest.equals('foo'));
3219 } 3219 }
3220 buildCounterLiveChatPollOpenedDetails--; 3220 buildCounterLiveChatPollOpenedDetails--;
3221 } 3221 }
3222 3222
3223 core.int buildCounterLiveChatPollVotedDetails = 0; 3223 core.int buildCounterLiveChatPollVotedDetails = 0;
3224 buildLiveChatPollVotedDetails() { 3224 buildLiveChatPollVotedDetails() {
3225 var o = new api.LiveChatPollVotedDetails(); 3225 var o = new api.LiveChatPollVotedDetails();
3226 buildCounterLiveChatPollVotedDetails++; 3226 buildCounterLiveChatPollVotedDetails++;
3227 if (buildCounterLiveChatPollVotedDetails < 3) { 3227 if (buildCounterLiveChatPollVotedDetails < 3) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 3380
3381 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) { 3381 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) {
3382 buildCounterLiveStreamContentDetails++; 3382 buildCounterLiveStreamContentDetails++;
3383 if (buildCounterLiveStreamContentDetails < 3) { 3383 if (buildCounterLiveStreamContentDetails < 3) {
3384 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo')); 3384 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo'));
3385 unittest.expect(o.isReusable, unittest.isTrue); 3385 unittest.expect(o.isReusable, unittest.isTrue);
3386 } 3386 }
3387 buildCounterLiveStreamContentDetails--; 3387 buildCounterLiveStreamContentDetails--;
3388 } 3388 }
3389 3389
3390 buildUnnamed540() { 3390 buildUnnamed542() {
3391 var o = new core.List<api.LiveStreamConfigurationIssue>(); 3391 var o = new core.List<api.LiveStreamConfigurationIssue>();
3392 o.add(buildLiveStreamConfigurationIssue()); 3392 o.add(buildLiveStreamConfigurationIssue());
3393 o.add(buildLiveStreamConfigurationIssue()); 3393 o.add(buildLiveStreamConfigurationIssue());
3394 return o; 3394 return o;
3395 } 3395 }
3396 3396
3397 checkUnnamed540(core.List<api.LiveStreamConfigurationIssue> o) { 3397 checkUnnamed542(core.List<api.LiveStreamConfigurationIssue> o) {
3398 unittest.expect(o, unittest.hasLength(2)); 3398 unittest.expect(o, unittest.hasLength(2));
3399 checkLiveStreamConfigurationIssue(o[0]); 3399 checkLiveStreamConfigurationIssue(o[0]);
3400 checkLiveStreamConfigurationIssue(o[1]); 3400 checkLiveStreamConfigurationIssue(o[1]);
3401 } 3401 }
3402 3402
3403 core.int buildCounterLiveStreamHealthStatus = 0; 3403 core.int buildCounterLiveStreamHealthStatus = 0;
3404 buildLiveStreamHealthStatus() { 3404 buildLiveStreamHealthStatus() {
3405 var o = new api.LiveStreamHealthStatus(); 3405 var o = new api.LiveStreamHealthStatus();
3406 buildCounterLiveStreamHealthStatus++; 3406 buildCounterLiveStreamHealthStatus++;
3407 if (buildCounterLiveStreamHealthStatus < 3) { 3407 if (buildCounterLiveStreamHealthStatus < 3) {
3408 o.configurationIssues = buildUnnamed540(); 3408 o.configurationIssues = buildUnnamed542();
3409 o.lastUpdateTimeSeconds = "foo"; 3409 o.lastUpdateTimeSeconds = "foo";
3410 o.status = "foo"; 3410 o.status = "foo";
3411 } 3411 }
3412 buildCounterLiveStreamHealthStatus--; 3412 buildCounterLiveStreamHealthStatus--;
3413 return o; 3413 return o;
3414 } 3414 }
3415 3415
3416 checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { 3416 checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) {
3417 buildCounterLiveStreamHealthStatus++; 3417 buildCounterLiveStreamHealthStatus++;
3418 if (buildCounterLiveStreamHealthStatus < 3) { 3418 if (buildCounterLiveStreamHealthStatus < 3) {
3419 checkUnnamed540(o.configurationIssues); 3419 checkUnnamed542(o.configurationIssues);
3420 unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); 3420 unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo'));
3421 unittest.expect(o.status, unittest.equals('foo')); 3421 unittest.expect(o.status, unittest.equals('foo'));
3422 } 3422 }
3423 buildCounterLiveStreamHealthStatus--; 3423 buildCounterLiveStreamHealthStatus--;
3424 } 3424 }
3425 3425
3426 buildUnnamed541() { 3426 buildUnnamed543() {
3427 var o = new core.List<api.LiveStream>(); 3427 var o = new core.List<api.LiveStream>();
3428 o.add(buildLiveStream()); 3428 o.add(buildLiveStream());
3429 o.add(buildLiveStream()); 3429 o.add(buildLiveStream());
3430 return o; 3430 return o;
3431 } 3431 }
3432 3432
3433 checkUnnamed541(core.List<api.LiveStream> o) { 3433 checkUnnamed543(core.List<api.LiveStream> o) {
3434 unittest.expect(o, unittest.hasLength(2)); 3434 unittest.expect(o, unittest.hasLength(2));
3435 checkLiveStream(o[0]); 3435 checkLiveStream(o[0]);
3436 checkLiveStream(o[1]); 3436 checkLiveStream(o[1]);
3437 } 3437 }
3438 3438
3439 core.int buildCounterLiveStreamListResponse = 0; 3439 core.int buildCounterLiveStreamListResponse = 0;
3440 buildLiveStreamListResponse() { 3440 buildLiveStreamListResponse() {
3441 var o = new api.LiveStreamListResponse(); 3441 var o = new api.LiveStreamListResponse();
3442 buildCounterLiveStreamListResponse++; 3442 buildCounterLiveStreamListResponse++;
3443 if (buildCounterLiveStreamListResponse < 3) { 3443 if (buildCounterLiveStreamListResponse < 3) {
3444 o.etag = "foo"; 3444 o.etag = "foo";
3445 o.eventId = "foo"; 3445 o.eventId = "foo";
3446 o.items = buildUnnamed541(); 3446 o.items = buildUnnamed543();
3447 o.kind = "foo"; 3447 o.kind = "foo";
3448 o.nextPageToken = "foo"; 3448 o.nextPageToken = "foo";
3449 o.pageInfo = buildPageInfo(); 3449 o.pageInfo = buildPageInfo();
3450 o.prevPageToken = "foo"; 3450 o.prevPageToken = "foo";
3451 o.tokenPagination = buildTokenPagination(); 3451 o.tokenPagination = buildTokenPagination();
3452 o.visitorId = "foo"; 3452 o.visitorId = "foo";
3453 } 3453 }
3454 buildCounterLiveStreamListResponse--; 3454 buildCounterLiveStreamListResponse--;
3455 return o; 3455 return o;
3456 } 3456 }
3457 3457
3458 checkLiveStreamListResponse(api.LiveStreamListResponse o) { 3458 checkLiveStreamListResponse(api.LiveStreamListResponse o) {
3459 buildCounterLiveStreamListResponse++; 3459 buildCounterLiveStreamListResponse++;
3460 if (buildCounterLiveStreamListResponse < 3) { 3460 if (buildCounterLiveStreamListResponse < 3) {
3461 unittest.expect(o.etag, unittest.equals('foo')); 3461 unittest.expect(o.etag, unittest.equals('foo'));
3462 unittest.expect(o.eventId, unittest.equals('foo')); 3462 unittest.expect(o.eventId, unittest.equals('foo'));
3463 checkUnnamed541(o.items); 3463 checkUnnamed543(o.items);
3464 unittest.expect(o.kind, unittest.equals('foo')); 3464 unittest.expect(o.kind, unittest.equals('foo'));
3465 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3465 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3466 checkPageInfo(o.pageInfo); 3466 checkPageInfo(o.pageInfo);
3467 unittest.expect(o.prevPageToken, unittest.equals('foo')); 3467 unittest.expect(o.prevPageToken, unittest.equals('foo'));
3468 checkTokenPagination(o.tokenPagination); 3468 checkTokenPagination(o.tokenPagination);
3469 unittest.expect(o.visitorId, unittest.equals('foo')); 3469 unittest.expect(o.visitorId, unittest.equals('foo'));
3470 } 3470 }
3471 buildCounterLiveStreamListResponse--; 3471 buildCounterLiveStreamListResponse--;
3472 } 3472 }
3473 3473
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 3512
3513 checkLiveStreamStatus(api.LiveStreamStatus o) { 3513 checkLiveStreamStatus(api.LiveStreamStatus o) {
3514 buildCounterLiveStreamStatus++; 3514 buildCounterLiveStreamStatus++;
3515 if (buildCounterLiveStreamStatus < 3) { 3515 if (buildCounterLiveStreamStatus < 3) {
3516 checkLiveStreamHealthStatus(o.healthStatus); 3516 checkLiveStreamHealthStatus(o.healthStatus);
3517 unittest.expect(o.streamStatus, unittest.equals('foo')); 3517 unittest.expect(o.streamStatus, unittest.equals('foo'));
3518 } 3518 }
3519 buildCounterLiveStreamStatus--; 3519 buildCounterLiveStreamStatus--;
3520 } 3520 }
3521 3521
3522 buildUnnamed542() { 3522 buildUnnamed544() {
3523 var o = new core.List<api.LocalizedString>(); 3523 var o = new core.List<api.LocalizedString>();
3524 o.add(buildLocalizedString()); 3524 o.add(buildLocalizedString());
3525 o.add(buildLocalizedString()); 3525 o.add(buildLocalizedString());
3526 return o; 3526 return o;
3527 } 3527 }
3528 3528
3529 checkUnnamed542(core.List<api.LocalizedString> o) { 3529 checkUnnamed544(core.List<api.LocalizedString> o) {
3530 unittest.expect(o, unittest.hasLength(2)); 3530 unittest.expect(o, unittest.hasLength(2));
3531 checkLocalizedString(o[0]); 3531 checkLocalizedString(o[0]);
3532 checkLocalizedString(o[1]); 3532 checkLocalizedString(o[1]);
3533 } 3533 }
3534 3534
3535 core.int buildCounterLocalizedProperty = 0; 3535 core.int buildCounterLocalizedProperty = 0;
3536 buildLocalizedProperty() { 3536 buildLocalizedProperty() {
3537 var o = new api.LocalizedProperty(); 3537 var o = new api.LocalizedProperty();
3538 buildCounterLocalizedProperty++; 3538 buildCounterLocalizedProperty++;
3539 if (buildCounterLocalizedProperty < 3) { 3539 if (buildCounterLocalizedProperty < 3) {
3540 o.default_ = "foo"; 3540 o.default_ = "foo";
3541 o.defaultLanguage = buildLanguageTag(); 3541 o.defaultLanguage = buildLanguageTag();
3542 o.localized = buildUnnamed542(); 3542 o.localized = buildUnnamed544();
3543 } 3543 }
3544 buildCounterLocalizedProperty--; 3544 buildCounterLocalizedProperty--;
3545 return o; 3545 return o;
3546 } 3546 }
3547 3547
3548 checkLocalizedProperty(api.LocalizedProperty o) { 3548 checkLocalizedProperty(api.LocalizedProperty o) {
3549 buildCounterLocalizedProperty++; 3549 buildCounterLocalizedProperty++;
3550 if (buildCounterLocalizedProperty < 3) { 3550 if (buildCounterLocalizedProperty < 3) {
3551 unittest.expect(o.default_, unittest.equals('foo')); 3551 unittest.expect(o.default_, unittest.equals('foo'));
3552 checkLanguageTag(o.defaultLanguage); 3552 checkLanguageTag(o.defaultLanguage);
3553 checkUnnamed542(o.localized); 3553 checkUnnamed544(o.localized);
3554 } 3554 }
3555 buildCounterLocalizedProperty--; 3555 buildCounterLocalizedProperty--;
3556 } 3556 }
3557 3557
3558 core.int buildCounterLocalizedString = 0; 3558 core.int buildCounterLocalizedString = 0;
3559 buildLocalizedString() { 3559 buildLocalizedString() {
3560 var o = new api.LocalizedString(); 3560 var o = new api.LocalizedString();
3561 buildCounterLocalizedString++; 3561 buildCounterLocalizedString++;
3562 if (buildCounterLocalizedString < 3) { 3562 if (buildCounterLocalizedString < 3) {
3563 o.language = "foo"; 3563 o.language = "foo";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
3613 3613
3614 checkPageInfo(api.PageInfo o) { 3614 checkPageInfo(api.PageInfo o) {
3615 buildCounterPageInfo++; 3615 buildCounterPageInfo++;
3616 if (buildCounterPageInfo < 3) { 3616 if (buildCounterPageInfo < 3) {
3617 unittest.expect(o.resultsPerPage, unittest.equals(42)); 3617 unittest.expect(o.resultsPerPage, unittest.equals(42));
3618 unittest.expect(o.totalResults, unittest.equals(42)); 3618 unittest.expect(o.totalResults, unittest.equals(42));
3619 } 3619 }
3620 buildCounterPageInfo--; 3620 buildCounterPageInfo--;
3621 } 3621 }
3622 3622
3623 buildUnnamed543() { 3623 buildUnnamed545() {
3624 var o = new core.Map<core.String, api.PlaylistLocalization>(); 3624 var o = new core.Map<core.String, api.PlaylistLocalization>();
3625 o["x"] = buildPlaylistLocalization(); 3625 o["x"] = buildPlaylistLocalization();
3626 o["y"] = buildPlaylistLocalization(); 3626 o["y"] = buildPlaylistLocalization();
3627 return o; 3627 return o;
3628 } 3628 }
3629 3629
3630 checkUnnamed543(core.Map<core.String, api.PlaylistLocalization> o) { 3630 checkUnnamed545(core.Map<core.String, api.PlaylistLocalization> o) {
3631 unittest.expect(o, unittest.hasLength(2)); 3631 unittest.expect(o, unittest.hasLength(2));
3632 checkPlaylistLocalization(o["x"]); 3632 checkPlaylistLocalization(o["x"]);
3633 checkPlaylistLocalization(o["y"]); 3633 checkPlaylistLocalization(o["y"]);
3634 } 3634 }
3635 3635
3636 core.int buildCounterPlaylist = 0; 3636 core.int buildCounterPlaylist = 0;
3637 buildPlaylist() { 3637 buildPlaylist() {
3638 var o = new api.Playlist(); 3638 var o = new api.Playlist();
3639 buildCounterPlaylist++; 3639 buildCounterPlaylist++;
3640 if (buildCounterPlaylist < 3) { 3640 if (buildCounterPlaylist < 3) {
3641 o.contentDetails = buildPlaylistContentDetails(); 3641 o.contentDetails = buildPlaylistContentDetails();
3642 o.etag = "foo"; 3642 o.etag = "foo";
3643 o.id = "foo"; 3643 o.id = "foo";
3644 o.kind = "foo"; 3644 o.kind = "foo";
3645 o.localizations = buildUnnamed543(); 3645 o.localizations = buildUnnamed545();
3646 o.player = buildPlaylistPlayer(); 3646 o.player = buildPlaylistPlayer();
3647 o.snippet = buildPlaylistSnippet(); 3647 o.snippet = buildPlaylistSnippet();
3648 o.status = buildPlaylistStatus(); 3648 o.status = buildPlaylistStatus();
3649 } 3649 }
3650 buildCounterPlaylist--; 3650 buildCounterPlaylist--;
3651 return o; 3651 return o;
3652 } 3652 }
3653 3653
3654 checkPlaylist(api.Playlist o) { 3654 checkPlaylist(api.Playlist o) {
3655 buildCounterPlaylist++; 3655 buildCounterPlaylist++;
3656 if (buildCounterPlaylist < 3) { 3656 if (buildCounterPlaylist < 3) {
3657 checkPlaylistContentDetails(o.contentDetails); 3657 checkPlaylistContentDetails(o.contentDetails);
3658 unittest.expect(o.etag, unittest.equals('foo')); 3658 unittest.expect(o.etag, unittest.equals('foo'));
3659 unittest.expect(o.id, unittest.equals('foo')); 3659 unittest.expect(o.id, unittest.equals('foo'));
3660 unittest.expect(o.kind, unittest.equals('foo')); 3660 unittest.expect(o.kind, unittest.equals('foo'));
3661 checkUnnamed543(o.localizations); 3661 checkUnnamed545(o.localizations);
3662 checkPlaylistPlayer(o.player); 3662 checkPlaylistPlayer(o.player);
3663 checkPlaylistSnippet(o.snippet); 3663 checkPlaylistSnippet(o.snippet);
3664 checkPlaylistStatus(o.status); 3664 checkPlaylistStatus(o.status);
3665 } 3665 }
3666 buildCounterPlaylist--; 3666 buildCounterPlaylist--;
3667 } 3667 }
3668 3668
3669 core.int buildCounterPlaylistContentDetails = 0; 3669 core.int buildCounterPlaylistContentDetails = 0;
3670 buildPlaylistContentDetails() { 3670 buildPlaylistContentDetails() {
3671 var o = new api.PlaylistContentDetails(); 3671 var o = new api.PlaylistContentDetails();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 if (buildCounterPlaylistItemContentDetails < 3) { 3734 if (buildCounterPlaylistItemContentDetails < 3) {
3735 unittest.expect(o.endAt, unittest.equals('foo')); 3735 unittest.expect(o.endAt, unittest.equals('foo'));
3736 unittest.expect(o.note, unittest.equals('foo')); 3736 unittest.expect(o.note, unittest.equals('foo'));
3737 unittest.expect(o.startAt, unittest.equals('foo')); 3737 unittest.expect(o.startAt, unittest.equals('foo'));
3738 unittest.expect(o.videoId, unittest.equals('foo')); 3738 unittest.expect(o.videoId, unittest.equals('foo'));
3739 unittest.expect(o.videoPublishedAt, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 3739 unittest.expect(o.videoPublishedAt, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
3740 } 3740 }
3741 buildCounterPlaylistItemContentDetails--; 3741 buildCounterPlaylistItemContentDetails--;
3742 } 3742 }
3743 3743
3744 buildUnnamed544() { 3744 buildUnnamed546() {
3745 var o = new core.List<api.PlaylistItem>(); 3745 var o = new core.List<api.PlaylistItem>();
3746 o.add(buildPlaylistItem()); 3746 o.add(buildPlaylistItem());
3747 o.add(buildPlaylistItem()); 3747 o.add(buildPlaylistItem());
3748 return o; 3748 return o;
3749 } 3749 }
3750 3750
3751 checkUnnamed544(core.List<api.PlaylistItem> o) { 3751 checkUnnamed546(core.List<api.PlaylistItem> o) {
3752 unittest.expect(o, unittest.hasLength(2)); 3752 unittest.expect(o, unittest.hasLength(2));
3753 checkPlaylistItem(o[0]); 3753 checkPlaylistItem(o[0]);
3754 checkPlaylistItem(o[1]); 3754 checkPlaylistItem(o[1]);
3755 } 3755 }
3756 3756
3757 core.int buildCounterPlaylistItemListResponse = 0; 3757 core.int buildCounterPlaylistItemListResponse = 0;
3758 buildPlaylistItemListResponse() { 3758 buildPlaylistItemListResponse() {
3759 var o = new api.PlaylistItemListResponse(); 3759 var o = new api.PlaylistItemListResponse();
3760 buildCounterPlaylistItemListResponse++; 3760 buildCounterPlaylistItemListResponse++;
3761 if (buildCounterPlaylistItemListResponse < 3) { 3761 if (buildCounterPlaylistItemListResponse < 3) {
3762 o.etag = "foo"; 3762 o.etag = "foo";
3763 o.eventId = "foo"; 3763 o.eventId = "foo";
3764 o.items = buildUnnamed544(); 3764 o.items = buildUnnamed546();
3765 o.kind = "foo"; 3765 o.kind = "foo";
3766 o.nextPageToken = "foo"; 3766 o.nextPageToken = "foo";
3767 o.pageInfo = buildPageInfo(); 3767 o.pageInfo = buildPageInfo();
3768 o.prevPageToken = "foo"; 3768 o.prevPageToken = "foo";
3769 o.tokenPagination = buildTokenPagination(); 3769 o.tokenPagination = buildTokenPagination();
3770 o.visitorId = "foo"; 3770 o.visitorId = "foo";
3771 } 3771 }
3772 buildCounterPlaylistItemListResponse--; 3772 buildCounterPlaylistItemListResponse--;
3773 return o; 3773 return o;
3774 } 3774 }
3775 3775
3776 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) { 3776 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) {
3777 buildCounterPlaylistItemListResponse++; 3777 buildCounterPlaylistItemListResponse++;
3778 if (buildCounterPlaylistItemListResponse < 3) { 3778 if (buildCounterPlaylistItemListResponse < 3) {
3779 unittest.expect(o.etag, unittest.equals('foo')); 3779 unittest.expect(o.etag, unittest.equals('foo'));
3780 unittest.expect(o.eventId, unittest.equals('foo')); 3780 unittest.expect(o.eventId, unittest.equals('foo'));
3781 checkUnnamed544(o.items); 3781 checkUnnamed546(o.items);
3782 unittest.expect(o.kind, unittest.equals('foo')); 3782 unittest.expect(o.kind, unittest.equals('foo'));
3783 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3783 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3784 checkPageInfo(o.pageInfo); 3784 checkPageInfo(o.pageInfo);
3785 unittest.expect(o.prevPageToken, unittest.equals('foo')); 3785 unittest.expect(o.prevPageToken, unittest.equals('foo'));
3786 checkTokenPagination(o.tokenPagination); 3786 checkTokenPagination(o.tokenPagination);
3787 unittest.expect(o.visitorId, unittest.equals('foo')); 3787 unittest.expect(o.visitorId, unittest.equals('foo'));
3788 } 3788 }
3789 buildCounterPlaylistItemListResponse--; 3789 buildCounterPlaylistItemListResponse--;
3790 } 3790 }
3791 3791
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3836 } 3836 }
3837 3837
3838 checkPlaylistItemStatus(api.PlaylistItemStatus o) { 3838 checkPlaylistItemStatus(api.PlaylistItemStatus o) {
3839 buildCounterPlaylistItemStatus++; 3839 buildCounterPlaylistItemStatus++;
3840 if (buildCounterPlaylistItemStatus < 3) { 3840 if (buildCounterPlaylistItemStatus < 3) {
3841 unittest.expect(o.privacyStatus, unittest.equals('foo')); 3841 unittest.expect(o.privacyStatus, unittest.equals('foo'));
3842 } 3842 }
3843 buildCounterPlaylistItemStatus--; 3843 buildCounterPlaylistItemStatus--;
3844 } 3844 }
3845 3845
3846 buildUnnamed545() { 3846 buildUnnamed547() {
3847 var o = new core.List<api.Playlist>(); 3847 var o = new core.List<api.Playlist>();
3848 o.add(buildPlaylist()); 3848 o.add(buildPlaylist());
3849 o.add(buildPlaylist()); 3849 o.add(buildPlaylist());
3850 return o; 3850 return o;
3851 } 3851 }
3852 3852
3853 checkUnnamed545(core.List<api.Playlist> o) { 3853 checkUnnamed547(core.List<api.Playlist> o) {
3854 unittest.expect(o, unittest.hasLength(2)); 3854 unittest.expect(o, unittest.hasLength(2));
3855 checkPlaylist(o[0]); 3855 checkPlaylist(o[0]);
3856 checkPlaylist(o[1]); 3856 checkPlaylist(o[1]);
3857 } 3857 }
3858 3858
3859 core.int buildCounterPlaylistListResponse = 0; 3859 core.int buildCounterPlaylistListResponse = 0;
3860 buildPlaylistListResponse() { 3860 buildPlaylistListResponse() {
3861 var o = new api.PlaylistListResponse(); 3861 var o = new api.PlaylistListResponse();
3862 buildCounterPlaylistListResponse++; 3862 buildCounterPlaylistListResponse++;
3863 if (buildCounterPlaylistListResponse < 3) { 3863 if (buildCounterPlaylistListResponse < 3) {
3864 o.etag = "foo"; 3864 o.etag = "foo";
3865 o.eventId = "foo"; 3865 o.eventId = "foo";
3866 o.items = buildUnnamed545(); 3866 o.items = buildUnnamed547();
3867 o.kind = "foo"; 3867 o.kind = "foo";
3868 o.nextPageToken = "foo"; 3868 o.nextPageToken = "foo";
3869 o.pageInfo = buildPageInfo(); 3869 o.pageInfo = buildPageInfo();
3870 o.prevPageToken = "foo"; 3870 o.prevPageToken = "foo";
3871 o.tokenPagination = buildTokenPagination(); 3871 o.tokenPagination = buildTokenPagination();
3872 o.visitorId = "foo"; 3872 o.visitorId = "foo";
3873 } 3873 }
3874 buildCounterPlaylistListResponse--; 3874 buildCounterPlaylistListResponse--;
3875 return o; 3875 return o;
3876 } 3876 }
3877 3877
3878 checkPlaylistListResponse(api.PlaylistListResponse o) { 3878 checkPlaylistListResponse(api.PlaylistListResponse o) {
3879 buildCounterPlaylistListResponse++; 3879 buildCounterPlaylistListResponse++;
3880 if (buildCounterPlaylistListResponse < 3) { 3880 if (buildCounterPlaylistListResponse < 3) {
3881 unittest.expect(o.etag, unittest.equals('foo')); 3881 unittest.expect(o.etag, unittest.equals('foo'));
3882 unittest.expect(o.eventId, unittest.equals('foo')); 3882 unittest.expect(o.eventId, unittest.equals('foo'));
3883 checkUnnamed545(o.items); 3883 checkUnnamed547(o.items);
3884 unittest.expect(o.kind, unittest.equals('foo')); 3884 unittest.expect(o.kind, unittest.equals('foo'));
3885 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3885 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3886 checkPageInfo(o.pageInfo); 3886 checkPageInfo(o.pageInfo);
3887 unittest.expect(o.prevPageToken, unittest.equals('foo')); 3887 unittest.expect(o.prevPageToken, unittest.equals('foo'));
3888 checkTokenPagination(o.tokenPagination); 3888 checkTokenPagination(o.tokenPagination);
3889 unittest.expect(o.visitorId, unittest.equals('foo')); 3889 unittest.expect(o.visitorId, unittest.equals('foo'));
3890 } 3890 }
3891 buildCounterPlaylistListResponse--; 3891 buildCounterPlaylistListResponse--;
3892 } 3892 }
3893 3893
(...skipping 30 matching lines...) Expand all
3924 } 3924 }
3925 3925
3926 checkPlaylistPlayer(api.PlaylistPlayer o) { 3926 checkPlaylistPlayer(api.PlaylistPlayer o) {
3927 buildCounterPlaylistPlayer++; 3927 buildCounterPlaylistPlayer++;
3928 if (buildCounterPlaylistPlayer < 3) { 3928 if (buildCounterPlaylistPlayer < 3) {
3929 unittest.expect(o.embedHtml, unittest.equals('foo')); 3929 unittest.expect(o.embedHtml, unittest.equals('foo'));
3930 } 3930 }
3931 buildCounterPlaylistPlayer--; 3931 buildCounterPlaylistPlayer--;
3932 } 3932 }
3933 3933
3934 buildUnnamed546() { 3934 buildUnnamed548() {
3935 var o = new core.List<core.String>(); 3935 var o = new core.List<core.String>();
3936 o.add("foo"); 3936 o.add("foo");
3937 o.add("foo"); 3937 o.add("foo");
3938 return o; 3938 return o;
3939 } 3939 }
3940 3940
3941 checkUnnamed546(core.List<core.String> o) { 3941 checkUnnamed548(core.List<core.String> o) {
3942 unittest.expect(o, unittest.hasLength(2)); 3942 unittest.expect(o, unittest.hasLength(2));
3943 unittest.expect(o[0], unittest.equals('foo')); 3943 unittest.expect(o[0], unittest.equals('foo'));
3944 unittest.expect(o[1], unittest.equals('foo')); 3944 unittest.expect(o[1], unittest.equals('foo'));
3945 } 3945 }
3946 3946
3947 core.int buildCounterPlaylistSnippet = 0; 3947 core.int buildCounterPlaylistSnippet = 0;
3948 buildPlaylistSnippet() { 3948 buildPlaylistSnippet() {
3949 var o = new api.PlaylistSnippet(); 3949 var o = new api.PlaylistSnippet();
3950 buildCounterPlaylistSnippet++; 3950 buildCounterPlaylistSnippet++;
3951 if (buildCounterPlaylistSnippet < 3) { 3951 if (buildCounterPlaylistSnippet < 3) {
3952 o.channelId = "foo"; 3952 o.channelId = "foo";
3953 o.channelTitle = "foo"; 3953 o.channelTitle = "foo";
3954 o.defaultLanguage = "foo"; 3954 o.defaultLanguage = "foo";
3955 o.description = "foo"; 3955 o.description = "foo";
3956 o.localized = buildPlaylistLocalization(); 3956 o.localized = buildPlaylistLocalization();
3957 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); 3957 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
3958 o.tags = buildUnnamed546(); 3958 o.tags = buildUnnamed548();
3959 o.thumbnails = buildThumbnailDetails(); 3959 o.thumbnails = buildThumbnailDetails();
3960 o.title = "foo"; 3960 o.title = "foo";
3961 } 3961 }
3962 buildCounterPlaylistSnippet--; 3962 buildCounterPlaylistSnippet--;
3963 return o; 3963 return o;
3964 } 3964 }
3965 3965
3966 checkPlaylistSnippet(api.PlaylistSnippet o) { 3966 checkPlaylistSnippet(api.PlaylistSnippet o) {
3967 buildCounterPlaylistSnippet++; 3967 buildCounterPlaylistSnippet++;
3968 if (buildCounterPlaylistSnippet < 3) { 3968 if (buildCounterPlaylistSnippet < 3) {
3969 unittest.expect(o.channelId, unittest.equals('foo')); 3969 unittest.expect(o.channelId, unittest.equals('foo'));
3970 unittest.expect(o.channelTitle, unittest.equals('foo')); 3970 unittest.expect(o.channelTitle, unittest.equals('foo'));
3971 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 3971 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
3972 unittest.expect(o.description, unittest.equals('foo')); 3972 unittest.expect(o.description, unittest.equals('foo'));
3973 checkPlaylistLocalization(o.localized); 3973 checkPlaylistLocalization(o.localized);
3974 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 3974 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
3975 checkUnnamed546(o.tags); 3975 checkUnnamed548(o.tags);
3976 checkThumbnailDetails(o.thumbnails); 3976 checkThumbnailDetails(o.thumbnails);
3977 unittest.expect(o.title, unittest.equals('foo')); 3977 unittest.expect(o.title, unittest.equals('foo'));
3978 } 3978 }
3979 buildCounterPlaylistSnippet--; 3979 buildCounterPlaylistSnippet--;
3980 } 3980 }
3981 3981
3982 core.int buildCounterPlaylistStatus = 0; 3982 core.int buildCounterPlaylistStatus = 0;
3983 buildPlaylistStatus() { 3983 buildPlaylistStatus() {
3984 var o = new api.PlaylistStatus(); 3984 var o = new api.PlaylistStatus();
3985 buildCounterPlaylistStatus++; 3985 buildCounterPlaylistStatus++;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
4087 buildCounterResourceId++; 4087 buildCounterResourceId++;
4088 if (buildCounterResourceId < 3) { 4088 if (buildCounterResourceId < 3) {
4089 unittest.expect(o.channelId, unittest.equals('foo')); 4089 unittest.expect(o.channelId, unittest.equals('foo'));
4090 unittest.expect(o.kind, unittest.equals('foo')); 4090 unittest.expect(o.kind, unittest.equals('foo'));
4091 unittest.expect(o.playlistId, unittest.equals('foo')); 4091 unittest.expect(o.playlistId, unittest.equals('foo'));
4092 unittest.expect(o.videoId, unittest.equals('foo')); 4092 unittest.expect(o.videoId, unittest.equals('foo'));
4093 } 4093 }
4094 buildCounterResourceId--; 4094 buildCounterResourceId--;
4095 } 4095 }
4096 4096
4097 buildUnnamed547() { 4097 buildUnnamed549() {
4098 var o = new core.List<api.SearchResult>(); 4098 var o = new core.List<api.SearchResult>();
4099 o.add(buildSearchResult()); 4099 o.add(buildSearchResult());
4100 o.add(buildSearchResult()); 4100 o.add(buildSearchResult());
4101 return o; 4101 return o;
4102 } 4102 }
4103 4103
4104 checkUnnamed547(core.List<api.SearchResult> o) { 4104 checkUnnamed549(core.List<api.SearchResult> o) {
4105 unittest.expect(o, unittest.hasLength(2)); 4105 unittest.expect(o, unittest.hasLength(2));
4106 checkSearchResult(o[0]); 4106 checkSearchResult(o[0]);
4107 checkSearchResult(o[1]); 4107 checkSearchResult(o[1]);
4108 } 4108 }
4109 4109
4110 core.int buildCounterSearchListResponse = 0; 4110 core.int buildCounterSearchListResponse = 0;
4111 buildSearchListResponse() { 4111 buildSearchListResponse() {
4112 var o = new api.SearchListResponse(); 4112 var o = new api.SearchListResponse();
4113 buildCounterSearchListResponse++; 4113 buildCounterSearchListResponse++;
4114 if (buildCounterSearchListResponse < 3) { 4114 if (buildCounterSearchListResponse < 3) {
4115 o.etag = "foo"; 4115 o.etag = "foo";
4116 o.eventId = "foo"; 4116 o.eventId = "foo";
4117 o.items = buildUnnamed547(); 4117 o.items = buildUnnamed549();
4118 o.kind = "foo"; 4118 o.kind = "foo";
4119 o.nextPageToken = "foo"; 4119 o.nextPageToken = "foo";
4120 o.pageInfo = buildPageInfo(); 4120 o.pageInfo = buildPageInfo();
4121 o.prevPageToken = "foo"; 4121 o.prevPageToken = "foo";
4122 o.regionCode = "foo"; 4122 o.regionCode = "foo";
4123 o.tokenPagination = buildTokenPagination(); 4123 o.tokenPagination = buildTokenPagination();
4124 o.visitorId = "foo"; 4124 o.visitorId = "foo";
4125 } 4125 }
4126 buildCounterSearchListResponse--; 4126 buildCounterSearchListResponse--;
4127 return o; 4127 return o;
4128 } 4128 }
4129 4129
4130 checkSearchListResponse(api.SearchListResponse o) { 4130 checkSearchListResponse(api.SearchListResponse o) {
4131 buildCounterSearchListResponse++; 4131 buildCounterSearchListResponse++;
4132 if (buildCounterSearchListResponse < 3) { 4132 if (buildCounterSearchListResponse < 3) {
4133 unittest.expect(o.etag, unittest.equals('foo')); 4133 unittest.expect(o.etag, unittest.equals('foo'));
4134 unittest.expect(o.eventId, unittest.equals('foo')); 4134 unittest.expect(o.eventId, unittest.equals('foo'));
4135 checkUnnamed547(o.items); 4135 checkUnnamed549(o.items);
4136 unittest.expect(o.kind, unittest.equals('foo')); 4136 unittest.expect(o.kind, unittest.equals('foo'));
4137 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4137 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4138 checkPageInfo(o.pageInfo); 4138 checkPageInfo(o.pageInfo);
4139 unittest.expect(o.prevPageToken, unittest.equals('foo')); 4139 unittest.expect(o.prevPageToken, unittest.equals('foo'));
4140 unittest.expect(o.regionCode, unittest.equals('foo')); 4140 unittest.expect(o.regionCode, unittest.equals('foo'));
4141 checkTokenPagination(o.tokenPagination); 4141 checkTokenPagination(o.tokenPagination);
4142 unittest.expect(o.visitorId, unittest.equals('foo')); 4142 unittest.expect(o.visitorId, unittest.equals('foo'));
4143 } 4143 }
4144 buildCounterSearchListResponse--; 4144 buildCounterSearchListResponse--;
4145 } 4145 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
4218 buildCounterSponsor++; 4218 buildCounterSponsor++;
4219 if (buildCounterSponsor < 3) { 4219 if (buildCounterSponsor < 3) {
4220 unittest.expect(o.etag, unittest.equals('foo')); 4220 unittest.expect(o.etag, unittest.equals('foo'));
4221 unittest.expect(o.id, unittest.equals('foo')); 4221 unittest.expect(o.id, unittest.equals('foo'));
4222 unittest.expect(o.kind, unittest.equals('foo')); 4222 unittest.expect(o.kind, unittest.equals('foo'));
4223 checkSponsorSnippet(o.snippet); 4223 checkSponsorSnippet(o.snippet);
4224 } 4224 }
4225 buildCounterSponsor--; 4225 buildCounterSponsor--;
4226 } 4226 }
4227 4227
4228 buildUnnamed548() { 4228 buildUnnamed550() {
4229 var o = new core.List<api.Sponsor>(); 4229 var o = new core.List<api.Sponsor>();
4230 o.add(buildSponsor()); 4230 o.add(buildSponsor());
4231 o.add(buildSponsor()); 4231 o.add(buildSponsor());
4232 return o; 4232 return o;
4233 } 4233 }
4234 4234
4235 checkUnnamed548(core.List<api.Sponsor> o) { 4235 checkUnnamed550(core.List<api.Sponsor> o) {
4236 unittest.expect(o, unittest.hasLength(2)); 4236 unittest.expect(o, unittest.hasLength(2));
4237 checkSponsor(o[0]); 4237 checkSponsor(o[0]);
4238 checkSponsor(o[1]); 4238 checkSponsor(o[1]);
4239 } 4239 }
4240 4240
4241 core.int buildCounterSponsorListResponse = 0; 4241 core.int buildCounterSponsorListResponse = 0;
4242 buildSponsorListResponse() { 4242 buildSponsorListResponse() {
4243 var o = new api.SponsorListResponse(); 4243 var o = new api.SponsorListResponse();
4244 buildCounterSponsorListResponse++; 4244 buildCounterSponsorListResponse++;
4245 if (buildCounterSponsorListResponse < 3) { 4245 if (buildCounterSponsorListResponse < 3) {
4246 o.etag = "foo"; 4246 o.etag = "foo";
4247 o.eventId = "foo"; 4247 o.eventId = "foo";
4248 o.items = buildUnnamed548(); 4248 o.items = buildUnnamed550();
4249 o.kind = "foo"; 4249 o.kind = "foo";
4250 o.nextPageToken = "foo"; 4250 o.nextPageToken = "foo";
4251 o.pageInfo = buildPageInfo(); 4251 o.pageInfo = buildPageInfo();
4252 o.tokenPagination = buildTokenPagination(); 4252 o.tokenPagination = buildTokenPagination();
4253 o.visitorId = "foo"; 4253 o.visitorId = "foo";
4254 } 4254 }
4255 buildCounterSponsorListResponse--; 4255 buildCounterSponsorListResponse--;
4256 return o; 4256 return o;
4257 } 4257 }
4258 4258
4259 checkSponsorListResponse(api.SponsorListResponse o) { 4259 checkSponsorListResponse(api.SponsorListResponse o) {
4260 buildCounterSponsorListResponse++; 4260 buildCounterSponsorListResponse++;
4261 if (buildCounterSponsorListResponse < 3) { 4261 if (buildCounterSponsorListResponse < 3) {
4262 unittest.expect(o.etag, unittest.equals('foo')); 4262 unittest.expect(o.etag, unittest.equals('foo'));
4263 unittest.expect(o.eventId, unittest.equals('foo')); 4263 unittest.expect(o.eventId, unittest.equals('foo'));
4264 checkUnnamed548(o.items); 4264 checkUnnamed550(o.items);
4265 unittest.expect(o.kind, unittest.equals('foo')); 4265 unittest.expect(o.kind, unittest.equals('foo'));
4266 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4266 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4267 checkPageInfo(o.pageInfo); 4267 checkPageInfo(o.pageInfo);
4268 checkTokenPagination(o.tokenPagination); 4268 checkTokenPagination(o.tokenPagination);
4269 unittest.expect(o.visitorId, unittest.equals('foo')); 4269 unittest.expect(o.visitorId, unittest.equals('foo'));
4270 } 4270 }
4271 buildCounterSponsorListResponse--; 4271 buildCounterSponsorListResponse--;
4272 } 4272 }
4273 4273
4274 core.int buildCounterSponsorSnippet = 0; 4274 core.int buildCounterSponsorSnippet = 0;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
4339 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) { 4339 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) {
4340 buildCounterSubscriptionContentDetails++; 4340 buildCounterSubscriptionContentDetails++;
4341 if (buildCounterSubscriptionContentDetails < 3) { 4341 if (buildCounterSubscriptionContentDetails < 3) {
4342 unittest.expect(o.activityType, unittest.equals('foo')); 4342 unittest.expect(o.activityType, unittest.equals('foo'));
4343 unittest.expect(o.newItemCount, unittest.equals(42)); 4343 unittest.expect(o.newItemCount, unittest.equals(42));
4344 unittest.expect(o.totalItemCount, unittest.equals(42)); 4344 unittest.expect(o.totalItemCount, unittest.equals(42));
4345 } 4345 }
4346 buildCounterSubscriptionContentDetails--; 4346 buildCounterSubscriptionContentDetails--;
4347 } 4347 }
4348 4348
4349 buildUnnamed549() { 4349 buildUnnamed551() {
4350 var o = new core.List<api.Subscription>(); 4350 var o = new core.List<api.Subscription>();
4351 o.add(buildSubscription()); 4351 o.add(buildSubscription());
4352 o.add(buildSubscription()); 4352 o.add(buildSubscription());
4353 return o; 4353 return o;
4354 } 4354 }
4355 4355
4356 checkUnnamed549(core.List<api.Subscription> o) { 4356 checkUnnamed551(core.List<api.Subscription> o) {
4357 unittest.expect(o, unittest.hasLength(2)); 4357 unittest.expect(o, unittest.hasLength(2));
4358 checkSubscription(o[0]); 4358 checkSubscription(o[0]);
4359 checkSubscription(o[1]); 4359 checkSubscription(o[1]);
4360 } 4360 }
4361 4361
4362 core.int buildCounterSubscriptionListResponse = 0; 4362 core.int buildCounterSubscriptionListResponse = 0;
4363 buildSubscriptionListResponse() { 4363 buildSubscriptionListResponse() {
4364 var o = new api.SubscriptionListResponse(); 4364 var o = new api.SubscriptionListResponse();
4365 buildCounterSubscriptionListResponse++; 4365 buildCounterSubscriptionListResponse++;
4366 if (buildCounterSubscriptionListResponse < 3) { 4366 if (buildCounterSubscriptionListResponse < 3) {
4367 o.etag = "foo"; 4367 o.etag = "foo";
4368 o.eventId = "foo"; 4368 o.eventId = "foo";
4369 o.items = buildUnnamed549(); 4369 o.items = buildUnnamed551();
4370 o.kind = "foo"; 4370 o.kind = "foo";
4371 o.nextPageToken = "foo"; 4371 o.nextPageToken = "foo";
4372 o.pageInfo = buildPageInfo(); 4372 o.pageInfo = buildPageInfo();
4373 o.prevPageToken = "foo"; 4373 o.prevPageToken = "foo";
4374 o.tokenPagination = buildTokenPagination(); 4374 o.tokenPagination = buildTokenPagination();
4375 o.visitorId = "foo"; 4375 o.visitorId = "foo";
4376 } 4376 }
4377 buildCounterSubscriptionListResponse--; 4377 buildCounterSubscriptionListResponse--;
4378 return o; 4378 return o;
4379 } 4379 }
4380 4380
4381 checkSubscriptionListResponse(api.SubscriptionListResponse o) { 4381 checkSubscriptionListResponse(api.SubscriptionListResponse o) {
4382 buildCounterSubscriptionListResponse++; 4382 buildCounterSubscriptionListResponse++;
4383 if (buildCounterSubscriptionListResponse < 3) { 4383 if (buildCounterSubscriptionListResponse < 3) {
4384 unittest.expect(o.etag, unittest.equals('foo')); 4384 unittest.expect(o.etag, unittest.equals('foo'));
4385 unittest.expect(o.eventId, unittest.equals('foo')); 4385 unittest.expect(o.eventId, unittest.equals('foo'));
4386 checkUnnamed549(o.items); 4386 checkUnnamed551(o.items);
4387 unittest.expect(o.kind, unittest.equals('foo')); 4387 unittest.expect(o.kind, unittest.equals('foo'));
4388 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4388 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4389 checkPageInfo(o.pageInfo); 4389 checkPageInfo(o.pageInfo);
4390 unittest.expect(o.prevPageToken, unittest.equals('foo')); 4390 unittest.expect(o.prevPageToken, unittest.equals('foo'));
4391 checkTokenPagination(o.tokenPagination); 4391 checkTokenPagination(o.tokenPagination);
4392 unittest.expect(o.visitorId, unittest.equals('foo')); 4392 unittest.expect(o.visitorId, unittest.equals('foo'));
4393 } 4393 }
4394 buildCounterSubscriptionListResponse--; 4394 buildCounterSubscriptionListResponse--;
4395 } 4395 }
4396 4396
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
4468 buildCounterSuperChatEvent++; 4468 buildCounterSuperChatEvent++;
4469 if (buildCounterSuperChatEvent < 3) { 4469 if (buildCounterSuperChatEvent < 3) {
4470 unittest.expect(o.etag, unittest.equals('foo')); 4470 unittest.expect(o.etag, unittest.equals('foo'));
4471 unittest.expect(o.id, unittest.equals('foo')); 4471 unittest.expect(o.id, unittest.equals('foo'));
4472 unittest.expect(o.kind, unittest.equals('foo')); 4472 unittest.expect(o.kind, unittest.equals('foo'));
4473 checkSuperChatEventSnippet(o.snippet); 4473 checkSuperChatEventSnippet(o.snippet);
4474 } 4474 }
4475 buildCounterSuperChatEvent--; 4475 buildCounterSuperChatEvent--;
4476 } 4476 }
4477 4477
4478 buildUnnamed550() { 4478 buildUnnamed552() {
4479 var o = new core.List<api.SuperChatEvent>(); 4479 var o = new core.List<api.SuperChatEvent>();
4480 o.add(buildSuperChatEvent()); 4480 o.add(buildSuperChatEvent());
4481 o.add(buildSuperChatEvent()); 4481 o.add(buildSuperChatEvent());
4482 return o; 4482 return o;
4483 } 4483 }
4484 4484
4485 checkUnnamed550(core.List<api.SuperChatEvent> o) { 4485 checkUnnamed552(core.List<api.SuperChatEvent> o) {
4486 unittest.expect(o, unittest.hasLength(2)); 4486 unittest.expect(o, unittest.hasLength(2));
4487 checkSuperChatEvent(o[0]); 4487 checkSuperChatEvent(o[0]);
4488 checkSuperChatEvent(o[1]); 4488 checkSuperChatEvent(o[1]);
4489 } 4489 }
4490 4490
4491 core.int buildCounterSuperChatEventListResponse = 0; 4491 core.int buildCounterSuperChatEventListResponse = 0;
4492 buildSuperChatEventListResponse() { 4492 buildSuperChatEventListResponse() {
4493 var o = new api.SuperChatEventListResponse(); 4493 var o = new api.SuperChatEventListResponse();
4494 buildCounterSuperChatEventListResponse++; 4494 buildCounterSuperChatEventListResponse++;
4495 if (buildCounterSuperChatEventListResponse < 3) { 4495 if (buildCounterSuperChatEventListResponse < 3) {
4496 o.etag = "foo"; 4496 o.etag = "foo";
4497 o.eventId = "foo"; 4497 o.eventId = "foo";
4498 o.items = buildUnnamed550(); 4498 o.items = buildUnnamed552();
4499 o.kind = "foo"; 4499 o.kind = "foo";
4500 o.nextPageToken = "foo"; 4500 o.nextPageToken = "foo";
4501 o.pageInfo = buildPageInfo(); 4501 o.pageInfo = buildPageInfo();
4502 o.tokenPagination = buildTokenPagination(); 4502 o.tokenPagination = buildTokenPagination();
4503 o.visitorId = "foo"; 4503 o.visitorId = "foo";
4504 } 4504 }
4505 buildCounterSuperChatEventListResponse--; 4505 buildCounterSuperChatEventListResponse--;
4506 return o; 4506 return o;
4507 } 4507 }
4508 4508
4509 checkSuperChatEventListResponse(api.SuperChatEventListResponse o) { 4509 checkSuperChatEventListResponse(api.SuperChatEventListResponse o) {
4510 buildCounterSuperChatEventListResponse++; 4510 buildCounterSuperChatEventListResponse++;
4511 if (buildCounterSuperChatEventListResponse < 3) { 4511 if (buildCounterSuperChatEventListResponse < 3) {
4512 unittest.expect(o.etag, unittest.equals('foo')); 4512 unittest.expect(o.etag, unittest.equals('foo'));
4513 unittest.expect(o.eventId, unittest.equals('foo')); 4513 unittest.expect(o.eventId, unittest.equals('foo'));
4514 checkUnnamed550(o.items); 4514 checkUnnamed552(o.items);
4515 unittest.expect(o.kind, unittest.equals('foo')); 4515 unittest.expect(o.kind, unittest.equals('foo'));
4516 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4516 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4517 checkPageInfo(o.pageInfo); 4517 checkPageInfo(o.pageInfo);
4518 checkTokenPagination(o.tokenPagination); 4518 checkTokenPagination(o.tokenPagination);
4519 unittest.expect(o.visitorId, unittest.equals('foo')); 4519 unittest.expect(o.visitorId, unittest.equals('foo'));
4520 } 4520 }
4521 buildCounterSuperChatEventListResponse--; 4521 buildCounterSuperChatEventListResponse--;
4522 } 4522 }
4523 4523
4524 core.int buildCounterSuperChatEventSnippet = 0; 4524 core.int buildCounterSuperChatEventSnippet = 0;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
4597 if (buildCounterThumbnailDetails < 3) { 4597 if (buildCounterThumbnailDetails < 3) {
4598 checkThumbnail(o.default_); 4598 checkThumbnail(o.default_);
4599 checkThumbnail(o.high); 4599 checkThumbnail(o.high);
4600 checkThumbnail(o.maxres); 4600 checkThumbnail(o.maxres);
4601 checkThumbnail(o.medium); 4601 checkThumbnail(o.medium);
4602 checkThumbnail(o.standard); 4602 checkThumbnail(o.standard);
4603 } 4603 }
4604 buildCounterThumbnailDetails--; 4604 buildCounterThumbnailDetails--;
4605 } 4605 }
4606 4606
4607 buildUnnamed551() { 4607 buildUnnamed553() {
4608 var o = new core.List<api.ThumbnailDetails>(); 4608 var o = new core.List<api.ThumbnailDetails>();
4609 o.add(buildThumbnailDetails()); 4609 o.add(buildThumbnailDetails());
4610 o.add(buildThumbnailDetails()); 4610 o.add(buildThumbnailDetails());
4611 return o; 4611 return o;
4612 } 4612 }
4613 4613
4614 checkUnnamed551(core.List<api.ThumbnailDetails> o) { 4614 checkUnnamed553(core.List<api.ThumbnailDetails> o) {
4615 unittest.expect(o, unittest.hasLength(2)); 4615 unittest.expect(o, unittest.hasLength(2));
4616 checkThumbnailDetails(o[0]); 4616 checkThumbnailDetails(o[0]);
4617 checkThumbnailDetails(o[1]); 4617 checkThumbnailDetails(o[1]);
4618 } 4618 }
4619 4619
4620 core.int buildCounterThumbnailSetResponse = 0; 4620 core.int buildCounterThumbnailSetResponse = 0;
4621 buildThumbnailSetResponse() { 4621 buildThumbnailSetResponse() {
4622 var o = new api.ThumbnailSetResponse(); 4622 var o = new api.ThumbnailSetResponse();
4623 buildCounterThumbnailSetResponse++; 4623 buildCounterThumbnailSetResponse++;
4624 if (buildCounterThumbnailSetResponse < 3) { 4624 if (buildCounterThumbnailSetResponse < 3) {
4625 o.etag = "foo"; 4625 o.etag = "foo";
4626 o.eventId = "foo"; 4626 o.eventId = "foo";
4627 o.items = buildUnnamed551(); 4627 o.items = buildUnnamed553();
4628 o.kind = "foo"; 4628 o.kind = "foo";
4629 o.visitorId = "foo"; 4629 o.visitorId = "foo";
4630 } 4630 }
4631 buildCounterThumbnailSetResponse--; 4631 buildCounterThumbnailSetResponse--;
4632 return o; 4632 return o;
4633 } 4633 }
4634 4634
4635 checkThumbnailSetResponse(api.ThumbnailSetResponse o) { 4635 checkThumbnailSetResponse(api.ThumbnailSetResponse o) {
4636 buildCounterThumbnailSetResponse++; 4636 buildCounterThumbnailSetResponse++;
4637 if (buildCounterThumbnailSetResponse < 3) { 4637 if (buildCounterThumbnailSetResponse < 3) {
4638 unittest.expect(o.etag, unittest.equals('foo')); 4638 unittest.expect(o.etag, unittest.equals('foo'));
4639 unittest.expect(o.eventId, unittest.equals('foo')); 4639 unittest.expect(o.eventId, unittest.equals('foo'));
4640 checkUnnamed551(o.items); 4640 checkUnnamed553(o.items);
4641 unittest.expect(o.kind, unittest.equals('foo')); 4641 unittest.expect(o.kind, unittest.equals('foo'));
4642 unittest.expect(o.visitorId, unittest.equals('foo')); 4642 unittest.expect(o.visitorId, unittest.equals('foo'));
4643 } 4643 }
4644 buildCounterThumbnailSetResponse--; 4644 buildCounterThumbnailSetResponse--;
4645 } 4645 }
4646 4646
4647 core.int buildCounterTokenPagination = 0; 4647 core.int buildCounterTokenPagination = 0;
4648 buildTokenPagination() { 4648 buildTokenPagination() {
4649 var o = new api.TokenPagination(); 4649 var o = new api.TokenPagination();
4650 buildCounterTokenPagination++; 4650 buildCounterTokenPagination++;
4651 if (buildCounterTokenPagination < 3) { 4651 if (buildCounterTokenPagination < 3) {
4652 } 4652 }
4653 buildCounterTokenPagination--; 4653 buildCounterTokenPagination--;
4654 return o; 4654 return o;
4655 } 4655 }
4656 4656
4657 checkTokenPagination(api.TokenPagination o) { 4657 checkTokenPagination(api.TokenPagination o) {
4658 buildCounterTokenPagination++; 4658 buildCounterTokenPagination++;
4659 if (buildCounterTokenPagination < 3) { 4659 if (buildCounterTokenPagination < 3) {
4660 } 4660 }
4661 buildCounterTokenPagination--; 4661 buildCounterTokenPagination--;
4662 } 4662 }
4663 4663
4664 buildUnnamed552() { 4664 buildUnnamed554() {
4665 var o = new core.Map<core.String, api.VideoLocalization>(); 4665 var o = new core.Map<core.String, api.VideoLocalization>();
4666 o["x"] = buildVideoLocalization(); 4666 o["x"] = buildVideoLocalization();
4667 o["y"] = buildVideoLocalization(); 4667 o["y"] = buildVideoLocalization();
4668 return o; 4668 return o;
4669 } 4669 }
4670 4670
4671 checkUnnamed552(core.Map<core.String, api.VideoLocalization> o) { 4671 checkUnnamed554(core.Map<core.String, api.VideoLocalization> o) {
4672 unittest.expect(o, unittest.hasLength(2)); 4672 unittest.expect(o, unittest.hasLength(2));
4673 checkVideoLocalization(o["x"]); 4673 checkVideoLocalization(o["x"]);
4674 checkVideoLocalization(o["y"]); 4674 checkVideoLocalization(o["y"]);
4675 } 4675 }
4676 4676
4677 core.int buildCounterVideo = 0; 4677 core.int buildCounterVideo = 0;
4678 buildVideo() { 4678 buildVideo() {
4679 var o = new api.Video(); 4679 var o = new api.Video();
4680 buildCounterVideo++; 4680 buildCounterVideo++;
4681 if (buildCounterVideo < 3) { 4681 if (buildCounterVideo < 3) {
4682 o.ageGating = buildVideoAgeGating(); 4682 o.ageGating = buildVideoAgeGating();
4683 o.contentDetails = buildVideoContentDetails(); 4683 o.contentDetails = buildVideoContentDetails();
4684 o.etag = "foo"; 4684 o.etag = "foo";
4685 o.fileDetails = buildVideoFileDetails(); 4685 o.fileDetails = buildVideoFileDetails();
4686 o.id = "foo"; 4686 o.id = "foo";
4687 o.kind = "foo"; 4687 o.kind = "foo";
4688 o.liveStreamingDetails = buildVideoLiveStreamingDetails(); 4688 o.liveStreamingDetails = buildVideoLiveStreamingDetails();
4689 o.localizations = buildUnnamed552(); 4689 o.localizations = buildUnnamed554();
4690 o.monetizationDetails = buildVideoMonetizationDetails(); 4690 o.monetizationDetails = buildVideoMonetizationDetails();
4691 o.player = buildVideoPlayer(); 4691 o.player = buildVideoPlayer();
4692 o.processingDetails = buildVideoProcessingDetails(); 4692 o.processingDetails = buildVideoProcessingDetails();
4693 o.projectDetails = buildVideoProjectDetails(); 4693 o.projectDetails = buildVideoProjectDetails();
4694 o.recordingDetails = buildVideoRecordingDetails(); 4694 o.recordingDetails = buildVideoRecordingDetails();
4695 o.snippet = buildVideoSnippet(); 4695 o.snippet = buildVideoSnippet();
4696 o.statistics = buildVideoStatistics(); 4696 o.statistics = buildVideoStatistics();
4697 o.status = buildVideoStatus(); 4697 o.status = buildVideoStatus();
4698 o.suggestions = buildVideoSuggestions(); 4698 o.suggestions = buildVideoSuggestions();
4699 o.topicDetails = buildVideoTopicDetails(); 4699 o.topicDetails = buildVideoTopicDetails();
4700 } 4700 }
4701 buildCounterVideo--; 4701 buildCounterVideo--;
4702 return o; 4702 return o;
4703 } 4703 }
4704 4704
4705 checkVideo(api.Video o) { 4705 checkVideo(api.Video o) {
4706 buildCounterVideo++; 4706 buildCounterVideo++;
4707 if (buildCounterVideo < 3) { 4707 if (buildCounterVideo < 3) {
4708 checkVideoAgeGating(o.ageGating); 4708 checkVideoAgeGating(o.ageGating);
4709 checkVideoContentDetails(o.contentDetails); 4709 checkVideoContentDetails(o.contentDetails);
4710 unittest.expect(o.etag, unittest.equals('foo')); 4710 unittest.expect(o.etag, unittest.equals('foo'));
4711 checkVideoFileDetails(o.fileDetails); 4711 checkVideoFileDetails(o.fileDetails);
4712 unittest.expect(o.id, unittest.equals('foo')); 4712 unittest.expect(o.id, unittest.equals('foo'));
4713 unittest.expect(o.kind, unittest.equals('foo')); 4713 unittest.expect(o.kind, unittest.equals('foo'));
4714 checkVideoLiveStreamingDetails(o.liveStreamingDetails); 4714 checkVideoLiveStreamingDetails(o.liveStreamingDetails);
4715 checkUnnamed552(o.localizations); 4715 checkUnnamed554(o.localizations);
4716 checkVideoMonetizationDetails(o.monetizationDetails); 4716 checkVideoMonetizationDetails(o.monetizationDetails);
4717 checkVideoPlayer(o.player); 4717 checkVideoPlayer(o.player);
4718 checkVideoProcessingDetails(o.processingDetails); 4718 checkVideoProcessingDetails(o.processingDetails);
4719 checkVideoProjectDetails(o.projectDetails); 4719 checkVideoProjectDetails(o.projectDetails);
4720 checkVideoRecordingDetails(o.recordingDetails); 4720 checkVideoRecordingDetails(o.recordingDetails);
4721 checkVideoSnippet(o.snippet); 4721 checkVideoSnippet(o.snippet);
4722 checkVideoStatistics(o.statistics); 4722 checkVideoStatistics(o.statistics);
4723 checkVideoStatus(o.status); 4723 checkVideoStatus(o.status);
4724 checkVideoSuggestions(o.suggestions); 4724 checkVideoSuggestions(o.suggestions);
4725 checkVideoTopicDetails(o.topicDetails); 4725 checkVideoTopicDetails(o.topicDetails);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
4772 buildCounterVideoAbuseReportReason++; 4772 buildCounterVideoAbuseReportReason++;
4773 if (buildCounterVideoAbuseReportReason < 3) { 4773 if (buildCounterVideoAbuseReportReason < 3) {
4774 unittest.expect(o.etag, unittest.equals('foo')); 4774 unittest.expect(o.etag, unittest.equals('foo'));
4775 unittest.expect(o.id, unittest.equals('foo')); 4775 unittest.expect(o.id, unittest.equals('foo'));
4776 unittest.expect(o.kind, unittest.equals('foo')); 4776 unittest.expect(o.kind, unittest.equals('foo'));
4777 checkVideoAbuseReportReasonSnippet(o.snippet); 4777 checkVideoAbuseReportReasonSnippet(o.snippet);
4778 } 4778 }
4779 buildCounterVideoAbuseReportReason--; 4779 buildCounterVideoAbuseReportReason--;
4780 } 4780 }
4781 4781
4782 buildUnnamed553() { 4782 buildUnnamed555() {
4783 var o = new core.List<api.VideoAbuseReportReason>(); 4783 var o = new core.List<api.VideoAbuseReportReason>();
4784 o.add(buildVideoAbuseReportReason()); 4784 o.add(buildVideoAbuseReportReason());
4785 o.add(buildVideoAbuseReportReason()); 4785 o.add(buildVideoAbuseReportReason());
4786 return o; 4786 return o;
4787 } 4787 }
4788 4788
4789 checkUnnamed553(core.List<api.VideoAbuseReportReason> o) { 4789 checkUnnamed555(core.List<api.VideoAbuseReportReason> o) {
4790 unittest.expect(o, unittest.hasLength(2)); 4790 unittest.expect(o, unittest.hasLength(2));
4791 checkVideoAbuseReportReason(o[0]); 4791 checkVideoAbuseReportReason(o[0]);
4792 checkVideoAbuseReportReason(o[1]); 4792 checkVideoAbuseReportReason(o[1]);
4793 } 4793 }
4794 4794
4795 core.int buildCounterVideoAbuseReportReasonListResponse = 0; 4795 core.int buildCounterVideoAbuseReportReasonListResponse = 0;
4796 buildVideoAbuseReportReasonListResponse() { 4796 buildVideoAbuseReportReasonListResponse() {
4797 var o = new api.VideoAbuseReportReasonListResponse(); 4797 var o = new api.VideoAbuseReportReasonListResponse();
4798 buildCounterVideoAbuseReportReasonListResponse++; 4798 buildCounterVideoAbuseReportReasonListResponse++;
4799 if (buildCounterVideoAbuseReportReasonListResponse < 3) { 4799 if (buildCounterVideoAbuseReportReasonListResponse < 3) {
4800 o.etag = "foo"; 4800 o.etag = "foo";
4801 o.eventId = "foo"; 4801 o.eventId = "foo";
4802 o.items = buildUnnamed553(); 4802 o.items = buildUnnamed555();
4803 o.kind = "foo"; 4803 o.kind = "foo";
4804 o.visitorId = "foo"; 4804 o.visitorId = "foo";
4805 } 4805 }
4806 buildCounterVideoAbuseReportReasonListResponse--; 4806 buildCounterVideoAbuseReportReasonListResponse--;
4807 return o; 4807 return o;
4808 } 4808 }
4809 4809
4810 checkVideoAbuseReportReasonListResponse(api.VideoAbuseReportReasonListResponse o ) { 4810 checkVideoAbuseReportReasonListResponse(api.VideoAbuseReportReasonListResponse o ) {
4811 buildCounterVideoAbuseReportReasonListResponse++; 4811 buildCounterVideoAbuseReportReasonListResponse++;
4812 if (buildCounterVideoAbuseReportReasonListResponse < 3) { 4812 if (buildCounterVideoAbuseReportReasonListResponse < 3) {
4813 unittest.expect(o.etag, unittest.equals('foo')); 4813 unittest.expect(o.etag, unittest.equals('foo'));
4814 unittest.expect(o.eventId, unittest.equals('foo')); 4814 unittest.expect(o.eventId, unittest.equals('foo'));
4815 checkUnnamed553(o.items); 4815 checkUnnamed555(o.items);
4816 unittest.expect(o.kind, unittest.equals('foo')); 4816 unittest.expect(o.kind, unittest.equals('foo'));
4817 unittest.expect(o.visitorId, unittest.equals('foo')); 4817 unittest.expect(o.visitorId, unittest.equals('foo'));
4818 } 4818 }
4819 buildCounterVideoAbuseReportReasonListResponse--; 4819 buildCounterVideoAbuseReportReasonListResponse--;
4820 } 4820 }
4821 4821
4822 buildUnnamed554() { 4822 buildUnnamed556() {
4823 var o = new core.List<api.VideoAbuseReportSecondaryReason>(); 4823 var o = new core.List<api.VideoAbuseReportSecondaryReason>();
4824 o.add(buildVideoAbuseReportSecondaryReason()); 4824 o.add(buildVideoAbuseReportSecondaryReason());
4825 o.add(buildVideoAbuseReportSecondaryReason()); 4825 o.add(buildVideoAbuseReportSecondaryReason());
4826 return o; 4826 return o;
4827 } 4827 }
4828 4828
4829 checkUnnamed554(core.List<api.VideoAbuseReportSecondaryReason> o) { 4829 checkUnnamed556(core.List<api.VideoAbuseReportSecondaryReason> o) {
4830 unittest.expect(o, unittest.hasLength(2)); 4830 unittest.expect(o, unittest.hasLength(2));
4831 checkVideoAbuseReportSecondaryReason(o[0]); 4831 checkVideoAbuseReportSecondaryReason(o[0]);
4832 checkVideoAbuseReportSecondaryReason(o[1]); 4832 checkVideoAbuseReportSecondaryReason(o[1]);
4833 } 4833 }
4834 4834
4835 core.int buildCounterVideoAbuseReportReasonSnippet = 0; 4835 core.int buildCounterVideoAbuseReportReasonSnippet = 0;
4836 buildVideoAbuseReportReasonSnippet() { 4836 buildVideoAbuseReportReasonSnippet() {
4837 var o = new api.VideoAbuseReportReasonSnippet(); 4837 var o = new api.VideoAbuseReportReasonSnippet();
4838 buildCounterVideoAbuseReportReasonSnippet++; 4838 buildCounterVideoAbuseReportReasonSnippet++;
4839 if (buildCounterVideoAbuseReportReasonSnippet < 3) { 4839 if (buildCounterVideoAbuseReportReasonSnippet < 3) {
4840 o.label = "foo"; 4840 o.label = "foo";
4841 o.secondaryReasons = buildUnnamed554(); 4841 o.secondaryReasons = buildUnnamed556();
4842 } 4842 }
4843 buildCounterVideoAbuseReportReasonSnippet--; 4843 buildCounterVideoAbuseReportReasonSnippet--;
4844 return o; 4844 return o;
4845 } 4845 }
4846 4846
4847 checkVideoAbuseReportReasonSnippet(api.VideoAbuseReportReasonSnippet o) { 4847 checkVideoAbuseReportReasonSnippet(api.VideoAbuseReportReasonSnippet o) {
4848 buildCounterVideoAbuseReportReasonSnippet++; 4848 buildCounterVideoAbuseReportReasonSnippet++;
4849 if (buildCounterVideoAbuseReportReasonSnippet < 3) { 4849 if (buildCounterVideoAbuseReportReasonSnippet < 3) {
4850 unittest.expect(o.label, unittest.equals('foo')); 4850 unittest.expect(o.label, unittest.equals('foo'));
4851 checkUnnamed554(o.secondaryReasons); 4851 checkUnnamed556(o.secondaryReasons);
4852 } 4852 }
4853 buildCounterVideoAbuseReportReasonSnippet--; 4853 buildCounterVideoAbuseReportReasonSnippet--;
4854 } 4854 }
4855 4855
4856 core.int buildCounterVideoAbuseReportSecondaryReason = 0; 4856 core.int buildCounterVideoAbuseReportSecondaryReason = 0;
4857 buildVideoAbuseReportSecondaryReason() { 4857 buildVideoAbuseReportSecondaryReason() {
4858 var o = new api.VideoAbuseReportSecondaryReason(); 4858 var o = new api.VideoAbuseReportSecondaryReason();
4859 buildCounterVideoAbuseReportSecondaryReason++; 4859 buildCounterVideoAbuseReportSecondaryReason++;
4860 if (buildCounterVideoAbuseReportSecondaryReason < 3) { 4860 if (buildCounterVideoAbuseReportSecondaryReason < 3) {
4861 o.id = "foo"; 4861 o.id = "foo";
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
4915 buildCounterVideoCategory++; 4915 buildCounterVideoCategory++;
4916 if (buildCounterVideoCategory < 3) { 4916 if (buildCounterVideoCategory < 3) {
4917 unittest.expect(o.etag, unittest.equals('foo')); 4917 unittest.expect(o.etag, unittest.equals('foo'));
4918 unittest.expect(o.id, unittest.equals('foo')); 4918 unittest.expect(o.id, unittest.equals('foo'));
4919 unittest.expect(o.kind, unittest.equals('foo')); 4919 unittest.expect(o.kind, unittest.equals('foo'));
4920 checkVideoCategorySnippet(o.snippet); 4920 checkVideoCategorySnippet(o.snippet);
4921 } 4921 }
4922 buildCounterVideoCategory--; 4922 buildCounterVideoCategory--;
4923 } 4923 }
4924 4924
4925 buildUnnamed555() { 4925 buildUnnamed557() {
4926 var o = new core.List<api.VideoCategory>(); 4926 var o = new core.List<api.VideoCategory>();
4927 o.add(buildVideoCategory()); 4927 o.add(buildVideoCategory());
4928 o.add(buildVideoCategory()); 4928 o.add(buildVideoCategory());
4929 return o; 4929 return o;
4930 } 4930 }
4931 4931
4932 checkUnnamed555(core.List<api.VideoCategory> o) { 4932 checkUnnamed557(core.List<api.VideoCategory> o) {
4933 unittest.expect(o, unittest.hasLength(2)); 4933 unittest.expect(o, unittest.hasLength(2));
4934 checkVideoCategory(o[0]); 4934 checkVideoCategory(o[0]);
4935 checkVideoCategory(o[1]); 4935 checkVideoCategory(o[1]);
4936 } 4936 }
4937 4937
4938 core.int buildCounterVideoCategoryListResponse = 0; 4938 core.int buildCounterVideoCategoryListResponse = 0;
4939 buildVideoCategoryListResponse() { 4939 buildVideoCategoryListResponse() {
4940 var o = new api.VideoCategoryListResponse(); 4940 var o = new api.VideoCategoryListResponse();
4941 buildCounterVideoCategoryListResponse++; 4941 buildCounterVideoCategoryListResponse++;
4942 if (buildCounterVideoCategoryListResponse < 3) { 4942 if (buildCounterVideoCategoryListResponse < 3) {
4943 o.etag = "foo"; 4943 o.etag = "foo";
4944 o.eventId = "foo"; 4944 o.eventId = "foo";
4945 o.items = buildUnnamed555(); 4945 o.items = buildUnnamed557();
4946 o.kind = "foo"; 4946 o.kind = "foo";
4947 o.nextPageToken = "foo"; 4947 o.nextPageToken = "foo";
4948 o.pageInfo = buildPageInfo(); 4948 o.pageInfo = buildPageInfo();
4949 o.prevPageToken = "foo"; 4949 o.prevPageToken = "foo";
4950 o.tokenPagination = buildTokenPagination(); 4950 o.tokenPagination = buildTokenPagination();
4951 o.visitorId = "foo"; 4951 o.visitorId = "foo";
4952 } 4952 }
4953 buildCounterVideoCategoryListResponse--; 4953 buildCounterVideoCategoryListResponse--;
4954 return o; 4954 return o;
4955 } 4955 }
4956 4956
4957 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) { 4957 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) {
4958 buildCounterVideoCategoryListResponse++; 4958 buildCounterVideoCategoryListResponse++;
4959 if (buildCounterVideoCategoryListResponse < 3) { 4959 if (buildCounterVideoCategoryListResponse < 3) {
4960 unittest.expect(o.etag, unittest.equals('foo')); 4960 unittest.expect(o.etag, unittest.equals('foo'));
4961 unittest.expect(o.eventId, unittest.equals('foo')); 4961 unittest.expect(o.eventId, unittest.equals('foo'));
4962 checkUnnamed555(o.items); 4962 checkUnnamed557(o.items);
4963 unittest.expect(o.kind, unittest.equals('foo')); 4963 unittest.expect(o.kind, unittest.equals('foo'));
4964 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4964 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4965 checkPageInfo(o.pageInfo); 4965 checkPageInfo(o.pageInfo);
4966 unittest.expect(o.prevPageToken, unittest.equals('foo')); 4966 unittest.expect(o.prevPageToken, unittest.equals('foo'));
4967 checkTokenPagination(o.tokenPagination); 4967 checkTokenPagination(o.tokenPagination);
4968 unittest.expect(o.visitorId, unittest.equals('foo')); 4968 unittest.expect(o.visitorId, unittest.equals('foo'));
4969 } 4969 }
4970 buildCounterVideoCategoryListResponse--; 4970 buildCounterVideoCategoryListResponse--;
4971 } 4971 }
4972 4972
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
5023 unittest.expect(o.dimension, unittest.equals('foo')); 5023 unittest.expect(o.dimension, unittest.equals('foo'));
5024 unittest.expect(o.duration, unittest.equals('foo')); 5024 unittest.expect(o.duration, unittest.equals('foo'));
5025 unittest.expect(o.hasCustomThumbnail, unittest.isTrue); 5025 unittest.expect(o.hasCustomThumbnail, unittest.isTrue);
5026 unittest.expect(o.licensedContent, unittest.isTrue); 5026 unittest.expect(o.licensedContent, unittest.isTrue);
5027 unittest.expect(o.projection, unittest.equals('foo')); 5027 unittest.expect(o.projection, unittest.equals('foo'));
5028 checkVideoContentDetailsRegionRestriction(o.regionRestriction); 5028 checkVideoContentDetailsRegionRestriction(o.regionRestriction);
5029 } 5029 }
5030 buildCounterVideoContentDetails--; 5030 buildCounterVideoContentDetails--;
5031 } 5031 }
5032 5032
5033 buildUnnamed556() { 5033 buildUnnamed558() {
5034 var o = new core.List<core.String>(); 5034 var o = new core.List<core.String>();
5035 o.add("foo"); 5035 o.add("foo");
5036 o.add("foo"); 5036 o.add("foo");
5037 return o; 5037 return o;
5038 } 5038 }
5039 5039
5040 checkUnnamed556(core.List<core.String> o) { 5040 checkUnnamed558(core.List<core.String> o) {
5041 unittest.expect(o, unittest.hasLength(2)); 5041 unittest.expect(o, unittest.hasLength(2));
5042 unittest.expect(o[0], unittest.equals('foo')); 5042 unittest.expect(o[0], unittest.equals('foo'));
5043 unittest.expect(o[1], unittest.equals('foo')); 5043 unittest.expect(o[1], unittest.equals('foo'));
5044 } 5044 }
5045 5045
5046 buildUnnamed557() { 5046 buildUnnamed559() {
5047 var o = new core.List<core.String>(); 5047 var o = new core.List<core.String>();
5048 o.add("foo"); 5048 o.add("foo");
5049 o.add("foo"); 5049 o.add("foo");
5050 return o; 5050 return o;
5051 } 5051 }
5052 5052
5053 checkUnnamed557(core.List<core.String> o) { 5053 checkUnnamed559(core.List<core.String> o) {
5054 unittest.expect(o, unittest.hasLength(2)); 5054 unittest.expect(o, unittest.hasLength(2));
5055 unittest.expect(o[0], unittest.equals('foo')); 5055 unittest.expect(o[0], unittest.equals('foo'));
5056 unittest.expect(o[1], unittest.equals('foo')); 5056 unittest.expect(o[1], unittest.equals('foo'));
5057 } 5057 }
5058 5058
5059 core.int buildCounterVideoContentDetailsRegionRestriction = 0; 5059 core.int buildCounterVideoContentDetailsRegionRestriction = 0;
5060 buildVideoContentDetailsRegionRestriction() { 5060 buildVideoContentDetailsRegionRestriction() {
5061 var o = new api.VideoContentDetailsRegionRestriction(); 5061 var o = new api.VideoContentDetailsRegionRestriction();
5062 buildCounterVideoContentDetailsRegionRestriction++; 5062 buildCounterVideoContentDetailsRegionRestriction++;
5063 if (buildCounterVideoContentDetailsRegionRestriction < 3) { 5063 if (buildCounterVideoContentDetailsRegionRestriction < 3) {
5064 o.allowed = buildUnnamed556(); 5064 o.allowed = buildUnnamed558();
5065 o.blocked = buildUnnamed557(); 5065 o.blocked = buildUnnamed559();
5066 } 5066 }
5067 buildCounterVideoContentDetailsRegionRestriction--; 5067 buildCounterVideoContentDetailsRegionRestriction--;
5068 return o; 5068 return o;
5069 } 5069 }
5070 5070
5071 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti on o) { 5071 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti on o) {
5072 buildCounterVideoContentDetailsRegionRestriction++; 5072 buildCounterVideoContentDetailsRegionRestriction++;
5073 if (buildCounterVideoContentDetailsRegionRestriction < 3) { 5073 if (buildCounterVideoContentDetailsRegionRestriction < 3) {
5074 checkUnnamed556(o.allowed); 5074 checkUnnamed558(o.allowed);
5075 checkUnnamed557(o.blocked); 5075 checkUnnamed559(o.blocked);
5076 } 5076 }
5077 buildCounterVideoContentDetailsRegionRestriction--; 5077 buildCounterVideoContentDetailsRegionRestriction--;
5078 } 5078 }
5079 5079
5080 buildUnnamed558() { 5080 buildUnnamed560() {
5081 var o = new core.List<api.VideoFileDetailsAudioStream>(); 5081 var o = new core.List<api.VideoFileDetailsAudioStream>();
5082 o.add(buildVideoFileDetailsAudioStream()); 5082 o.add(buildVideoFileDetailsAudioStream());
5083 o.add(buildVideoFileDetailsAudioStream()); 5083 o.add(buildVideoFileDetailsAudioStream());
5084 return o; 5084 return o;
5085 } 5085 }
5086 5086
5087 checkUnnamed558(core.List<api.VideoFileDetailsAudioStream> o) { 5087 checkUnnamed560(core.List<api.VideoFileDetailsAudioStream> o) {
5088 unittest.expect(o, unittest.hasLength(2)); 5088 unittest.expect(o, unittest.hasLength(2));
5089 checkVideoFileDetailsAudioStream(o[0]); 5089 checkVideoFileDetailsAudioStream(o[0]);
5090 checkVideoFileDetailsAudioStream(o[1]); 5090 checkVideoFileDetailsAudioStream(o[1]);
5091 } 5091 }
5092 5092
5093 buildUnnamed559() { 5093 buildUnnamed561() {
5094 var o = new core.List<api.VideoFileDetailsVideoStream>(); 5094 var o = new core.List<api.VideoFileDetailsVideoStream>();
5095 o.add(buildVideoFileDetailsVideoStream()); 5095 o.add(buildVideoFileDetailsVideoStream());
5096 o.add(buildVideoFileDetailsVideoStream()); 5096 o.add(buildVideoFileDetailsVideoStream());
5097 return o; 5097 return o;
5098 } 5098 }
5099 5099
5100 checkUnnamed559(core.List<api.VideoFileDetailsVideoStream> o) { 5100 checkUnnamed561(core.List<api.VideoFileDetailsVideoStream> o) {
5101 unittest.expect(o, unittest.hasLength(2)); 5101 unittest.expect(o, unittest.hasLength(2));
5102 checkVideoFileDetailsVideoStream(o[0]); 5102 checkVideoFileDetailsVideoStream(o[0]);
5103 checkVideoFileDetailsVideoStream(o[1]); 5103 checkVideoFileDetailsVideoStream(o[1]);
5104 } 5104 }
5105 5105
5106 core.int buildCounterVideoFileDetails = 0; 5106 core.int buildCounterVideoFileDetails = 0;
5107 buildVideoFileDetails() { 5107 buildVideoFileDetails() {
5108 var o = new api.VideoFileDetails(); 5108 var o = new api.VideoFileDetails();
5109 buildCounterVideoFileDetails++; 5109 buildCounterVideoFileDetails++;
5110 if (buildCounterVideoFileDetails < 3) { 5110 if (buildCounterVideoFileDetails < 3) {
5111 o.audioStreams = buildUnnamed558(); 5111 o.audioStreams = buildUnnamed560();
5112 o.bitrateBps = "foo"; 5112 o.bitrateBps = "foo";
5113 o.container = "foo"; 5113 o.container = "foo";
5114 o.creationTime = "foo"; 5114 o.creationTime = "foo";
5115 o.durationMs = "foo"; 5115 o.durationMs = "foo";
5116 o.fileName = "foo"; 5116 o.fileName = "foo";
5117 o.fileSize = "foo"; 5117 o.fileSize = "foo";
5118 o.fileType = "foo"; 5118 o.fileType = "foo";
5119 o.videoStreams = buildUnnamed559(); 5119 o.videoStreams = buildUnnamed561();
5120 } 5120 }
5121 buildCounterVideoFileDetails--; 5121 buildCounterVideoFileDetails--;
5122 return o; 5122 return o;
5123 } 5123 }
5124 5124
5125 checkVideoFileDetails(api.VideoFileDetails o) { 5125 checkVideoFileDetails(api.VideoFileDetails o) {
5126 buildCounterVideoFileDetails++; 5126 buildCounterVideoFileDetails++;
5127 if (buildCounterVideoFileDetails < 3) { 5127 if (buildCounterVideoFileDetails < 3) {
5128 checkUnnamed558(o.audioStreams); 5128 checkUnnamed560(o.audioStreams);
5129 unittest.expect(o.bitrateBps, unittest.equals('foo')); 5129 unittest.expect(o.bitrateBps, unittest.equals('foo'));
5130 unittest.expect(o.container, unittest.equals('foo')); 5130 unittest.expect(o.container, unittest.equals('foo'));
5131 unittest.expect(o.creationTime, unittest.equals('foo')); 5131 unittest.expect(o.creationTime, unittest.equals('foo'));
5132 unittest.expect(o.durationMs, unittest.equals('foo')); 5132 unittest.expect(o.durationMs, unittest.equals('foo'));
5133 unittest.expect(o.fileName, unittest.equals('foo')); 5133 unittest.expect(o.fileName, unittest.equals('foo'));
5134 unittest.expect(o.fileSize, unittest.equals('foo')); 5134 unittest.expect(o.fileSize, unittest.equals('foo'));
5135 unittest.expect(o.fileType, unittest.equals('foo')); 5135 unittest.expect(o.fileType, unittest.equals('foo'));
5136 checkUnnamed559(o.videoStreams); 5136 checkUnnamed561(o.videoStreams);
5137 } 5137 }
5138 buildCounterVideoFileDetails--; 5138 buildCounterVideoFileDetails--;
5139 } 5139 }
5140 5140
5141 core.int buildCounterVideoFileDetailsAudioStream = 0; 5141 core.int buildCounterVideoFileDetailsAudioStream = 0;
5142 buildVideoFileDetailsAudioStream() { 5142 buildVideoFileDetailsAudioStream() {
5143 var o = new api.VideoFileDetailsAudioStream(); 5143 var o = new api.VideoFileDetailsAudioStream();
5144 buildCounterVideoFileDetailsAudioStream++; 5144 buildCounterVideoFileDetailsAudioStream++;
5145 if (buildCounterVideoFileDetailsAudioStream < 3) { 5145 if (buildCounterVideoFileDetailsAudioStream < 3) {
5146 o.bitrateBps = "foo"; 5146 o.bitrateBps = "foo";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
5189 unittest.expect(o.codec, unittest.equals('foo')); 5189 unittest.expect(o.codec, unittest.equals('foo'));
5190 unittest.expect(o.frameRateFps, unittest.equals(42.0)); 5190 unittest.expect(o.frameRateFps, unittest.equals(42.0));
5191 unittest.expect(o.heightPixels, unittest.equals(42)); 5191 unittest.expect(o.heightPixels, unittest.equals(42));
5192 unittest.expect(o.rotation, unittest.equals('foo')); 5192 unittest.expect(o.rotation, unittest.equals('foo'));
5193 unittest.expect(o.vendor, unittest.equals('foo')); 5193 unittest.expect(o.vendor, unittest.equals('foo'));
5194 unittest.expect(o.widthPixels, unittest.equals(42)); 5194 unittest.expect(o.widthPixels, unittest.equals(42));
5195 } 5195 }
5196 buildCounterVideoFileDetailsVideoStream--; 5196 buildCounterVideoFileDetailsVideoStream--;
5197 } 5197 }
5198 5198
5199 buildUnnamed560() { 5199 buildUnnamed562() {
5200 var o = new core.List<api.VideoRating>(); 5200 var o = new core.List<api.VideoRating>();
5201 o.add(buildVideoRating()); 5201 o.add(buildVideoRating());
5202 o.add(buildVideoRating()); 5202 o.add(buildVideoRating());
5203 return o; 5203 return o;
5204 } 5204 }
5205 5205
5206 checkUnnamed560(core.List<api.VideoRating> o) { 5206 checkUnnamed562(core.List<api.VideoRating> o) {
5207 unittest.expect(o, unittest.hasLength(2)); 5207 unittest.expect(o, unittest.hasLength(2));
5208 checkVideoRating(o[0]); 5208 checkVideoRating(o[0]);
5209 checkVideoRating(o[1]); 5209 checkVideoRating(o[1]);
5210 } 5210 }
5211 5211
5212 core.int buildCounterVideoGetRatingResponse = 0; 5212 core.int buildCounterVideoGetRatingResponse = 0;
5213 buildVideoGetRatingResponse() { 5213 buildVideoGetRatingResponse() {
5214 var o = new api.VideoGetRatingResponse(); 5214 var o = new api.VideoGetRatingResponse();
5215 buildCounterVideoGetRatingResponse++; 5215 buildCounterVideoGetRatingResponse++;
5216 if (buildCounterVideoGetRatingResponse < 3) { 5216 if (buildCounterVideoGetRatingResponse < 3) {
5217 o.etag = "foo"; 5217 o.etag = "foo";
5218 o.eventId = "foo"; 5218 o.eventId = "foo";
5219 o.items = buildUnnamed560(); 5219 o.items = buildUnnamed562();
5220 o.kind = "foo"; 5220 o.kind = "foo";
5221 o.visitorId = "foo"; 5221 o.visitorId = "foo";
5222 } 5222 }
5223 buildCounterVideoGetRatingResponse--; 5223 buildCounterVideoGetRatingResponse--;
5224 return o; 5224 return o;
5225 } 5225 }
5226 5226
5227 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { 5227 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) {
5228 buildCounterVideoGetRatingResponse++; 5228 buildCounterVideoGetRatingResponse++;
5229 if (buildCounterVideoGetRatingResponse < 3) { 5229 if (buildCounterVideoGetRatingResponse < 3) {
5230 unittest.expect(o.etag, unittest.equals('foo')); 5230 unittest.expect(o.etag, unittest.equals('foo'));
5231 unittest.expect(o.eventId, unittest.equals('foo')); 5231 unittest.expect(o.eventId, unittest.equals('foo'));
5232 checkUnnamed560(o.items); 5232 checkUnnamed562(o.items);
5233 unittest.expect(o.kind, unittest.equals('foo')); 5233 unittest.expect(o.kind, unittest.equals('foo'));
5234 unittest.expect(o.visitorId, unittest.equals('foo')); 5234 unittest.expect(o.visitorId, unittest.equals('foo'));
5235 } 5235 }
5236 buildCounterVideoGetRatingResponse--; 5236 buildCounterVideoGetRatingResponse--;
5237 } 5237 }
5238 5238
5239 buildUnnamed561() { 5239 buildUnnamed563() {
5240 var o = new core.List<api.Video>(); 5240 var o = new core.List<api.Video>();
5241 o.add(buildVideo()); 5241 o.add(buildVideo());
5242 o.add(buildVideo()); 5242 o.add(buildVideo());
5243 return o; 5243 return o;
5244 } 5244 }
5245 5245
5246 checkUnnamed561(core.List<api.Video> o) { 5246 checkUnnamed563(core.List<api.Video> o) {
5247 unittest.expect(o, unittest.hasLength(2)); 5247 unittest.expect(o, unittest.hasLength(2));
5248 checkVideo(o[0]); 5248 checkVideo(o[0]);
5249 checkVideo(o[1]); 5249 checkVideo(o[1]);
5250 } 5250 }
5251 5251
5252 core.int buildCounterVideoListResponse = 0; 5252 core.int buildCounterVideoListResponse = 0;
5253 buildVideoListResponse() { 5253 buildVideoListResponse() {
5254 var o = new api.VideoListResponse(); 5254 var o = new api.VideoListResponse();
5255 buildCounterVideoListResponse++; 5255 buildCounterVideoListResponse++;
5256 if (buildCounterVideoListResponse < 3) { 5256 if (buildCounterVideoListResponse < 3) {
5257 o.etag = "foo"; 5257 o.etag = "foo";
5258 o.eventId = "foo"; 5258 o.eventId = "foo";
5259 o.items = buildUnnamed561(); 5259 o.items = buildUnnamed563();
5260 o.kind = "foo"; 5260 o.kind = "foo";
5261 o.nextPageToken = "foo"; 5261 o.nextPageToken = "foo";
5262 o.pageInfo = buildPageInfo(); 5262 o.pageInfo = buildPageInfo();
5263 o.prevPageToken = "foo"; 5263 o.prevPageToken = "foo";
5264 o.tokenPagination = buildTokenPagination(); 5264 o.tokenPagination = buildTokenPagination();
5265 o.visitorId = "foo"; 5265 o.visitorId = "foo";
5266 } 5266 }
5267 buildCounterVideoListResponse--; 5267 buildCounterVideoListResponse--;
5268 return o; 5268 return o;
5269 } 5269 }
5270 5270
5271 checkVideoListResponse(api.VideoListResponse o) { 5271 checkVideoListResponse(api.VideoListResponse o) {
5272 buildCounterVideoListResponse++; 5272 buildCounterVideoListResponse++;
5273 if (buildCounterVideoListResponse < 3) { 5273 if (buildCounterVideoListResponse < 3) {
5274 unittest.expect(o.etag, unittest.equals('foo')); 5274 unittest.expect(o.etag, unittest.equals('foo'));
5275 unittest.expect(o.eventId, unittest.equals('foo')); 5275 unittest.expect(o.eventId, unittest.equals('foo'));
5276 checkUnnamed561(o.items); 5276 checkUnnamed563(o.items);
5277 unittest.expect(o.kind, unittest.equals('foo')); 5277 unittest.expect(o.kind, unittest.equals('foo'));
5278 unittest.expect(o.nextPageToken, unittest.equals('foo')); 5278 unittest.expect(o.nextPageToken, unittest.equals('foo'));
5279 checkPageInfo(o.pageInfo); 5279 checkPageInfo(o.pageInfo);
5280 unittest.expect(o.prevPageToken, unittest.equals('foo')); 5280 unittest.expect(o.prevPageToken, unittest.equals('foo'));
5281 checkTokenPagination(o.tokenPagination); 5281 checkTokenPagination(o.tokenPagination);
5282 unittest.expect(o.visitorId, unittest.equals('foo')); 5282 unittest.expect(o.visitorId, unittest.equals('foo'));
5283 } 5283 }
5284 buildCounterVideoListResponse--; 5284 buildCounterVideoListResponse--;
5285 } 5285 }
5286 5286
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
5425 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi ngProgress o) { 5425 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi ngProgress o) {
5426 buildCounterVideoProcessingDetailsProcessingProgress++; 5426 buildCounterVideoProcessingDetailsProcessingProgress++;
5427 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) { 5427 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) {
5428 unittest.expect(o.partsProcessed, unittest.equals('foo')); 5428 unittest.expect(o.partsProcessed, unittest.equals('foo'));
5429 unittest.expect(o.partsTotal, unittest.equals('foo')); 5429 unittest.expect(o.partsTotal, unittest.equals('foo'));
5430 unittest.expect(o.timeLeftMs, unittest.equals('foo')); 5430 unittest.expect(o.timeLeftMs, unittest.equals('foo'));
5431 } 5431 }
5432 buildCounterVideoProcessingDetailsProcessingProgress--; 5432 buildCounterVideoProcessingDetailsProcessingProgress--;
5433 } 5433 }
5434 5434
5435 buildUnnamed562() { 5435 buildUnnamed564() {
5436 var o = new core.List<core.String>(); 5436 var o = new core.List<core.String>();
5437 o.add("foo"); 5437 o.add("foo");
5438 o.add("foo"); 5438 o.add("foo");
5439 return o; 5439 return o;
5440 } 5440 }
5441 5441
5442 checkUnnamed562(core.List<core.String> o) { 5442 checkUnnamed564(core.List<core.String> o) {
5443 unittest.expect(o, unittest.hasLength(2)); 5443 unittest.expect(o, unittest.hasLength(2));
5444 unittest.expect(o[0], unittest.equals('foo')); 5444 unittest.expect(o[0], unittest.equals('foo'));
5445 unittest.expect(o[1], unittest.equals('foo')); 5445 unittest.expect(o[1], unittest.equals('foo'));
5446 } 5446 }
5447 5447
5448 core.int buildCounterVideoProjectDetails = 0; 5448 core.int buildCounterVideoProjectDetails = 0;
5449 buildVideoProjectDetails() { 5449 buildVideoProjectDetails() {
5450 var o = new api.VideoProjectDetails(); 5450 var o = new api.VideoProjectDetails();
5451 buildCounterVideoProjectDetails++; 5451 buildCounterVideoProjectDetails++;
5452 if (buildCounterVideoProjectDetails < 3) { 5452 if (buildCounterVideoProjectDetails < 3) {
5453 o.tags = buildUnnamed562(); 5453 o.tags = buildUnnamed564();
5454 } 5454 }
5455 buildCounterVideoProjectDetails--; 5455 buildCounterVideoProjectDetails--;
5456 return o; 5456 return o;
5457 } 5457 }
5458 5458
5459 checkVideoProjectDetails(api.VideoProjectDetails o) { 5459 checkVideoProjectDetails(api.VideoProjectDetails o) {
5460 buildCounterVideoProjectDetails++; 5460 buildCounterVideoProjectDetails++;
5461 if (buildCounterVideoProjectDetails < 3) { 5461 if (buildCounterVideoProjectDetails < 3) {
5462 checkUnnamed562(o.tags); 5462 checkUnnamed564(o.tags);
5463 } 5463 }
5464 buildCounterVideoProjectDetails--; 5464 buildCounterVideoProjectDetails--;
5465 } 5465 }
5466 5466
5467 core.int buildCounterVideoRating = 0; 5467 core.int buildCounterVideoRating = 0;
5468 buildVideoRating() { 5468 buildVideoRating() {
5469 var o = new api.VideoRating(); 5469 var o = new api.VideoRating();
5470 buildCounterVideoRating++; 5470 buildCounterVideoRating++;
5471 if (buildCounterVideoRating < 3) { 5471 if (buildCounterVideoRating < 3) {
5472 o.rating = "foo"; 5472 o.rating = "foo";
(...skipping 28 matching lines...) Expand all
5501 checkVideoRecordingDetails(api.VideoRecordingDetails o) { 5501 checkVideoRecordingDetails(api.VideoRecordingDetails o) {
5502 buildCounterVideoRecordingDetails++; 5502 buildCounterVideoRecordingDetails++;
5503 if (buildCounterVideoRecordingDetails < 3) { 5503 if (buildCounterVideoRecordingDetails < 3) {
5504 checkGeoPoint(o.location); 5504 checkGeoPoint(o.location);
5505 unittest.expect(o.locationDescription, unittest.equals('foo')); 5505 unittest.expect(o.locationDescription, unittest.equals('foo'));
5506 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02"))); 5506 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02")));
5507 } 5507 }
5508 buildCounterVideoRecordingDetails--; 5508 buildCounterVideoRecordingDetails--;
5509 } 5509 }
5510 5510
5511 buildUnnamed563() { 5511 buildUnnamed565() {
5512 var o = new core.List<core.String>(); 5512 var o = new core.List<core.String>();
5513 o.add("foo"); 5513 o.add("foo");
5514 o.add("foo"); 5514 o.add("foo");
5515 return o; 5515 return o;
5516 } 5516 }
5517 5517
5518 checkUnnamed563(core.List<core.String> o) { 5518 checkUnnamed565(core.List<core.String> o) {
5519 unittest.expect(o, unittest.hasLength(2)); 5519 unittest.expect(o, unittest.hasLength(2));
5520 unittest.expect(o[0], unittest.equals('foo')); 5520 unittest.expect(o[0], unittest.equals('foo'));
5521 unittest.expect(o[1], unittest.equals('foo')); 5521 unittest.expect(o[1], unittest.equals('foo'));
5522 } 5522 }
5523 5523
5524 core.int buildCounterVideoSnippet = 0; 5524 core.int buildCounterVideoSnippet = 0;
5525 buildVideoSnippet() { 5525 buildVideoSnippet() {
5526 var o = new api.VideoSnippet(); 5526 var o = new api.VideoSnippet();
5527 buildCounterVideoSnippet++; 5527 buildCounterVideoSnippet++;
5528 if (buildCounterVideoSnippet < 3) { 5528 if (buildCounterVideoSnippet < 3) {
5529 o.categoryId = "foo"; 5529 o.categoryId = "foo";
5530 o.channelId = "foo"; 5530 o.channelId = "foo";
5531 o.channelTitle = "foo"; 5531 o.channelTitle = "foo";
5532 o.defaultAudioLanguage = "foo"; 5532 o.defaultAudioLanguage = "foo";
5533 o.defaultLanguage = "foo"; 5533 o.defaultLanguage = "foo";
5534 o.description = "foo"; 5534 o.description = "foo";
5535 o.liveBroadcastContent = "foo"; 5535 o.liveBroadcastContent = "foo";
5536 o.localized = buildVideoLocalization(); 5536 o.localized = buildVideoLocalization();
5537 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); 5537 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
5538 o.tags = buildUnnamed563(); 5538 o.tags = buildUnnamed565();
5539 o.thumbnails = buildThumbnailDetails(); 5539 o.thumbnails = buildThumbnailDetails();
5540 o.title = "foo"; 5540 o.title = "foo";
5541 } 5541 }
5542 buildCounterVideoSnippet--; 5542 buildCounterVideoSnippet--;
5543 return o; 5543 return o;
5544 } 5544 }
5545 5545
5546 checkVideoSnippet(api.VideoSnippet o) { 5546 checkVideoSnippet(api.VideoSnippet o) {
5547 buildCounterVideoSnippet++; 5547 buildCounterVideoSnippet++;
5548 if (buildCounterVideoSnippet < 3) { 5548 if (buildCounterVideoSnippet < 3) {
5549 unittest.expect(o.categoryId, unittest.equals('foo')); 5549 unittest.expect(o.categoryId, unittest.equals('foo'));
5550 unittest.expect(o.channelId, unittest.equals('foo')); 5550 unittest.expect(o.channelId, unittest.equals('foo'));
5551 unittest.expect(o.channelTitle, unittest.equals('foo')); 5551 unittest.expect(o.channelTitle, unittest.equals('foo'));
5552 unittest.expect(o.defaultAudioLanguage, unittest.equals('foo')); 5552 unittest.expect(o.defaultAudioLanguage, unittest.equals('foo'));
5553 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 5553 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
5554 unittest.expect(o.description, unittest.equals('foo')); 5554 unittest.expect(o.description, unittest.equals('foo'));
5555 unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); 5555 unittest.expect(o.liveBroadcastContent, unittest.equals('foo'));
5556 checkVideoLocalization(o.localized); 5556 checkVideoLocalization(o.localized);
5557 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 5557 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
5558 checkUnnamed563(o.tags); 5558 checkUnnamed565(o.tags);
5559 checkThumbnailDetails(o.thumbnails); 5559 checkThumbnailDetails(o.thumbnails);
5560 unittest.expect(o.title, unittest.equals('foo')); 5560 unittest.expect(o.title, unittest.equals('foo'));
5561 } 5561 }
5562 buildCounterVideoSnippet--; 5562 buildCounterVideoSnippet--;
5563 } 5563 }
5564 5564
5565 core.int buildCounterVideoStatistics = 0; 5565 core.int buildCounterVideoStatistics = 0;
5566 buildVideoStatistics() { 5566 buildVideoStatistics() {
5567 var o = new api.VideoStatistics(); 5567 var o = new api.VideoStatistics();
5568 buildCounterVideoStatistics++; 5568 buildCounterVideoStatistics++;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
5615 unittest.expect(o.license, unittest.equals('foo')); 5615 unittest.expect(o.license, unittest.equals('foo'));
5616 unittest.expect(o.privacyStatus, unittest.equals('foo')); 5616 unittest.expect(o.privacyStatus, unittest.equals('foo'));
5617 unittest.expect(o.publicStatsViewable, unittest.isTrue); 5617 unittest.expect(o.publicStatsViewable, unittest.isTrue);
5618 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 5618 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
5619 unittest.expect(o.rejectionReason, unittest.equals('foo')); 5619 unittest.expect(o.rejectionReason, unittest.equals('foo'));
5620 unittest.expect(o.uploadStatus, unittest.equals('foo')); 5620 unittest.expect(o.uploadStatus, unittest.equals('foo'));
5621 } 5621 }
5622 buildCounterVideoStatus--; 5622 buildCounterVideoStatus--;
5623 } 5623 }
5624 5624
5625 buildUnnamed564() {
5626 var o = new core.List<core.String>();
5627 o.add("foo");
5628 o.add("foo");
5629 return o;
5630 }
5631
5632 checkUnnamed564(core.List<core.String> o) {
5633 unittest.expect(o, unittest.hasLength(2));
5634 unittest.expect(o[0], unittest.equals('foo'));
5635 unittest.expect(o[1], unittest.equals('foo'));
5636 }
5637
5638 buildUnnamed565() {
5639 var o = new core.List<core.String>();
5640 o.add("foo");
5641 o.add("foo");
5642 return o;
5643 }
5644
5645 checkUnnamed565(core.List<core.String> o) {
5646 unittest.expect(o, unittest.hasLength(2));
5647 unittest.expect(o[0], unittest.equals('foo'));
5648 unittest.expect(o[1], unittest.equals('foo'));
5649 }
5650
5651 buildUnnamed566() { 5625 buildUnnamed566() {
5652 var o = new core.List<core.String>(); 5626 var o = new core.List<core.String>();
5653 o.add("foo"); 5627 o.add("foo");
5654 o.add("foo"); 5628 o.add("foo");
5655 return o; 5629 return o;
5656 } 5630 }
5657 5631
5658 checkUnnamed566(core.List<core.String> o) { 5632 checkUnnamed566(core.List<core.String> o) {
5659 unittest.expect(o, unittest.hasLength(2)); 5633 unittest.expect(o, unittest.hasLength(2));
5660 unittest.expect(o[0], unittest.equals('foo')); 5634 unittest.expect(o[0], unittest.equals('foo'));
5661 unittest.expect(o[1], unittest.equals('foo')); 5635 unittest.expect(o[1], unittest.equals('foo'));
5662 } 5636 }
5663 5637
5664 buildUnnamed567() { 5638 buildUnnamed567() {
5665 var o = new core.List<core.String>(); 5639 var o = new core.List<core.String>();
5666 o.add("foo"); 5640 o.add("foo");
5667 o.add("foo"); 5641 o.add("foo");
5668 return o; 5642 return o;
5669 } 5643 }
5670 5644
5671 checkUnnamed567(core.List<core.String> o) { 5645 checkUnnamed567(core.List<core.String> o) {
5672 unittest.expect(o, unittest.hasLength(2)); 5646 unittest.expect(o, unittest.hasLength(2));
5673 unittest.expect(o[0], unittest.equals('foo')); 5647 unittest.expect(o[0], unittest.equals('foo'));
5674 unittest.expect(o[1], unittest.equals('foo')); 5648 unittest.expect(o[1], unittest.equals('foo'));
5675 } 5649 }
5676 5650
5677 buildUnnamed568() { 5651 buildUnnamed568() {
5652 var o = new core.List<core.String>();
5653 o.add("foo");
5654 o.add("foo");
5655 return o;
5656 }
5657
5658 checkUnnamed568(core.List<core.String> o) {
5659 unittest.expect(o, unittest.hasLength(2));
5660 unittest.expect(o[0], unittest.equals('foo'));
5661 unittest.expect(o[1], unittest.equals('foo'));
5662 }
5663
5664 buildUnnamed569() {
5665 var o = new core.List<core.String>();
5666 o.add("foo");
5667 o.add("foo");
5668 return o;
5669 }
5670
5671 checkUnnamed569(core.List<core.String> o) {
5672 unittest.expect(o, unittest.hasLength(2));
5673 unittest.expect(o[0], unittest.equals('foo'));
5674 unittest.expect(o[1], unittest.equals('foo'));
5675 }
5676
5677 buildUnnamed570() {
5678 var o = new core.List<api.VideoSuggestionsTagSuggestion>(); 5678 var o = new core.List<api.VideoSuggestionsTagSuggestion>();
5679 o.add(buildVideoSuggestionsTagSuggestion()); 5679 o.add(buildVideoSuggestionsTagSuggestion());
5680 o.add(buildVideoSuggestionsTagSuggestion()); 5680 o.add(buildVideoSuggestionsTagSuggestion());
5681 return o; 5681 return o;
5682 } 5682 }
5683 5683
5684 checkUnnamed568(core.List<api.VideoSuggestionsTagSuggestion> o) { 5684 checkUnnamed570(core.List<api.VideoSuggestionsTagSuggestion> o) {
5685 unittest.expect(o, unittest.hasLength(2)); 5685 unittest.expect(o, unittest.hasLength(2));
5686 checkVideoSuggestionsTagSuggestion(o[0]); 5686 checkVideoSuggestionsTagSuggestion(o[0]);
5687 checkVideoSuggestionsTagSuggestion(o[1]); 5687 checkVideoSuggestionsTagSuggestion(o[1]);
5688 } 5688 }
5689 5689
5690 core.int buildCounterVideoSuggestions = 0; 5690 core.int buildCounterVideoSuggestions = 0;
5691 buildVideoSuggestions() { 5691 buildVideoSuggestions() {
5692 var o = new api.VideoSuggestions(); 5692 var o = new api.VideoSuggestions();
5693 buildCounterVideoSuggestions++; 5693 buildCounterVideoSuggestions++;
5694 if (buildCounterVideoSuggestions < 3) { 5694 if (buildCounterVideoSuggestions < 3) {
5695 o.editorSuggestions = buildUnnamed564(); 5695 o.editorSuggestions = buildUnnamed566();
5696 o.processingErrors = buildUnnamed565(); 5696 o.processingErrors = buildUnnamed567();
5697 o.processingHints = buildUnnamed566(); 5697 o.processingHints = buildUnnamed568();
5698 o.processingWarnings = buildUnnamed567(); 5698 o.processingWarnings = buildUnnamed569();
5699 o.tagSuggestions = buildUnnamed568(); 5699 o.tagSuggestions = buildUnnamed570();
5700 } 5700 }
5701 buildCounterVideoSuggestions--; 5701 buildCounterVideoSuggestions--;
5702 return o; 5702 return o;
5703 } 5703 }
5704 5704
5705 checkVideoSuggestions(api.VideoSuggestions o) { 5705 checkVideoSuggestions(api.VideoSuggestions o) {
5706 buildCounterVideoSuggestions++; 5706 buildCounterVideoSuggestions++;
5707 if (buildCounterVideoSuggestions < 3) { 5707 if (buildCounterVideoSuggestions < 3) {
5708 checkUnnamed564(o.editorSuggestions); 5708 checkUnnamed566(o.editorSuggestions);
5709 checkUnnamed565(o.processingErrors); 5709 checkUnnamed567(o.processingErrors);
5710 checkUnnamed566(o.processingHints); 5710 checkUnnamed568(o.processingHints);
5711 checkUnnamed567(o.processingWarnings); 5711 checkUnnamed569(o.processingWarnings);
5712 checkUnnamed568(o.tagSuggestions); 5712 checkUnnamed570(o.tagSuggestions);
5713 } 5713 }
5714 buildCounterVideoSuggestions--; 5714 buildCounterVideoSuggestions--;
5715 } 5715 }
5716 5716
5717 buildUnnamed569() { 5717 buildUnnamed571() {
5718 var o = new core.List<core.String>(); 5718 var o = new core.List<core.String>();
5719 o.add("foo"); 5719 o.add("foo");
5720 o.add("foo"); 5720 o.add("foo");
5721 return o; 5721 return o;
5722 } 5722 }
5723 5723
5724 checkUnnamed569(core.List<core.String> o) { 5724 checkUnnamed571(core.List<core.String> o) {
5725 unittest.expect(o, unittest.hasLength(2)); 5725 unittest.expect(o, unittest.hasLength(2));
5726 unittest.expect(o[0], unittest.equals('foo')); 5726 unittest.expect(o[0], unittest.equals('foo'));
5727 unittest.expect(o[1], unittest.equals('foo')); 5727 unittest.expect(o[1], unittest.equals('foo'));
5728 } 5728 }
5729 5729
5730 core.int buildCounterVideoSuggestionsTagSuggestion = 0; 5730 core.int buildCounterVideoSuggestionsTagSuggestion = 0;
5731 buildVideoSuggestionsTagSuggestion() { 5731 buildVideoSuggestionsTagSuggestion() {
5732 var o = new api.VideoSuggestionsTagSuggestion(); 5732 var o = new api.VideoSuggestionsTagSuggestion();
5733 buildCounterVideoSuggestionsTagSuggestion++; 5733 buildCounterVideoSuggestionsTagSuggestion++;
5734 if (buildCounterVideoSuggestionsTagSuggestion < 3) { 5734 if (buildCounterVideoSuggestionsTagSuggestion < 3) {
5735 o.categoryRestricts = buildUnnamed569(); 5735 o.categoryRestricts = buildUnnamed571();
5736 o.tag = "foo"; 5736 o.tag = "foo";
5737 } 5737 }
5738 buildCounterVideoSuggestionsTagSuggestion--; 5738 buildCounterVideoSuggestionsTagSuggestion--;
5739 return o; 5739 return o;
5740 } 5740 }
5741 5741
5742 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { 5742 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) {
5743 buildCounterVideoSuggestionsTagSuggestion++; 5743 buildCounterVideoSuggestionsTagSuggestion++;
5744 if (buildCounterVideoSuggestionsTagSuggestion < 3) { 5744 if (buildCounterVideoSuggestionsTagSuggestion < 3) {
5745 checkUnnamed569(o.categoryRestricts); 5745 checkUnnamed571(o.categoryRestricts);
5746 unittest.expect(o.tag, unittest.equals('foo')); 5746 unittest.expect(o.tag, unittest.equals('foo'));
5747 } 5747 }
5748 buildCounterVideoSuggestionsTagSuggestion--; 5748 buildCounterVideoSuggestionsTagSuggestion--;
5749 } 5749 }
5750 5750
5751 buildUnnamed570() {
5752 var o = new core.List<core.String>();
5753 o.add("foo");
5754 o.add("foo");
5755 return o;
5756 }
5757
5758 checkUnnamed570(core.List<core.String> o) {
5759 unittest.expect(o, unittest.hasLength(2));
5760 unittest.expect(o[0], unittest.equals('foo'));
5761 unittest.expect(o[1], unittest.equals('foo'));
5762 }
5763
5764 buildUnnamed571() {
5765 var o = new core.List<core.String>();
5766 o.add("foo");
5767 o.add("foo");
5768 return o;
5769 }
5770
5771 checkUnnamed571(core.List<core.String> o) {
5772 unittest.expect(o, unittest.hasLength(2));
5773 unittest.expect(o[0], unittest.equals('foo'));
5774 unittest.expect(o[1], unittest.equals('foo'));
5775 }
5776
5777 buildUnnamed572() { 5751 buildUnnamed572() {
5778 var o = new core.List<core.String>(); 5752 var o = new core.List<core.String>();
5779 o.add("foo"); 5753 o.add("foo");
5780 o.add("foo"); 5754 o.add("foo");
5781 return o; 5755 return o;
5782 } 5756 }
5783 5757
5784 checkUnnamed572(core.List<core.String> o) { 5758 checkUnnamed572(core.List<core.String> o) {
5785 unittest.expect(o, unittest.hasLength(2)); 5759 unittest.expect(o, unittest.hasLength(2));
5786 unittest.expect(o[0], unittest.equals('foo')); 5760 unittest.expect(o[0], unittest.equals('foo'));
5787 unittest.expect(o[1], unittest.equals('foo')); 5761 unittest.expect(o[1], unittest.equals('foo'));
5762 }
5763
5764 buildUnnamed573() {
5765 var o = new core.List<core.String>();
5766 o.add("foo");
5767 o.add("foo");
5768 return o;
5769 }
5770
5771 checkUnnamed573(core.List<core.String> o) {
5772 unittest.expect(o, unittest.hasLength(2));
5773 unittest.expect(o[0], unittest.equals('foo'));
5774 unittest.expect(o[1], unittest.equals('foo'));
5775 }
5776
5777 buildUnnamed574() {
5778 var o = new core.List<core.String>();
5779 o.add("foo");
5780 o.add("foo");
5781 return o;
5782 }
5783
5784 checkUnnamed574(core.List<core.String> o) {
5785 unittest.expect(o, unittest.hasLength(2));
5786 unittest.expect(o[0], unittest.equals('foo'));
5787 unittest.expect(o[1], unittest.equals('foo'));
5788 } 5788 }
5789 5789
5790 core.int buildCounterVideoTopicDetails = 0; 5790 core.int buildCounterVideoTopicDetails = 0;
5791 buildVideoTopicDetails() { 5791 buildVideoTopicDetails() {
5792 var o = new api.VideoTopicDetails(); 5792 var o = new api.VideoTopicDetails();
5793 buildCounterVideoTopicDetails++; 5793 buildCounterVideoTopicDetails++;
5794 if (buildCounterVideoTopicDetails < 3) { 5794 if (buildCounterVideoTopicDetails < 3) {
5795 o.relevantTopicIds = buildUnnamed570(); 5795 o.relevantTopicIds = buildUnnamed572();
5796 o.topicCategories = buildUnnamed571(); 5796 o.topicCategories = buildUnnamed573();
5797 o.topicIds = buildUnnamed572(); 5797 o.topicIds = buildUnnamed574();
5798 } 5798 }
5799 buildCounterVideoTopicDetails--; 5799 buildCounterVideoTopicDetails--;
5800 return o; 5800 return o;
5801 } 5801 }
5802 5802
5803 checkVideoTopicDetails(api.VideoTopicDetails o) { 5803 checkVideoTopicDetails(api.VideoTopicDetails o) {
5804 buildCounterVideoTopicDetails++; 5804 buildCounterVideoTopicDetails++;
5805 if (buildCounterVideoTopicDetails < 3) { 5805 if (buildCounterVideoTopicDetails < 3) {
5806 checkUnnamed570(o.relevantTopicIds); 5806 checkUnnamed572(o.relevantTopicIds);
5807 checkUnnamed571(o.topicCategories); 5807 checkUnnamed573(o.topicCategories);
5808 checkUnnamed572(o.topicIds); 5808 checkUnnamed574(o.topicIds);
5809 } 5809 }
5810 buildCounterVideoTopicDetails--; 5810 buildCounterVideoTopicDetails--;
5811 } 5811 }
5812 5812
5813 core.int buildCounterWatchSettings = 0; 5813 core.int buildCounterWatchSettings = 0;
5814 buildWatchSettings() { 5814 buildWatchSettings() {
5815 var o = new api.WatchSettings(); 5815 var o = new api.WatchSettings();
5816 buildCounterWatchSettings++; 5816 buildCounterWatchSettings++;
5817 if (buildCounterWatchSettings < 3) { 5817 if (buildCounterWatchSettings < 3) {
5818 o.backgroundColor = "foo"; 5818 o.backgroundColor = "foo";
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
7437 }); 7437 });
7438 7438
7439 7439
7440 unittest.group("resource-ActivitiesResourceApi", () { 7440 unittest.group("resource-ActivitiesResourceApi", () {
7441 unittest.test("method--insert", () { 7441 unittest.test("method--insert", () {
7442 7442
7443 var mock = new HttpServerMock(); 7443 var mock = new HttpServerMock();
7444 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; 7444 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities;
7445 var arg_request = buildActivity(); 7445 var arg_request = buildActivity();
7446 var arg_part = "foo"; 7446 var arg_part = "foo";
7447 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7447 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7448 var obj = new api.Activity.fromJson(json); 7448 var obj = new api.Activity.fromJson(json);
7449 checkActivity(obj); 7449 checkActivity(obj);
7450 7450
7451 var path = (req.url).path; 7451 var path = (req.url).path;
7452 var pathOffset = 0; 7452 var pathOffset = 0;
7453 var index; 7453 var index;
7454 var subPart; 7454 var subPart;
7455 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7455 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7456 pathOffset += 1; 7456 pathOffset += 1;
7457 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7457 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
7477 } 7477 }
7478 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 7478 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
7479 7479
7480 7480
7481 var h = { 7481 var h = {
7482 "content-type" : "application/json; charset=utf-8", 7482 "content-type" : "application/json; charset=utf-8",
7483 }; 7483 };
7484 var resp = convert.JSON.encode(buildActivity()); 7484 var resp = convert.JSON.encode(buildActivity());
7485 return new async.Future.value(stringResponse(200, h, resp)); 7485 return new async.Future.value(stringResponse(200, h, resp));
7486 }), true); 7486 }), true);
7487 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Activity response) { 7487 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Activit y response) {
7488 checkActivity(response); 7488 checkActivity(response);
7489 }))); 7489 })));
7490 }); 7490 });
7491 7491
7492 unittest.test("method--list", () { 7492 unittest.test("method--list", () {
7493 7493
7494 var mock = new HttpServerMock(); 7494 var mock = new HttpServerMock();
7495 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; 7495 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities;
7496 var arg_part = "foo"; 7496 var arg_part = "foo";
7497 var arg_channelId = "foo"; 7497 var arg_channelId = "foo";
7498 var arg_home = true; 7498 var arg_home = true;
7499 var arg_maxResults = 42; 7499 var arg_maxResults = 42;
7500 var arg_mine = true; 7500 var arg_mine = true;
7501 var arg_pageToken = "foo"; 7501 var arg_pageToken = "foo";
7502 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); 7502 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02");
7503 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); 7503 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02");
7504 var arg_regionCode = "foo"; 7504 var arg_regionCode = "foo";
7505 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7505 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7506 var path = (req.url).path; 7506 var path = (req.url).path;
7507 var pathOffset = 0; 7507 var pathOffset = 0;
7508 var index; 7508 var index;
7509 var subPart; 7509 var subPart;
7510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7511 pathOffset += 1; 7511 pathOffset += 1;
7512 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7512 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
7513 pathOffset += 11; 7513 pathOffset += 11;
7514 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("activities")); 7514 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("activities"));
7515 pathOffset += 10; 7515 pathOffset += 10;
(...skipping 24 matching lines...) Expand all
7540 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first), unittest.equals(arg_publishedBefore)); 7540 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first), unittest.equals(arg_publishedBefore));
7541 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code)); 7541 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code));
7542 7542
7543 7543
7544 var h = { 7544 var h = {
7545 "content-type" : "application/json; charset=utf-8", 7545 "content-type" : "application/json; charset=utf-8",
7546 }; 7546 };
7547 var resp = convert.JSON.encode(buildActivityListResponse()); 7547 var resp = convert.JSON.encode(buildActivityListResponse());
7548 return new async.Future.value(stringResponse(200, h, resp)); 7548 return new async.Future.value(stringResponse(200, h, resp));
7549 }), true); 7549 }), true);
7550 res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: a rg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_pub lishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).t hen(unittest.expectAsync(((api.ActivityListResponse response) { 7550 res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: a rg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_pub lishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).t hen(unittest.expectAsync1(((api.ActivityListResponse response) {
7551 checkActivityListResponse(response); 7551 checkActivityListResponse(response);
7552 }))); 7552 })));
7553 }); 7553 });
7554 7554
7555 }); 7555 });
7556 7556
7557 7557
7558 unittest.group("resource-CaptionsResourceApi", () { 7558 unittest.group("resource-CaptionsResourceApi", () {
7559 unittest.test("method--delete", () { 7559 unittest.test("method--delete", () {
7560 7560
7561 var mock = new HttpServerMock(); 7561 var mock = new HttpServerMock();
7562 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; 7562 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions;
7563 var arg_id = "foo"; 7563 var arg_id = "foo";
7564 var arg_onBehalfOf = "foo"; 7564 var arg_onBehalfOf = "foo";
7565 var arg_onBehalfOfContentOwner = "foo"; 7565 var arg_onBehalfOfContentOwner = "foo";
7566 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7566 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7567 var path = (req.url).path; 7567 var path = (req.url).path;
7568 var pathOffset = 0; 7568 var pathOffset = 0;
7569 var index; 7569 var index;
7570 var subPart; 7570 var subPart;
7571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7572 pathOffset += 1; 7572 pathOffset += 1;
7573 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7573 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
7574 pathOffset += 11; 7574 pathOffset += 11;
7575 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("captions")); 7575 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("captions"));
7576 pathOffset += 8; 7576 pathOffset += 8;
(...skipping 18 matching lines...) Expand all
7595 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha lfOf)); 7595 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha lfOf));
7596 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7596 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7597 7597
7598 7598
7599 var h = { 7599 var h = {
7600 "content-type" : "application/json; charset=utf-8", 7600 "content-type" : "application/json; charset=utf-8",
7601 }; 7601 };
7602 var resp = ""; 7602 var resp = "";
7603 return new async.Future.value(stringResponse(200, h, resp)); 7603 return new async.Future.value(stringResponse(200, h, resp));
7604 }), true); 7604 }), true);
7605 res.delete(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg _onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); 7605 res.delete(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg _onBehalfOfContentOwner).then(unittest.expectAsync1((_) {}));
7606 }); 7606 });
7607 7607
7608 unittest.test("method--download", () { 7608 unittest.test("method--download", () {
7609 // TODO: Implement tests for media upload; 7609 // TODO: Implement tests for media upload;
7610 // TODO: Implement tests for media download; 7610 // TODO: Implement tests for media download;
7611 7611
7612 var mock = new HttpServerMock(); 7612 var mock = new HttpServerMock();
7613 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; 7613 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions;
7614 var arg_id = "foo"; 7614 var arg_id = "foo";
7615 var arg_onBehalfOf = "foo"; 7615 var arg_onBehalfOf = "foo";
7616 var arg_onBehalfOfContentOwner = "foo"; 7616 var arg_onBehalfOfContentOwner = "foo";
7617 var arg_tfmt = "foo"; 7617 var arg_tfmt = "foo";
7618 var arg_tlang = "foo"; 7618 var arg_tlang = "foo";
7619 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7619 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7620 var path = (req.url).path; 7620 var path = (req.url).path;
7621 var pathOffset = 0; 7621 var pathOffset = 0;
7622 var index; 7622 var index;
7623 var subPart; 7623 var subPart;
7624 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7624 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7625 pathOffset += 1; 7625 pathOffset += 1;
7626 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7626 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
7627 pathOffset += 11; 7627 pathOffset += 11;
7628 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("captions/")); 7628 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("captions/"));
7629 pathOffset += 9; 7629 pathOffset += 9;
(...skipping 22 matching lines...) Expand all
7652 unittest.expect(queryMap["tfmt"].first, unittest.equals(arg_tfmt)); 7652 unittest.expect(queryMap["tfmt"].first, unittest.equals(arg_tfmt));
7653 unittest.expect(queryMap["tlang"].first, unittest.equals(arg_tlang)); 7653 unittest.expect(queryMap["tlang"].first, unittest.equals(arg_tlang));
7654 7654
7655 7655
7656 var h = { 7656 var h = {
7657 "content-type" : "application/json; charset=utf-8", 7657 "content-type" : "application/json; charset=utf-8",
7658 }; 7658 };
7659 var resp = ""; 7659 var resp = "";
7660 return new async.Future.value(stringResponse(200, h, resp)); 7660 return new async.Future.value(stringResponse(200, h, resp));
7661 }), true); 7661 }), true);
7662 res.download(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: a rg_onBehalfOfContentOwner, tfmt: arg_tfmt, tlang: arg_tlang).then(unittest.expec tAsync((_) {})); 7662 res.download(arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: a rg_onBehalfOfContentOwner, tfmt: arg_tfmt, tlang: arg_tlang).then(unittest.expec tAsync1((_) {}));
7663 }); 7663 });
7664 7664
7665 unittest.test("method--insert", () { 7665 unittest.test("method--insert", () {
7666 // TODO: Implement tests for media upload; 7666 // TODO: Implement tests for media upload;
7667 // TODO: Implement tests for media download; 7667 // TODO: Implement tests for media download;
7668 7668
7669 var mock = new HttpServerMock(); 7669 var mock = new HttpServerMock();
7670 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; 7670 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions;
7671 var arg_request = buildCaption(); 7671 var arg_request = buildCaption();
7672 var arg_part = "foo"; 7672 var arg_part = "foo";
7673 var arg_onBehalfOf = "foo"; 7673 var arg_onBehalfOf = "foo";
7674 var arg_onBehalfOfContentOwner = "foo"; 7674 var arg_onBehalfOfContentOwner = "foo";
7675 var arg_sync = true; 7675 var arg_sync = true;
7676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7676 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7677 var obj = new api.Caption.fromJson(json); 7677 var obj = new api.Caption.fromJson(json);
7678 checkCaption(obj); 7678 checkCaption(obj);
7679 7679
7680 var path = (req.url).path; 7680 var path = (req.url).path;
7681 var pathOffset = 0; 7681 var pathOffset = 0;
7682 var index; 7682 var index;
7683 var subPart; 7683 var subPart;
7684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7685 pathOffset += 1; 7685 pathOffset += 1;
7686 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7686 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 22 matching lines...) Expand all
7709 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7709 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7710 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); 7710 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync"));
7711 7711
7712 7712
7713 var h = { 7713 var h = {
7714 "content-type" : "application/json; charset=utf-8", 7714 "content-type" : "application/json; charset=utf-8",
7715 }; 7715 };
7716 var resp = convert.JSON.encode(buildCaption()); 7716 var resp = convert.JSON.encode(buildCaption());
7717 return new async.Future.value(stringResponse(200, h, resp)); 7717 return new async.Future.value(stringResponse(200, h, resp));
7718 }), true); 7718 }), true);
7719 res.insert(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfCo ntentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsyn c(((api.Caption response) { 7719 res.insert(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfCo ntentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsyn c1(((api.Caption response) {
7720 checkCaption(response); 7720 checkCaption(response);
7721 }))); 7721 })));
7722 }); 7722 });
7723 7723
7724 unittest.test("method--list", () { 7724 unittest.test("method--list", () {
7725 7725
7726 var mock = new HttpServerMock(); 7726 var mock = new HttpServerMock();
7727 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; 7727 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions;
7728 var arg_part = "foo"; 7728 var arg_part = "foo";
7729 var arg_videoId = "foo"; 7729 var arg_videoId = "foo";
7730 var arg_id = "foo"; 7730 var arg_id = "foo";
7731 var arg_onBehalfOf = "foo"; 7731 var arg_onBehalfOf = "foo";
7732 var arg_onBehalfOfContentOwner = "foo"; 7732 var arg_onBehalfOfContentOwner = "foo";
7733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7733 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7734 var path = (req.url).path; 7734 var path = (req.url).path;
7735 var pathOffset = 0; 7735 var pathOffset = 0;
7736 var index; 7736 var index;
7737 var subPart; 7737 var subPart;
7738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7739 pathOffset += 1; 7739 pathOffset += 1;
7740 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7740 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
7741 pathOffset += 11; 7741 pathOffset += 11;
7742 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("captions")); 7742 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("captions"));
7743 pathOffset += 8; 7743 pathOffset += 8;
(...skipping 20 matching lines...) Expand all
7764 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha lfOf)); 7764 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha lfOf));
7765 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7765 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7766 7766
7767 7767
7768 var h = { 7768 var h = {
7769 "content-type" : "application/json; charset=utf-8", 7769 "content-type" : "application/json; charset=utf-8",
7770 }; 7770 };
7771 var resp = convert.JSON.encode(buildCaptionListResponse()); 7771 var resp = convert.JSON.encode(buildCaptionListResponse());
7772 return new async.Future.value(stringResponse(200, h, resp)); 7772 return new async.Future.value(stringResponse(200, h, resp));
7773 }), true); 7773 }), true);
7774 res.list(arg_part, arg_videoId, id: arg_id, onBehalfOf: arg_onBehalfOf, on BehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((ap i.CaptionListResponse response) { 7774 res.list(arg_part, arg_videoId, id: arg_id, onBehalfOf: arg_onBehalfOf, on BehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((a pi.CaptionListResponse response) {
7775 checkCaptionListResponse(response); 7775 checkCaptionListResponse(response);
7776 }))); 7776 })));
7777 }); 7777 });
7778 7778
7779 unittest.test("method--update", () { 7779 unittest.test("method--update", () {
7780 // TODO: Implement tests for media upload; 7780 // TODO: Implement tests for media upload;
7781 // TODO: Implement tests for media download; 7781 // TODO: Implement tests for media download;
7782 7782
7783 var mock = new HttpServerMock(); 7783 var mock = new HttpServerMock();
7784 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; 7784 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions;
7785 var arg_request = buildCaption(); 7785 var arg_request = buildCaption();
7786 var arg_part = "foo"; 7786 var arg_part = "foo";
7787 var arg_onBehalfOf = "foo"; 7787 var arg_onBehalfOf = "foo";
7788 var arg_onBehalfOfContentOwner = "foo"; 7788 var arg_onBehalfOfContentOwner = "foo";
7789 var arg_sync = true; 7789 var arg_sync = true;
7790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7790 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7791 var obj = new api.Caption.fromJson(json); 7791 var obj = new api.Caption.fromJson(json);
7792 checkCaption(obj); 7792 checkCaption(obj);
7793 7793
7794 var path = (req.url).path; 7794 var path = (req.url).path;
7795 var pathOffset = 0; 7795 var pathOffset = 0;
7796 var index; 7796 var index;
7797 var subPart; 7797 var subPart;
7798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7799 pathOffset += 1; 7799 pathOffset += 1;
7800 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7800 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 22 matching lines...) Expand all
7823 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7823 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7824 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); 7824 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync"));
7825 7825
7826 7826
7827 var h = { 7827 var h = {
7828 "content-type" : "application/json; charset=utf-8", 7828 "content-type" : "application/json; charset=utf-8",
7829 }; 7829 };
7830 var resp = convert.JSON.encode(buildCaption()); 7830 var resp = convert.JSON.encode(buildCaption());
7831 return new async.Future.value(stringResponse(200, h, resp)); 7831 return new async.Future.value(stringResponse(200, h, resp));
7832 }), true); 7832 }), true);
7833 res.update(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfCo ntentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsyn c(((api.Caption response) { 7833 res.update(arg_request, arg_part, onBehalfOf: arg_onBehalfOf, onBehalfOfCo ntentOwner: arg_onBehalfOfContentOwner, sync: arg_sync).then(unittest.expectAsyn c1(((api.Caption response) {
7834 checkCaption(response); 7834 checkCaption(response);
7835 }))); 7835 })));
7836 }); 7836 });
7837 7837
7838 }); 7838 });
7839 7839
7840 7840
7841 unittest.group("resource-ChannelBannersResourceApi", () { 7841 unittest.group("resource-ChannelBannersResourceApi", () {
7842 unittest.test("method--insert", () { 7842 unittest.test("method--insert", () {
7843 // TODO: Implement tests for media upload; 7843 // TODO: Implement tests for media upload;
7844 // TODO: Implement tests for media download; 7844 // TODO: Implement tests for media download;
7845 7845
7846 var mock = new HttpServerMock(); 7846 var mock = new HttpServerMock();
7847 api.ChannelBannersResourceApi res = new api.YoutubeApi(mock).channelBanner s; 7847 api.ChannelBannersResourceApi res = new api.YoutubeApi(mock).channelBanner s;
7848 var arg_request = buildChannelBannerResource(); 7848 var arg_request = buildChannelBannerResource();
7849 var arg_onBehalfOfContentOwner = "foo"; 7849 var arg_onBehalfOfContentOwner = "foo";
7850 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7850 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7851 var obj = new api.ChannelBannerResource.fromJson(json); 7851 var obj = new api.ChannelBannerResource.fromJson(json);
7852 checkChannelBannerResource(obj); 7852 checkChannelBannerResource(obj);
7853 7853
7854 var path = (req.url).path; 7854 var path = (req.url).path;
7855 var pathOffset = 0; 7855 var pathOffset = 0;
7856 var index; 7856 var index;
7857 var subPart; 7857 var subPart;
7858 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7858 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7859 pathOffset += 1; 7859 pathOffset += 1;
7860 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7860 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
7880 } 7880 }
7881 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7881 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7882 7882
7883 7883
7884 var h = { 7884 var h = {
7885 "content-type" : "application/json; charset=utf-8", 7885 "content-type" : "application/json; charset=utf-8",
7886 }; 7886 };
7887 var resp = convert.JSON.encode(buildChannelBannerResource()); 7887 var resp = convert.JSON.encode(buildChannelBannerResource());
7888 return new async.Future.value(stringResponse(200, h, resp)); 7888 return new async.Future.value(stringResponse(200, h, resp));
7889 }), true); 7889 }), true);
7890 res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner ).then(unittest.expectAsync(((api.ChannelBannerResource response) { 7890 res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner ).then(unittest.expectAsync1(((api.ChannelBannerResource response) {
7891 checkChannelBannerResource(response); 7891 checkChannelBannerResource(response);
7892 }))); 7892 })));
7893 }); 7893 });
7894 7894
7895 }); 7895 });
7896 7896
7897 7897
7898 unittest.group("resource-ChannelSectionsResourceApi", () { 7898 unittest.group("resource-ChannelSectionsResourceApi", () {
7899 unittest.test("method--delete", () { 7899 unittest.test("method--delete", () {
7900 7900
7901 var mock = new HttpServerMock(); 7901 var mock = new HttpServerMock();
7902 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons; 7902 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons;
7903 var arg_id = "foo"; 7903 var arg_id = "foo";
7904 var arg_onBehalfOfContentOwner = "foo"; 7904 var arg_onBehalfOfContentOwner = "foo";
7905 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7905 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7906 var path = (req.url).path; 7906 var path = (req.url).path;
7907 var pathOffset = 0; 7907 var pathOffset = 0;
7908 var index; 7908 var index;
7909 var subPart; 7909 var subPart;
7910 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7910 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7911 pathOffset += 1; 7911 pathOffset += 1;
7912 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7912 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
7913 pathOffset += 11; 7913 pathOffset += 11;
7914 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("channelSections")); 7914 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("channelSections"));
7915 pathOffset += 15; 7915 pathOffset += 15;
(...skipping 17 matching lines...) Expand all
7933 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 7933 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
7934 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7934 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7935 7935
7936 7936
7937 var h = { 7937 var h = {
7938 "content-type" : "application/json; charset=utf-8", 7938 "content-type" : "application/json; charset=utf-8",
7939 }; 7939 };
7940 var resp = ""; 7940 var resp = "";
7941 return new async.Future.value(stringResponse(200, h, resp)); 7941 return new async.Future.value(stringResponse(200, h, resp));
7942 }), true); 7942 }), true);
7943 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync((_) {})); 7943 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync1((_) {}));
7944 }); 7944 });
7945 7945
7946 unittest.test("method--insert", () { 7946 unittest.test("method--insert", () {
7947 7947
7948 var mock = new HttpServerMock(); 7948 var mock = new HttpServerMock();
7949 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons; 7949 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons;
7950 var arg_request = buildChannelSection(); 7950 var arg_request = buildChannelSection();
7951 var arg_part = "foo"; 7951 var arg_part = "foo";
7952 var arg_onBehalfOfContentOwner = "foo"; 7952 var arg_onBehalfOfContentOwner = "foo";
7953 var arg_onBehalfOfContentOwnerChannel = "foo"; 7953 var arg_onBehalfOfContentOwnerChannel = "foo";
7954 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7954 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
7955 var obj = new api.ChannelSection.fromJson(json); 7955 var obj = new api.ChannelSection.fromJson(json);
7956 checkChannelSection(obj); 7956 checkChannelSection(obj);
7957 7957
7958 var path = (req.url).path; 7958 var path = (req.url).path;
7959 var pathOffset = 0; 7959 var pathOffset = 0;
7960 var index; 7960 var index;
7961 var subPart; 7961 var subPart;
7962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
7963 pathOffset += 1; 7963 pathOffset += 1;
7964 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 7964 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
7986 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 7986 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
7987 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 7987 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
7988 7988
7989 7989
7990 var h = { 7990 var h = {
7991 "content-type" : "application/json; charset=utf-8", 7991 "content-type" : "application/json; charset=utf-8",
7992 }; 7992 };
7993 var resp = convert.JSON.encode(buildChannelSection()); 7993 var resp = convert.JSON.encode(buildChannelSection());
7994 return new async.Future.value(stringResponse(200, h, resp)); 7994 return new async.Future.value(stringResponse(200, h, resp));
7995 }), true); 7995 }), true);
7996 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.ChannelSection response) { 7996 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.ChannelSection response) {
7997 checkChannelSection(response); 7997 checkChannelSection(response);
7998 }))); 7998 })));
7999 }); 7999 });
8000 8000
8001 unittest.test("method--list", () { 8001 unittest.test("method--list", () {
8002 8002
8003 var mock = new HttpServerMock(); 8003 var mock = new HttpServerMock();
8004 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons; 8004 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons;
8005 var arg_part = "foo"; 8005 var arg_part = "foo";
8006 var arg_channelId = "foo"; 8006 var arg_channelId = "foo";
8007 var arg_hl = "foo"; 8007 var arg_hl = "foo";
8008 var arg_id = "foo"; 8008 var arg_id = "foo";
8009 var arg_mine = true; 8009 var arg_mine = true;
8010 var arg_onBehalfOfContentOwner = "foo"; 8010 var arg_onBehalfOfContentOwner = "foo";
8011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8011 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8012 var path = (req.url).path; 8012 var path = (req.url).path;
8013 var pathOffset = 0; 8013 var pathOffset = 0;
8014 var index; 8014 var index;
8015 var subPart; 8015 var subPart;
8016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8017 pathOffset += 1; 8017 pathOffset += 1;
8018 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8018 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8019 pathOffset += 11; 8019 pathOffset += 11;
8020 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("channelSections")); 8020 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("channelSections"));
8021 pathOffset += 15; 8021 pathOffset += 15;
(...skipping 21 matching lines...) Expand all
8043 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); 8043 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine"));
8044 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 8044 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
8045 8045
8046 8046
8047 var h = { 8047 var h = {
8048 "content-type" : "application/json; charset=utf-8", 8048 "content-type" : "application/json; charset=utf-8",
8049 }; 8049 };
8050 var resp = convert.JSON.encode(buildChannelSectionListResponse()); 8050 var resp = convert.JSON.encode(buildChannelSectionListResponse());
8051 return new async.Future.value(stringResponse(200, h, resp)); 8051 return new async.Future.value(stringResponse(200, h, resp));
8052 }), true); 8052 }), true);
8053 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.exp ectAsync(((api.ChannelSectionListResponse response) { 8053 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.exp ectAsync1(((api.ChannelSectionListResponse response) {
8054 checkChannelSectionListResponse(response); 8054 checkChannelSectionListResponse(response);
8055 }))); 8055 })));
8056 }); 8056 });
8057 8057
8058 unittest.test("method--update", () { 8058 unittest.test("method--update", () {
8059 8059
8060 var mock = new HttpServerMock(); 8060 var mock = new HttpServerMock();
8061 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons; 8061 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti ons;
8062 var arg_request = buildChannelSection(); 8062 var arg_request = buildChannelSection();
8063 var arg_part = "foo"; 8063 var arg_part = "foo";
8064 var arg_onBehalfOfContentOwner = "foo"; 8064 var arg_onBehalfOfContentOwner = "foo";
8065 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8065 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8066 var obj = new api.ChannelSection.fromJson(json); 8066 var obj = new api.ChannelSection.fromJson(json);
8067 checkChannelSection(obj); 8067 checkChannelSection(obj);
8068 8068
8069 var path = (req.url).path; 8069 var path = (req.url).path;
8070 var pathOffset = 0; 8070 var pathOffset = 0;
8071 var index; 8071 var index;
8072 var subPart; 8072 var subPart;
8073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8074 pathOffset += 1; 8074 pathOffset += 1;
8075 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8075 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
8096 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8096 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8097 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 8097 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
8098 8098
8099 8099
8100 var h = { 8100 var h = {
8101 "content-type" : "application/json; charset=utf-8", 8101 "content-type" : "application/json; charset=utf-8",
8102 }; 8102 };
8103 var resp = convert.JSON.encode(buildChannelSection()); 8103 var resp = convert.JSON.encode(buildChannelSection());
8104 return new async.Future.value(stringResponse(200, h, resp)); 8104 return new async.Future.value(stringResponse(200, h, resp));
8105 }), true); 8105 }), true);
8106 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.ChannelSection response) { 8106 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.ChannelSection response) {
8107 checkChannelSection(response); 8107 checkChannelSection(response);
8108 }))); 8108 })));
8109 }); 8109 });
8110 8110
8111 }); 8111 });
8112 8112
8113 8113
8114 unittest.group("resource-ChannelsResourceApi", () { 8114 unittest.group("resource-ChannelsResourceApi", () {
8115 unittest.test("method--list", () { 8115 unittest.test("method--list", () {
8116 8116
8117 var mock = new HttpServerMock(); 8117 var mock = new HttpServerMock();
8118 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; 8118 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels;
8119 var arg_part = "foo"; 8119 var arg_part = "foo";
8120 var arg_categoryId = "foo"; 8120 var arg_categoryId = "foo";
8121 var arg_forUsername = "foo"; 8121 var arg_forUsername = "foo";
8122 var arg_hl = "foo"; 8122 var arg_hl = "foo";
8123 var arg_id = "foo"; 8123 var arg_id = "foo";
8124 var arg_managedByMe = true; 8124 var arg_managedByMe = true;
8125 var arg_maxResults = 42; 8125 var arg_maxResults = 42;
8126 var arg_mine = true; 8126 var arg_mine = true;
8127 var arg_mySubscribers = true; 8127 var arg_mySubscribers = true;
8128 var arg_onBehalfOfContentOwner = "foo"; 8128 var arg_onBehalfOfContentOwner = "foo";
8129 var arg_pageToken = "foo"; 8129 var arg_pageToken = "foo";
8130 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8130 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8131 var path = (req.url).path; 8131 var path = (req.url).path;
8132 var pathOffset = 0; 8132 var pathOffset = 0;
8133 var index; 8133 var index;
8134 var subPart; 8134 var subPart;
8135 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8135 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8136 pathOffset += 1; 8136 pathOffset += 1;
8137 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8137 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8138 pathOffset += 11; 8138 pathOffset += 11;
8139 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("channels")); 8139 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("channels"));
8140 pathOffset += 8; 8140 pathOffset += 8;
(...skipping 26 matching lines...) Expand all
8167 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 8167 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
8168 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 8168 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
8169 8169
8170 8170
8171 var h = { 8171 var h = {
8172 "content-type" : "application/json; charset=utf-8", 8172 "content-type" : "application/json; charset=utf-8",
8173 }; 8173 };
8174 var resp = convert.JSON.encode(buildChannelListResponse()); 8174 var resp = convert.JSON.encode(buildChannelListResponse());
8175 return new async.Future.value(stringResponse(200, h, resp)); 8175 return new async.Future.value(stringResponse(200, h, resp));
8176 }), true); 8176 }), true);
8177 res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsernam e, hl: arg_hl, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResu lts, mine: arg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: a rg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync(( (api.ChannelListResponse response) { 8177 res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsernam e, hl: arg_hl, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResu lts, mine: arg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: a rg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync1( ((api.ChannelListResponse response) {
8178 checkChannelListResponse(response); 8178 checkChannelListResponse(response);
8179 }))); 8179 })));
8180 }); 8180 });
8181 8181
8182 unittest.test("method--update", () { 8182 unittest.test("method--update", () {
8183 8183
8184 var mock = new HttpServerMock(); 8184 var mock = new HttpServerMock();
8185 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; 8185 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels;
8186 var arg_request = buildChannel(); 8186 var arg_request = buildChannel();
8187 var arg_part = "foo"; 8187 var arg_part = "foo";
8188 var arg_onBehalfOfContentOwner = "foo"; 8188 var arg_onBehalfOfContentOwner = "foo";
8189 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8189 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8190 var obj = new api.Channel.fromJson(json); 8190 var obj = new api.Channel.fromJson(json);
8191 checkChannel(obj); 8191 checkChannel(obj);
8192 8192
8193 var path = (req.url).path; 8193 var path = (req.url).path;
8194 var pathOffset = 0; 8194 var pathOffset = 0;
8195 var index; 8195 var index;
8196 var subPart; 8196 var subPart;
8197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8198 pathOffset += 1; 8198 pathOffset += 1;
8199 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8199 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
8220 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8220 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8221 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 8221 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
8222 8222
8223 8223
8224 var h = { 8224 var h = {
8225 "content-type" : "application/json; charset=utf-8", 8225 "content-type" : "application/json; charset=utf-8",
8226 }; 8226 };
8227 var resp = convert.JSON.encode(buildChannel()); 8227 var resp = convert.JSON.encode(buildChannel());
8228 return new async.Future.value(stringResponse(200, h, resp)); 8228 return new async.Future.value(stringResponse(200, h, resp));
8229 }), true); 8229 }), true);
8230 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.Channel response) { 8230 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.Channel response) {
8231 checkChannel(response); 8231 checkChannel(response);
8232 }))); 8232 })));
8233 }); 8233 });
8234 8234
8235 }); 8235 });
8236 8236
8237 8237
8238 unittest.group("resource-CommentThreadsResourceApi", () { 8238 unittest.group("resource-CommentThreadsResourceApi", () {
8239 unittest.test("method--insert", () { 8239 unittest.test("method--insert", () {
8240 8240
8241 var mock = new HttpServerMock(); 8241 var mock = new HttpServerMock();
8242 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s; 8242 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s;
8243 var arg_request = buildCommentThread(); 8243 var arg_request = buildCommentThread();
8244 var arg_part = "foo"; 8244 var arg_part = "foo";
8245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8245 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8246 var obj = new api.CommentThread.fromJson(json); 8246 var obj = new api.CommentThread.fromJson(json);
8247 checkCommentThread(obj); 8247 checkCommentThread(obj);
8248 8248
8249 var path = (req.url).path; 8249 var path = (req.url).path;
8250 var pathOffset = 0; 8250 var pathOffset = 0;
8251 var index; 8251 var index;
8252 var subPart; 8252 var subPart;
8253 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8253 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8254 pathOffset += 1; 8254 pathOffset += 1;
8255 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8255 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
8275 } 8275 }
8276 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8276 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8277 8277
8278 8278
8279 var h = { 8279 var h = {
8280 "content-type" : "application/json; charset=utf-8", 8280 "content-type" : "application/json; charset=utf-8",
8281 }; 8281 };
8282 var resp = convert.JSON.encode(buildCommentThread()); 8282 var resp = convert.JSON.encode(buildCommentThread());
8283 return new async.Future.value(stringResponse(200, h, resp)); 8283 return new async.Future.value(stringResponse(200, h, resp));
8284 }), true); 8284 }), true);
8285 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.CommentT hread response) { 8285 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment Thread response) {
8286 checkCommentThread(response); 8286 checkCommentThread(response);
8287 }))); 8287 })));
8288 }); 8288 });
8289 8289
8290 unittest.test("method--list", () { 8290 unittest.test("method--list", () {
8291 8291
8292 var mock = new HttpServerMock(); 8292 var mock = new HttpServerMock();
8293 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s; 8293 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s;
8294 var arg_part = "foo"; 8294 var arg_part = "foo";
8295 var arg_allThreadsRelatedToChannelId = "foo"; 8295 var arg_allThreadsRelatedToChannelId = "foo";
8296 var arg_channelId = "foo"; 8296 var arg_channelId = "foo";
8297 var arg_id = "foo"; 8297 var arg_id = "foo";
8298 var arg_maxResults = 42; 8298 var arg_maxResults = 42;
8299 var arg_moderationStatus = "foo"; 8299 var arg_moderationStatus = "foo";
8300 var arg_order = "foo"; 8300 var arg_order = "foo";
8301 var arg_pageToken = "foo"; 8301 var arg_pageToken = "foo";
8302 var arg_searchTerms = "foo"; 8302 var arg_searchTerms = "foo";
8303 var arg_textFormat = "foo"; 8303 var arg_textFormat = "foo";
8304 var arg_videoId = "foo"; 8304 var arg_videoId = "foo";
8305 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8305 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8306 var path = (req.url).path; 8306 var path = (req.url).path;
8307 var pathOffset = 0; 8307 var pathOffset = 0;
8308 var index; 8308 var index;
8309 var subPart; 8309 var subPart;
8310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8311 pathOffset += 1; 8311 pathOffset += 1;
8312 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8312 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8313 pathOffset += 11; 8313 pathOffset += 11;
8314 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("commentThreads")); 8314 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("commentThreads"));
8315 pathOffset += 14; 8315 pathOffset += 14;
(...skipping 26 matching lines...) Expand all
8342 unittest.expect(queryMap["textFormat"].first, unittest.equals(arg_textFo rmat)); 8342 unittest.expect(queryMap["textFormat"].first, unittest.equals(arg_textFo rmat));
8343 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ; 8343 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ;
8344 8344
8345 8345
8346 var h = { 8346 var h = {
8347 "content-type" : "application/json; charset=utf-8", 8347 "content-type" : "application/json; charset=utf-8",
8348 }; 8348 };
8349 var resp = convert.JSON.encode(buildCommentThreadListResponse()); 8349 var resp = convert.JSON.encode(buildCommentThreadListResponse());
8350 return new async.Future.value(stringResponse(200, h, resp)); 8350 return new async.Future.value(stringResponse(200, h, resp));
8351 }), true); 8351 }), true);
8352 res.list(arg_part, allThreadsRelatedToChannelId: arg_allThreadsRelatedToCh annelId, channelId: arg_channelId, id: arg_id, maxResults: arg_maxResults, moder ationStatus: arg_moderationStatus, order: arg_order, pageToken: arg_pageToken, s earchTerms: arg_searchTerms, textFormat: arg_textFormat, videoId: arg_videoId).t hen(unittest.expectAsync(((api.CommentThreadListResponse response) { 8352 res.list(arg_part, allThreadsRelatedToChannelId: arg_allThreadsRelatedToCh annelId, channelId: arg_channelId, id: arg_id, maxResults: arg_maxResults, moder ationStatus: arg_moderationStatus, order: arg_order, pageToken: arg_pageToken, s earchTerms: arg_searchTerms, textFormat: arg_textFormat, videoId: arg_videoId).t hen(unittest.expectAsync1(((api.CommentThreadListResponse response) {
8353 checkCommentThreadListResponse(response); 8353 checkCommentThreadListResponse(response);
8354 }))); 8354 })));
8355 }); 8355 });
8356 8356
8357 unittest.test("method--update", () { 8357 unittest.test("method--update", () {
8358 8358
8359 var mock = new HttpServerMock(); 8359 var mock = new HttpServerMock();
8360 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s; 8360 api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThread s;
8361 var arg_request = buildCommentThread(); 8361 var arg_request = buildCommentThread();
8362 var arg_part = "foo"; 8362 var arg_part = "foo";
8363 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8363 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8364 var obj = new api.CommentThread.fromJson(json); 8364 var obj = new api.CommentThread.fromJson(json);
8365 checkCommentThread(obj); 8365 checkCommentThread(obj);
8366 8366
8367 var path = (req.url).path; 8367 var path = (req.url).path;
8368 var pathOffset = 0; 8368 var pathOffset = 0;
8369 var index; 8369 var index;
8370 var subPart; 8370 var subPart;
8371 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8371 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8372 pathOffset += 1; 8372 pathOffset += 1;
8373 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8373 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
8393 } 8393 }
8394 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8394 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8395 8395
8396 8396
8397 var h = { 8397 var h = {
8398 "content-type" : "application/json; charset=utf-8", 8398 "content-type" : "application/json; charset=utf-8",
8399 }; 8399 };
8400 var resp = convert.JSON.encode(buildCommentThread()); 8400 var resp = convert.JSON.encode(buildCommentThread());
8401 return new async.Future.value(stringResponse(200, h, resp)); 8401 return new async.Future.value(stringResponse(200, h, resp));
8402 }), true); 8402 }), true);
8403 res.update(arg_request, arg_part).then(unittest.expectAsync(((api.CommentT hread response) { 8403 res.update(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment Thread response) {
8404 checkCommentThread(response); 8404 checkCommentThread(response);
8405 }))); 8405 })));
8406 }); 8406 });
8407 8407
8408 }); 8408 });
8409 8409
8410 8410
8411 unittest.group("resource-CommentsResourceApi", () { 8411 unittest.group("resource-CommentsResourceApi", () {
8412 unittest.test("method--delete", () { 8412 unittest.test("method--delete", () {
8413 8413
8414 var mock = new HttpServerMock(); 8414 var mock = new HttpServerMock();
8415 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8415 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8416 var arg_id = "foo"; 8416 var arg_id = "foo";
8417 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8417 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8418 var path = (req.url).path; 8418 var path = (req.url).path;
8419 var pathOffset = 0; 8419 var pathOffset = 0;
8420 var index; 8420 var index;
8421 var subPart; 8421 var subPart;
8422 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8422 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8423 pathOffset += 1; 8423 pathOffset += 1;
8424 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8424 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8425 pathOffset += 11; 8425 pathOffset += 11;
8426 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("comments")); 8426 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("comments"));
8427 pathOffset += 8; 8427 pathOffset += 8;
(...skipping 16 matching lines...) Expand all
8444 } 8444 }
8445 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 8445 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
8446 8446
8447 8447
8448 var h = { 8448 var h = {
8449 "content-type" : "application/json; charset=utf-8", 8449 "content-type" : "application/json; charset=utf-8",
8450 }; 8450 };
8451 var resp = ""; 8451 var resp = "";
8452 return new async.Future.value(stringResponse(200, h, resp)); 8452 return new async.Future.value(stringResponse(200, h, resp));
8453 }), true); 8453 }), true);
8454 res.delete(arg_id).then(unittest.expectAsync((_) {})); 8454 res.delete(arg_id).then(unittest.expectAsync1((_) {}));
8455 }); 8455 });
8456 8456
8457 unittest.test("method--insert", () { 8457 unittest.test("method--insert", () {
8458 8458
8459 var mock = new HttpServerMock(); 8459 var mock = new HttpServerMock();
8460 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8460 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8461 var arg_request = buildComment(); 8461 var arg_request = buildComment();
8462 var arg_part = "foo"; 8462 var arg_part = "foo";
8463 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8463 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8464 var obj = new api.Comment.fromJson(json); 8464 var obj = new api.Comment.fromJson(json);
8465 checkComment(obj); 8465 checkComment(obj);
8466 8466
8467 var path = (req.url).path; 8467 var path = (req.url).path;
8468 var pathOffset = 0; 8468 var pathOffset = 0;
8469 var index; 8469 var index;
8470 var subPart; 8470 var subPart;
8471 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8471 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8472 pathOffset += 1; 8472 pathOffset += 1;
8473 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8473 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
8493 } 8493 }
8494 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8494 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8495 8495
8496 8496
8497 var h = { 8497 var h = {
8498 "content-type" : "application/json; charset=utf-8", 8498 "content-type" : "application/json; charset=utf-8",
8499 }; 8499 };
8500 var resp = convert.JSON.encode(buildComment()); 8500 var resp = convert.JSON.encode(buildComment());
8501 return new async.Future.value(stringResponse(200, h, resp)); 8501 return new async.Future.value(stringResponse(200, h, resp));
8502 }), true); 8502 }), true);
8503 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Comment response) { 8503 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment response) {
8504 checkComment(response); 8504 checkComment(response);
8505 }))); 8505 })));
8506 }); 8506 });
8507 8507
8508 unittest.test("method--list", () { 8508 unittest.test("method--list", () {
8509 8509
8510 var mock = new HttpServerMock(); 8510 var mock = new HttpServerMock();
8511 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8511 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8512 var arg_part = "foo"; 8512 var arg_part = "foo";
8513 var arg_id = "foo"; 8513 var arg_id = "foo";
8514 var arg_maxResults = 42; 8514 var arg_maxResults = 42;
8515 var arg_pageToken = "foo"; 8515 var arg_pageToken = "foo";
8516 var arg_parentId = "foo"; 8516 var arg_parentId = "foo";
8517 var arg_textFormat = "foo"; 8517 var arg_textFormat = "foo";
8518 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8518 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8519 var path = (req.url).path; 8519 var path = (req.url).path;
8520 var pathOffset = 0; 8520 var pathOffset = 0;
8521 var index; 8521 var index;
8522 var subPart; 8522 var subPart;
8523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8524 pathOffset += 1; 8524 pathOffset += 1;
8525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8526 pathOffset += 11; 8526 pathOffset += 11;
8527 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("comments")); 8527 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("comments"));
8528 pathOffset += 8; 8528 pathOffset += 8;
(...skipping 21 matching lines...) Expand all
8550 unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId )); 8550 unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId ));
8551 unittest.expect(queryMap["textFormat"].first, unittest.equals(arg_textFo rmat)); 8551 unittest.expect(queryMap["textFormat"].first, unittest.equals(arg_textFo rmat));
8552 8552
8553 8553
8554 var h = { 8554 var h = {
8555 "content-type" : "application/json; charset=utf-8", 8555 "content-type" : "application/json; charset=utf-8",
8556 }; 8556 };
8557 var resp = convert.JSON.encode(buildCommentListResponse()); 8557 var resp = convert.JSON.encode(buildCommentListResponse());
8558 return new async.Future.value(stringResponse(200, h, resp)); 8558 return new async.Future.value(stringResponse(200, h, resp));
8559 }), true); 8559 }), true);
8560 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, pageToken: arg_ pageToken, parentId: arg_parentId, textFormat: arg_textFormat).then(unittest.exp ectAsync(((api.CommentListResponse response) { 8560 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, pageToken: arg_ pageToken, parentId: arg_parentId, textFormat: arg_textFormat).then(unittest.exp ectAsync1(((api.CommentListResponse response) {
8561 checkCommentListResponse(response); 8561 checkCommentListResponse(response);
8562 }))); 8562 })));
8563 }); 8563 });
8564 8564
8565 unittest.test("method--markAsSpam", () { 8565 unittest.test("method--markAsSpam", () {
8566 8566
8567 var mock = new HttpServerMock(); 8567 var mock = new HttpServerMock();
8568 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8568 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8569 var arg_id = "foo"; 8569 var arg_id = "foo";
8570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8570 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8571 var path = (req.url).path; 8571 var path = (req.url).path;
8572 var pathOffset = 0; 8572 var pathOffset = 0;
8573 var index; 8573 var index;
8574 var subPart; 8574 var subPart;
8575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8576 pathOffset += 1; 8576 pathOffset += 1;
8577 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8577 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8578 pathOffset += 11; 8578 pathOffset += 11;
8579 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("comments/markAsSpam")); 8579 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("comments/markAsSpam"));
8580 pathOffset += 19; 8580 pathOffset += 19;
(...skipping 16 matching lines...) Expand all
8597 } 8597 }
8598 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 8598 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
8599 8599
8600 8600
8601 var h = { 8601 var h = {
8602 "content-type" : "application/json; charset=utf-8", 8602 "content-type" : "application/json; charset=utf-8",
8603 }; 8603 };
8604 var resp = ""; 8604 var resp = "";
8605 return new async.Future.value(stringResponse(200, h, resp)); 8605 return new async.Future.value(stringResponse(200, h, resp));
8606 }), true); 8606 }), true);
8607 res.markAsSpam(arg_id).then(unittest.expectAsync((_) {})); 8607 res.markAsSpam(arg_id).then(unittest.expectAsync1((_) {}));
8608 }); 8608 });
8609 8609
8610 unittest.test("method--setModerationStatus", () { 8610 unittest.test("method--setModerationStatus", () {
8611 8611
8612 var mock = new HttpServerMock(); 8612 var mock = new HttpServerMock();
8613 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8613 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8614 var arg_id = "foo"; 8614 var arg_id = "foo";
8615 var arg_moderationStatus = "foo"; 8615 var arg_moderationStatus = "foo";
8616 var arg_banAuthor = true; 8616 var arg_banAuthor = true;
8617 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8617 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8618 var path = (req.url).path; 8618 var path = (req.url).path;
8619 var pathOffset = 0; 8619 var pathOffset = 0;
8620 var index; 8620 var index;
8621 var subPart; 8621 var subPart;
8622 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8622 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8623 pathOffset += 1; 8623 pathOffset += 1;
8624 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8624 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8625 pathOffset += 11; 8625 pathOffset += 11;
8626 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq uals("comments/setModerationStatus")); 8626 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq uals("comments/setModerationStatus"));
8627 pathOffset += 28; 8627 pathOffset += 28;
(...skipping 18 matching lines...) Expand all
8646 unittest.expect(queryMap["moderationStatus"].first, unittest.equals(arg_ moderationStatus)); 8646 unittest.expect(queryMap["moderationStatus"].first, unittest.equals(arg_ moderationStatus));
8647 unittest.expect(queryMap["banAuthor"].first, unittest.equals("$arg_banAu thor")); 8647 unittest.expect(queryMap["banAuthor"].first, unittest.equals("$arg_banAu thor"));
8648 8648
8649 8649
8650 var h = { 8650 var h = {
8651 "content-type" : "application/json; charset=utf-8", 8651 "content-type" : "application/json; charset=utf-8",
8652 }; 8652 };
8653 var resp = ""; 8653 var resp = "";
8654 return new async.Future.value(stringResponse(200, h, resp)); 8654 return new async.Future.value(stringResponse(200, h, resp));
8655 }), true); 8655 }), true);
8656 res.setModerationStatus(arg_id, arg_moderationStatus, banAuthor: arg_banAu thor).then(unittest.expectAsync((_) {})); 8656 res.setModerationStatus(arg_id, arg_moderationStatus, banAuthor: arg_banAu thor).then(unittest.expectAsync1((_) {}));
8657 }); 8657 });
8658 8658
8659 unittest.test("method--update", () { 8659 unittest.test("method--update", () {
8660 8660
8661 var mock = new HttpServerMock(); 8661 var mock = new HttpServerMock();
8662 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; 8662 api.CommentsResourceApi res = new api.YoutubeApi(mock).comments;
8663 var arg_request = buildComment(); 8663 var arg_request = buildComment();
8664 var arg_part = "foo"; 8664 var arg_part = "foo";
8665 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8665 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8666 var obj = new api.Comment.fromJson(json); 8666 var obj = new api.Comment.fromJson(json);
8667 checkComment(obj); 8667 checkComment(obj);
8668 8668
8669 var path = (req.url).path; 8669 var path = (req.url).path;
8670 var pathOffset = 0; 8670 var pathOffset = 0;
8671 var index; 8671 var index;
8672 var subPart; 8672 var subPart;
8673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8674 pathOffset += 1; 8674 pathOffset += 1;
8675 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8675 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
8695 } 8695 }
8696 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8696 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8697 8697
8698 8698
8699 var h = { 8699 var h = {
8700 "content-type" : "application/json; charset=utf-8", 8700 "content-type" : "application/json; charset=utf-8",
8701 }; 8701 };
8702 var resp = convert.JSON.encode(buildComment()); 8702 var resp = convert.JSON.encode(buildComment());
8703 return new async.Future.value(stringResponse(200, h, resp)); 8703 return new async.Future.value(stringResponse(200, h, resp));
8704 }), true); 8704 }), true);
8705 res.update(arg_request, arg_part).then(unittest.expectAsync(((api.Comment response) { 8705 res.update(arg_request, arg_part).then(unittest.expectAsync1(((api.Comment response) {
8706 checkComment(response); 8706 checkComment(response);
8707 }))); 8707 })));
8708 }); 8708 });
8709 8709
8710 }); 8710 });
8711 8711
8712 8712
8713 unittest.group("resource-FanFundingEventsResourceApi", () { 8713 unittest.group("resource-FanFundingEventsResourceApi", () {
8714 unittest.test("method--list", () { 8714 unittest.test("method--list", () {
8715 8715
8716 var mock = new HttpServerMock(); 8716 var mock = new HttpServerMock();
8717 api.FanFundingEventsResourceApi res = new api.YoutubeApi(mock).fanFundingE vents; 8717 api.FanFundingEventsResourceApi res = new api.YoutubeApi(mock).fanFundingE vents;
8718 var arg_part = "foo"; 8718 var arg_part = "foo";
8719 var arg_hl = "foo"; 8719 var arg_hl = "foo";
8720 var arg_maxResults = 42; 8720 var arg_maxResults = 42;
8721 var arg_pageToken = "foo"; 8721 var arg_pageToken = "foo";
8722 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8722 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8723 var path = (req.url).path; 8723 var path = (req.url).path;
8724 var pathOffset = 0; 8724 var pathOffset = 0;
8725 var index; 8725 var index;
8726 var subPart; 8726 var subPart;
8727 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8727 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8728 pathOffset += 1; 8728 pathOffset += 1;
8729 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8729 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8730 pathOffset += 11; 8730 pathOffset += 11;
8731 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fanFundingEvents")); 8731 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fanFundingEvents"));
8732 pathOffset += 16; 8732 pathOffset += 16;
(...skipping 19 matching lines...) Expand all
8752 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 8752 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
8753 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 8753 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
8754 8754
8755 8755
8756 var h = { 8756 var h = {
8757 "content-type" : "application/json; charset=utf-8", 8757 "content-type" : "application/json; charset=utf-8",
8758 }; 8758 };
8759 var resp = convert.JSON.encode(buildFanFundingEventListResponse()); 8759 var resp = convert.JSON.encode(buildFanFundingEventListResponse());
8760 return new async.Future.value(stringResponse(200, h, resp)); 8760 return new async.Future.value(stringResponse(200, h, resp));
8761 }), true); 8761 }), true);
8762 res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_ pageToken).then(unittest.expectAsync(((api.FanFundingEventListResponse response) { 8762 res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_ pageToken).then(unittest.expectAsync1(((api.FanFundingEventListResponse response ) {
8763 checkFanFundingEventListResponse(response); 8763 checkFanFundingEventListResponse(response);
8764 }))); 8764 })));
8765 }); 8765 });
8766 8766
8767 }); 8767 });
8768 8768
8769 8769
8770 unittest.group("resource-GuideCategoriesResourceApi", () { 8770 unittest.group("resource-GuideCategoriesResourceApi", () {
8771 unittest.test("method--list", () { 8771 unittest.test("method--list", () {
8772 8772
8773 var mock = new HttpServerMock(); 8773 var mock = new HttpServerMock();
8774 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor ies; 8774 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor ies;
8775 var arg_part = "foo"; 8775 var arg_part = "foo";
8776 var arg_hl = "foo"; 8776 var arg_hl = "foo";
8777 var arg_id = "foo"; 8777 var arg_id = "foo";
8778 var arg_regionCode = "foo"; 8778 var arg_regionCode = "foo";
8779 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8779 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8780 var path = (req.url).path; 8780 var path = (req.url).path;
8781 var pathOffset = 0; 8781 var pathOffset = 0;
8782 var index; 8782 var index;
8783 var subPart; 8783 var subPart;
8784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8785 pathOffset += 1; 8785 pathOffset += 1;
8786 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8786 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8787 pathOffset += 11; 8787 pathOffset += 11;
8788 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("guideCategories")); 8788 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("guideCategories"));
8789 pathOffset += 15; 8789 pathOffset += 15;
(...skipping 19 matching lines...) Expand all
8809 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 8809 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
8810 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code)); 8810 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code));
8811 8811
8812 8812
8813 var h = { 8813 var h = {
8814 "content-type" : "application/json; charset=utf-8", 8814 "content-type" : "application/json; charset=utf-8",
8815 }; 8815 };
8816 var resp = convert.JSON.encode(buildGuideCategoryListResponse()); 8816 var resp = convert.JSON.encode(buildGuideCategoryListResponse());
8817 return new async.Future.value(stringResponse(200, h, resp)); 8817 return new async.Future.value(stringResponse(200, h, resp));
8818 }), true); 8818 }), true);
8819 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the n(unittest.expectAsync(((api.GuideCategoryListResponse response) { 8819 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the n(unittest.expectAsync1(((api.GuideCategoryListResponse response) {
8820 checkGuideCategoryListResponse(response); 8820 checkGuideCategoryListResponse(response);
8821 }))); 8821 })));
8822 }); 8822 });
8823 8823
8824 }); 8824 });
8825 8825
8826 8826
8827 unittest.group("resource-I18nLanguagesResourceApi", () { 8827 unittest.group("resource-I18nLanguagesResourceApi", () {
8828 unittest.test("method--list", () { 8828 unittest.test("method--list", () {
8829 8829
8830 var mock = new HttpServerMock(); 8830 var mock = new HttpServerMock();
8831 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; 8831 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages;
8832 var arg_part = "foo"; 8832 var arg_part = "foo";
8833 var arg_hl = "foo"; 8833 var arg_hl = "foo";
8834 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8834 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8835 var path = (req.url).path; 8835 var path = (req.url).path;
8836 var pathOffset = 0; 8836 var pathOffset = 0;
8837 var index; 8837 var index;
8838 var subPart; 8838 var subPart;
8839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8840 pathOffset += 1; 8840 pathOffset += 1;
8841 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8841 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8842 pathOffset += 11; 8842 pathOffset += 11;
8843 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("i18nLanguages")); 8843 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("i18nLanguages"));
8844 pathOffset += 13; 8844 pathOffset += 13;
(...skipping 17 matching lines...) Expand all
8862 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8862 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8863 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); 8863 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl));
8864 8864
8865 8865
8866 var h = { 8866 var h = {
8867 "content-type" : "application/json; charset=utf-8", 8867 "content-type" : "application/json; charset=utf-8",
8868 }; 8868 };
8869 var resp = convert.JSON.encode(buildI18nLanguageListResponse()); 8869 var resp = convert.JSON.encode(buildI18nLanguageListResponse());
8870 return new async.Future.value(stringResponse(200, h, resp)); 8870 return new async.Future.value(stringResponse(200, h, resp));
8871 }), true); 8871 }), true);
8872 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nLanguag eListResponse response) { 8872 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.I18nLangua geListResponse response) {
8873 checkI18nLanguageListResponse(response); 8873 checkI18nLanguageListResponse(response);
8874 }))); 8874 })));
8875 }); 8875 });
8876 8876
8877 }); 8877 });
8878 8878
8879 8879
8880 unittest.group("resource-I18nRegionsResourceApi", () { 8880 unittest.group("resource-I18nRegionsResourceApi", () {
8881 unittest.test("method--list", () { 8881 unittest.test("method--list", () {
8882 8882
8883 var mock = new HttpServerMock(); 8883 var mock = new HttpServerMock();
8884 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; 8884 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions;
8885 var arg_part = "foo"; 8885 var arg_part = "foo";
8886 var arg_hl = "foo"; 8886 var arg_hl = "foo";
8887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8887 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8888 var path = (req.url).path; 8888 var path = (req.url).path;
8889 var pathOffset = 0; 8889 var pathOffset = 0;
8890 var index; 8890 var index;
8891 var subPart; 8891 var subPart;
8892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8893 pathOffset += 1; 8893 pathOffset += 1;
8894 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8894 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8895 pathOffset += 11; 8895 pathOffset += 11;
8896 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("i18nRegions")); 8896 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("i18nRegions"));
8897 pathOffset += 11; 8897 pathOffset += 11;
(...skipping 17 matching lines...) Expand all
8915 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 8915 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
8916 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); 8916 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl));
8917 8917
8918 8918
8919 var h = { 8919 var h = {
8920 "content-type" : "application/json; charset=utf-8", 8920 "content-type" : "application/json; charset=utf-8",
8921 }; 8921 };
8922 var resp = convert.JSON.encode(buildI18nRegionListResponse()); 8922 var resp = convert.JSON.encode(buildI18nRegionListResponse());
8923 return new async.Future.value(stringResponse(200, h, resp)); 8923 return new async.Future.value(stringResponse(200, h, resp));
8924 }), true); 8924 }), true);
8925 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nRegionL istResponse response) { 8925 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.I18nRegion ListResponse response) {
8926 checkI18nRegionListResponse(response); 8926 checkI18nRegionListResponse(response);
8927 }))); 8927 })));
8928 }); 8928 });
8929 8929
8930 }); 8930 });
8931 8931
8932 8932
8933 unittest.group("resource-LiveBroadcastsResourceApi", () { 8933 unittest.group("resource-LiveBroadcastsResourceApi", () {
8934 unittest.test("method--bind", () { 8934 unittest.test("method--bind", () {
8935 8935
8936 var mock = new HttpServerMock(); 8936 var mock = new HttpServerMock();
8937 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 8937 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
8938 var arg_id = "foo"; 8938 var arg_id = "foo";
8939 var arg_part = "foo"; 8939 var arg_part = "foo";
8940 var arg_onBehalfOfContentOwner = "foo"; 8940 var arg_onBehalfOfContentOwner = "foo";
8941 var arg_onBehalfOfContentOwnerChannel = "foo"; 8941 var arg_onBehalfOfContentOwnerChannel = "foo";
8942 var arg_streamId = "foo"; 8942 var arg_streamId = "foo";
8943 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8943 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
8944 var path = (req.url).path; 8944 var path = (req.url).path;
8945 var pathOffset = 0; 8945 var pathOffset = 0;
8946 var index; 8946 var index;
8947 var subPart; 8947 var subPart;
8948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8949 pathOffset += 1; 8949 pathOffset += 1;
8950 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 8950 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
8951 pathOffset += 11; 8951 pathOffset += 11;
8952 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveBroadcasts/bind")); 8952 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveBroadcasts/bind"));
8953 pathOffset += 19; 8953 pathOffset += 19;
(...skipping 20 matching lines...) Expand all
8974 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 8974 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
8975 unittest.expect(queryMap["streamId"].first, unittest.equals(arg_streamId )); 8975 unittest.expect(queryMap["streamId"].first, unittest.equals(arg_streamId ));
8976 8976
8977 8977
8978 var h = { 8978 var h = {
8979 "content-type" : "application/json; charset=utf-8", 8979 "content-type" : "application/json; charset=utf-8",
8980 }; 8980 };
8981 var resp = convert.JSON.encode(buildLiveBroadcast()); 8981 var resp = convert.JSON.encode(buildLiveBroadcast());
8982 return new async.Future.value(stringResponse(200, h, resp)); 8982 return new async.Future.value(stringResponse(200, h, resp));
8983 }), true); 8983 }), true);
8984 res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOw ner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId: arg_streamId).then(unittest.expectAsync(((api.LiveBroadcast response) { 8984 res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOw ner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId: arg_streamId).then(unittest.expectAsync1(((api.LiveBroadcast response) {
8985 checkLiveBroadcast(response); 8985 checkLiveBroadcast(response);
8986 }))); 8986 })));
8987 }); 8987 });
8988 8988
8989 unittest.test("method--control", () { 8989 unittest.test("method--control", () {
8990 8990
8991 var mock = new HttpServerMock(); 8991 var mock = new HttpServerMock();
8992 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 8992 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
8993 var arg_id = "foo"; 8993 var arg_id = "foo";
8994 var arg_part = "foo"; 8994 var arg_part = "foo";
8995 var arg_displaySlate = true; 8995 var arg_displaySlate = true;
8996 var arg_offsetTimeMs = "foo"; 8996 var arg_offsetTimeMs = "foo";
8997 var arg_onBehalfOfContentOwner = "foo"; 8997 var arg_onBehalfOfContentOwner = "foo";
8998 var arg_onBehalfOfContentOwnerChannel = "foo"; 8998 var arg_onBehalfOfContentOwnerChannel = "foo";
8999 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); 8999 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02");
9000 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9000 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9001 var path = (req.url).path; 9001 var path = (req.url).path;
9002 var pathOffset = 0; 9002 var pathOffset = 0;
9003 var index; 9003 var index;
9004 var subPart; 9004 var subPart;
9005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9006 pathOffset += 1; 9006 pathOffset += 1;
9007 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9007 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9008 pathOffset += 11; 9008 pathOffset += 11;
9009 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("liveBroadcasts/control")); 9009 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("liveBroadcasts/control"));
9010 pathOffset += 22; 9010 pathOffset += 22;
(...skipping 22 matching lines...) Expand all
9033 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9033 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9034 unittest.expect(core.DateTime.parse(queryMap["walltime"].first), unittes t.equals(arg_walltime)); 9034 unittest.expect(core.DateTime.parse(queryMap["walltime"].first), unittes t.equals(arg_walltime));
9035 9035
9036 9036
9037 var h = { 9037 var h = {
9038 "content-type" : "application/json; charset=utf-8", 9038 "content-type" : "application/json; charset=utf-8",
9039 }; 9039 };
9040 var resp = convert.JSON.encode(buildLiveBroadcast()); 9040 var resp = convert.JSON.encode(buildLiveBroadcast());
9041 return new async.Future.value(stringResponse(200, h, resp)); 9041 return new async.Future.value(stringResponse(200, h, resp));
9042 }), true); 9042 }), true);
9043 res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs : arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalf OfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime ).then(unittest.expectAsync(((api.LiveBroadcast response) { 9043 res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs : arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalf OfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime ).then(unittest.expectAsync1(((api.LiveBroadcast response) {
9044 checkLiveBroadcast(response); 9044 checkLiveBroadcast(response);
9045 }))); 9045 })));
9046 }); 9046 });
9047 9047
9048 unittest.test("method--delete", () { 9048 unittest.test("method--delete", () {
9049 9049
9050 var mock = new HttpServerMock(); 9050 var mock = new HttpServerMock();
9051 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 9051 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
9052 var arg_id = "foo"; 9052 var arg_id = "foo";
9053 var arg_onBehalfOfContentOwner = "foo"; 9053 var arg_onBehalfOfContentOwner = "foo";
9054 var arg_onBehalfOfContentOwnerChannel = "foo"; 9054 var arg_onBehalfOfContentOwnerChannel = "foo";
9055 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9055 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9056 var path = (req.url).path; 9056 var path = (req.url).path;
9057 var pathOffset = 0; 9057 var pathOffset = 0;
9058 var index; 9058 var index;
9059 var subPart; 9059 var subPart;
9060 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9060 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9061 pathOffset += 1; 9061 pathOffset += 1;
9062 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9062 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9063 pathOffset += 11; 9063 pathOffset += 11;
9064 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("liveBroadcasts")); 9064 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("liveBroadcasts"));
9065 pathOffset += 14; 9065 pathOffset += 14;
(...skipping 18 matching lines...) Expand all
9084 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9084 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9085 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9085 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9086 9086
9087 9087
9088 var h = { 9088 var h = {
9089 "content-type" : "application/json; charset=utf-8", 9089 "content-type" : "application/json; charset=utf-8",
9090 }; 9090 };
9091 var resp = ""; 9091 var resp = "";
9092 return new async.Future.value(stringResponse(200, h, resp)); 9092 return new async.Future.value(stringResponse(200, h, resp));
9093 }), true); 9093 }), true);
9094 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp ectAsync((_) {})); 9094 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp ectAsync1((_) {}));
9095 }); 9095 });
9096 9096
9097 unittest.test("method--insert", () { 9097 unittest.test("method--insert", () {
9098 9098
9099 var mock = new HttpServerMock(); 9099 var mock = new HttpServerMock();
9100 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 9100 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
9101 var arg_request = buildLiveBroadcast(); 9101 var arg_request = buildLiveBroadcast();
9102 var arg_part = "foo"; 9102 var arg_part = "foo";
9103 var arg_onBehalfOfContentOwner = "foo"; 9103 var arg_onBehalfOfContentOwner = "foo";
9104 var arg_onBehalfOfContentOwnerChannel = "foo"; 9104 var arg_onBehalfOfContentOwnerChannel = "foo";
9105 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9105 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9106 var obj = new api.LiveBroadcast.fromJson(json); 9106 var obj = new api.LiveBroadcast.fromJson(json);
9107 checkLiveBroadcast(obj); 9107 checkLiveBroadcast(obj);
9108 9108
9109 var path = (req.url).path; 9109 var path = (req.url).path;
9110 var pathOffset = 0; 9110 var pathOffset = 0;
9111 var index; 9111 var index;
9112 var subPart; 9112 var subPart;
9113 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9113 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9114 pathOffset += 1; 9114 pathOffset += 1;
9115 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9115 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
9137 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9137 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9138 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9138 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9139 9139
9140 9140
9141 var h = { 9141 var h = {
9142 "content-type" : "application/json; charset=utf-8", 9142 "content-type" : "application/json; charset=utf-8",
9143 }; 9143 };
9144 var resp = convert.JSON.encode(buildLiveBroadcast()); 9144 var resp = convert.JSON.encode(buildLiveBroadcast());
9145 return new async.Future.value(stringResponse(200, h, resp)); 9145 return new async.Future.value(stringResponse(200, h, resp));
9146 }), true); 9146 }), true);
9147 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.LiveBroadcast response) { 9147 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.LiveBroadcast response) {
9148 checkLiveBroadcast(response); 9148 checkLiveBroadcast(response);
9149 }))); 9149 })));
9150 }); 9150 });
9151 9151
9152 unittest.test("method--list", () { 9152 unittest.test("method--list", () {
9153 9153
9154 var mock = new HttpServerMock(); 9154 var mock = new HttpServerMock();
9155 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 9155 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
9156 var arg_part = "foo"; 9156 var arg_part = "foo";
9157 var arg_broadcastStatus = "foo"; 9157 var arg_broadcastStatus = "foo";
9158 var arg_broadcastType = "foo"; 9158 var arg_broadcastType = "foo";
9159 var arg_id = "foo"; 9159 var arg_id = "foo";
9160 var arg_maxResults = 42; 9160 var arg_maxResults = 42;
9161 var arg_mine = true; 9161 var arg_mine = true;
9162 var arg_onBehalfOfContentOwner = "foo"; 9162 var arg_onBehalfOfContentOwner = "foo";
9163 var arg_onBehalfOfContentOwnerChannel = "foo"; 9163 var arg_onBehalfOfContentOwnerChannel = "foo";
9164 var arg_pageToken = "foo"; 9164 var arg_pageToken = "foo";
9165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9165 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9166 var path = (req.url).path; 9166 var path = (req.url).path;
9167 var pathOffset = 0; 9167 var pathOffset = 0;
9168 var index; 9168 var index;
9169 var subPart; 9169 var subPart;
9170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9171 pathOffset += 1; 9171 pathOffset += 1;
9172 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9172 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9173 pathOffset += 11; 9173 pathOffset += 11;
9174 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("liveBroadcasts")); 9174 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("liveBroadcasts"));
9175 pathOffset += 14; 9175 pathOffset += 14;
(...skipping 24 matching lines...) Expand all
9200 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9200 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9201 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 9201 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
9202 9202
9203 9203
9204 var h = { 9204 var h = {
9205 "content-type" : "application/json; charset=utf-8", 9205 "content-type" : "application/json; charset=utf-8",
9206 }; 9206 };
9207 var resp = convert.JSON.encode(buildLiveBroadcastListResponse()); 9207 var resp = convert.JSON.encode(buildLiveBroadcastListResponse());
9208 return new async.Future.value(stringResponse(200, h, resp)); 9208 return new async.Future.value(stringResponse(200, h, resp));
9209 }), true); 9209 }), true);
9210 res.list(arg_part, broadcastStatus: arg_broadcastStatus, broadcastType: ar g_broadcastType, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehal fOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_ onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsy nc(((api.LiveBroadcastListResponse response) { 9210 res.list(arg_part, broadcastStatus: arg_broadcastStatus, broadcastType: ar g_broadcastType, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehal fOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_ onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.expectAsy nc1(((api.LiveBroadcastListResponse response) {
9211 checkLiveBroadcastListResponse(response); 9211 checkLiveBroadcastListResponse(response);
9212 }))); 9212 })));
9213 }); 9213 });
9214 9214
9215 unittest.test("method--transition", () { 9215 unittest.test("method--transition", () {
9216 9216
9217 var mock = new HttpServerMock(); 9217 var mock = new HttpServerMock();
9218 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 9218 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
9219 var arg_broadcastStatus = "foo"; 9219 var arg_broadcastStatus = "foo";
9220 var arg_id = "foo"; 9220 var arg_id = "foo";
9221 var arg_part = "foo"; 9221 var arg_part = "foo";
9222 var arg_onBehalfOfContentOwner = "foo"; 9222 var arg_onBehalfOfContentOwner = "foo";
9223 var arg_onBehalfOfContentOwnerChannel = "foo"; 9223 var arg_onBehalfOfContentOwnerChannel = "foo";
9224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9224 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9225 var path = (req.url).path; 9225 var path = (req.url).path;
9226 var pathOffset = 0; 9226 var pathOffset = 0;
9227 var index; 9227 var index;
9228 var subPart; 9228 var subPart;
9229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9230 pathOffset += 1; 9230 pathOffset += 1;
9231 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9231 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9232 pathOffset += 11; 9232 pathOffset += 11;
9233 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq uals("liveBroadcasts/transition")); 9233 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq uals("liveBroadcasts/transition"));
9234 pathOffset += 25; 9234 pathOffset += 25;
(...skipping 20 matching lines...) Expand all
9255 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9255 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9256 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9256 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9257 9257
9258 9258
9259 var h = { 9259 var h = {
9260 "content-type" : "application/json; charset=utf-8", 9260 "content-type" : "application/json; charset=utf-8",
9261 }; 9261 };
9262 var resp = convert.JSON.encode(buildLiveBroadcast()); 9262 var resp = convert.JSON.encode(buildLiveBroadcast());
9263 return new async.Future.value(stringResponse(200, h, resp)); 9263 return new async.Future.value(stringResponse(200, h, resp));
9264 }), true); 9264 }), true);
9265 res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwn er: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCon tentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { 9265 res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwn er: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCon tentOwnerChannel).then(unittest.expectAsync1(((api.LiveBroadcast response) {
9266 checkLiveBroadcast(response); 9266 checkLiveBroadcast(response);
9267 }))); 9267 })));
9268 }); 9268 });
9269 9269
9270 unittest.test("method--update", () { 9270 unittest.test("method--update", () {
9271 9271
9272 var mock = new HttpServerMock(); 9272 var mock = new HttpServerMock();
9273 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s; 9273 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast s;
9274 var arg_request = buildLiveBroadcast(); 9274 var arg_request = buildLiveBroadcast();
9275 var arg_part = "foo"; 9275 var arg_part = "foo";
9276 var arg_onBehalfOfContentOwner = "foo"; 9276 var arg_onBehalfOfContentOwner = "foo";
9277 var arg_onBehalfOfContentOwnerChannel = "foo"; 9277 var arg_onBehalfOfContentOwnerChannel = "foo";
9278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9278 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9279 var obj = new api.LiveBroadcast.fromJson(json); 9279 var obj = new api.LiveBroadcast.fromJson(json);
9280 checkLiveBroadcast(obj); 9280 checkLiveBroadcast(obj);
9281 9281
9282 var path = (req.url).path; 9282 var path = (req.url).path;
9283 var pathOffset = 0; 9283 var pathOffset = 0;
9284 var index; 9284 var index;
9285 var subPart; 9285 var subPart;
9286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9287 pathOffset += 1; 9287 pathOffset += 1;
9288 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9288 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
9310 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9310 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9311 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9311 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9312 9312
9313 9313
9314 var h = { 9314 var h = {
9315 "content-type" : "application/json; charset=utf-8", 9315 "content-type" : "application/json; charset=utf-8",
9316 }; 9316 };
9317 var resp = convert.JSON.encode(buildLiveBroadcast()); 9317 var resp = convert.JSON.encode(buildLiveBroadcast());
9318 return new async.Future.value(stringResponse(200, h, resp)); 9318 return new async.Future.value(stringResponse(200, h, resp));
9319 }), true); 9319 }), true);
9320 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.LiveBroadcast response) { 9320 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.LiveBroadcast response) {
9321 checkLiveBroadcast(response); 9321 checkLiveBroadcast(response);
9322 }))); 9322 })));
9323 }); 9323 });
9324 9324
9325 }); 9325 });
9326 9326
9327 9327
9328 unittest.group("resource-LiveChatBansResourceApi", () { 9328 unittest.group("resource-LiveChatBansResourceApi", () {
9329 unittest.test("method--delete", () { 9329 unittest.test("method--delete", () {
9330 9330
9331 var mock = new HttpServerMock(); 9331 var mock = new HttpServerMock();
9332 api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans; 9332 api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans;
9333 var arg_id = "foo"; 9333 var arg_id = "foo";
9334 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9334 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9335 var path = (req.url).path; 9335 var path = (req.url).path;
9336 var pathOffset = 0; 9336 var pathOffset = 0;
9337 var index; 9337 var index;
9338 var subPart; 9338 var subPart;
9339 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9339 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9340 pathOffset += 1; 9340 pathOffset += 1;
9341 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9341 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9342 pathOffset += 11; 9342 pathOffset += 11;
9343 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("liveChat/bans")); 9343 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("liveChat/bans"));
9344 pathOffset += 13; 9344 pathOffset += 13;
(...skipping 16 matching lines...) Expand all
9361 } 9361 }
9362 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 9362 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
9363 9363
9364 9364
9365 var h = { 9365 var h = {
9366 "content-type" : "application/json; charset=utf-8", 9366 "content-type" : "application/json; charset=utf-8",
9367 }; 9367 };
9368 var resp = ""; 9368 var resp = "";
9369 return new async.Future.value(stringResponse(200, h, resp)); 9369 return new async.Future.value(stringResponse(200, h, resp));
9370 }), true); 9370 }), true);
9371 res.delete(arg_id).then(unittest.expectAsync((_) {})); 9371 res.delete(arg_id).then(unittest.expectAsync1((_) {}));
9372 }); 9372 });
9373 9373
9374 unittest.test("method--insert", () { 9374 unittest.test("method--insert", () {
9375 9375
9376 var mock = new HttpServerMock(); 9376 var mock = new HttpServerMock();
9377 api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans; 9377 api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans;
9378 var arg_request = buildLiveChatBan(); 9378 var arg_request = buildLiveChatBan();
9379 var arg_part = "foo"; 9379 var arg_part = "foo";
9380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9380 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9381 var obj = new api.LiveChatBan.fromJson(json); 9381 var obj = new api.LiveChatBan.fromJson(json);
9382 checkLiveChatBan(obj); 9382 checkLiveChatBan(obj);
9383 9383
9384 var path = (req.url).path; 9384 var path = (req.url).path;
9385 var pathOffset = 0; 9385 var pathOffset = 0;
9386 var index; 9386 var index;
9387 var subPart; 9387 var subPart;
9388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9389 pathOffset += 1; 9389 pathOffset += 1;
9390 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9390 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
9410 } 9410 }
9411 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 9411 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
9412 9412
9413 9413
9414 var h = { 9414 var h = {
9415 "content-type" : "application/json; charset=utf-8", 9415 "content-type" : "application/json; charset=utf-8",
9416 }; 9416 };
9417 var resp = convert.JSON.encode(buildLiveChatBan()); 9417 var resp = convert.JSON.encode(buildLiveChatBan());
9418 return new async.Future.value(stringResponse(200, h, resp)); 9418 return new async.Future.value(stringResponse(200, h, resp));
9419 }), true); 9419 }), true);
9420 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChat Ban response) { 9420 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveCha tBan response) {
9421 checkLiveChatBan(response); 9421 checkLiveChatBan(response);
9422 }))); 9422 })));
9423 }); 9423 });
9424 9424
9425 }); 9425 });
9426 9426
9427 9427
9428 unittest.group("resource-LiveChatMessagesResourceApi", () { 9428 unittest.group("resource-LiveChatMessagesResourceApi", () {
9429 unittest.test("method--delete", () { 9429 unittest.test("method--delete", () {
9430 9430
9431 var mock = new HttpServerMock(); 9431 var mock = new HttpServerMock();
9432 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages; 9432 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages;
9433 var arg_id = "foo"; 9433 var arg_id = "foo";
9434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9434 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9435 var path = (req.url).path; 9435 var path = (req.url).path;
9436 var pathOffset = 0; 9436 var pathOffset = 0;
9437 var index; 9437 var index;
9438 var subPart; 9438 var subPart;
9439 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9439 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9440 pathOffset += 1; 9440 pathOffset += 1;
9441 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9441 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9442 pathOffset += 11; 9442 pathOffset += 11;
9443 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("liveChat/messages")); 9443 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("liveChat/messages"));
9444 pathOffset += 17; 9444 pathOffset += 17;
(...skipping 16 matching lines...) Expand all
9461 } 9461 }
9462 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 9462 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
9463 9463
9464 9464
9465 var h = { 9465 var h = {
9466 "content-type" : "application/json; charset=utf-8", 9466 "content-type" : "application/json; charset=utf-8",
9467 }; 9467 };
9468 var resp = ""; 9468 var resp = "";
9469 return new async.Future.value(stringResponse(200, h, resp)); 9469 return new async.Future.value(stringResponse(200, h, resp));
9470 }), true); 9470 }), true);
9471 res.delete(arg_id).then(unittest.expectAsync((_) {})); 9471 res.delete(arg_id).then(unittest.expectAsync1((_) {}));
9472 }); 9472 });
9473 9473
9474 unittest.test("method--insert", () { 9474 unittest.test("method--insert", () {
9475 9475
9476 var mock = new HttpServerMock(); 9476 var mock = new HttpServerMock();
9477 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages; 9477 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages;
9478 var arg_request = buildLiveChatMessage(); 9478 var arg_request = buildLiveChatMessage();
9479 var arg_part = "foo"; 9479 var arg_part = "foo";
9480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9480 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9481 var obj = new api.LiveChatMessage.fromJson(json); 9481 var obj = new api.LiveChatMessage.fromJson(json);
9482 checkLiveChatMessage(obj); 9482 checkLiveChatMessage(obj);
9483 9483
9484 var path = (req.url).path; 9484 var path = (req.url).path;
9485 var pathOffset = 0; 9485 var pathOffset = 0;
9486 var index; 9486 var index;
9487 var subPart; 9487 var subPart;
9488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9489 pathOffset += 1; 9489 pathOffset += 1;
9490 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9490 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
9510 } 9510 }
9511 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 9511 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
9512 9512
9513 9513
9514 var h = { 9514 var h = {
9515 "content-type" : "application/json; charset=utf-8", 9515 "content-type" : "application/json; charset=utf-8",
9516 }; 9516 };
9517 var resp = convert.JSON.encode(buildLiveChatMessage()); 9517 var resp = convert.JSON.encode(buildLiveChatMessage());
9518 return new async.Future.value(stringResponse(200, h, resp)); 9518 return new async.Future.value(stringResponse(200, h, resp));
9519 }), true); 9519 }), true);
9520 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChat Message response) { 9520 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveCha tMessage response) {
9521 checkLiveChatMessage(response); 9521 checkLiveChatMessage(response);
9522 }))); 9522 })));
9523 }); 9523 });
9524 9524
9525 unittest.test("method--list", () { 9525 unittest.test("method--list", () {
9526 9526
9527 var mock = new HttpServerMock(); 9527 var mock = new HttpServerMock();
9528 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages; 9528 api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMes sages;
9529 var arg_liveChatId = "foo"; 9529 var arg_liveChatId = "foo";
9530 var arg_part = "foo"; 9530 var arg_part = "foo";
9531 var arg_hl = "foo"; 9531 var arg_hl = "foo";
9532 var arg_maxResults = 42; 9532 var arg_maxResults = 42;
9533 var arg_pageToken = "foo"; 9533 var arg_pageToken = "foo";
9534 var arg_profileImageSize = 42; 9534 var arg_profileImageSize = 42;
9535 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9535 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9536 var path = (req.url).path; 9536 var path = (req.url).path;
9537 var pathOffset = 0; 9537 var pathOffset = 0;
9538 var index; 9538 var index;
9539 var subPart; 9539 var subPart;
9540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9541 pathOffset += 1; 9541 pathOffset += 1;
9542 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9542 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9543 pathOffset += 11; 9543 pathOffset += 11;
9544 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("liveChat/messages")); 9544 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("liveChat/messages"));
9545 pathOffset += 17; 9545 pathOffset += 17;
(...skipping 21 matching lines...) Expand all
9567 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 9567 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
9568 unittest.expect(core.int.parse(queryMap["profileImageSize"].first), unit test.equals(arg_profileImageSize)); 9568 unittest.expect(core.int.parse(queryMap["profileImageSize"].first), unit test.equals(arg_profileImageSize));
9569 9569
9570 9570
9571 var h = { 9571 var h = {
9572 "content-type" : "application/json; charset=utf-8", 9572 "content-type" : "application/json; charset=utf-8",
9573 }; 9573 };
9574 var resp = convert.JSON.encode(buildLiveChatMessageListResponse()); 9574 var resp = convert.JSON.encode(buildLiveChatMessageListResponse());
9575 return new async.Future.value(stringResponse(200, h, resp)); 9575 return new async.Future.value(stringResponse(200, h, resp));
9576 }), true); 9576 }), true);
9577 res.list(arg_liveChatId, arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken, profileImageSize: arg_profileImageSize).then(unittest .expectAsync(((api.LiveChatMessageListResponse response) { 9577 res.list(arg_liveChatId, arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken, profileImageSize: arg_profileImageSize).then(unittest .expectAsync1(((api.LiveChatMessageListResponse response) {
9578 checkLiveChatMessageListResponse(response); 9578 checkLiveChatMessageListResponse(response);
9579 }))); 9579 })));
9580 }); 9580 });
9581 9581
9582 }); 9582 });
9583 9583
9584 9584
9585 unittest.group("resource-LiveChatModeratorsResourceApi", () { 9585 unittest.group("resource-LiveChatModeratorsResourceApi", () {
9586 unittest.test("method--delete", () { 9586 unittest.test("method--delete", () {
9587 9587
9588 var mock = new HttpServerMock(); 9588 var mock = new HttpServerMock();
9589 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators; 9589 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators;
9590 var arg_id = "foo"; 9590 var arg_id = "foo";
9591 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9591 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9592 var path = (req.url).path; 9592 var path = (req.url).path;
9593 var pathOffset = 0; 9593 var pathOffset = 0;
9594 var index; 9594 var index;
9595 var subPart; 9595 var subPart;
9596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9597 pathOffset += 1; 9597 pathOffset += 1;
9598 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9598 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9599 pathOffset += 11; 9599 pathOffset += 11;
9600 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveChat/moderators")); 9600 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveChat/moderators"));
9601 pathOffset += 19; 9601 pathOffset += 19;
(...skipping 16 matching lines...) Expand all
9618 } 9618 }
9619 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 9619 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
9620 9620
9621 9621
9622 var h = { 9622 var h = {
9623 "content-type" : "application/json; charset=utf-8", 9623 "content-type" : "application/json; charset=utf-8",
9624 }; 9624 };
9625 var resp = ""; 9625 var resp = "";
9626 return new async.Future.value(stringResponse(200, h, resp)); 9626 return new async.Future.value(stringResponse(200, h, resp));
9627 }), true); 9627 }), true);
9628 res.delete(arg_id).then(unittest.expectAsync((_) {})); 9628 res.delete(arg_id).then(unittest.expectAsync1((_) {}));
9629 }); 9629 });
9630 9630
9631 unittest.test("method--insert", () { 9631 unittest.test("method--insert", () {
9632 9632
9633 var mock = new HttpServerMock(); 9633 var mock = new HttpServerMock();
9634 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators; 9634 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators;
9635 var arg_request = buildLiveChatModerator(); 9635 var arg_request = buildLiveChatModerator();
9636 var arg_part = "foo"; 9636 var arg_part = "foo";
9637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9637 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9638 var obj = new api.LiveChatModerator.fromJson(json); 9638 var obj = new api.LiveChatModerator.fromJson(json);
9639 checkLiveChatModerator(obj); 9639 checkLiveChatModerator(obj);
9640 9640
9641 var path = (req.url).path; 9641 var path = (req.url).path;
9642 var pathOffset = 0; 9642 var pathOffset = 0;
9643 var index; 9643 var index;
9644 var subPart; 9644 var subPart;
9645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9646 pathOffset += 1; 9646 pathOffset += 1;
9647 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9647 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
9667 } 9667 }
9668 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 9668 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
9669 9669
9670 9670
9671 var h = { 9671 var h = {
9672 "content-type" : "application/json; charset=utf-8", 9672 "content-type" : "application/json; charset=utf-8",
9673 }; 9673 };
9674 var resp = convert.JSON.encode(buildLiveChatModerator()); 9674 var resp = convert.JSON.encode(buildLiveChatModerator());
9675 return new async.Future.value(stringResponse(200, h, resp)); 9675 return new async.Future.value(stringResponse(200, h, resp));
9676 }), true); 9676 }), true);
9677 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.LiveChat Moderator response) { 9677 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.LiveCha tModerator response) {
9678 checkLiveChatModerator(response); 9678 checkLiveChatModerator(response);
9679 }))); 9679 })));
9680 }); 9680 });
9681 9681
9682 unittest.test("method--list", () { 9682 unittest.test("method--list", () {
9683 9683
9684 var mock = new HttpServerMock(); 9684 var mock = new HttpServerMock();
9685 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators; 9685 api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatM oderators;
9686 var arg_liveChatId = "foo"; 9686 var arg_liveChatId = "foo";
9687 var arg_part = "foo"; 9687 var arg_part = "foo";
9688 var arg_maxResults = 42; 9688 var arg_maxResults = 42;
9689 var arg_pageToken = "foo"; 9689 var arg_pageToken = "foo";
9690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9690 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9691 var path = (req.url).path; 9691 var path = (req.url).path;
9692 var pathOffset = 0; 9692 var pathOffset = 0;
9693 var index; 9693 var index;
9694 var subPart; 9694 var subPart;
9695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9696 pathOffset += 1; 9696 pathOffset += 1;
9697 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9697 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9698 pathOffset += 11; 9698 pathOffset += 11;
9699 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveChat/moderators")); 9699 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("liveChat/moderators"));
9700 pathOffset += 19; 9700 pathOffset += 19;
(...skipping 19 matching lines...) Expand all
9720 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 9720 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
9721 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 9721 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
9722 9722
9723 9723
9724 var h = { 9724 var h = {
9725 "content-type" : "application/json; charset=utf-8", 9725 "content-type" : "application/json; charset=utf-8",
9726 }; 9726 };
9727 var resp = convert.JSON.encode(buildLiveChatModeratorListResponse()); 9727 var resp = convert.JSON.encode(buildLiveChatModeratorListResponse());
9728 return new async.Future.value(stringResponse(200, h, resp)); 9728 return new async.Future.value(stringResponse(200, h, resp));
9729 }), true); 9729 }), true);
9730 res.list(arg_liveChatId, arg_part, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LiveChatModeratorListResponse res ponse) { 9730 res.list(arg_liveChatId, arg_part, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LiveChatModeratorListResponse re sponse) {
9731 checkLiveChatModeratorListResponse(response); 9731 checkLiveChatModeratorListResponse(response);
9732 }))); 9732 })));
9733 }); 9733 });
9734 9734
9735 }); 9735 });
9736 9736
9737 9737
9738 unittest.group("resource-LiveStreamsResourceApi", () { 9738 unittest.group("resource-LiveStreamsResourceApi", () {
9739 unittest.test("method--delete", () { 9739 unittest.test("method--delete", () {
9740 9740
9741 var mock = new HttpServerMock(); 9741 var mock = new HttpServerMock();
9742 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; 9742 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams;
9743 var arg_id = "foo"; 9743 var arg_id = "foo";
9744 var arg_onBehalfOfContentOwner = "foo"; 9744 var arg_onBehalfOfContentOwner = "foo";
9745 var arg_onBehalfOfContentOwnerChannel = "foo"; 9745 var arg_onBehalfOfContentOwnerChannel = "foo";
9746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9747 var path = (req.url).path; 9747 var path = (req.url).path;
9748 var pathOffset = 0; 9748 var pathOffset = 0;
9749 var index; 9749 var index;
9750 var subPart; 9750 var subPart;
9751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9752 pathOffset += 1; 9752 pathOffset += 1;
9753 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9753 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9754 pathOffset += 11; 9754 pathOffset += 11;
9755 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("liveStreams")); 9755 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("liveStreams"));
9756 pathOffset += 11; 9756 pathOffset += 11;
(...skipping 18 matching lines...) Expand all
9775 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9775 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9776 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9776 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9777 9777
9778 9778
9779 var h = { 9779 var h = {
9780 "content-type" : "application/json; charset=utf-8", 9780 "content-type" : "application/json; charset=utf-8",
9781 }; 9781 };
9782 var resp = ""; 9782 var resp = "";
9783 return new async.Future.value(stringResponse(200, h, resp)); 9783 return new async.Future.value(stringResponse(200, h, resp));
9784 }), true); 9784 }), true);
9785 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp ectAsync((_) {})); 9785 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp ectAsync1((_) {}));
9786 }); 9786 });
9787 9787
9788 unittest.test("method--insert", () { 9788 unittest.test("method--insert", () {
9789 9789
9790 var mock = new HttpServerMock(); 9790 var mock = new HttpServerMock();
9791 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; 9791 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams;
9792 var arg_request = buildLiveStream(); 9792 var arg_request = buildLiveStream();
9793 var arg_part = "foo"; 9793 var arg_part = "foo";
9794 var arg_onBehalfOfContentOwner = "foo"; 9794 var arg_onBehalfOfContentOwner = "foo";
9795 var arg_onBehalfOfContentOwnerChannel = "foo"; 9795 var arg_onBehalfOfContentOwnerChannel = "foo";
9796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9796 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9797 var obj = new api.LiveStream.fromJson(json); 9797 var obj = new api.LiveStream.fromJson(json);
9798 checkLiveStream(obj); 9798 checkLiveStream(obj);
9799 9799
9800 var path = (req.url).path; 9800 var path = (req.url).path;
9801 var pathOffset = 0; 9801 var pathOffset = 0;
9802 var index; 9802 var index;
9803 var subPart; 9803 var subPart;
9804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9805 pathOffset += 1; 9805 pathOffset += 1;
9806 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9806 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
9828 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9828 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9829 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9829 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9830 9830
9831 9831
9832 var h = { 9832 var h = {
9833 "content-type" : "application/json; charset=utf-8", 9833 "content-type" : "application/json; charset=utf-8",
9834 }; 9834 };
9835 var resp = convert.JSON.encode(buildLiveStream()); 9835 var resp = convert.JSON.encode(buildLiveStream());
9836 return new async.Future.value(stringResponse(200, h, resp)); 9836 return new async.Future.value(stringResponse(200, h, resp));
9837 }), true); 9837 }), true);
9838 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.LiveStream response) { 9838 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.LiveStream response) {
9839 checkLiveStream(response); 9839 checkLiveStream(response);
9840 }))); 9840 })));
9841 }); 9841 });
9842 9842
9843 unittest.test("method--list", () { 9843 unittest.test("method--list", () {
9844 9844
9845 var mock = new HttpServerMock(); 9845 var mock = new HttpServerMock();
9846 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; 9846 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams;
9847 var arg_part = "foo"; 9847 var arg_part = "foo";
9848 var arg_id = "foo"; 9848 var arg_id = "foo";
9849 var arg_maxResults = 42; 9849 var arg_maxResults = 42;
9850 var arg_mine = true; 9850 var arg_mine = true;
9851 var arg_onBehalfOfContentOwner = "foo"; 9851 var arg_onBehalfOfContentOwner = "foo";
9852 var arg_onBehalfOfContentOwnerChannel = "foo"; 9852 var arg_onBehalfOfContentOwnerChannel = "foo";
9853 var arg_pageToken = "foo"; 9853 var arg_pageToken = "foo";
9854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9854 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9855 var path = (req.url).path; 9855 var path = (req.url).path;
9856 var pathOffset = 0; 9856 var pathOffset = 0;
9857 var index; 9857 var index;
9858 var subPart; 9858 var subPart;
9859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9860 pathOffset += 1; 9860 pathOffset += 1;
9861 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9861 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9862 pathOffset += 11; 9862 pathOffset += 11;
9863 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("liveStreams")); 9863 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("liveStreams"));
9864 pathOffset += 11; 9864 pathOffset += 11;
(...skipping 22 matching lines...) Expand all
9887 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9887 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9888 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 9888 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
9889 9889
9890 9890
9891 var h = { 9891 var h = {
9892 "content-type" : "application/json; charset=utf-8", 9892 "content-type" : "application/json; charset=utf-8",
9893 }; 9893 };
9894 var resp = convert.JSON.encode(buildLiveStreamListResponse()); 9894 var resp = convert.JSON.encode(buildLiveStreamListResponse());
9895 return new async.Future.value(stringResponse(200, h, resp)); 9895 return new async.Future.value(stringResponse(200, h, resp));
9896 }), true); 9896 }), true);
9897 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChann el: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.e xpectAsync(((api.LiveStreamListResponse response) { 9897 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChann el: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.e xpectAsync1(((api.LiveStreamListResponse response) {
9898 checkLiveStreamListResponse(response); 9898 checkLiveStreamListResponse(response);
9899 }))); 9899 })));
9900 }); 9900 });
9901 9901
9902 unittest.test("method--update", () { 9902 unittest.test("method--update", () {
9903 9903
9904 var mock = new HttpServerMock(); 9904 var mock = new HttpServerMock();
9905 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; 9905 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams;
9906 var arg_request = buildLiveStream(); 9906 var arg_request = buildLiveStream();
9907 var arg_part = "foo"; 9907 var arg_part = "foo";
9908 var arg_onBehalfOfContentOwner = "foo"; 9908 var arg_onBehalfOfContentOwner = "foo";
9909 var arg_onBehalfOfContentOwnerChannel = "foo"; 9909 var arg_onBehalfOfContentOwnerChannel = "foo";
9910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9910 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9911 var obj = new api.LiveStream.fromJson(json); 9911 var obj = new api.LiveStream.fromJson(json);
9912 checkLiveStream(obj); 9912 checkLiveStream(obj);
9913 9913
9914 var path = (req.url).path; 9914 var path = (req.url).path;
9915 var pathOffset = 0; 9915 var pathOffset = 0;
9916 var index; 9916 var index;
9917 var subPart; 9917 var subPart;
9918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9919 pathOffset += 1; 9919 pathOffset += 1;
9920 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9920 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
9942 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9942 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9943 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 9943 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
9944 9944
9945 9945
9946 var h = { 9946 var h = {
9947 "content-type" : "application/json; charset=utf-8", 9947 "content-type" : "application/json; charset=utf-8",
9948 }; 9948 };
9949 var resp = convert.JSON.encode(buildLiveStream()); 9949 var resp = convert.JSON.encode(buildLiveStream());
9950 return new async.Future.value(stringResponse(200, h, resp)); 9950 return new async.Future.value(stringResponse(200, h, resp));
9951 }), true); 9951 }), true);
9952 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.LiveStream response) { 9952 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.LiveStream response) {
9953 checkLiveStream(response); 9953 checkLiveStream(response);
9954 }))); 9954 })));
9955 }); 9955 });
9956 9956
9957 }); 9957 });
9958 9958
9959 9959
9960 unittest.group("resource-PlaylistItemsResourceApi", () { 9960 unittest.group("resource-PlaylistItemsResourceApi", () {
9961 unittest.test("method--delete", () { 9961 unittest.test("method--delete", () {
9962 9962
9963 var mock = new HttpServerMock(); 9963 var mock = new HttpServerMock();
9964 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; 9964 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems;
9965 var arg_id = "foo"; 9965 var arg_id = "foo";
9966 var arg_onBehalfOfContentOwner = "foo"; 9966 var arg_onBehalfOfContentOwner = "foo";
9967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9967 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
9968 var path = (req.url).path; 9968 var path = (req.url).path;
9969 var pathOffset = 0; 9969 var pathOffset = 0;
9970 var index; 9970 var index;
9971 var subPart; 9971 var subPart;
9972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9973 pathOffset += 1; 9973 pathOffset += 1;
9974 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 9974 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
9975 pathOffset += 11; 9975 pathOffset += 11;
9976 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("playlistItems")); 9976 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("playlistItems"));
9977 pathOffset += 13; 9977 pathOffset += 13;
(...skipping 17 matching lines...) Expand all
9995 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 9995 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
9996 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 9996 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
9997 9997
9998 9998
9999 var h = { 9999 var h = {
10000 "content-type" : "application/json; charset=utf-8", 10000 "content-type" : "application/json; charset=utf-8",
10001 }; 10001 };
10002 var resp = ""; 10002 var resp = "";
10003 return new async.Future.value(stringResponse(200, h, resp)); 10003 return new async.Future.value(stringResponse(200, h, resp));
10004 }), true); 10004 }), true);
10005 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync((_) {})); 10005 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync1((_) {}));
10006 }); 10006 });
10007 10007
10008 unittest.test("method--insert", () { 10008 unittest.test("method--insert", () {
10009 10009
10010 var mock = new HttpServerMock(); 10010 var mock = new HttpServerMock();
10011 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; 10011 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems;
10012 var arg_request = buildPlaylistItem(); 10012 var arg_request = buildPlaylistItem();
10013 var arg_part = "foo"; 10013 var arg_part = "foo";
10014 var arg_onBehalfOfContentOwner = "foo"; 10014 var arg_onBehalfOfContentOwner = "foo";
10015 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10015 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10016 var obj = new api.PlaylistItem.fromJson(json); 10016 var obj = new api.PlaylistItem.fromJson(json);
10017 checkPlaylistItem(obj); 10017 checkPlaylistItem(obj);
10018 10018
10019 var path = (req.url).path; 10019 var path = (req.url).path;
10020 var pathOffset = 0; 10020 var pathOffset = 0;
10021 var index; 10021 var index;
10022 var subPart; 10022 var subPart;
10023 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10023 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10024 pathOffset += 1; 10024 pathOffset += 1;
10025 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10025 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
10046 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 10046 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
10047 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10047 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10048 10048
10049 10049
10050 var h = { 10050 var h = {
10051 "content-type" : "application/json; charset=utf-8", 10051 "content-type" : "application/json; charset=utf-8",
10052 }; 10052 };
10053 var resp = convert.JSON.encode(buildPlaylistItem()); 10053 var resp = convert.JSON.encode(buildPlaylistItem());
10054 return new async.Future.value(stringResponse(200, h, resp)); 10054 return new async.Future.value(stringResponse(200, h, resp));
10055 }), true); 10055 }), true);
10056 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { 10056 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.PlaylistItem response) {
10057 checkPlaylistItem(response); 10057 checkPlaylistItem(response);
10058 }))); 10058 })));
10059 }); 10059 });
10060 10060
10061 unittest.test("method--list", () { 10061 unittest.test("method--list", () {
10062 10062
10063 var mock = new HttpServerMock(); 10063 var mock = new HttpServerMock();
10064 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; 10064 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems;
10065 var arg_part = "foo"; 10065 var arg_part = "foo";
10066 var arg_id = "foo"; 10066 var arg_id = "foo";
10067 var arg_maxResults = 42; 10067 var arg_maxResults = 42;
10068 var arg_onBehalfOfContentOwner = "foo"; 10068 var arg_onBehalfOfContentOwner = "foo";
10069 var arg_pageToken = "foo"; 10069 var arg_pageToken = "foo";
10070 var arg_playlistId = "foo"; 10070 var arg_playlistId = "foo";
10071 var arg_videoId = "foo"; 10071 var arg_videoId = "foo";
10072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10072 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10073 var path = (req.url).path; 10073 var path = (req.url).path;
10074 var pathOffset = 0; 10074 var pathOffset = 0;
10075 var index; 10075 var index;
10076 var subPart; 10076 var subPart;
10077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10078 pathOffset += 1; 10078 pathOffset += 1;
10079 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10079 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10080 pathOffset += 11; 10080 pathOffset += 11;
10081 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("playlistItems")); 10081 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("playlistItems"));
10082 pathOffset += 13; 10082 pathOffset += 13;
(...skipping 22 matching lines...) Expand all
10105 unittest.expect(queryMap["playlistId"].first, unittest.equals(arg_playli stId)); 10105 unittest.expect(queryMap["playlistId"].first, unittest.equals(arg_playli stId));
10106 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ; 10106 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ;
10107 10107
10108 10108
10109 var h = { 10109 var h = {
10110 "content-type" : "application/json; charset=utf-8", 10110 "content-type" : "application/json; charset=utf-8",
10111 }; 10111 };
10112 var resp = convert.JSON.encode(buildPlaylistItemListResponse()); 10112 var resp = convert.JSON.encode(buildPlaylistItemListResponse());
10113 return new async.Future.value(stringResponse(200, h, resp)); 10113 return new async.Future.value(stringResponse(200, h, resp));
10114 }), true); 10114 }), true);
10115 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfConte ntOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_p laylistId, videoId: arg_videoId).then(unittest.expectAsync(((api.PlaylistItemLis tResponse response) { 10115 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfConte ntOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_p laylistId, videoId: arg_videoId).then(unittest.expectAsync1(((api.PlaylistItemLi stResponse response) {
10116 checkPlaylistItemListResponse(response); 10116 checkPlaylistItemListResponse(response);
10117 }))); 10117 })));
10118 }); 10118 });
10119 10119
10120 unittest.test("method--update", () { 10120 unittest.test("method--update", () {
10121 10121
10122 var mock = new HttpServerMock(); 10122 var mock = new HttpServerMock();
10123 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; 10123 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems;
10124 var arg_request = buildPlaylistItem(); 10124 var arg_request = buildPlaylistItem();
10125 var arg_part = "foo"; 10125 var arg_part = "foo";
10126 var arg_onBehalfOfContentOwner = "foo"; 10126 var arg_onBehalfOfContentOwner = "foo";
10127 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10127 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10128 var obj = new api.PlaylistItem.fromJson(json); 10128 var obj = new api.PlaylistItem.fromJson(json);
10129 checkPlaylistItem(obj); 10129 checkPlaylistItem(obj);
10130 10130
10131 var path = (req.url).path; 10131 var path = (req.url).path;
10132 var pathOffset = 0; 10132 var pathOffset = 0;
10133 var index; 10133 var index;
10134 var subPart; 10134 var subPart;
10135 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10135 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10136 pathOffset += 1; 10136 pathOffset += 1;
10137 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10137 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
10158 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 10158 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
10159 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10159 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10160 10160
10161 10161
10162 var h = { 10162 var h = {
10163 "content-type" : "application/json; charset=utf-8", 10163 "content-type" : "application/json; charset=utf-8",
10164 }; 10164 };
10165 var resp = convert.JSON.encode(buildPlaylistItem()); 10165 var resp = convert.JSON.encode(buildPlaylistItem());
10166 return new async.Future.value(stringResponse(200, h, resp)); 10166 return new async.Future.value(stringResponse(200, h, resp));
10167 }), true); 10167 }), true);
10168 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { 10168 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.PlaylistItem response) {
10169 checkPlaylistItem(response); 10169 checkPlaylistItem(response);
10170 }))); 10170 })));
10171 }); 10171 });
10172 10172
10173 }); 10173 });
10174 10174
10175 10175
10176 unittest.group("resource-PlaylistsResourceApi", () { 10176 unittest.group("resource-PlaylistsResourceApi", () {
10177 unittest.test("method--delete", () { 10177 unittest.test("method--delete", () {
10178 10178
10179 var mock = new HttpServerMock(); 10179 var mock = new HttpServerMock();
10180 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; 10180 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists;
10181 var arg_id = "foo"; 10181 var arg_id = "foo";
10182 var arg_onBehalfOfContentOwner = "foo"; 10182 var arg_onBehalfOfContentOwner = "foo";
10183 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10183 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10184 var path = (req.url).path; 10184 var path = (req.url).path;
10185 var pathOffset = 0; 10185 var pathOffset = 0;
10186 var index; 10186 var index;
10187 var subPart; 10187 var subPart;
10188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10189 pathOffset += 1; 10189 pathOffset += 1;
10190 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10190 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10191 pathOffset += 11; 10191 pathOffset += 11;
10192 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("playlists")); 10192 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("playlists"));
10193 pathOffset += 9; 10193 pathOffset += 9;
(...skipping 17 matching lines...) Expand all
10211 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10211 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10212 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10212 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10213 10213
10214 10214
10215 var h = { 10215 var h = {
10216 "content-type" : "application/json; charset=utf-8", 10216 "content-type" : "application/json; charset=utf-8",
10217 }; 10217 };
10218 var resp = ""; 10218 var resp = "";
10219 return new async.Future.value(stringResponse(200, h, resp)); 10219 return new async.Future.value(stringResponse(200, h, resp));
10220 }), true); 10220 }), true);
10221 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync((_) {})); 10221 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync1((_) {}));
10222 }); 10222 });
10223 10223
10224 unittest.test("method--insert", () { 10224 unittest.test("method--insert", () {
10225 10225
10226 var mock = new HttpServerMock(); 10226 var mock = new HttpServerMock();
10227 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; 10227 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists;
10228 var arg_request = buildPlaylist(); 10228 var arg_request = buildPlaylist();
10229 var arg_part = "foo"; 10229 var arg_part = "foo";
10230 var arg_onBehalfOfContentOwner = "foo"; 10230 var arg_onBehalfOfContentOwner = "foo";
10231 var arg_onBehalfOfContentOwnerChannel = "foo"; 10231 var arg_onBehalfOfContentOwnerChannel = "foo";
10232 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10232 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10233 var obj = new api.Playlist.fromJson(json); 10233 var obj = new api.Playlist.fromJson(json);
10234 checkPlaylist(obj); 10234 checkPlaylist(obj);
10235 10235
10236 var path = (req.url).path; 10236 var path = (req.url).path;
10237 var pathOffset = 0; 10237 var pathOffset = 0;
10238 var index; 10238 var index;
10239 var subPart; 10239 var subPart;
10240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10241 pathOffset += 1; 10241 pathOffset += 1;
10242 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10242 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 21 matching lines...) Expand all
10264 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10264 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10265 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 10265 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
10266 10266
10267 10267
10268 var h = { 10268 var h = {
10269 "content-type" : "application/json; charset=utf-8", 10269 "content-type" : "application/json; charset=utf-8",
10270 }; 10270 };
10271 var resp = convert.JSON.encode(buildPlaylist()); 10271 var resp = convert.JSON.encode(buildPlaylist());
10272 return new async.Future.value(stringResponse(200, h, resp)); 10272 return new async.Future.value(stringResponse(200, h, resp));
10273 }), true); 10273 }), true);
10274 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync(((api.Playlist response) { 10274 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th en(unittest.expectAsync1(((api.Playlist response) {
10275 checkPlaylist(response); 10275 checkPlaylist(response);
10276 }))); 10276 })));
10277 }); 10277 });
10278 10278
10279 unittest.test("method--list", () { 10279 unittest.test("method--list", () {
10280 10280
10281 var mock = new HttpServerMock(); 10281 var mock = new HttpServerMock();
10282 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; 10282 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists;
10283 var arg_part = "foo"; 10283 var arg_part = "foo";
10284 var arg_channelId = "foo"; 10284 var arg_channelId = "foo";
10285 var arg_hl = "foo"; 10285 var arg_hl = "foo";
10286 var arg_id = "foo"; 10286 var arg_id = "foo";
10287 var arg_maxResults = 42; 10287 var arg_maxResults = 42;
10288 var arg_mine = true; 10288 var arg_mine = true;
10289 var arg_onBehalfOfContentOwner = "foo"; 10289 var arg_onBehalfOfContentOwner = "foo";
10290 var arg_onBehalfOfContentOwnerChannel = "foo"; 10290 var arg_onBehalfOfContentOwnerChannel = "foo";
10291 var arg_pageToken = "foo"; 10291 var arg_pageToken = "foo";
10292 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10293 var path = (req.url).path; 10293 var path = (req.url).path;
10294 var pathOffset = 0; 10294 var pathOffset = 0;
10295 var index; 10295 var index;
10296 var subPart; 10296 var subPart;
10297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10298 pathOffset += 1; 10298 pathOffset += 1;
10299 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10299 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10300 pathOffset += 11; 10300 pathOffset += 11;
10301 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("playlists")); 10301 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("playlists"));
10302 pathOffset += 9; 10302 pathOffset += 9;
(...skipping 24 matching lines...) Expand all
10327 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 10327 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
10328 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10328 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10329 10329
10330 10330
10331 var h = { 10331 var h = {
10332 "content-type" : "application/json; charset=utf-8", 10332 "content-type" : "application/json; charset=utf-8",
10333 }; 10333 };
10334 var resp = convert.JSON.encode(buildPlaylistListResponse()); 10334 var resp = convert.JSON.encode(buildPlaylistListResponse());
10335 return new async.Future.value(stringResponse(200, h, resp)); 10335 return new async.Future.value(stringResponse(200, h, resp));
10336 }), true); 10336 }), true);
10337 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, maxRe sults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfCon tentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pag eToken: arg_pageToken).then(unittest.expectAsync(((api.PlaylistListResponse resp onse) { 10337 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, maxRe sults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfCon tentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pag eToken: arg_pageToken).then(unittest.expectAsync1(((api.PlaylistListResponse res ponse) {
10338 checkPlaylistListResponse(response); 10338 checkPlaylistListResponse(response);
10339 }))); 10339 })));
10340 }); 10340 });
10341 10341
10342 unittest.test("method--update", () { 10342 unittest.test("method--update", () {
10343 10343
10344 var mock = new HttpServerMock(); 10344 var mock = new HttpServerMock();
10345 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; 10345 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists;
10346 var arg_request = buildPlaylist(); 10346 var arg_request = buildPlaylist();
10347 var arg_part = "foo"; 10347 var arg_part = "foo";
10348 var arg_onBehalfOfContentOwner = "foo"; 10348 var arg_onBehalfOfContentOwner = "foo";
10349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10349 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10350 var obj = new api.Playlist.fromJson(json); 10350 var obj = new api.Playlist.fromJson(json);
10351 checkPlaylist(obj); 10351 checkPlaylist(obj);
10352 10352
10353 var path = (req.url).path; 10353 var path = (req.url).path;
10354 var pathOffset = 0; 10354 var pathOffset = 0;
10355 var index; 10355 var index;
10356 var subPart; 10356 var subPart;
10357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10358 pathOffset += 1; 10358 pathOffset += 1;
10359 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10359 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
10380 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 10380 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
10381 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10381 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10382 10382
10383 10383
10384 var h = { 10384 var h = {
10385 "content-type" : "application/json; charset=utf-8", 10385 "content-type" : "application/json; charset=utf-8",
10386 }; 10386 };
10387 var resp = convert.JSON.encode(buildPlaylist()); 10387 var resp = convert.JSON.encode(buildPlaylist());
10388 return new async.Future.value(stringResponse(200, h, resp)); 10388 return new async.Future.value(stringResponse(200, h, resp));
10389 }), true); 10389 }), true);
10390 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.Playlist response) { 10390 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.Playlist response) {
10391 checkPlaylist(response); 10391 checkPlaylist(response);
10392 }))); 10392 })));
10393 }); 10393 });
10394 10394
10395 }); 10395 });
10396 10396
10397 10397
10398 unittest.group("resource-SearchResourceApi", () { 10398 unittest.group("resource-SearchResourceApi", () {
10399 unittest.test("method--list", () { 10399 unittest.test("method--list", () {
10400 10400
(...skipping 23 matching lines...) Expand all
10424 var arg_type = "foo"; 10424 var arg_type = "foo";
10425 var arg_videoCaption = "foo"; 10425 var arg_videoCaption = "foo";
10426 var arg_videoCategoryId = "foo"; 10426 var arg_videoCategoryId = "foo";
10427 var arg_videoDefinition = "foo"; 10427 var arg_videoDefinition = "foo";
10428 var arg_videoDimension = "foo"; 10428 var arg_videoDimension = "foo";
10429 var arg_videoDuration = "foo"; 10429 var arg_videoDuration = "foo";
10430 var arg_videoEmbeddable = "foo"; 10430 var arg_videoEmbeddable = "foo";
10431 var arg_videoLicense = "foo"; 10431 var arg_videoLicense = "foo";
10432 var arg_videoSyndicated = "foo"; 10432 var arg_videoSyndicated = "foo";
10433 var arg_videoType = "foo"; 10433 var arg_videoType = "foo";
10434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10434 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10435 var path = (req.url).path; 10435 var path = (req.url).path;
10436 var pathOffset = 0; 10436 var pathOffset = 0;
10437 var index; 10437 var index;
10438 var subPart; 10438 var subPart;
10439 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10439 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10440 pathOffset += 1; 10440 pathOffset += 1;
10441 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10441 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10442 pathOffset += 11; 10442 pathOffset += 11;
10443 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("search")); 10443 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("search"));
10444 pathOffset += 6; 10444 pathOffset += 6;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
10491 unittest.expect(queryMap["videoSyndicated"].first, unittest.equals(arg_v ideoSyndicated)); 10491 unittest.expect(queryMap["videoSyndicated"].first, unittest.equals(arg_v ideoSyndicated));
10492 unittest.expect(queryMap["videoType"].first, unittest.equals(arg_videoTy pe)); 10492 unittest.expect(queryMap["videoType"].first, unittest.equals(arg_videoTy pe));
10493 10493
10494 10494
10495 var h = { 10495 var h = {
10496 "content-type" : "application/json; charset=utf-8", 10496 "content-type" : "application/json; charset=utf-8",
10497 }; 10497 };
10498 var resp = convert.JSON.encode(buildSearchListResponse()); 10498 var resp = convert.JSON.encode(buildSearchListResponse());
10499 return new async.Future.value(stringResponse(200, h, resp)); 10499 return new async.Future.value(stringResponse(200, h, resp));
10500 }), true); 10500 }), true);
10501 res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType, eventType: arg_eventType, forContentOwner: arg_forContentOwner, forDeveloper: a rg_forDeveloper, forMine: arg_forMine, location: arg_location, locationRadius: a rg_locationRadius, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBeh alfOfContentOwner, order: arg_order, pageToken: arg_pageToken, publishedAfter: a rg_publishedAfter, publishedBefore: arg_publishedBefore, q: arg_q, regionCode: a rg_regionCode, relatedToVideoId: arg_relatedToVideoId, relevanceLanguage: arg_re levanceLanguage, safeSearch: arg_safeSearch, topicId: arg_topicId, type: arg_typ e, videoCaption: arg_videoCaption, videoCategoryId: arg_videoCategoryId, videoDe finition: arg_videoDefinition, videoDimension: arg_videoDimension, videoDuration : arg_videoDuration, videoEmbeddable: arg_videoEmbeddable, videoLicense: arg_vid eoLicense, videoSyndicated: arg_videoSyndicated, videoType: arg_videoType).then( unittest.expectAsync(((api.SearchListResponse response) { 10501 res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType, eventType: arg_eventType, forContentOwner: arg_forContentOwner, forDeveloper: a rg_forDeveloper, forMine: arg_forMine, location: arg_location, locationRadius: a rg_locationRadius, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBeh alfOfContentOwner, order: arg_order, pageToken: arg_pageToken, publishedAfter: a rg_publishedAfter, publishedBefore: arg_publishedBefore, q: arg_q, regionCode: a rg_regionCode, relatedToVideoId: arg_relatedToVideoId, relevanceLanguage: arg_re levanceLanguage, safeSearch: arg_safeSearch, topicId: arg_topicId, type: arg_typ e, videoCaption: arg_videoCaption, videoCategoryId: arg_videoCategoryId, videoDe finition: arg_videoDefinition, videoDimension: arg_videoDimension, videoDuration : arg_videoDuration, videoEmbeddable: arg_videoEmbeddable, videoLicense: arg_vid eoLicense, videoSyndicated: arg_videoSyndicated, videoType: arg_videoType).then( unittest.expectAsync1(((api.SearchListResponse response) {
10502 checkSearchListResponse(response); 10502 checkSearchListResponse(response);
10503 }))); 10503 })));
10504 }); 10504 });
10505 10505
10506 }); 10506 });
10507 10507
10508 10508
10509 unittest.group("resource-SponsorsResourceApi", () { 10509 unittest.group("resource-SponsorsResourceApi", () {
10510 unittest.test("method--list", () { 10510 unittest.test("method--list", () {
10511 10511
10512 var mock = new HttpServerMock(); 10512 var mock = new HttpServerMock();
10513 api.SponsorsResourceApi res = new api.YoutubeApi(mock).sponsors; 10513 api.SponsorsResourceApi res = new api.YoutubeApi(mock).sponsors;
10514 var arg_part = "foo"; 10514 var arg_part = "foo";
10515 var arg_filter = "foo"; 10515 var arg_filter = "foo";
10516 var arg_maxResults = 42; 10516 var arg_maxResults = 42;
10517 var arg_pageToken = "foo"; 10517 var arg_pageToken = "foo";
10518 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10518 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10519 var path = (req.url).path; 10519 var path = (req.url).path;
10520 var pathOffset = 0; 10520 var pathOffset = 0;
10521 var index; 10521 var index;
10522 var subPart; 10522 var subPart;
10523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10524 pathOffset += 1; 10524 pathOffset += 1;
10525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10526 pathOffset += 11; 10526 pathOffset += 11;
10527 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("sponsors")); 10527 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("sponsors"));
10528 pathOffset += 8; 10528 pathOffset += 8;
(...skipping 19 matching lines...) Expand all
10548 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 10548 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
10549 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10549 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10550 10550
10551 10551
10552 var h = { 10552 var h = {
10553 "content-type" : "application/json; charset=utf-8", 10553 "content-type" : "application/json; charset=utf-8",
10554 }; 10554 };
10555 var resp = convert.JSON.encode(buildSponsorListResponse()); 10555 var resp = convert.JSON.encode(buildSponsorListResponse());
10556 return new async.Future.value(stringResponse(200, h, resp)); 10556 return new async.Future.value(stringResponse(200, h, resp));
10557 }), true); 10557 }), true);
10558 res.list(arg_part, filter: arg_filter, maxResults: arg_maxResults, pageTok en: arg_pageToken).then(unittest.expectAsync(((api.SponsorListResponse response) { 10558 res.list(arg_part, filter: arg_filter, maxResults: arg_maxResults, pageTok en: arg_pageToken).then(unittest.expectAsync1(((api.SponsorListResponse response ) {
10559 checkSponsorListResponse(response); 10559 checkSponsorListResponse(response);
10560 }))); 10560 })));
10561 }); 10561 });
10562 10562
10563 }); 10563 });
10564 10564
10565 10565
10566 unittest.group("resource-SubscriptionsResourceApi", () { 10566 unittest.group("resource-SubscriptionsResourceApi", () {
10567 unittest.test("method--delete", () { 10567 unittest.test("method--delete", () {
10568 10568
10569 var mock = new HttpServerMock(); 10569 var mock = new HttpServerMock();
10570 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; 10570 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions;
10571 var arg_id = "foo"; 10571 var arg_id = "foo";
10572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10572 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10573 var path = (req.url).path; 10573 var path = (req.url).path;
10574 var pathOffset = 0; 10574 var pathOffset = 0;
10575 var index; 10575 var index;
10576 var subPart; 10576 var subPart;
10577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10578 pathOffset += 1; 10578 pathOffset += 1;
10579 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10579 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10580 pathOffset += 11; 10580 pathOffset += 11;
10581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("subscriptions")); 10581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("subscriptions"));
10582 pathOffset += 13; 10582 pathOffset += 13;
(...skipping 16 matching lines...) Expand all
10599 } 10599 }
10600 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10600 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10601 10601
10602 10602
10603 var h = { 10603 var h = {
10604 "content-type" : "application/json; charset=utf-8", 10604 "content-type" : "application/json; charset=utf-8",
10605 }; 10605 };
10606 var resp = ""; 10606 var resp = "";
10607 return new async.Future.value(stringResponse(200, h, resp)); 10607 return new async.Future.value(stringResponse(200, h, resp));
10608 }), true); 10608 }), true);
10609 res.delete(arg_id).then(unittest.expectAsync((_) {})); 10609 res.delete(arg_id).then(unittest.expectAsync1((_) {}));
10610 }); 10610 });
10611 10611
10612 unittest.test("method--insert", () { 10612 unittest.test("method--insert", () {
10613 10613
10614 var mock = new HttpServerMock(); 10614 var mock = new HttpServerMock();
10615 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; 10615 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions;
10616 var arg_request = buildSubscription(); 10616 var arg_request = buildSubscription();
10617 var arg_part = "foo"; 10617 var arg_part = "foo";
10618 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10618 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10619 var obj = new api.Subscription.fromJson(json); 10619 var obj = new api.Subscription.fromJson(json);
10620 checkSubscription(obj); 10620 checkSubscription(obj);
10621 10621
10622 var path = (req.url).path; 10622 var path = (req.url).path;
10623 var pathOffset = 0; 10623 var pathOffset = 0;
10624 var index; 10624 var index;
10625 var subPart; 10625 var subPart;
10626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10627 pathOffset += 1; 10627 pathOffset += 1;
10628 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10628 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
10648 } 10648 }
10649 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 10649 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
10650 10650
10651 10651
10652 var h = { 10652 var h = {
10653 "content-type" : "application/json; charset=utf-8", 10653 "content-type" : "application/json; charset=utf-8",
10654 }; 10654 };
10655 var resp = convert.JSON.encode(buildSubscription()); 10655 var resp = convert.JSON.encode(buildSubscription());
10656 return new async.Future.value(stringResponse(200, h, resp)); 10656 return new async.Future.value(stringResponse(200, h, resp));
10657 }), true); 10657 }), true);
10658 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Subscrip tion response) { 10658 res.insert(arg_request, arg_part).then(unittest.expectAsync1(((api.Subscri ption response) {
10659 checkSubscription(response); 10659 checkSubscription(response);
10660 }))); 10660 })));
10661 }); 10661 });
10662 10662
10663 unittest.test("method--list", () { 10663 unittest.test("method--list", () {
10664 10664
10665 var mock = new HttpServerMock(); 10665 var mock = new HttpServerMock();
10666 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; 10666 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions;
10667 var arg_part = "foo"; 10667 var arg_part = "foo";
10668 var arg_channelId = "foo"; 10668 var arg_channelId = "foo";
10669 var arg_forChannelId = "foo"; 10669 var arg_forChannelId = "foo";
10670 var arg_id = "foo"; 10670 var arg_id = "foo";
10671 var arg_maxResults = 42; 10671 var arg_maxResults = 42;
10672 var arg_mine = true; 10672 var arg_mine = true;
10673 var arg_myRecentSubscribers = true; 10673 var arg_myRecentSubscribers = true;
10674 var arg_mySubscribers = true; 10674 var arg_mySubscribers = true;
10675 var arg_onBehalfOfContentOwner = "foo"; 10675 var arg_onBehalfOfContentOwner = "foo";
10676 var arg_onBehalfOfContentOwnerChannel = "foo"; 10676 var arg_onBehalfOfContentOwnerChannel = "foo";
10677 var arg_order = "foo"; 10677 var arg_order = "foo";
10678 var arg_pageToken = "foo"; 10678 var arg_pageToken = "foo";
10679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10679 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10680 var path = (req.url).path; 10680 var path = (req.url).path;
10681 var pathOffset = 0; 10681 var pathOffset = 0;
10682 var index; 10682 var index;
10683 var subPart; 10683 var subPart;
10684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10685 pathOffset += 1; 10685 pathOffset += 1;
10686 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10686 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10687 pathOffset += 11; 10687 pathOffset += 11;
10688 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("subscriptions")); 10688 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("subscriptions"));
10689 pathOffset += 13; 10689 pathOffset += 13;
(...skipping 27 matching lines...) Expand all
10717 unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); 10717 unittest.expect(queryMap["order"].first, unittest.equals(arg_order));
10718 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10718 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10719 10719
10720 10720
10721 var h = { 10721 var h = {
10722 "content-type" : "application/json; charset=utf-8", 10722 "content-type" : "application/json; charset=utf-8",
10723 }; 10723 };
10724 var resp = convert.JSON.encode(buildSubscriptionListResponse()); 10724 var resp = convert.JSON.encode(buildSubscriptionListResponse());
10725 return new async.Future.value(stringResponse(200, h, resp)); 10725 return new async.Future.value(stringResponse(200, h, resp));
10726 }), true); 10726 }), true);
10727 res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelI d, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, myRecentSubscribers: arg_myRecentSubscribers, mySubscribers: arg_mySubscribers, onBehalfOfContentOwne r: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCont entOwnerChannel, order: arg_order, pageToken: arg_pageToken).then(unittest.expec tAsync(((api.SubscriptionListResponse response) { 10727 res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelI d, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, myRecentSubscribers: arg_myRecentSubscribers, mySubscribers: arg_mySubscribers, onBehalfOfContentOwne r: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCont entOwnerChannel, order: arg_order, pageToken: arg_pageToken).then(unittest.expec tAsync1(((api.SubscriptionListResponse response) {
10728 checkSubscriptionListResponse(response); 10728 checkSubscriptionListResponse(response);
10729 }))); 10729 })));
10730 }); 10730 });
10731 10731
10732 }); 10732 });
10733 10733
10734 10734
10735 unittest.group("resource-SuperChatEventsResourceApi", () { 10735 unittest.group("resource-SuperChatEventsResourceApi", () {
10736 unittest.test("method--list", () { 10736 unittest.test("method--list", () {
10737 10737
10738 var mock = new HttpServerMock(); 10738 var mock = new HttpServerMock();
10739 api.SuperChatEventsResourceApi res = new api.YoutubeApi(mock).superChatEve nts; 10739 api.SuperChatEventsResourceApi res = new api.YoutubeApi(mock).superChatEve nts;
10740 var arg_part = "foo"; 10740 var arg_part = "foo";
10741 var arg_hl = "foo"; 10741 var arg_hl = "foo";
10742 var arg_maxResults = 42; 10742 var arg_maxResults = 42;
10743 var arg_pageToken = "foo"; 10743 var arg_pageToken = "foo";
10744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10744 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10745 var path = (req.url).path; 10745 var path = (req.url).path;
10746 var pathOffset = 0; 10746 var pathOffset = 0;
10747 var index; 10747 var index;
10748 var subPart; 10748 var subPart;
10749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10750 pathOffset += 1; 10750 pathOffset += 1;
10751 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10751 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10752 pathOffset += 11; 10752 pathOffset += 11;
10753 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("superChatEvents")); 10753 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("superChatEvents"));
10754 pathOffset += 15; 10754 pathOffset += 15;
(...skipping 19 matching lines...) Expand all
10774 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 10774 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
10775 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10775 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10776 10776
10777 10777
10778 var h = { 10778 var h = {
10779 "content-type" : "application/json; charset=utf-8", 10779 "content-type" : "application/json; charset=utf-8",
10780 }; 10780 };
10781 var resp = convert.JSON.encode(buildSuperChatEventListResponse()); 10781 var resp = convert.JSON.encode(buildSuperChatEventListResponse());
10782 return new async.Future.value(stringResponse(200, h, resp)); 10782 return new async.Future.value(stringResponse(200, h, resp));
10783 }), true); 10783 }), true);
10784 res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_ pageToken).then(unittest.expectAsync(((api.SuperChatEventListResponse response) { 10784 res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_ pageToken).then(unittest.expectAsync1(((api.SuperChatEventListResponse response) {
10785 checkSuperChatEventListResponse(response); 10785 checkSuperChatEventListResponse(response);
10786 }))); 10786 })));
10787 }); 10787 });
10788 10788
10789 }); 10789 });
10790 10790
10791 10791
10792 unittest.group("resource-ThumbnailsResourceApi", () { 10792 unittest.group("resource-ThumbnailsResourceApi", () {
10793 unittest.test("method--set", () { 10793 unittest.test("method--set", () {
10794 // TODO: Implement tests for media upload; 10794 // TODO: Implement tests for media upload;
10795 // TODO: Implement tests for media download; 10795 // TODO: Implement tests for media download;
10796 10796
10797 var mock = new HttpServerMock(); 10797 var mock = new HttpServerMock();
10798 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; 10798 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails;
10799 var arg_videoId = "foo"; 10799 var arg_videoId = "foo";
10800 var arg_onBehalfOfContentOwner = "foo"; 10800 var arg_onBehalfOfContentOwner = "foo";
10801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10801 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10802 var path = (req.url).path; 10802 var path = (req.url).path;
10803 var pathOffset = 0; 10803 var pathOffset = 0;
10804 var index; 10804 var index;
10805 var subPart; 10805 var subPart;
10806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10807 pathOffset += 1; 10807 pathOffset += 1;
10808 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10808 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10809 pathOffset += 11; 10809 pathOffset += 11;
10810 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("thumbnails/set")); 10810 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("thumbnails/set"));
10811 pathOffset += 14; 10811 pathOffset += 14;
(...skipping 17 matching lines...) Expand all
10829 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ; 10829 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId)) ;
10830 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10830 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10831 10831
10832 10832
10833 var h = { 10833 var h = {
10834 "content-type" : "application/json; charset=utf-8", 10834 "content-type" : "application/json; charset=utf-8",
10835 }; 10835 };
10836 var resp = convert.JSON.encode(buildThumbnailSetResponse()); 10836 var resp = convert.JSON.encode(buildThumbnailSetResponse());
10837 return new async.Future.value(stringResponse(200, h, resp)); 10837 return new async.Future.value(stringResponse(200, h, resp));
10838 }), true); 10838 }), true);
10839 res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).t hen(unittest.expectAsync(((api.ThumbnailSetResponse response) { 10839 res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).t hen(unittest.expectAsync1(((api.ThumbnailSetResponse response) {
10840 checkThumbnailSetResponse(response); 10840 checkThumbnailSetResponse(response);
10841 }))); 10841 })));
10842 }); 10842 });
10843 10843
10844 }); 10844 });
10845 10845
10846 10846
10847 unittest.group("resource-VideoAbuseReportReasonsResourceApi", () { 10847 unittest.group("resource-VideoAbuseReportReasonsResourceApi", () {
10848 unittest.test("method--list", () { 10848 unittest.test("method--list", () {
10849 10849
10850 var mock = new HttpServerMock(); 10850 var mock = new HttpServerMock();
10851 api.VideoAbuseReportReasonsResourceApi res = new api.YoutubeApi(mock).vide oAbuseReportReasons; 10851 api.VideoAbuseReportReasonsResourceApi res = new api.YoutubeApi(mock).vide oAbuseReportReasons;
10852 var arg_part = "foo"; 10852 var arg_part = "foo";
10853 var arg_hl = "foo"; 10853 var arg_hl = "foo";
10854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10854 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10855 var path = (req.url).path; 10855 var path = (req.url).path;
10856 var pathOffset = 0; 10856 var pathOffset = 0;
10857 var index; 10857 var index;
10858 var subPart; 10858 var subPart;
10859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10860 pathOffset += 1; 10860 pathOffset += 1;
10861 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10861 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10862 pathOffset += 11; 10862 pathOffset += 11;
10863 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("videoAbuseReportReasons")); 10863 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("videoAbuseReportReasons"));
10864 pathOffset += 23; 10864 pathOffset += 23;
(...skipping 17 matching lines...) Expand all
10882 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 10882 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
10883 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); 10883 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl));
10884 10884
10885 10885
10886 var h = { 10886 var h = {
10887 "content-type" : "application/json; charset=utf-8", 10887 "content-type" : "application/json; charset=utf-8",
10888 }; 10888 };
10889 var resp = convert.JSON.encode(buildVideoAbuseReportReasonListResponse() ); 10889 var resp = convert.JSON.encode(buildVideoAbuseReportReasonListResponse() );
10890 return new async.Future.value(stringResponse(200, h, resp)); 10890 return new async.Future.value(stringResponse(200, h, resp));
10891 }), true); 10891 }), true);
10892 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.VideoAbuseR eportReasonListResponse response) { 10892 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync1(((api.VideoAbuse ReportReasonListResponse response) {
10893 checkVideoAbuseReportReasonListResponse(response); 10893 checkVideoAbuseReportReasonListResponse(response);
10894 }))); 10894 })));
10895 }); 10895 });
10896 10896
10897 }); 10897 });
10898 10898
10899 10899
10900 unittest.group("resource-VideoCategoriesResourceApi", () { 10900 unittest.group("resource-VideoCategoriesResourceApi", () {
10901 unittest.test("method--list", () { 10901 unittest.test("method--list", () {
10902 10902
10903 var mock = new HttpServerMock(); 10903 var mock = new HttpServerMock();
10904 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor ies; 10904 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor ies;
10905 var arg_part = "foo"; 10905 var arg_part = "foo";
10906 var arg_hl = "foo"; 10906 var arg_hl = "foo";
10907 var arg_id = "foo"; 10907 var arg_id = "foo";
10908 var arg_regionCode = "foo"; 10908 var arg_regionCode = "foo";
10909 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10909 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10910 var path = (req.url).path; 10910 var path = (req.url).path;
10911 var pathOffset = 0; 10911 var pathOffset = 0;
10912 var index; 10912 var index;
10913 var subPart; 10913 var subPart;
10914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10915 pathOffset += 1; 10915 pathOffset += 1;
10916 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10916 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10917 pathOffset += 11; 10917 pathOffset += 11;
10918 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("videoCategories")); 10918 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("videoCategories"));
10919 pathOffset += 15; 10919 pathOffset += 15;
(...skipping 19 matching lines...) Expand all
10939 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10939 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10940 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code)); 10940 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code));
10941 10941
10942 10942
10943 var h = { 10943 var h = {
10944 "content-type" : "application/json; charset=utf-8", 10944 "content-type" : "application/json; charset=utf-8",
10945 }; 10945 };
10946 var resp = convert.JSON.encode(buildVideoCategoryListResponse()); 10946 var resp = convert.JSON.encode(buildVideoCategoryListResponse());
10947 return new async.Future.value(stringResponse(200, h, resp)); 10947 return new async.Future.value(stringResponse(200, h, resp));
10948 }), true); 10948 }), true);
10949 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the n(unittest.expectAsync(((api.VideoCategoryListResponse response) { 10949 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the n(unittest.expectAsync1(((api.VideoCategoryListResponse response) {
10950 checkVideoCategoryListResponse(response); 10950 checkVideoCategoryListResponse(response);
10951 }))); 10951 })));
10952 }); 10952 });
10953 10953
10954 }); 10954 });
10955 10955
10956 10956
10957 unittest.group("resource-VideosResourceApi", () { 10957 unittest.group("resource-VideosResourceApi", () {
10958 unittest.test("method--delete", () { 10958 unittest.test("method--delete", () {
10959 10959
10960 var mock = new HttpServerMock(); 10960 var mock = new HttpServerMock();
10961 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 10961 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
10962 var arg_id = "foo"; 10962 var arg_id = "foo";
10963 var arg_onBehalfOfContentOwner = "foo"; 10963 var arg_onBehalfOfContentOwner = "foo";
10964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10964 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
10965 var path = (req.url).path; 10965 var path = (req.url).path;
10966 var pathOffset = 0; 10966 var pathOffset = 0;
10967 var index; 10967 var index;
10968 var subPart; 10968 var subPart;
10969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10970 pathOffset += 1; 10970 pathOffset += 1;
10971 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 10971 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
10972 pathOffset += 11; 10972 pathOffset += 11;
10973 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("videos")); 10973 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("videos"));
10974 pathOffset += 6; 10974 pathOffset += 6;
(...skipping 17 matching lines...) Expand all
10992 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10992 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10993 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 10993 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
10994 10994
10995 10995
10996 var h = { 10996 var h = {
10997 "content-type" : "application/json; charset=utf-8", 10997 "content-type" : "application/json; charset=utf-8",
10998 }; 10998 };
10999 var resp = ""; 10999 var resp = "";
11000 return new async.Future.value(stringResponse(200, h, resp)); 11000 return new async.Future.value(stringResponse(200, h, resp));
11001 }), true); 11001 }), true);
11002 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync((_) {})); 11002 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the n(unittest.expectAsync1((_) {}));
11003 }); 11003 });
11004 11004
11005 unittest.test("method--getRating", () { 11005 unittest.test("method--getRating", () {
11006 11006
11007 var mock = new HttpServerMock(); 11007 var mock = new HttpServerMock();
11008 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11008 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11009 var arg_id = "foo"; 11009 var arg_id = "foo";
11010 var arg_onBehalfOfContentOwner = "foo"; 11010 var arg_onBehalfOfContentOwner = "foo";
11011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11011 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11012 var path = (req.url).path; 11012 var path = (req.url).path;
11013 var pathOffset = 0; 11013 var pathOffset = 0;
11014 var index; 11014 var index;
11015 var subPart; 11015 var subPart;
11016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11017 pathOffset += 1; 11017 pathOffset += 1;
11018 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11018 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
11019 pathOffset += 11; 11019 pathOffset += 11;
11020 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("videos/getRating")); 11020 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("videos/getRating"));
11021 pathOffset += 16; 11021 pathOffset += 16;
(...skipping 17 matching lines...) Expand all
11039 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 11039 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
11040 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 11040 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
11041 11041
11042 11042
11043 var h = { 11043 var h = {
11044 "content-type" : "application/json; charset=utf-8", 11044 "content-type" : "application/json; charset=utf-8",
11045 }; 11045 };
11046 var resp = convert.JSON.encode(buildVideoGetRatingResponse()); 11046 var resp = convert.JSON.encode(buildVideoGetRatingResponse());
11047 return new async.Future.value(stringResponse(200, h, resp)); 11047 return new async.Future.value(stringResponse(200, h, resp));
11048 }), true); 11048 }), true);
11049 res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner). then(unittest.expectAsync(((api.VideoGetRatingResponse response) { 11049 res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner). then(unittest.expectAsync1(((api.VideoGetRatingResponse response) {
11050 checkVideoGetRatingResponse(response); 11050 checkVideoGetRatingResponse(response);
11051 }))); 11051 })));
11052 }); 11052 });
11053 11053
11054 unittest.test("method--insert", () { 11054 unittest.test("method--insert", () {
11055 // TODO: Implement tests for media upload; 11055 // TODO: Implement tests for media upload;
11056 // TODO: Implement tests for media download; 11056 // TODO: Implement tests for media download;
11057 11057
11058 var mock = new HttpServerMock(); 11058 var mock = new HttpServerMock();
11059 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11059 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11060 var arg_request = buildVideo(); 11060 var arg_request = buildVideo();
11061 var arg_part = "foo"; 11061 var arg_part = "foo";
11062 var arg_autoLevels = true; 11062 var arg_autoLevels = true;
11063 var arg_notifySubscribers = true; 11063 var arg_notifySubscribers = true;
11064 var arg_onBehalfOfContentOwner = "foo"; 11064 var arg_onBehalfOfContentOwner = "foo";
11065 var arg_onBehalfOfContentOwnerChannel = "foo"; 11065 var arg_onBehalfOfContentOwnerChannel = "foo";
11066 var arg_stabilize = true; 11066 var arg_stabilize = true;
11067 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11067 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11068 var obj = new api.Video.fromJson(json); 11068 var obj = new api.Video.fromJson(json);
11069 checkVideo(obj); 11069 checkVideo(obj);
11070 11070
11071 var path = (req.url).path; 11071 var path = (req.url).path;
11072 var pathOffset = 0; 11072 var pathOffset = 0;
11073 var index; 11073 var index;
11074 var subPart; 11074 var subPart;
11075 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11075 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11076 pathOffset += 1; 11076 pathOffset += 1;
11077 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11077 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 24 matching lines...) Expand all
11102 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel)); 11102 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes t.equals(arg_onBehalfOfContentOwnerChannel));
11103 unittest.expect(queryMap["stabilize"].first, unittest.equals("$arg_stabi lize")); 11103 unittest.expect(queryMap["stabilize"].first, unittest.equals("$arg_stabi lize"));
11104 11104
11105 11105
11106 var h = { 11106 var h = {
11107 "content-type" : "application/json; charset=utf-8", 11107 "content-type" : "application/json; charset=utf-8",
11108 }; 11108 };
11109 var resp = convert.JSON.encode(buildVideo()); 11109 var resp = convert.JSON.encode(buildVideo());
11110 return new async.Future.value(stringResponse(200, h, resp)); 11110 return new async.Future.value(stringResponse(200, h, resp));
11111 }), true); 11111 }), true);
11112 res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscr ibers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner , onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: a rg_stabilize).then(unittest.expectAsync(((api.Video response) { 11112 res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscr ibers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner , onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: a rg_stabilize).then(unittest.expectAsync1(((api.Video response) {
11113 checkVideo(response); 11113 checkVideo(response);
11114 }))); 11114 })));
11115 }); 11115 });
11116 11116
11117 unittest.test("method--list", () { 11117 unittest.test("method--list", () {
11118 11118
11119 var mock = new HttpServerMock(); 11119 var mock = new HttpServerMock();
11120 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11120 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11121 var arg_part = "foo"; 11121 var arg_part = "foo";
11122 var arg_chart = "foo"; 11122 var arg_chart = "foo";
11123 var arg_hl = "foo"; 11123 var arg_hl = "foo";
11124 var arg_id = "foo"; 11124 var arg_id = "foo";
11125 var arg_locale = "foo"; 11125 var arg_locale = "foo";
11126 var arg_maxHeight = 42; 11126 var arg_maxHeight = 42;
11127 var arg_maxResults = 42; 11127 var arg_maxResults = 42;
11128 var arg_maxWidth = 42; 11128 var arg_maxWidth = 42;
11129 var arg_myRating = "foo"; 11129 var arg_myRating = "foo";
11130 var arg_onBehalfOfContentOwner = "foo"; 11130 var arg_onBehalfOfContentOwner = "foo";
11131 var arg_pageToken = "foo"; 11131 var arg_pageToken = "foo";
11132 var arg_regionCode = "foo"; 11132 var arg_regionCode = "foo";
11133 var arg_videoCategoryId = "foo"; 11133 var arg_videoCategoryId = "foo";
11134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11134 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11135 var path = (req.url).path; 11135 var path = (req.url).path;
11136 var pathOffset = 0; 11136 var pathOffset = 0;
11137 var index; 11137 var index;
11138 var subPart; 11138 var subPart;
11139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11140 pathOffset += 1; 11140 pathOffset += 1;
11141 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11141 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
11142 pathOffset += 11; 11142 pathOffset += 11;
11143 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("videos")); 11143 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("videos"));
11144 pathOffset += 6; 11144 pathOffset += 6;
(...skipping 28 matching lines...) Expand all
11173 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code)); 11173 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region Code));
11174 unittest.expect(queryMap["videoCategoryId"].first, unittest.equals(arg_v ideoCategoryId)); 11174 unittest.expect(queryMap["videoCategoryId"].first, unittest.equals(arg_v ideoCategoryId));
11175 11175
11176 11176
11177 var h = { 11177 var h = {
11178 "content-type" : "application/json; charset=utf-8", 11178 "content-type" : "application/json; charset=utf-8",
11179 }; 11179 };
11180 var resp = convert.JSON.encode(buildVideoListResponse()); 11180 var resp = convert.JSON.encode(buildVideoListResponse());
11181 return new async.Future.value(stringResponse(200, h, resp)); 11181 return new async.Future.value(stringResponse(200, h, resp));
11182 }), true); 11182 }), true);
11183 res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_l ocale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWi dth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_vide oCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { 11183 res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_l ocale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWi dth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_vide oCategoryId).then(unittest.expectAsync1(((api.VideoListResponse response) {
11184 checkVideoListResponse(response); 11184 checkVideoListResponse(response);
11185 }))); 11185 })));
11186 }); 11186 });
11187 11187
11188 unittest.test("method--rate", () { 11188 unittest.test("method--rate", () {
11189 11189
11190 var mock = new HttpServerMock(); 11190 var mock = new HttpServerMock();
11191 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11191 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11192 var arg_id = "foo"; 11192 var arg_id = "foo";
11193 var arg_rating = "foo"; 11193 var arg_rating = "foo";
11194 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11194 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11195 var path = (req.url).path; 11195 var path = (req.url).path;
11196 var pathOffset = 0; 11196 var pathOffset = 0;
11197 var index; 11197 var index;
11198 var subPart; 11198 var subPart;
11199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11200 pathOffset += 1; 11200 pathOffset += 1;
11201 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11201 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
11202 pathOffset += 11; 11202 pathOffset += 11;
11203 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("videos/rate")); 11203 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("videos/rate"));
11204 pathOffset += 11; 11204 pathOffset += 11;
(...skipping 17 matching lines...) Expand all
11222 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 11222 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
11223 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); 11223 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating));
11224 11224
11225 11225
11226 var h = { 11226 var h = {
11227 "content-type" : "application/json; charset=utf-8", 11227 "content-type" : "application/json; charset=utf-8",
11228 }; 11228 };
11229 var resp = ""; 11229 var resp = "";
11230 return new async.Future.value(stringResponse(200, h, resp)); 11230 return new async.Future.value(stringResponse(200, h, resp));
11231 }), true); 11231 }), true);
11232 res.rate(arg_id, arg_rating).then(unittest.expectAsync((_) {})); 11232 res.rate(arg_id, arg_rating).then(unittest.expectAsync1((_) {}));
11233 }); 11233 });
11234 11234
11235 unittest.test("method--reportAbuse", () { 11235 unittest.test("method--reportAbuse", () {
11236 11236
11237 var mock = new HttpServerMock(); 11237 var mock = new HttpServerMock();
11238 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11238 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11239 var arg_request = buildVideoAbuseReport(); 11239 var arg_request = buildVideoAbuseReport();
11240 var arg_onBehalfOfContentOwner = "foo"; 11240 var arg_onBehalfOfContentOwner = "foo";
11241 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11241 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11242 var obj = new api.VideoAbuseReport.fromJson(json); 11242 var obj = new api.VideoAbuseReport.fromJson(json);
11243 checkVideoAbuseReport(obj); 11243 checkVideoAbuseReport(obj);
11244 11244
11245 var path = (req.url).path; 11245 var path = (req.url).path;
11246 var pathOffset = 0; 11246 var pathOffset = 0;
11247 var index; 11247 var index;
11248 var subPart; 11248 var subPart;
11249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11250 pathOffset += 1; 11250 pathOffset += 1;
11251 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11251 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 19 matching lines...) Expand all
11271 } 11271 }
11272 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 11272 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
11273 11273
11274 11274
11275 var h = { 11275 var h = {
11276 "content-type" : "application/json; charset=utf-8", 11276 "content-type" : "application/json; charset=utf-8",
11277 }; 11277 };
11278 var resp = ""; 11278 var resp = "";
11279 return new async.Future.value(stringResponse(200, h, resp)); 11279 return new async.Future.value(stringResponse(200, h, resp));
11280 }), true); 11280 }), true);
11281 res.reportAbuse(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContent Owner).then(unittest.expectAsync((_) {})); 11281 res.reportAbuse(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContent Owner).then(unittest.expectAsync1((_) {}));
11282 }); 11282 });
11283 11283
11284 unittest.test("method--update", () { 11284 unittest.test("method--update", () {
11285 11285
11286 var mock = new HttpServerMock(); 11286 var mock = new HttpServerMock();
11287 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; 11287 api.VideosResourceApi res = new api.YoutubeApi(mock).videos;
11288 var arg_request = buildVideo(); 11288 var arg_request = buildVideo();
11289 var arg_part = "foo"; 11289 var arg_part = "foo";
11290 var arg_onBehalfOfContentOwner = "foo"; 11290 var arg_onBehalfOfContentOwner = "foo";
11291 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11291 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11292 var obj = new api.Video.fromJson(json); 11292 var obj = new api.Video.fromJson(json);
11293 checkVideo(obj); 11293 checkVideo(obj);
11294 11294
11295 var path = (req.url).path; 11295 var path = (req.url).path;
11296 var pathOffset = 0; 11296 var pathOffset = 0;
11297 var index; 11297 var index;
11298 var subPart; 11298 var subPart;
11299 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11299 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11300 pathOffset += 1; 11300 pathOffset += 1;
11301 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11301 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
11322 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); 11322 unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
11323 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 11323 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
11324 11324
11325 11325
11326 var h = { 11326 var h = {
11327 "content-type" : "application/json; charset=utf-8", 11327 "content-type" : "application/json; charset=utf-8",
11328 }; 11328 };
11329 var resp = convert.JSON.encode(buildVideo()); 11329 var resp = convert.JSON.encode(buildVideo());
11330 return new async.Future.value(stringResponse(200, h, resp)); 11330 return new async.Future.value(stringResponse(200, h, resp));
11331 }), true); 11331 }), true);
11332 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync(((api.Video response) { 11332 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo ntentOwner).then(unittest.expectAsync1(((api.Video response) {
11333 checkVideo(response); 11333 checkVideo(response);
11334 }))); 11334 })));
11335 }); 11335 });
11336 11336
11337 }); 11337 });
11338 11338
11339 11339
11340 unittest.group("resource-WatermarksResourceApi", () { 11340 unittest.group("resource-WatermarksResourceApi", () {
11341 unittest.test("method--set", () { 11341 unittest.test("method--set", () {
11342 // TODO: Implement tests for media upload; 11342 // TODO: Implement tests for media upload;
11343 // TODO: Implement tests for media download; 11343 // TODO: Implement tests for media download;
11344 11344
11345 var mock = new HttpServerMock(); 11345 var mock = new HttpServerMock();
11346 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; 11346 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks;
11347 var arg_request = buildInvideoBranding(); 11347 var arg_request = buildInvideoBranding();
11348 var arg_channelId = "foo"; 11348 var arg_channelId = "foo";
11349 var arg_onBehalfOfContentOwner = "foo"; 11349 var arg_onBehalfOfContentOwner = "foo";
11350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11350 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11351 var obj = new api.InvideoBranding.fromJson(json); 11351 var obj = new api.InvideoBranding.fromJson(json);
11352 checkInvideoBranding(obj); 11352 checkInvideoBranding(obj);
11353 11353
11354 var path = (req.url).path; 11354 var path = (req.url).path;
11355 var pathOffset = 0; 11355 var pathOffset = 0;
11356 var index; 11356 var index;
11357 var subPart; 11357 var subPart;
11358 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11358 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11359 pathOffset += 1; 11359 pathOffset += 1;
11360 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11360 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
(...skipping 20 matching lines...) Expand all
11381 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel Id)); 11381 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel Id));
11382 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 11382 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
11383 11383
11384 11384
11385 var h = { 11385 var h = {
11386 "content-type" : "application/json; charset=utf-8", 11386 "content-type" : "application/json; charset=utf-8",
11387 }; 11387 };
11388 var resp = ""; 11388 var resp = "";
11389 return new async.Future.value(stringResponse(200, h, resp)); 11389 return new async.Future.value(stringResponse(200, h, resp));
11390 }), true); 11390 }), true);
11391 res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOf ContentOwner).then(unittest.expectAsync((_) {})); 11391 res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOf ContentOwner).then(unittest.expectAsync1((_) {}));
11392 }); 11392 });
11393 11393
11394 unittest.test("method--unset", () { 11394 unittest.test("method--unset", () {
11395 11395
11396 var mock = new HttpServerMock(); 11396 var mock = new HttpServerMock();
11397 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; 11397 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks;
11398 var arg_channelId = "foo"; 11398 var arg_channelId = "foo";
11399 var arg_onBehalfOfContentOwner = "foo"; 11399 var arg_onBehalfOfContentOwner = "foo";
11400 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11400 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
11401 var path = (req.url).path; 11401 var path = (req.url).path;
11402 var pathOffset = 0; 11402 var pathOffset = 0;
11403 var index; 11403 var index;
11404 var subPart; 11404 var subPart;
11405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11406 pathOffset += 1; 11406 pathOffset += 1;
11407 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/")); 11407 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("youtube/v3/"));
11408 pathOffset += 11; 11408 pathOffset += 11;
11409 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("watermarks/unset")); 11409 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("watermarks/unset"));
11410 pathOffset += 16; 11410 pathOffset += 16;
(...skipping 17 matching lines...) Expand all
11428 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel Id)); 11428 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel Id));
11429 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner)); 11429 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal s(arg_onBehalfOfContentOwner));
11430 11430
11431 11431
11432 var h = { 11432 var h = {
11433 "content-type" : "application/json; charset=utf-8", 11433 "content-type" : "application/json; charset=utf-8",
11434 }; 11434 };
11435 var resp = ""; 11435 var resp = "";
11436 return new async.Future.value(stringResponse(200, h, resp)); 11436 return new async.Future.value(stringResponse(200, h, resp));
11437 }), true); 11437 }), true);
11438 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne r).then(unittest.expectAsync((_) {})); 11438 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne r).then(unittest.expectAsync1((_) {}));
11439 }); 11439 });
11440 11440
11441 }); 11441 });
11442 11442
11443 11443
11444 } 11444 }
11445 11445
OLDNEW
« no previous file with comments | « generated/googleapis/test/webmasters/v3_test.dart ('k') | generated/googleapis/test/youtubeanalytics/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698