OLD | NEW |
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:unittest/unittest.dart' as unittest; |
11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis/youtube/v3.dart' as api; | 15 import 'package:googleapis/youtube/v3.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed341() { | 19 buildUnnamed364() { |
20 var o = new core.List<core.String>(); | 20 var o = new core.List<core.String>(); |
21 o.add("foo"); | 21 o.add("foo"); |
22 o.add("foo"); | 22 o.add("foo"); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed341(core.List<core.String> o) { | 26 checkUnnamed364(core.List<core.String> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 unittest.expect(o[0], unittest.equals('foo')); | 28 unittest.expect(o[0], unittest.equals('foo')); |
29 unittest.expect(o[1], unittest.equals('foo')); | 29 unittest.expect(o[1], unittest.equals('foo')); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterAccessPolicy = 0; | 32 core.int buildCounterAccessPolicy = 0; |
33 buildAccessPolicy() { | 33 buildAccessPolicy() { |
34 var o = new api.AccessPolicy(); | 34 var o = new api.AccessPolicy(); |
35 buildCounterAccessPolicy++; | 35 buildCounterAccessPolicy++; |
36 if (buildCounterAccessPolicy < 3) { | 36 if (buildCounterAccessPolicy < 3) { |
37 o.allowed = true; | 37 o.allowed = true; |
38 o.exception = buildUnnamed341(); | 38 o.exception = buildUnnamed364(); |
39 } | 39 } |
40 buildCounterAccessPolicy--; | 40 buildCounterAccessPolicy--; |
41 return o; | 41 return o; |
42 } | 42 } |
43 | 43 |
44 checkAccessPolicy(api.AccessPolicy o) { | 44 checkAccessPolicy(api.AccessPolicy o) { |
45 buildCounterAccessPolicy++; | 45 buildCounterAccessPolicy++; |
46 if (buildCounterAccessPolicy < 3) { | 46 if (buildCounterAccessPolicy < 3) { |
47 unittest.expect(o.allowed, unittest.isTrue); | 47 unittest.expect(o.allowed, unittest.isTrue); |
48 checkUnnamed341(o.exception); | 48 checkUnnamed364(o.exception); |
49 } | 49 } |
50 buildCounterAccessPolicy--; | 50 buildCounterAccessPolicy--; |
51 } | 51 } |
52 | 52 |
53 core.int buildCounterActivity = 0; | 53 core.int buildCounterActivity = 0; |
54 buildActivity() { | 54 buildActivity() { |
55 var o = new api.Activity(); | 55 var o = new api.Activity(); |
56 buildCounterActivity++; | 56 buildCounterActivity++; |
57 if (buildCounterActivity < 3) { | 57 if (buildCounterActivity < 3) { |
58 o.contentDetails = buildActivityContentDetails(); | 58 o.contentDetails = buildActivityContentDetails(); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
) { | 227 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
) { |
228 buildCounterActivityContentDetailsPlaylistItem++; | 228 buildCounterActivityContentDetailsPlaylistItem++; |
229 if (buildCounterActivityContentDetailsPlaylistItem < 3) { | 229 if (buildCounterActivityContentDetailsPlaylistItem < 3) { |
230 unittest.expect(o.playlistId, unittest.equals('foo')); | 230 unittest.expect(o.playlistId, unittest.equals('foo')); |
231 unittest.expect(o.playlistItemId, unittest.equals('foo')); | 231 unittest.expect(o.playlistItemId, unittest.equals('foo')); |
232 checkResourceId(o.resourceId); | 232 checkResourceId(o.resourceId); |
233 } | 233 } |
234 buildCounterActivityContentDetailsPlaylistItem--; | 234 buildCounterActivityContentDetailsPlaylistItem--; |
235 } | 235 } |
236 | 236 |
237 buildUnnamed342() { | 237 buildUnnamed365() { |
238 var o = new core.List<core.String>(); | 238 var o = new core.List<core.String>(); |
239 o.add("foo"); | 239 o.add("foo"); |
240 o.add("foo"); | 240 o.add("foo"); |
241 return o; | 241 return o; |
242 } | 242 } |
243 | 243 |
244 checkUnnamed342(core.List<core.String> o) { | 244 checkUnnamed365(core.List<core.String> o) { |
245 unittest.expect(o, unittest.hasLength(2)); | 245 unittest.expect(o, unittest.hasLength(2)); |
246 unittest.expect(o[0], unittest.equals('foo')); | 246 unittest.expect(o[0], unittest.equals('foo')); |
247 unittest.expect(o[1], unittest.equals('foo')); | 247 unittest.expect(o[1], unittest.equals('foo')); |
248 } | 248 } |
249 | 249 |
250 buildUnnamed343() { | 250 buildUnnamed366() { |
251 var o = new core.List<core.String>(); | 251 var o = new core.List<core.String>(); |
252 o.add("foo"); | 252 o.add("foo"); |
253 o.add("foo"); | 253 o.add("foo"); |
254 return o; | 254 return o; |
255 } | 255 } |
256 | 256 |
257 checkUnnamed343(core.List<core.String> o) { | 257 checkUnnamed366(core.List<core.String> o) { |
258 unittest.expect(o, unittest.hasLength(2)); | 258 unittest.expect(o, unittest.hasLength(2)); |
259 unittest.expect(o[0], unittest.equals('foo')); | 259 unittest.expect(o[0], unittest.equals('foo')); |
260 unittest.expect(o[1], unittest.equals('foo')); | 260 unittest.expect(o[1], unittest.equals('foo')); |
261 } | 261 } |
262 | 262 |
263 core.int buildCounterActivityContentDetailsPromotedItem = 0; | 263 core.int buildCounterActivityContentDetailsPromotedItem = 0; |
264 buildActivityContentDetailsPromotedItem() { | 264 buildActivityContentDetailsPromotedItem() { |
265 var o = new api.ActivityContentDetailsPromotedItem(); | 265 var o = new api.ActivityContentDetailsPromotedItem(); |
266 buildCounterActivityContentDetailsPromotedItem++; | 266 buildCounterActivityContentDetailsPromotedItem++; |
267 if (buildCounterActivityContentDetailsPromotedItem < 3) { | 267 if (buildCounterActivityContentDetailsPromotedItem < 3) { |
268 o.adTag = "foo"; | 268 o.adTag = "foo"; |
269 o.clickTrackingUrl = "foo"; | 269 o.clickTrackingUrl = "foo"; |
270 o.creativeViewUrl = "foo"; | 270 o.creativeViewUrl = "foo"; |
271 o.ctaType = "foo"; | 271 o.ctaType = "foo"; |
272 o.customCtaButtonText = "foo"; | 272 o.customCtaButtonText = "foo"; |
273 o.descriptionText = "foo"; | 273 o.descriptionText = "foo"; |
274 o.destinationUrl = "foo"; | 274 o.destinationUrl = "foo"; |
275 o.forecastingUrl = buildUnnamed342(); | 275 o.forecastingUrl = buildUnnamed365(); |
276 o.impressionUrl = buildUnnamed343(); | 276 o.impressionUrl = buildUnnamed366(); |
277 o.videoId = "foo"; | 277 o.videoId = "foo"; |
278 } | 278 } |
279 buildCounterActivityContentDetailsPromotedItem--; | 279 buildCounterActivityContentDetailsPromotedItem--; |
280 return o; | 280 return o; |
281 } | 281 } |
282 | 282 |
283 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o
) { | 283 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o
) { |
284 buildCounterActivityContentDetailsPromotedItem++; | 284 buildCounterActivityContentDetailsPromotedItem++; |
285 if (buildCounterActivityContentDetailsPromotedItem < 3) { | 285 if (buildCounterActivityContentDetailsPromotedItem < 3) { |
286 unittest.expect(o.adTag, unittest.equals('foo')); | 286 unittest.expect(o.adTag, unittest.equals('foo')); |
287 unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); | 287 unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); |
288 unittest.expect(o.creativeViewUrl, unittest.equals('foo')); | 288 unittest.expect(o.creativeViewUrl, unittest.equals('foo')); |
289 unittest.expect(o.ctaType, unittest.equals('foo')); | 289 unittest.expect(o.ctaType, unittest.equals('foo')); |
290 unittest.expect(o.customCtaButtonText, unittest.equals('foo')); | 290 unittest.expect(o.customCtaButtonText, unittest.equals('foo')); |
291 unittest.expect(o.descriptionText, unittest.equals('foo')); | 291 unittest.expect(o.descriptionText, unittest.equals('foo')); |
292 unittest.expect(o.destinationUrl, unittest.equals('foo')); | 292 unittest.expect(o.destinationUrl, unittest.equals('foo')); |
293 checkUnnamed342(o.forecastingUrl); | 293 checkUnnamed365(o.forecastingUrl); |
294 checkUnnamed343(o.impressionUrl); | 294 checkUnnamed366(o.impressionUrl); |
295 unittest.expect(o.videoId, unittest.equals('foo')); | 295 unittest.expect(o.videoId, unittest.equals('foo')); |
296 } | 296 } |
297 buildCounterActivityContentDetailsPromotedItem--; | 297 buildCounterActivityContentDetailsPromotedItem--; |
298 } | 298 } |
299 | 299 |
300 core.int buildCounterActivityContentDetailsRecommendation = 0; | 300 core.int buildCounterActivityContentDetailsRecommendation = 0; |
301 buildActivityContentDetailsRecommendation() { | 301 buildActivityContentDetailsRecommendation() { |
302 var o = new api.ActivityContentDetailsRecommendation(); | 302 var o = new api.ActivityContentDetailsRecommendation(); |
303 buildCounterActivityContentDetailsRecommendation++; | 303 buildCounterActivityContentDetailsRecommendation++; |
304 if (buildCounterActivityContentDetailsRecommendation < 3) { | 304 if (buildCounterActivityContentDetailsRecommendation < 3) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 378 } |
379 | 379 |
380 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) { | 380 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) { |
381 buildCounterActivityContentDetailsUpload++; | 381 buildCounterActivityContentDetailsUpload++; |
382 if (buildCounterActivityContentDetailsUpload < 3) { | 382 if (buildCounterActivityContentDetailsUpload < 3) { |
383 unittest.expect(o.videoId, unittest.equals('foo')); | 383 unittest.expect(o.videoId, unittest.equals('foo')); |
384 } | 384 } |
385 buildCounterActivityContentDetailsUpload--; | 385 buildCounterActivityContentDetailsUpload--; |
386 } | 386 } |
387 | 387 |
388 buildUnnamed344() { | 388 buildUnnamed367() { |
389 var o = new core.List<api.Activity>(); | 389 var o = new core.List<api.Activity>(); |
390 o.add(buildActivity()); | 390 o.add(buildActivity()); |
391 o.add(buildActivity()); | 391 o.add(buildActivity()); |
392 return o; | 392 return o; |
393 } | 393 } |
394 | 394 |
395 checkUnnamed344(core.List<api.Activity> o) { | 395 checkUnnamed367(core.List<api.Activity> o) { |
396 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
397 checkActivity(o[0]); | 397 checkActivity(o[0]); |
398 checkActivity(o[1]); | 398 checkActivity(o[1]); |
399 } | 399 } |
400 | 400 |
401 core.int buildCounterActivityListResponse = 0; | 401 core.int buildCounterActivityListResponse = 0; |
402 buildActivityListResponse() { | 402 buildActivityListResponse() { |
403 var o = new api.ActivityListResponse(); | 403 var o = new api.ActivityListResponse(); |
404 buildCounterActivityListResponse++; | 404 buildCounterActivityListResponse++; |
405 if (buildCounterActivityListResponse < 3) { | 405 if (buildCounterActivityListResponse < 3) { |
406 o.etag = "foo"; | 406 o.etag = "foo"; |
407 o.eventId = "foo"; | 407 o.eventId = "foo"; |
408 o.items = buildUnnamed344(); | 408 o.items = buildUnnamed367(); |
409 o.kind = "foo"; | 409 o.kind = "foo"; |
410 o.nextPageToken = "foo"; | 410 o.nextPageToken = "foo"; |
411 o.pageInfo = buildPageInfo(); | 411 o.pageInfo = buildPageInfo(); |
412 o.prevPageToken = "foo"; | 412 o.prevPageToken = "foo"; |
413 o.tokenPagination = buildTokenPagination(); | 413 o.tokenPagination = buildTokenPagination(); |
414 o.visitorId = "foo"; | 414 o.visitorId = "foo"; |
415 } | 415 } |
416 buildCounterActivityListResponse--; | 416 buildCounterActivityListResponse--; |
417 return o; | 417 return o; |
418 } | 418 } |
419 | 419 |
420 checkActivityListResponse(api.ActivityListResponse o) { | 420 checkActivityListResponse(api.ActivityListResponse o) { |
421 buildCounterActivityListResponse++; | 421 buildCounterActivityListResponse++; |
422 if (buildCounterActivityListResponse < 3) { | 422 if (buildCounterActivityListResponse < 3) { |
423 unittest.expect(o.etag, unittest.equals('foo')); | 423 unittest.expect(o.etag, unittest.equals('foo')); |
424 unittest.expect(o.eventId, unittest.equals('foo')); | 424 unittest.expect(o.eventId, unittest.equals('foo')); |
425 checkUnnamed344(o.items); | 425 checkUnnamed367(o.items); |
426 unittest.expect(o.kind, unittest.equals('foo')); | 426 unittest.expect(o.kind, unittest.equals('foo')); |
427 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 427 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
428 checkPageInfo(o.pageInfo); | 428 checkPageInfo(o.pageInfo); |
429 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 429 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
430 checkTokenPagination(o.tokenPagination); | 430 checkTokenPagination(o.tokenPagination); |
431 unittest.expect(o.visitorId, unittest.equals('foo')); | 431 unittest.expect(o.visitorId, unittest.equals('foo')); |
432 } | 432 } |
433 buildCounterActivityListResponse--; | 433 buildCounterActivityListResponse--; |
434 } | 434 } |
435 | 435 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 checkChannelBannerResource(api.ChannelBannerResource o) { | 573 checkChannelBannerResource(api.ChannelBannerResource o) { |
574 buildCounterChannelBannerResource++; | 574 buildCounterChannelBannerResource++; |
575 if (buildCounterChannelBannerResource < 3) { | 575 if (buildCounterChannelBannerResource < 3) { |
576 unittest.expect(o.etag, unittest.equals('foo')); | 576 unittest.expect(o.etag, unittest.equals('foo')); |
577 unittest.expect(o.kind, unittest.equals('foo')); | 577 unittest.expect(o.kind, unittest.equals('foo')); |
578 unittest.expect(o.url, unittest.equals('foo')); | 578 unittest.expect(o.url, unittest.equals('foo')); |
579 } | 579 } |
580 buildCounterChannelBannerResource--; | 580 buildCounterChannelBannerResource--; |
581 } | 581 } |
582 | 582 |
583 buildUnnamed345() { | 583 buildUnnamed368() { |
584 var o = new core.List<api.PropertyValue>(); | 584 var o = new core.List<api.PropertyValue>(); |
585 o.add(buildPropertyValue()); | 585 o.add(buildPropertyValue()); |
586 o.add(buildPropertyValue()); | 586 o.add(buildPropertyValue()); |
587 return o; | 587 return o; |
588 } | 588 } |
589 | 589 |
590 checkUnnamed345(core.List<api.PropertyValue> o) { | 590 checkUnnamed368(core.List<api.PropertyValue> o) { |
591 unittest.expect(o, unittest.hasLength(2)); | 591 unittest.expect(o, unittest.hasLength(2)); |
592 checkPropertyValue(o[0]); | 592 checkPropertyValue(o[0]); |
593 checkPropertyValue(o[1]); | 593 checkPropertyValue(o[1]); |
594 } | 594 } |
595 | 595 |
596 core.int buildCounterChannelBrandingSettings = 0; | 596 core.int buildCounterChannelBrandingSettings = 0; |
597 buildChannelBrandingSettings() { | 597 buildChannelBrandingSettings() { |
598 var o = new api.ChannelBrandingSettings(); | 598 var o = new api.ChannelBrandingSettings(); |
599 buildCounterChannelBrandingSettings++; | 599 buildCounterChannelBrandingSettings++; |
600 if (buildCounterChannelBrandingSettings < 3) { | 600 if (buildCounterChannelBrandingSettings < 3) { |
601 o.channel = buildChannelSettings(); | 601 o.channel = buildChannelSettings(); |
602 o.hints = buildUnnamed345(); | 602 o.hints = buildUnnamed368(); |
603 o.image = buildImageSettings(); | 603 o.image = buildImageSettings(); |
604 o.watch = buildWatchSettings(); | 604 o.watch = buildWatchSettings(); |
605 } | 605 } |
606 buildCounterChannelBrandingSettings--; | 606 buildCounterChannelBrandingSettings--; |
607 return o; | 607 return o; |
608 } | 608 } |
609 | 609 |
610 checkChannelBrandingSettings(api.ChannelBrandingSettings o) { | 610 checkChannelBrandingSettings(api.ChannelBrandingSettings o) { |
611 buildCounterChannelBrandingSettings++; | 611 buildCounterChannelBrandingSettings++; |
612 if (buildCounterChannelBrandingSettings < 3) { | 612 if (buildCounterChannelBrandingSettings < 3) { |
613 checkChannelSettings(o.channel); | 613 checkChannelSettings(o.channel); |
614 checkUnnamed345(o.hints); | 614 checkUnnamed368(o.hints); |
615 checkImageSettings(o.image); | 615 checkImageSettings(o.image); |
616 checkWatchSettings(o.watch); | 616 checkWatchSettings(o.watch); |
617 } | 617 } |
618 buildCounterChannelBrandingSettings--; | 618 buildCounterChannelBrandingSettings--; |
619 } | 619 } |
620 | 620 |
621 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0; | 621 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0; |
622 buildChannelContentDetailsRelatedPlaylists() { | 622 buildChannelContentDetailsRelatedPlaylists() { |
623 var o = new api.ChannelContentDetailsRelatedPlaylists(); | 623 var o = new api.ChannelContentDetailsRelatedPlaylists(); |
624 buildCounterChannelContentDetailsRelatedPlaylists++; | 624 buildCounterChannelContentDetailsRelatedPlaylists++; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 | 701 |
702 checkChannelConversionPing(api.ChannelConversionPing o) { | 702 checkChannelConversionPing(api.ChannelConversionPing o) { |
703 buildCounterChannelConversionPing++; | 703 buildCounterChannelConversionPing++; |
704 if (buildCounterChannelConversionPing < 3) { | 704 if (buildCounterChannelConversionPing < 3) { |
705 unittest.expect(o.context, unittest.equals('foo')); | 705 unittest.expect(o.context, unittest.equals('foo')); |
706 unittest.expect(o.conversionUrl, unittest.equals('foo')); | 706 unittest.expect(o.conversionUrl, unittest.equals('foo')); |
707 } | 707 } |
708 buildCounterChannelConversionPing--; | 708 buildCounterChannelConversionPing--; |
709 } | 709 } |
710 | 710 |
711 buildUnnamed346() { | 711 buildUnnamed369() { |
712 var o = new core.List<api.ChannelConversionPing>(); | 712 var o = new core.List<api.ChannelConversionPing>(); |
713 o.add(buildChannelConversionPing()); | 713 o.add(buildChannelConversionPing()); |
714 o.add(buildChannelConversionPing()); | 714 o.add(buildChannelConversionPing()); |
715 return o; | 715 return o; |
716 } | 716 } |
717 | 717 |
718 checkUnnamed346(core.List<api.ChannelConversionPing> o) { | 718 checkUnnamed369(core.List<api.ChannelConversionPing> o) { |
719 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
720 checkChannelConversionPing(o[0]); | 720 checkChannelConversionPing(o[0]); |
721 checkChannelConversionPing(o[1]); | 721 checkChannelConversionPing(o[1]); |
722 } | 722 } |
723 | 723 |
724 core.int buildCounterChannelConversionPings = 0; | 724 core.int buildCounterChannelConversionPings = 0; |
725 buildChannelConversionPings() { | 725 buildChannelConversionPings() { |
726 var o = new api.ChannelConversionPings(); | 726 var o = new api.ChannelConversionPings(); |
727 buildCounterChannelConversionPings++; | 727 buildCounterChannelConversionPings++; |
728 if (buildCounterChannelConversionPings < 3) { | 728 if (buildCounterChannelConversionPings < 3) { |
729 o.pings = buildUnnamed346(); | 729 o.pings = buildUnnamed369(); |
730 } | 730 } |
731 buildCounterChannelConversionPings--; | 731 buildCounterChannelConversionPings--; |
732 return o; | 732 return o; |
733 } | 733 } |
734 | 734 |
735 checkChannelConversionPings(api.ChannelConversionPings o) { | 735 checkChannelConversionPings(api.ChannelConversionPings o) { |
736 buildCounterChannelConversionPings++; | 736 buildCounterChannelConversionPings++; |
737 if (buildCounterChannelConversionPings < 3) { | 737 if (buildCounterChannelConversionPings < 3) { |
738 checkUnnamed346(o.pings); | 738 checkUnnamed369(o.pings); |
739 } | 739 } |
740 buildCounterChannelConversionPings--; | 740 buildCounterChannelConversionPings--; |
741 } | 741 } |
742 | 742 |
743 buildUnnamed347() { | 743 buildUnnamed370() { |
744 var o = new core.List<api.Channel>(); | 744 var o = new core.List<api.Channel>(); |
745 o.add(buildChannel()); | 745 o.add(buildChannel()); |
746 o.add(buildChannel()); | 746 o.add(buildChannel()); |
747 return o; | 747 return o; |
748 } | 748 } |
749 | 749 |
750 checkUnnamed347(core.List<api.Channel> o) { | 750 checkUnnamed370(core.List<api.Channel> o) { |
751 unittest.expect(o, unittest.hasLength(2)); | 751 unittest.expect(o, unittest.hasLength(2)); |
752 checkChannel(o[0]); | 752 checkChannel(o[0]); |
753 checkChannel(o[1]); | 753 checkChannel(o[1]); |
754 } | 754 } |
755 | 755 |
756 core.int buildCounterChannelListResponse = 0; | 756 core.int buildCounterChannelListResponse = 0; |
757 buildChannelListResponse() { | 757 buildChannelListResponse() { |
758 var o = new api.ChannelListResponse(); | 758 var o = new api.ChannelListResponse(); |
759 buildCounterChannelListResponse++; | 759 buildCounterChannelListResponse++; |
760 if (buildCounterChannelListResponse < 3) { | 760 if (buildCounterChannelListResponse < 3) { |
761 o.etag = "foo"; | 761 o.etag = "foo"; |
762 o.eventId = "foo"; | 762 o.eventId = "foo"; |
763 o.items = buildUnnamed347(); | 763 o.items = buildUnnamed370(); |
764 o.kind = "foo"; | 764 o.kind = "foo"; |
765 o.nextPageToken = "foo"; | 765 o.nextPageToken = "foo"; |
766 o.pageInfo = buildPageInfo(); | 766 o.pageInfo = buildPageInfo(); |
767 o.prevPageToken = "foo"; | 767 o.prevPageToken = "foo"; |
768 o.tokenPagination = buildTokenPagination(); | 768 o.tokenPagination = buildTokenPagination(); |
769 o.visitorId = "foo"; | 769 o.visitorId = "foo"; |
770 } | 770 } |
771 buildCounterChannelListResponse--; | 771 buildCounterChannelListResponse--; |
772 return o; | 772 return o; |
773 } | 773 } |
774 | 774 |
775 checkChannelListResponse(api.ChannelListResponse o) { | 775 checkChannelListResponse(api.ChannelListResponse o) { |
776 buildCounterChannelListResponse++; | 776 buildCounterChannelListResponse++; |
777 if (buildCounterChannelListResponse < 3) { | 777 if (buildCounterChannelListResponse < 3) { |
778 unittest.expect(o.etag, unittest.equals('foo')); | 778 unittest.expect(o.etag, unittest.equals('foo')); |
779 unittest.expect(o.eventId, unittest.equals('foo')); | 779 unittest.expect(o.eventId, unittest.equals('foo')); |
780 checkUnnamed347(o.items); | 780 checkUnnamed370(o.items); |
781 unittest.expect(o.kind, unittest.equals('foo')); | 781 unittest.expect(o.kind, unittest.equals('foo')); |
782 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 782 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
783 checkPageInfo(o.pageInfo); | 783 checkPageInfo(o.pageInfo); |
784 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 784 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
785 checkTokenPagination(o.tokenPagination); | 785 checkTokenPagination(o.tokenPagination); |
786 unittest.expect(o.visitorId, unittest.equals('foo')); | 786 unittest.expect(o.visitorId, unittest.equals('foo')); |
787 } | 787 } |
788 buildCounterChannelListResponse--; | 788 buildCounterChannelListResponse--; |
789 } | 789 } |
790 | 790 |
(...skipping 17 matching lines...) Expand all Loading... |
808 if (buildCounterChannelSection < 3) { | 808 if (buildCounterChannelSection < 3) { |
809 checkChannelSectionContentDetails(o.contentDetails); | 809 checkChannelSectionContentDetails(o.contentDetails); |
810 unittest.expect(o.etag, unittest.equals('foo')); | 810 unittest.expect(o.etag, unittest.equals('foo')); |
811 unittest.expect(o.id, unittest.equals('foo')); | 811 unittest.expect(o.id, unittest.equals('foo')); |
812 unittest.expect(o.kind, unittest.equals('foo')); | 812 unittest.expect(o.kind, unittest.equals('foo')); |
813 checkChannelSectionSnippet(o.snippet); | 813 checkChannelSectionSnippet(o.snippet); |
814 } | 814 } |
815 buildCounterChannelSection--; | 815 buildCounterChannelSection--; |
816 } | 816 } |
817 | 817 |
818 buildUnnamed348() { | 818 buildUnnamed371() { |
819 var o = new core.List<core.String>(); | 819 var o = new core.List<core.String>(); |
820 o.add("foo"); | 820 o.add("foo"); |
821 o.add("foo"); | 821 o.add("foo"); |
822 return o; | 822 return o; |
823 } | 823 } |
824 | 824 |
825 checkUnnamed348(core.List<core.String> o) { | 825 checkUnnamed371(core.List<core.String> o) { |
826 unittest.expect(o, unittest.hasLength(2)); | 826 unittest.expect(o, unittest.hasLength(2)); |
827 unittest.expect(o[0], unittest.equals('foo')); | 827 unittest.expect(o[0], unittest.equals('foo')); |
828 unittest.expect(o[1], unittest.equals('foo')); | 828 unittest.expect(o[1], unittest.equals('foo')); |
829 } | 829 } |
830 | 830 |
831 buildUnnamed349() { | 831 buildUnnamed372() { |
832 var o = new core.List<core.String>(); | 832 var o = new core.List<core.String>(); |
833 o.add("foo"); | 833 o.add("foo"); |
834 o.add("foo"); | 834 o.add("foo"); |
835 return o; | 835 return o; |
836 } | 836 } |
837 | 837 |
838 checkUnnamed349(core.List<core.String> o) { | 838 checkUnnamed372(core.List<core.String> o) { |
839 unittest.expect(o, unittest.hasLength(2)); | 839 unittest.expect(o, unittest.hasLength(2)); |
840 unittest.expect(o[0], unittest.equals('foo')); | 840 unittest.expect(o[0], unittest.equals('foo')); |
841 unittest.expect(o[1], unittest.equals('foo')); | 841 unittest.expect(o[1], unittest.equals('foo')); |
842 } | 842 } |
843 | 843 |
844 core.int buildCounterChannelSectionContentDetails = 0; | 844 core.int buildCounterChannelSectionContentDetails = 0; |
845 buildChannelSectionContentDetails() { | 845 buildChannelSectionContentDetails() { |
846 var o = new api.ChannelSectionContentDetails(); | 846 var o = new api.ChannelSectionContentDetails(); |
847 buildCounterChannelSectionContentDetails++; | 847 buildCounterChannelSectionContentDetails++; |
848 if (buildCounterChannelSectionContentDetails < 3) { | 848 if (buildCounterChannelSectionContentDetails < 3) { |
849 o.channels = buildUnnamed348(); | 849 o.channels = buildUnnamed371(); |
850 o.playlists = buildUnnamed349(); | 850 o.playlists = buildUnnamed372(); |
851 } | 851 } |
852 buildCounterChannelSectionContentDetails--; | 852 buildCounterChannelSectionContentDetails--; |
853 return o; | 853 return o; |
854 } | 854 } |
855 | 855 |
856 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { | 856 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { |
857 buildCounterChannelSectionContentDetails++; | 857 buildCounterChannelSectionContentDetails++; |
858 if (buildCounterChannelSectionContentDetails < 3) { | 858 if (buildCounterChannelSectionContentDetails < 3) { |
859 checkUnnamed348(o.channels); | 859 checkUnnamed371(o.channels); |
860 checkUnnamed349(o.playlists); | 860 checkUnnamed372(o.playlists); |
861 } | 861 } |
862 buildCounterChannelSectionContentDetails--; | 862 buildCounterChannelSectionContentDetails--; |
863 } | 863 } |
864 | 864 |
865 buildUnnamed350() { | 865 buildUnnamed373() { |
866 var o = new core.List<api.ChannelSection>(); | 866 var o = new core.List<api.ChannelSection>(); |
867 o.add(buildChannelSection()); | 867 o.add(buildChannelSection()); |
868 o.add(buildChannelSection()); | 868 o.add(buildChannelSection()); |
869 return o; | 869 return o; |
870 } | 870 } |
871 | 871 |
872 checkUnnamed350(core.List<api.ChannelSection> o) { | 872 checkUnnamed373(core.List<api.ChannelSection> o) { |
873 unittest.expect(o, unittest.hasLength(2)); | 873 unittest.expect(o, unittest.hasLength(2)); |
874 checkChannelSection(o[0]); | 874 checkChannelSection(o[0]); |
875 checkChannelSection(o[1]); | 875 checkChannelSection(o[1]); |
876 } | 876 } |
877 | 877 |
878 core.int buildCounterChannelSectionListResponse = 0; | 878 core.int buildCounterChannelSectionListResponse = 0; |
879 buildChannelSectionListResponse() { | 879 buildChannelSectionListResponse() { |
880 var o = new api.ChannelSectionListResponse(); | 880 var o = new api.ChannelSectionListResponse(); |
881 buildCounterChannelSectionListResponse++; | 881 buildCounterChannelSectionListResponse++; |
882 if (buildCounterChannelSectionListResponse < 3) { | 882 if (buildCounterChannelSectionListResponse < 3) { |
883 o.etag = "foo"; | 883 o.etag = "foo"; |
884 o.eventId = "foo"; | 884 o.eventId = "foo"; |
885 o.items = buildUnnamed350(); | 885 o.items = buildUnnamed373(); |
886 o.kind = "foo"; | 886 o.kind = "foo"; |
887 o.visitorId = "foo"; | 887 o.visitorId = "foo"; |
888 } | 888 } |
889 buildCounterChannelSectionListResponse--; | 889 buildCounterChannelSectionListResponse--; |
890 return o; | 890 return o; |
891 } | 891 } |
892 | 892 |
893 checkChannelSectionListResponse(api.ChannelSectionListResponse o) { | 893 checkChannelSectionListResponse(api.ChannelSectionListResponse o) { |
894 buildCounterChannelSectionListResponse++; | 894 buildCounterChannelSectionListResponse++; |
895 if (buildCounterChannelSectionListResponse < 3) { | 895 if (buildCounterChannelSectionListResponse < 3) { |
896 unittest.expect(o.etag, unittest.equals('foo')); | 896 unittest.expect(o.etag, unittest.equals('foo')); |
897 unittest.expect(o.eventId, unittest.equals('foo')); | 897 unittest.expect(o.eventId, unittest.equals('foo')); |
898 checkUnnamed350(o.items); | 898 checkUnnamed373(o.items); |
899 unittest.expect(o.kind, unittest.equals('foo')); | 899 unittest.expect(o.kind, unittest.equals('foo')); |
900 unittest.expect(o.visitorId, unittest.equals('foo')); | 900 unittest.expect(o.visitorId, unittest.equals('foo')); |
901 } | 901 } |
902 buildCounterChannelSectionListResponse--; | 902 buildCounterChannelSectionListResponse--; |
903 } | 903 } |
904 | 904 |
905 core.int buildCounterChannelSectionSnippet = 0; | 905 core.int buildCounterChannelSectionSnippet = 0; |
906 buildChannelSectionSnippet() { | 906 buildChannelSectionSnippet() { |
907 var o = new api.ChannelSectionSnippet(); | 907 var o = new api.ChannelSectionSnippet(); |
908 buildCounterChannelSectionSnippet++; | 908 buildCounterChannelSectionSnippet++; |
(...skipping 13 matching lines...) Expand all Loading... |
922 if (buildCounterChannelSectionSnippet < 3) { | 922 if (buildCounterChannelSectionSnippet < 3) { |
923 unittest.expect(o.channelId, unittest.equals('foo')); | 923 unittest.expect(o.channelId, unittest.equals('foo')); |
924 unittest.expect(o.position, unittest.equals(42)); | 924 unittest.expect(o.position, unittest.equals(42)); |
925 unittest.expect(o.style, unittest.equals('foo')); | 925 unittest.expect(o.style, unittest.equals('foo')); |
926 unittest.expect(o.title, unittest.equals('foo')); | 926 unittest.expect(o.title, unittest.equals('foo')); |
927 unittest.expect(o.type, unittest.equals('foo')); | 927 unittest.expect(o.type, unittest.equals('foo')); |
928 } | 928 } |
929 buildCounterChannelSectionSnippet--; | 929 buildCounterChannelSectionSnippet--; |
930 } | 930 } |
931 | 931 |
932 buildUnnamed351() { | 932 buildUnnamed374() { |
933 var o = new core.List<core.String>(); | 933 var o = new core.List<core.String>(); |
934 o.add("foo"); | 934 o.add("foo"); |
935 o.add("foo"); | 935 o.add("foo"); |
936 return o; | 936 return o; |
937 } | 937 } |
938 | 938 |
939 checkUnnamed351(core.List<core.String> o) { | 939 checkUnnamed374(core.List<core.String> o) { |
940 unittest.expect(o, unittest.hasLength(2)); | 940 unittest.expect(o, unittest.hasLength(2)); |
941 unittest.expect(o[0], unittest.equals('foo')); | 941 unittest.expect(o[0], unittest.equals('foo')); |
942 unittest.expect(o[1], unittest.equals('foo')); | 942 unittest.expect(o[1], unittest.equals('foo')); |
943 } | 943 } |
944 | 944 |
945 core.int buildCounterChannelSettings = 0; | 945 core.int buildCounterChannelSettings = 0; |
946 buildChannelSettings() { | 946 buildChannelSettings() { |
947 var o = new api.ChannelSettings(); | 947 var o = new api.ChannelSettings(); |
948 buildCounterChannelSettings++; | 948 buildCounterChannelSettings++; |
949 if (buildCounterChannelSettings < 3) { | 949 if (buildCounterChannelSettings < 3) { |
950 o.defaultTab = "foo"; | 950 o.defaultTab = "foo"; |
951 o.description = "foo"; | 951 o.description = "foo"; |
952 o.featuredChannelsTitle = "foo"; | 952 o.featuredChannelsTitle = "foo"; |
953 o.featuredChannelsUrls = buildUnnamed351(); | 953 o.featuredChannelsUrls = buildUnnamed374(); |
954 o.keywords = "foo"; | 954 o.keywords = "foo"; |
955 o.moderateComments = true; | 955 o.moderateComments = true; |
956 o.profileColor = "foo"; | 956 o.profileColor = "foo"; |
957 o.showBrowseView = true; | 957 o.showBrowseView = true; |
958 o.showRelatedChannels = true; | 958 o.showRelatedChannels = true; |
959 o.title = "foo"; | 959 o.title = "foo"; |
960 o.trackingAnalyticsAccountId = "foo"; | 960 o.trackingAnalyticsAccountId = "foo"; |
961 o.unsubscribedTrailer = "foo"; | 961 o.unsubscribedTrailer = "foo"; |
962 } | 962 } |
963 buildCounterChannelSettings--; | 963 buildCounterChannelSettings--; |
964 return o; | 964 return o; |
965 } | 965 } |
966 | 966 |
967 checkChannelSettings(api.ChannelSettings o) { | 967 checkChannelSettings(api.ChannelSettings o) { |
968 buildCounterChannelSettings++; | 968 buildCounterChannelSettings++; |
969 if (buildCounterChannelSettings < 3) { | 969 if (buildCounterChannelSettings < 3) { |
970 unittest.expect(o.defaultTab, unittest.equals('foo')); | 970 unittest.expect(o.defaultTab, unittest.equals('foo')); |
971 unittest.expect(o.description, unittest.equals('foo')); | 971 unittest.expect(o.description, unittest.equals('foo')); |
972 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); | 972 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); |
973 checkUnnamed351(o.featuredChannelsUrls); | 973 checkUnnamed374(o.featuredChannelsUrls); |
974 unittest.expect(o.keywords, unittest.equals('foo')); | 974 unittest.expect(o.keywords, unittest.equals('foo')); |
975 unittest.expect(o.moderateComments, unittest.isTrue); | 975 unittest.expect(o.moderateComments, unittest.isTrue); |
976 unittest.expect(o.profileColor, unittest.equals('foo')); | 976 unittest.expect(o.profileColor, unittest.equals('foo')); |
977 unittest.expect(o.showBrowseView, unittest.isTrue); | 977 unittest.expect(o.showBrowseView, unittest.isTrue); |
978 unittest.expect(o.showRelatedChannels, unittest.isTrue); | 978 unittest.expect(o.showRelatedChannels, unittest.isTrue); |
979 unittest.expect(o.title, unittest.equals('foo')); | 979 unittest.expect(o.title, unittest.equals('foo')); |
980 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo')); | 980 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo')); |
981 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo')); | 981 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo')); |
982 } | 982 } |
983 buildCounterChannelSettings--; | 983 buildCounterChannelSettings--; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 | 1049 |
1050 checkChannelStatus(api.ChannelStatus o) { | 1050 checkChannelStatus(api.ChannelStatus o) { |
1051 buildCounterChannelStatus++; | 1051 buildCounterChannelStatus++; |
1052 if (buildCounterChannelStatus < 3) { | 1052 if (buildCounterChannelStatus < 3) { |
1053 unittest.expect(o.isLinked, unittest.isTrue); | 1053 unittest.expect(o.isLinked, unittest.isTrue); |
1054 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 1054 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
1055 } | 1055 } |
1056 buildCounterChannelStatus--; | 1056 buildCounterChannelStatus--; |
1057 } | 1057 } |
1058 | 1058 |
1059 buildUnnamed352() { | 1059 buildUnnamed375() { |
1060 var o = new core.List<core.String>(); | 1060 var o = new core.List<core.String>(); |
1061 o.add("foo"); | 1061 o.add("foo"); |
1062 o.add("foo"); | 1062 o.add("foo"); |
1063 return o; | 1063 return o; |
1064 } | 1064 } |
1065 | 1065 |
1066 checkUnnamed352(core.List<core.String> o) { | 1066 checkUnnamed375(core.List<core.String> o) { |
1067 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
1068 unittest.expect(o[0], unittest.equals('foo')); | 1068 unittest.expect(o[0], unittest.equals('foo')); |
1069 unittest.expect(o[1], unittest.equals('foo')); | 1069 unittest.expect(o[1], unittest.equals('foo')); |
1070 } | 1070 } |
1071 | 1071 |
1072 core.int buildCounterChannelTopicDetails = 0; | 1072 core.int buildCounterChannelTopicDetails = 0; |
1073 buildChannelTopicDetails() { | 1073 buildChannelTopicDetails() { |
1074 var o = new api.ChannelTopicDetails(); | 1074 var o = new api.ChannelTopicDetails(); |
1075 buildCounterChannelTopicDetails++; | 1075 buildCounterChannelTopicDetails++; |
1076 if (buildCounterChannelTopicDetails < 3) { | 1076 if (buildCounterChannelTopicDetails < 3) { |
1077 o.topicIds = buildUnnamed352(); | 1077 o.topicIds = buildUnnamed375(); |
1078 } | 1078 } |
1079 buildCounterChannelTopicDetails--; | 1079 buildCounterChannelTopicDetails--; |
1080 return o; | 1080 return o; |
1081 } | 1081 } |
1082 | 1082 |
1083 checkChannelTopicDetails(api.ChannelTopicDetails o) { | 1083 checkChannelTopicDetails(api.ChannelTopicDetails o) { |
1084 buildCounterChannelTopicDetails++; | 1084 buildCounterChannelTopicDetails++; |
1085 if (buildCounterChannelTopicDetails < 3) { | 1085 if (buildCounterChannelTopicDetails < 3) { |
1086 checkUnnamed352(o.topicIds); | 1086 checkUnnamed375(o.topicIds); |
1087 } | 1087 } |
1088 buildCounterChannelTopicDetails--; | 1088 buildCounterChannelTopicDetails--; |
1089 } | 1089 } |
1090 | 1090 |
1091 core.int buildCounterContentRating = 0; | 1091 core.int buildCounterContentRating = 0; |
1092 buildContentRating() { | 1092 buildContentRating() { |
1093 var o = new api.ContentRating(); | 1093 var o = new api.ContentRating(); |
1094 buildCounterContentRating++; | 1094 buildCounterContentRating++; |
1095 if (buildCounterContentRating < 3) { | 1095 if (buildCounterContentRating < 3) { |
1096 o.acbRating = "foo"; | 1096 o.acbRating = "foo"; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 buildCounterGuideCategory++; | 1272 buildCounterGuideCategory++; |
1273 if (buildCounterGuideCategory < 3) { | 1273 if (buildCounterGuideCategory < 3) { |
1274 unittest.expect(o.etag, unittest.equals('foo')); | 1274 unittest.expect(o.etag, unittest.equals('foo')); |
1275 unittest.expect(o.id, unittest.equals('foo')); | 1275 unittest.expect(o.id, unittest.equals('foo')); |
1276 unittest.expect(o.kind, unittest.equals('foo')); | 1276 unittest.expect(o.kind, unittest.equals('foo')); |
1277 checkGuideCategorySnippet(o.snippet); | 1277 checkGuideCategorySnippet(o.snippet); |
1278 } | 1278 } |
1279 buildCounterGuideCategory--; | 1279 buildCounterGuideCategory--; |
1280 } | 1280 } |
1281 | 1281 |
1282 buildUnnamed353() { | 1282 buildUnnamed376() { |
1283 var o = new core.List<api.GuideCategory>(); | 1283 var o = new core.List<api.GuideCategory>(); |
1284 o.add(buildGuideCategory()); | 1284 o.add(buildGuideCategory()); |
1285 o.add(buildGuideCategory()); | 1285 o.add(buildGuideCategory()); |
1286 return o; | 1286 return o; |
1287 } | 1287 } |
1288 | 1288 |
1289 checkUnnamed353(core.List<api.GuideCategory> o) { | 1289 checkUnnamed376(core.List<api.GuideCategory> o) { |
1290 unittest.expect(o, unittest.hasLength(2)); | 1290 unittest.expect(o, unittest.hasLength(2)); |
1291 checkGuideCategory(o[0]); | 1291 checkGuideCategory(o[0]); |
1292 checkGuideCategory(o[1]); | 1292 checkGuideCategory(o[1]); |
1293 } | 1293 } |
1294 | 1294 |
1295 core.int buildCounterGuideCategoryListResponse = 0; | 1295 core.int buildCounterGuideCategoryListResponse = 0; |
1296 buildGuideCategoryListResponse() { | 1296 buildGuideCategoryListResponse() { |
1297 var o = new api.GuideCategoryListResponse(); | 1297 var o = new api.GuideCategoryListResponse(); |
1298 buildCounterGuideCategoryListResponse++; | 1298 buildCounterGuideCategoryListResponse++; |
1299 if (buildCounterGuideCategoryListResponse < 3) { | 1299 if (buildCounterGuideCategoryListResponse < 3) { |
1300 o.etag = "foo"; | 1300 o.etag = "foo"; |
1301 o.eventId = "foo"; | 1301 o.eventId = "foo"; |
1302 o.items = buildUnnamed353(); | 1302 o.items = buildUnnamed376(); |
1303 o.kind = "foo"; | 1303 o.kind = "foo"; |
1304 o.nextPageToken = "foo"; | 1304 o.nextPageToken = "foo"; |
1305 o.pageInfo = buildPageInfo(); | 1305 o.pageInfo = buildPageInfo(); |
1306 o.prevPageToken = "foo"; | 1306 o.prevPageToken = "foo"; |
1307 o.tokenPagination = buildTokenPagination(); | 1307 o.tokenPagination = buildTokenPagination(); |
1308 o.visitorId = "foo"; | 1308 o.visitorId = "foo"; |
1309 } | 1309 } |
1310 buildCounterGuideCategoryListResponse--; | 1310 buildCounterGuideCategoryListResponse--; |
1311 return o; | 1311 return o; |
1312 } | 1312 } |
1313 | 1313 |
1314 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { | 1314 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { |
1315 buildCounterGuideCategoryListResponse++; | 1315 buildCounterGuideCategoryListResponse++; |
1316 if (buildCounterGuideCategoryListResponse < 3) { | 1316 if (buildCounterGuideCategoryListResponse < 3) { |
1317 unittest.expect(o.etag, unittest.equals('foo')); | 1317 unittest.expect(o.etag, unittest.equals('foo')); |
1318 unittest.expect(o.eventId, unittest.equals('foo')); | 1318 unittest.expect(o.eventId, unittest.equals('foo')); |
1319 checkUnnamed353(o.items); | 1319 checkUnnamed376(o.items); |
1320 unittest.expect(o.kind, unittest.equals('foo')); | 1320 unittest.expect(o.kind, unittest.equals('foo')); |
1321 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1321 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1322 checkPageInfo(o.pageInfo); | 1322 checkPageInfo(o.pageInfo); |
1323 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1323 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
1324 checkTokenPagination(o.tokenPagination); | 1324 checkTokenPagination(o.tokenPagination); |
1325 unittest.expect(o.visitorId, unittest.equals('foo')); | 1325 unittest.expect(o.visitorId, unittest.equals('foo')); |
1326 } | 1326 } |
1327 buildCounterGuideCategoryListResponse--; | 1327 buildCounterGuideCategoryListResponse--; |
1328 } | 1328 } |
1329 | 1329 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 buildCounterI18nLanguage++; | 1366 buildCounterI18nLanguage++; |
1367 if (buildCounterI18nLanguage < 3) { | 1367 if (buildCounterI18nLanguage < 3) { |
1368 unittest.expect(o.etag, unittest.equals('foo')); | 1368 unittest.expect(o.etag, unittest.equals('foo')); |
1369 unittest.expect(o.id, unittest.equals('foo')); | 1369 unittest.expect(o.id, unittest.equals('foo')); |
1370 unittest.expect(o.kind, unittest.equals('foo')); | 1370 unittest.expect(o.kind, unittest.equals('foo')); |
1371 checkI18nLanguageSnippet(o.snippet); | 1371 checkI18nLanguageSnippet(o.snippet); |
1372 } | 1372 } |
1373 buildCounterI18nLanguage--; | 1373 buildCounterI18nLanguage--; |
1374 } | 1374 } |
1375 | 1375 |
1376 buildUnnamed354() { | 1376 buildUnnamed377() { |
1377 var o = new core.List<api.I18nLanguage>(); | 1377 var o = new core.List<api.I18nLanguage>(); |
1378 o.add(buildI18nLanguage()); | 1378 o.add(buildI18nLanguage()); |
1379 o.add(buildI18nLanguage()); | 1379 o.add(buildI18nLanguage()); |
1380 return o; | 1380 return o; |
1381 } | 1381 } |
1382 | 1382 |
1383 checkUnnamed354(core.List<api.I18nLanguage> o) { | 1383 checkUnnamed377(core.List<api.I18nLanguage> o) { |
1384 unittest.expect(o, unittest.hasLength(2)); | 1384 unittest.expect(o, unittest.hasLength(2)); |
1385 checkI18nLanguage(o[0]); | 1385 checkI18nLanguage(o[0]); |
1386 checkI18nLanguage(o[1]); | 1386 checkI18nLanguage(o[1]); |
1387 } | 1387 } |
1388 | 1388 |
1389 core.int buildCounterI18nLanguageListResponse = 0; | 1389 core.int buildCounterI18nLanguageListResponse = 0; |
1390 buildI18nLanguageListResponse() { | 1390 buildI18nLanguageListResponse() { |
1391 var o = new api.I18nLanguageListResponse(); | 1391 var o = new api.I18nLanguageListResponse(); |
1392 buildCounterI18nLanguageListResponse++; | 1392 buildCounterI18nLanguageListResponse++; |
1393 if (buildCounterI18nLanguageListResponse < 3) { | 1393 if (buildCounterI18nLanguageListResponse < 3) { |
1394 o.etag = "foo"; | 1394 o.etag = "foo"; |
1395 o.eventId = "foo"; | 1395 o.eventId = "foo"; |
1396 o.items = buildUnnamed354(); | 1396 o.items = buildUnnamed377(); |
1397 o.kind = "foo"; | 1397 o.kind = "foo"; |
1398 o.visitorId = "foo"; | 1398 o.visitorId = "foo"; |
1399 } | 1399 } |
1400 buildCounterI18nLanguageListResponse--; | 1400 buildCounterI18nLanguageListResponse--; |
1401 return o; | 1401 return o; |
1402 } | 1402 } |
1403 | 1403 |
1404 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) { | 1404 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) { |
1405 buildCounterI18nLanguageListResponse++; | 1405 buildCounterI18nLanguageListResponse++; |
1406 if (buildCounterI18nLanguageListResponse < 3) { | 1406 if (buildCounterI18nLanguageListResponse < 3) { |
1407 unittest.expect(o.etag, unittest.equals('foo')); | 1407 unittest.expect(o.etag, unittest.equals('foo')); |
1408 unittest.expect(o.eventId, unittest.equals('foo')); | 1408 unittest.expect(o.eventId, unittest.equals('foo')); |
1409 checkUnnamed354(o.items); | 1409 checkUnnamed377(o.items); |
1410 unittest.expect(o.kind, unittest.equals('foo')); | 1410 unittest.expect(o.kind, unittest.equals('foo')); |
1411 unittest.expect(o.visitorId, unittest.equals('foo')); | 1411 unittest.expect(o.visitorId, unittest.equals('foo')); |
1412 } | 1412 } |
1413 buildCounterI18nLanguageListResponse--; | 1413 buildCounterI18nLanguageListResponse--; |
1414 } | 1414 } |
1415 | 1415 |
1416 core.int buildCounterI18nLanguageSnippet = 0; | 1416 core.int buildCounterI18nLanguageSnippet = 0; |
1417 buildI18nLanguageSnippet() { | 1417 buildI18nLanguageSnippet() { |
1418 var o = new api.I18nLanguageSnippet(); | 1418 var o = new api.I18nLanguageSnippet(); |
1419 buildCounterI18nLanguageSnippet++; | 1419 buildCounterI18nLanguageSnippet++; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 buildCounterI18nRegion++; | 1452 buildCounterI18nRegion++; |
1453 if (buildCounterI18nRegion < 3) { | 1453 if (buildCounterI18nRegion < 3) { |
1454 unittest.expect(o.etag, unittest.equals('foo')); | 1454 unittest.expect(o.etag, unittest.equals('foo')); |
1455 unittest.expect(o.id, unittest.equals('foo')); | 1455 unittest.expect(o.id, unittest.equals('foo')); |
1456 unittest.expect(o.kind, unittest.equals('foo')); | 1456 unittest.expect(o.kind, unittest.equals('foo')); |
1457 checkI18nRegionSnippet(o.snippet); | 1457 checkI18nRegionSnippet(o.snippet); |
1458 } | 1458 } |
1459 buildCounterI18nRegion--; | 1459 buildCounterI18nRegion--; |
1460 } | 1460 } |
1461 | 1461 |
1462 buildUnnamed355() { | 1462 buildUnnamed378() { |
1463 var o = new core.List<api.I18nRegion>(); | 1463 var o = new core.List<api.I18nRegion>(); |
1464 o.add(buildI18nRegion()); | 1464 o.add(buildI18nRegion()); |
1465 o.add(buildI18nRegion()); | 1465 o.add(buildI18nRegion()); |
1466 return o; | 1466 return o; |
1467 } | 1467 } |
1468 | 1468 |
1469 checkUnnamed355(core.List<api.I18nRegion> o) { | 1469 checkUnnamed378(core.List<api.I18nRegion> o) { |
1470 unittest.expect(o, unittest.hasLength(2)); | 1470 unittest.expect(o, unittest.hasLength(2)); |
1471 checkI18nRegion(o[0]); | 1471 checkI18nRegion(o[0]); |
1472 checkI18nRegion(o[1]); | 1472 checkI18nRegion(o[1]); |
1473 } | 1473 } |
1474 | 1474 |
1475 core.int buildCounterI18nRegionListResponse = 0; | 1475 core.int buildCounterI18nRegionListResponse = 0; |
1476 buildI18nRegionListResponse() { | 1476 buildI18nRegionListResponse() { |
1477 var o = new api.I18nRegionListResponse(); | 1477 var o = new api.I18nRegionListResponse(); |
1478 buildCounterI18nRegionListResponse++; | 1478 buildCounterI18nRegionListResponse++; |
1479 if (buildCounterI18nRegionListResponse < 3) { | 1479 if (buildCounterI18nRegionListResponse < 3) { |
1480 o.etag = "foo"; | 1480 o.etag = "foo"; |
1481 o.eventId = "foo"; | 1481 o.eventId = "foo"; |
1482 o.items = buildUnnamed355(); | 1482 o.items = buildUnnamed378(); |
1483 o.kind = "foo"; | 1483 o.kind = "foo"; |
1484 o.visitorId = "foo"; | 1484 o.visitorId = "foo"; |
1485 } | 1485 } |
1486 buildCounterI18nRegionListResponse--; | 1486 buildCounterI18nRegionListResponse--; |
1487 return o; | 1487 return o; |
1488 } | 1488 } |
1489 | 1489 |
1490 checkI18nRegionListResponse(api.I18nRegionListResponse o) { | 1490 checkI18nRegionListResponse(api.I18nRegionListResponse o) { |
1491 buildCounterI18nRegionListResponse++; | 1491 buildCounterI18nRegionListResponse++; |
1492 if (buildCounterI18nRegionListResponse < 3) { | 1492 if (buildCounterI18nRegionListResponse < 3) { |
1493 unittest.expect(o.etag, unittest.equals('foo')); | 1493 unittest.expect(o.etag, unittest.equals('foo')); |
1494 unittest.expect(o.eventId, unittest.equals('foo')); | 1494 unittest.expect(o.eventId, unittest.equals('foo')); |
1495 checkUnnamed355(o.items); | 1495 checkUnnamed378(o.items); |
1496 unittest.expect(o.kind, unittest.equals('foo')); | 1496 unittest.expect(o.kind, unittest.equals('foo')); |
1497 unittest.expect(o.visitorId, unittest.equals('foo')); | 1497 unittest.expect(o.visitorId, unittest.equals('foo')); |
1498 } | 1498 } |
1499 buildCounterI18nRegionListResponse--; | 1499 buildCounterI18nRegionListResponse--; |
1500 } | 1500 } |
1501 | 1501 |
1502 core.int buildCounterI18nRegionSnippet = 0; | 1502 core.int buildCounterI18nRegionSnippet = 0; |
1503 buildI18nRegionSnippet() { | 1503 buildI18nRegionSnippet() { |
1504 var o = new api.I18nRegionSnippet(); | 1504 var o = new api.I18nRegionSnippet(); |
1505 buildCounterI18nRegionSnippet++; | 1505 buildCounterI18nRegionSnippet++; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 | 1645 |
1646 checkInvideoPosition(api.InvideoPosition o) { | 1646 checkInvideoPosition(api.InvideoPosition o) { |
1647 buildCounterInvideoPosition++; | 1647 buildCounterInvideoPosition++; |
1648 if (buildCounterInvideoPosition < 3) { | 1648 if (buildCounterInvideoPosition < 3) { |
1649 unittest.expect(o.cornerPosition, unittest.equals('foo')); | 1649 unittest.expect(o.cornerPosition, unittest.equals('foo')); |
1650 unittest.expect(o.type, unittest.equals('foo')); | 1650 unittest.expect(o.type, unittest.equals('foo')); |
1651 } | 1651 } |
1652 buildCounterInvideoPosition--; | 1652 buildCounterInvideoPosition--; |
1653 } | 1653 } |
1654 | 1654 |
1655 buildUnnamed356() { | 1655 buildUnnamed379() { |
1656 var o = new core.List<api.PromotedItem>(); | 1656 var o = new core.List<api.PromotedItem>(); |
1657 o.add(buildPromotedItem()); | 1657 o.add(buildPromotedItem()); |
1658 o.add(buildPromotedItem()); | 1658 o.add(buildPromotedItem()); |
1659 return o; | 1659 return o; |
1660 } | 1660 } |
1661 | 1661 |
1662 checkUnnamed356(core.List<api.PromotedItem> o) { | 1662 checkUnnamed379(core.List<api.PromotedItem> o) { |
1663 unittest.expect(o, unittest.hasLength(2)); | 1663 unittest.expect(o, unittest.hasLength(2)); |
1664 checkPromotedItem(o[0]); | 1664 checkPromotedItem(o[0]); |
1665 checkPromotedItem(o[1]); | 1665 checkPromotedItem(o[1]); |
1666 } | 1666 } |
1667 | 1667 |
1668 core.int buildCounterInvideoPromotion = 0; | 1668 core.int buildCounterInvideoPromotion = 0; |
1669 buildInvideoPromotion() { | 1669 buildInvideoPromotion() { |
1670 var o = new api.InvideoPromotion(); | 1670 var o = new api.InvideoPromotion(); |
1671 buildCounterInvideoPromotion++; | 1671 buildCounterInvideoPromotion++; |
1672 if (buildCounterInvideoPromotion < 3) { | 1672 if (buildCounterInvideoPromotion < 3) { |
1673 o.defaultTiming = buildInvideoTiming(); | 1673 o.defaultTiming = buildInvideoTiming(); |
1674 o.items = buildUnnamed356(); | 1674 o.items = buildUnnamed379(); |
1675 o.position = buildInvideoPosition(); | 1675 o.position = buildInvideoPosition(); |
1676 } | 1676 } |
1677 buildCounterInvideoPromotion--; | 1677 buildCounterInvideoPromotion--; |
1678 return o; | 1678 return o; |
1679 } | 1679 } |
1680 | 1680 |
1681 checkInvideoPromotion(api.InvideoPromotion o) { | 1681 checkInvideoPromotion(api.InvideoPromotion o) { |
1682 buildCounterInvideoPromotion++; | 1682 buildCounterInvideoPromotion++; |
1683 if (buildCounterInvideoPromotion < 3) { | 1683 if (buildCounterInvideoPromotion < 3) { |
1684 checkInvideoTiming(o.defaultTiming); | 1684 checkInvideoTiming(o.defaultTiming); |
1685 checkUnnamed356(o.items); | 1685 checkUnnamed379(o.items); |
1686 checkInvideoPosition(o.position); | 1686 checkInvideoPosition(o.position); |
1687 } | 1687 } |
1688 buildCounterInvideoPromotion--; | 1688 buildCounterInvideoPromotion--; |
1689 } | 1689 } |
1690 | 1690 |
1691 core.int buildCounterInvideoTiming = 0; | 1691 core.int buildCounterInvideoTiming = 0; |
1692 buildInvideoTiming() { | 1692 buildInvideoTiming() { |
1693 var o = new api.InvideoTiming(); | 1693 var o = new api.InvideoTiming(); |
1694 buildCounterInvideoTiming++; | 1694 buildCounterInvideoTiming++; |
1695 if (buildCounterInvideoTiming < 3) { | 1695 if (buildCounterInvideoTiming < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1766 unittest.expect(o.enableContentEncryption, unittest.isTrue); | 1766 unittest.expect(o.enableContentEncryption, unittest.isTrue); |
1767 unittest.expect(o.enableDvr, unittest.isTrue); | 1767 unittest.expect(o.enableDvr, unittest.isTrue); |
1768 unittest.expect(o.enableEmbed, unittest.isTrue); | 1768 unittest.expect(o.enableEmbed, unittest.isTrue); |
1769 checkMonitorStreamInfo(o.monitorStream); | 1769 checkMonitorStreamInfo(o.monitorStream); |
1770 unittest.expect(o.recordFromStart, unittest.isTrue); | 1770 unittest.expect(o.recordFromStart, unittest.isTrue); |
1771 unittest.expect(o.startWithSlate, unittest.isTrue); | 1771 unittest.expect(o.startWithSlate, unittest.isTrue); |
1772 } | 1772 } |
1773 buildCounterLiveBroadcastContentDetails--; | 1773 buildCounterLiveBroadcastContentDetails--; |
1774 } | 1774 } |
1775 | 1775 |
1776 buildUnnamed357() { | 1776 buildUnnamed380() { |
1777 var o = new core.List<api.LiveBroadcast>(); | 1777 var o = new core.List<api.LiveBroadcast>(); |
1778 o.add(buildLiveBroadcast()); | 1778 o.add(buildLiveBroadcast()); |
1779 o.add(buildLiveBroadcast()); | 1779 o.add(buildLiveBroadcast()); |
1780 return o; | 1780 return o; |
1781 } | 1781 } |
1782 | 1782 |
1783 checkUnnamed357(core.List<api.LiveBroadcast> o) { | 1783 checkUnnamed380(core.List<api.LiveBroadcast> o) { |
1784 unittest.expect(o, unittest.hasLength(2)); | 1784 unittest.expect(o, unittest.hasLength(2)); |
1785 checkLiveBroadcast(o[0]); | 1785 checkLiveBroadcast(o[0]); |
1786 checkLiveBroadcast(o[1]); | 1786 checkLiveBroadcast(o[1]); |
1787 } | 1787 } |
1788 | 1788 |
1789 core.int buildCounterLiveBroadcastListResponse = 0; | 1789 core.int buildCounterLiveBroadcastListResponse = 0; |
1790 buildLiveBroadcastListResponse() { | 1790 buildLiveBroadcastListResponse() { |
1791 var o = new api.LiveBroadcastListResponse(); | 1791 var o = new api.LiveBroadcastListResponse(); |
1792 buildCounterLiveBroadcastListResponse++; | 1792 buildCounterLiveBroadcastListResponse++; |
1793 if (buildCounterLiveBroadcastListResponse < 3) { | 1793 if (buildCounterLiveBroadcastListResponse < 3) { |
1794 o.etag = "foo"; | 1794 o.etag = "foo"; |
1795 o.eventId = "foo"; | 1795 o.eventId = "foo"; |
1796 o.items = buildUnnamed357(); | 1796 o.items = buildUnnamed380(); |
1797 o.kind = "foo"; | 1797 o.kind = "foo"; |
1798 o.nextPageToken = "foo"; | 1798 o.nextPageToken = "foo"; |
1799 o.pageInfo = buildPageInfo(); | 1799 o.pageInfo = buildPageInfo(); |
1800 o.prevPageToken = "foo"; | 1800 o.prevPageToken = "foo"; |
1801 o.tokenPagination = buildTokenPagination(); | 1801 o.tokenPagination = buildTokenPagination(); |
1802 o.visitorId = "foo"; | 1802 o.visitorId = "foo"; |
1803 } | 1803 } |
1804 buildCounterLiveBroadcastListResponse--; | 1804 buildCounterLiveBroadcastListResponse--; |
1805 return o; | 1805 return o; |
1806 } | 1806 } |
1807 | 1807 |
1808 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) { | 1808 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) { |
1809 buildCounterLiveBroadcastListResponse++; | 1809 buildCounterLiveBroadcastListResponse++; |
1810 if (buildCounterLiveBroadcastListResponse < 3) { | 1810 if (buildCounterLiveBroadcastListResponse < 3) { |
1811 unittest.expect(o.etag, unittest.equals('foo')); | 1811 unittest.expect(o.etag, unittest.equals('foo')); |
1812 unittest.expect(o.eventId, unittest.equals('foo')); | 1812 unittest.expect(o.eventId, unittest.equals('foo')); |
1813 checkUnnamed357(o.items); | 1813 checkUnnamed380(o.items); |
1814 unittest.expect(o.kind, unittest.equals('foo')); | 1814 unittest.expect(o.kind, unittest.equals('foo')); |
1815 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1815 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1816 checkPageInfo(o.pageInfo); | 1816 checkPageInfo(o.pageInfo); |
1817 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1817 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
1818 checkTokenPagination(o.tokenPagination); | 1818 checkTokenPagination(o.tokenPagination); |
1819 unittest.expect(o.visitorId, unittest.equals('foo')); | 1819 unittest.expect(o.visitorId, unittest.equals('foo')); |
1820 } | 1820 } |
1821 buildCounterLiveBroadcastListResponse--; | 1821 buildCounterLiveBroadcastListResponse--; |
1822 } | 1822 } |
1823 | 1823 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 } | 1924 } |
1925 | 1925 |
1926 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) { | 1926 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) { |
1927 buildCounterLiveStreamContentDetails++; | 1927 buildCounterLiveStreamContentDetails++; |
1928 if (buildCounterLiveStreamContentDetails < 3) { | 1928 if (buildCounterLiveStreamContentDetails < 3) { |
1929 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo')); | 1929 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo')); |
1930 } | 1930 } |
1931 buildCounterLiveStreamContentDetails--; | 1931 buildCounterLiveStreamContentDetails--; |
1932 } | 1932 } |
1933 | 1933 |
1934 buildUnnamed358() { | 1934 buildUnnamed381() { |
1935 var o = new core.List<api.LiveStream>(); | 1935 var o = new core.List<api.LiveStream>(); |
1936 o.add(buildLiveStream()); | 1936 o.add(buildLiveStream()); |
1937 o.add(buildLiveStream()); | 1937 o.add(buildLiveStream()); |
1938 return o; | 1938 return o; |
1939 } | 1939 } |
1940 | 1940 |
1941 checkUnnamed358(core.List<api.LiveStream> o) { | 1941 checkUnnamed381(core.List<api.LiveStream> o) { |
1942 unittest.expect(o, unittest.hasLength(2)); | 1942 unittest.expect(o, unittest.hasLength(2)); |
1943 checkLiveStream(o[0]); | 1943 checkLiveStream(o[0]); |
1944 checkLiveStream(o[1]); | 1944 checkLiveStream(o[1]); |
1945 } | 1945 } |
1946 | 1946 |
1947 core.int buildCounterLiveStreamListResponse = 0; | 1947 core.int buildCounterLiveStreamListResponse = 0; |
1948 buildLiveStreamListResponse() { | 1948 buildLiveStreamListResponse() { |
1949 var o = new api.LiveStreamListResponse(); | 1949 var o = new api.LiveStreamListResponse(); |
1950 buildCounterLiveStreamListResponse++; | 1950 buildCounterLiveStreamListResponse++; |
1951 if (buildCounterLiveStreamListResponse < 3) { | 1951 if (buildCounterLiveStreamListResponse < 3) { |
1952 o.etag = "foo"; | 1952 o.etag = "foo"; |
1953 o.eventId = "foo"; | 1953 o.eventId = "foo"; |
1954 o.items = buildUnnamed358(); | 1954 o.items = buildUnnamed381(); |
1955 o.kind = "foo"; | 1955 o.kind = "foo"; |
1956 o.nextPageToken = "foo"; | 1956 o.nextPageToken = "foo"; |
1957 o.pageInfo = buildPageInfo(); | 1957 o.pageInfo = buildPageInfo(); |
1958 o.prevPageToken = "foo"; | 1958 o.prevPageToken = "foo"; |
1959 o.tokenPagination = buildTokenPagination(); | 1959 o.tokenPagination = buildTokenPagination(); |
1960 o.visitorId = "foo"; | 1960 o.visitorId = "foo"; |
1961 } | 1961 } |
1962 buildCounterLiveStreamListResponse--; | 1962 buildCounterLiveStreamListResponse--; |
1963 return o; | 1963 return o; |
1964 } | 1964 } |
1965 | 1965 |
1966 checkLiveStreamListResponse(api.LiveStreamListResponse o) { | 1966 checkLiveStreamListResponse(api.LiveStreamListResponse o) { |
1967 buildCounterLiveStreamListResponse++; | 1967 buildCounterLiveStreamListResponse++; |
1968 if (buildCounterLiveStreamListResponse < 3) { | 1968 if (buildCounterLiveStreamListResponse < 3) { |
1969 unittest.expect(o.etag, unittest.equals('foo')); | 1969 unittest.expect(o.etag, unittest.equals('foo')); |
1970 unittest.expect(o.eventId, unittest.equals('foo')); | 1970 unittest.expect(o.eventId, unittest.equals('foo')); |
1971 checkUnnamed358(o.items); | 1971 checkUnnamed381(o.items); |
1972 unittest.expect(o.kind, unittest.equals('foo')); | 1972 unittest.expect(o.kind, unittest.equals('foo')); |
1973 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1973 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1974 checkPageInfo(o.pageInfo); | 1974 checkPageInfo(o.pageInfo); |
1975 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1975 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
1976 checkTokenPagination(o.tokenPagination); | 1976 checkTokenPagination(o.tokenPagination); |
1977 unittest.expect(o.visitorId, unittest.equals('foo')); | 1977 unittest.expect(o.visitorId, unittest.equals('foo')); |
1978 } | 1978 } |
1979 buildCounterLiveStreamListResponse--; | 1979 buildCounterLiveStreamListResponse--; |
1980 } | 1980 } |
1981 | 1981 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2016 } | 2016 } |
2017 | 2017 |
2018 checkLiveStreamStatus(api.LiveStreamStatus o) { | 2018 checkLiveStreamStatus(api.LiveStreamStatus o) { |
2019 buildCounterLiveStreamStatus++; | 2019 buildCounterLiveStreamStatus++; |
2020 if (buildCounterLiveStreamStatus < 3) { | 2020 if (buildCounterLiveStreamStatus < 3) { |
2021 unittest.expect(o.streamStatus, unittest.equals('foo')); | 2021 unittest.expect(o.streamStatus, unittest.equals('foo')); |
2022 } | 2022 } |
2023 buildCounterLiveStreamStatus--; | 2023 buildCounterLiveStreamStatus--; |
2024 } | 2024 } |
2025 | 2025 |
2026 buildUnnamed359() { | 2026 buildUnnamed382() { |
2027 var o = new core.List<api.LocalizedString>(); | 2027 var o = new core.List<api.LocalizedString>(); |
2028 o.add(buildLocalizedString()); | 2028 o.add(buildLocalizedString()); |
2029 o.add(buildLocalizedString()); | 2029 o.add(buildLocalizedString()); |
2030 return o; | 2030 return o; |
2031 } | 2031 } |
2032 | 2032 |
2033 checkUnnamed359(core.List<api.LocalizedString> o) { | 2033 checkUnnamed382(core.List<api.LocalizedString> o) { |
2034 unittest.expect(o, unittest.hasLength(2)); | 2034 unittest.expect(o, unittest.hasLength(2)); |
2035 checkLocalizedString(o[0]); | 2035 checkLocalizedString(o[0]); |
2036 checkLocalizedString(o[1]); | 2036 checkLocalizedString(o[1]); |
2037 } | 2037 } |
2038 | 2038 |
2039 core.int buildCounterLocalizedProperty = 0; | 2039 core.int buildCounterLocalizedProperty = 0; |
2040 buildLocalizedProperty() { | 2040 buildLocalizedProperty() { |
2041 var o = new api.LocalizedProperty(); | 2041 var o = new api.LocalizedProperty(); |
2042 buildCounterLocalizedProperty++; | 2042 buildCounterLocalizedProperty++; |
2043 if (buildCounterLocalizedProperty < 3) { | 2043 if (buildCounterLocalizedProperty < 3) { |
2044 o.default_ = "foo"; | 2044 o.default_ = "foo"; |
2045 o.localized = buildUnnamed359(); | 2045 o.localized = buildUnnamed382(); |
2046 } | 2046 } |
2047 buildCounterLocalizedProperty--; | 2047 buildCounterLocalizedProperty--; |
2048 return o; | 2048 return o; |
2049 } | 2049 } |
2050 | 2050 |
2051 checkLocalizedProperty(api.LocalizedProperty o) { | 2051 checkLocalizedProperty(api.LocalizedProperty o) { |
2052 buildCounterLocalizedProperty++; | 2052 buildCounterLocalizedProperty++; |
2053 if (buildCounterLocalizedProperty < 3) { | 2053 if (buildCounterLocalizedProperty < 3) { |
2054 unittest.expect(o.default_, unittest.equals('foo')); | 2054 unittest.expect(o.default_, unittest.equals('foo')); |
2055 checkUnnamed359(o.localized); | 2055 checkUnnamed382(o.localized); |
2056 } | 2056 } |
2057 buildCounterLocalizedProperty--; | 2057 buildCounterLocalizedProperty--; |
2058 } | 2058 } |
2059 | 2059 |
2060 core.int buildCounterLocalizedString = 0; | 2060 core.int buildCounterLocalizedString = 0; |
2061 buildLocalizedString() { | 2061 buildLocalizedString() { |
2062 var o = new api.LocalizedString(); | 2062 var o = new api.LocalizedString(); |
2063 buildCounterLocalizedString++; | 2063 buildCounterLocalizedString++; |
2064 if (buildCounterLocalizedString < 3) { | 2064 if (buildCounterLocalizedString < 3) { |
2065 o.language = "foo"; | 2065 o.language = "foo"; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2219 buildCounterPlaylistItemContentDetails++; | 2219 buildCounterPlaylistItemContentDetails++; |
2220 if (buildCounterPlaylistItemContentDetails < 3) { | 2220 if (buildCounterPlaylistItemContentDetails < 3) { |
2221 unittest.expect(o.endAt, unittest.equals('foo')); | 2221 unittest.expect(o.endAt, unittest.equals('foo')); |
2222 unittest.expect(o.note, unittest.equals('foo')); | 2222 unittest.expect(o.note, unittest.equals('foo')); |
2223 unittest.expect(o.startAt, unittest.equals('foo')); | 2223 unittest.expect(o.startAt, unittest.equals('foo')); |
2224 unittest.expect(o.videoId, unittest.equals('foo')); | 2224 unittest.expect(o.videoId, unittest.equals('foo')); |
2225 } | 2225 } |
2226 buildCounterPlaylistItemContentDetails--; | 2226 buildCounterPlaylistItemContentDetails--; |
2227 } | 2227 } |
2228 | 2228 |
2229 buildUnnamed360() { | 2229 buildUnnamed383() { |
2230 var o = new core.List<api.PlaylistItem>(); | 2230 var o = new core.List<api.PlaylistItem>(); |
2231 o.add(buildPlaylistItem()); | 2231 o.add(buildPlaylistItem()); |
2232 o.add(buildPlaylistItem()); | 2232 o.add(buildPlaylistItem()); |
2233 return o; | 2233 return o; |
2234 } | 2234 } |
2235 | 2235 |
2236 checkUnnamed360(core.List<api.PlaylistItem> o) { | 2236 checkUnnamed383(core.List<api.PlaylistItem> o) { |
2237 unittest.expect(o, unittest.hasLength(2)); | 2237 unittest.expect(o, unittest.hasLength(2)); |
2238 checkPlaylistItem(o[0]); | 2238 checkPlaylistItem(o[0]); |
2239 checkPlaylistItem(o[1]); | 2239 checkPlaylistItem(o[1]); |
2240 } | 2240 } |
2241 | 2241 |
2242 core.int buildCounterPlaylistItemListResponse = 0; | 2242 core.int buildCounterPlaylistItemListResponse = 0; |
2243 buildPlaylistItemListResponse() { | 2243 buildPlaylistItemListResponse() { |
2244 var o = new api.PlaylistItemListResponse(); | 2244 var o = new api.PlaylistItemListResponse(); |
2245 buildCounterPlaylistItemListResponse++; | 2245 buildCounterPlaylistItemListResponse++; |
2246 if (buildCounterPlaylistItemListResponse < 3) { | 2246 if (buildCounterPlaylistItemListResponse < 3) { |
2247 o.etag = "foo"; | 2247 o.etag = "foo"; |
2248 o.eventId = "foo"; | 2248 o.eventId = "foo"; |
2249 o.items = buildUnnamed360(); | 2249 o.items = buildUnnamed383(); |
2250 o.kind = "foo"; | 2250 o.kind = "foo"; |
2251 o.nextPageToken = "foo"; | 2251 o.nextPageToken = "foo"; |
2252 o.pageInfo = buildPageInfo(); | 2252 o.pageInfo = buildPageInfo(); |
2253 o.prevPageToken = "foo"; | 2253 o.prevPageToken = "foo"; |
2254 o.tokenPagination = buildTokenPagination(); | 2254 o.tokenPagination = buildTokenPagination(); |
2255 o.visitorId = "foo"; | 2255 o.visitorId = "foo"; |
2256 } | 2256 } |
2257 buildCounterPlaylistItemListResponse--; | 2257 buildCounterPlaylistItemListResponse--; |
2258 return o; | 2258 return o; |
2259 } | 2259 } |
2260 | 2260 |
2261 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) { | 2261 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) { |
2262 buildCounterPlaylistItemListResponse++; | 2262 buildCounterPlaylistItemListResponse++; |
2263 if (buildCounterPlaylistItemListResponse < 3) { | 2263 if (buildCounterPlaylistItemListResponse < 3) { |
2264 unittest.expect(o.etag, unittest.equals('foo')); | 2264 unittest.expect(o.etag, unittest.equals('foo')); |
2265 unittest.expect(o.eventId, unittest.equals('foo')); | 2265 unittest.expect(o.eventId, unittest.equals('foo')); |
2266 checkUnnamed360(o.items); | 2266 checkUnnamed383(o.items); |
2267 unittest.expect(o.kind, unittest.equals('foo')); | 2267 unittest.expect(o.kind, unittest.equals('foo')); |
2268 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2268 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2269 checkPageInfo(o.pageInfo); | 2269 checkPageInfo(o.pageInfo); |
2270 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2270 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2271 checkTokenPagination(o.tokenPagination); | 2271 checkTokenPagination(o.tokenPagination); |
2272 unittest.expect(o.visitorId, unittest.equals('foo')); | 2272 unittest.expect(o.visitorId, unittest.equals('foo')); |
2273 } | 2273 } |
2274 buildCounterPlaylistItemListResponse--; | 2274 buildCounterPlaylistItemListResponse--; |
2275 } | 2275 } |
2276 | 2276 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2321 } | 2321 } |
2322 | 2322 |
2323 checkPlaylistItemStatus(api.PlaylistItemStatus o) { | 2323 checkPlaylistItemStatus(api.PlaylistItemStatus o) { |
2324 buildCounterPlaylistItemStatus++; | 2324 buildCounterPlaylistItemStatus++; |
2325 if (buildCounterPlaylistItemStatus < 3) { | 2325 if (buildCounterPlaylistItemStatus < 3) { |
2326 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 2326 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
2327 } | 2327 } |
2328 buildCounterPlaylistItemStatus--; | 2328 buildCounterPlaylistItemStatus--; |
2329 } | 2329 } |
2330 | 2330 |
2331 buildUnnamed361() { | 2331 buildUnnamed384() { |
2332 var o = new core.List<api.Playlist>(); | 2332 var o = new core.List<api.Playlist>(); |
2333 o.add(buildPlaylist()); | 2333 o.add(buildPlaylist()); |
2334 o.add(buildPlaylist()); | 2334 o.add(buildPlaylist()); |
2335 return o; | 2335 return o; |
2336 } | 2336 } |
2337 | 2337 |
2338 checkUnnamed361(core.List<api.Playlist> o) { | 2338 checkUnnamed384(core.List<api.Playlist> o) { |
2339 unittest.expect(o, unittest.hasLength(2)); | 2339 unittest.expect(o, unittest.hasLength(2)); |
2340 checkPlaylist(o[0]); | 2340 checkPlaylist(o[0]); |
2341 checkPlaylist(o[1]); | 2341 checkPlaylist(o[1]); |
2342 } | 2342 } |
2343 | 2343 |
2344 core.int buildCounterPlaylistListResponse = 0; | 2344 core.int buildCounterPlaylistListResponse = 0; |
2345 buildPlaylistListResponse() { | 2345 buildPlaylistListResponse() { |
2346 var o = new api.PlaylistListResponse(); | 2346 var o = new api.PlaylistListResponse(); |
2347 buildCounterPlaylistListResponse++; | 2347 buildCounterPlaylistListResponse++; |
2348 if (buildCounterPlaylistListResponse < 3) { | 2348 if (buildCounterPlaylistListResponse < 3) { |
2349 o.etag = "foo"; | 2349 o.etag = "foo"; |
2350 o.eventId = "foo"; | 2350 o.eventId = "foo"; |
2351 o.items = buildUnnamed361(); | 2351 o.items = buildUnnamed384(); |
2352 o.kind = "foo"; | 2352 o.kind = "foo"; |
2353 o.nextPageToken = "foo"; | 2353 o.nextPageToken = "foo"; |
2354 o.pageInfo = buildPageInfo(); | 2354 o.pageInfo = buildPageInfo(); |
2355 o.prevPageToken = "foo"; | 2355 o.prevPageToken = "foo"; |
2356 o.tokenPagination = buildTokenPagination(); | 2356 o.tokenPagination = buildTokenPagination(); |
2357 o.visitorId = "foo"; | 2357 o.visitorId = "foo"; |
2358 } | 2358 } |
2359 buildCounterPlaylistListResponse--; | 2359 buildCounterPlaylistListResponse--; |
2360 return o; | 2360 return o; |
2361 } | 2361 } |
2362 | 2362 |
2363 checkPlaylistListResponse(api.PlaylistListResponse o) { | 2363 checkPlaylistListResponse(api.PlaylistListResponse o) { |
2364 buildCounterPlaylistListResponse++; | 2364 buildCounterPlaylistListResponse++; |
2365 if (buildCounterPlaylistListResponse < 3) { | 2365 if (buildCounterPlaylistListResponse < 3) { |
2366 unittest.expect(o.etag, unittest.equals('foo')); | 2366 unittest.expect(o.etag, unittest.equals('foo')); |
2367 unittest.expect(o.eventId, unittest.equals('foo')); | 2367 unittest.expect(o.eventId, unittest.equals('foo')); |
2368 checkUnnamed361(o.items); | 2368 checkUnnamed384(o.items); |
2369 unittest.expect(o.kind, unittest.equals('foo')); | 2369 unittest.expect(o.kind, unittest.equals('foo')); |
2370 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2370 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2371 checkPageInfo(o.pageInfo); | 2371 checkPageInfo(o.pageInfo); |
2372 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2372 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2373 checkTokenPagination(o.tokenPagination); | 2373 checkTokenPagination(o.tokenPagination); |
2374 unittest.expect(o.visitorId, unittest.equals('foo')); | 2374 unittest.expect(o.visitorId, unittest.equals('foo')); |
2375 } | 2375 } |
2376 buildCounterPlaylistListResponse--; | 2376 buildCounterPlaylistListResponse--; |
2377 } | 2377 } |
2378 | 2378 |
2379 core.int buildCounterPlaylistPlayer = 0; | 2379 core.int buildCounterPlaylistPlayer = 0; |
2380 buildPlaylistPlayer() { | 2380 buildPlaylistPlayer() { |
2381 var o = new api.PlaylistPlayer(); | 2381 var o = new api.PlaylistPlayer(); |
2382 buildCounterPlaylistPlayer++; | 2382 buildCounterPlaylistPlayer++; |
2383 if (buildCounterPlaylistPlayer < 3) { | 2383 if (buildCounterPlaylistPlayer < 3) { |
2384 o.embedHtml = "foo"; | 2384 o.embedHtml = "foo"; |
2385 } | 2385 } |
2386 buildCounterPlaylistPlayer--; | 2386 buildCounterPlaylistPlayer--; |
2387 return o; | 2387 return o; |
2388 } | 2388 } |
2389 | 2389 |
2390 checkPlaylistPlayer(api.PlaylistPlayer o) { | 2390 checkPlaylistPlayer(api.PlaylistPlayer o) { |
2391 buildCounterPlaylistPlayer++; | 2391 buildCounterPlaylistPlayer++; |
2392 if (buildCounterPlaylistPlayer < 3) { | 2392 if (buildCounterPlaylistPlayer < 3) { |
2393 unittest.expect(o.embedHtml, unittest.equals('foo')); | 2393 unittest.expect(o.embedHtml, unittest.equals('foo')); |
2394 } | 2394 } |
2395 buildCounterPlaylistPlayer--; | 2395 buildCounterPlaylistPlayer--; |
2396 } | 2396 } |
2397 | 2397 |
2398 buildUnnamed362() { | 2398 buildUnnamed385() { |
2399 var o = new core.List<core.String>(); | 2399 var o = new core.List<core.String>(); |
2400 o.add("foo"); | 2400 o.add("foo"); |
2401 o.add("foo"); | 2401 o.add("foo"); |
2402 return o; | 2402 return o; |
2403 } | 2403 } |
2404 | 2404 |
2405 checkUnnamed362(core.List<core.String> o) { | 2405 checkUnnamed385(core.List<core.String> o) { |
2406 unittest.expect(o, unittest.hasLength(2)); | 2406 unittest.expect(o, unittest.hasLength(2)); |
2407 unittest.expect(o[0], unittest.equals('foo')); | 2407 unittest.expect(o[0], unittest.equals('foo')); |
2408 unittest.expect(o[1], unittest.equals('foo')); | 2408 unittest.expect(o[1], unittest.equals('foo')); |
2409 } | 2409 } |
2410 | 2410 |
2411 core.int buildCounterPlaylistSnippet = 0; | 2411 core.int buildCounterPlaylistSnippet = 0; |
2412 buildPlaylistSnippet() { | 2412 buildPlaylistSnippet() { |
2413 var o = new api.PlaylistSnippet(); | 2413 var o = new api.PlaylistSnippet(); |
2414 buildCounterPlaylistSnippet++; | 2414 buildCounterPlaylistSnippet++; |
2415 if (buildCounterPlaylistSnippet < 3) { | 2415 if (buildCounterPlaylistSnippet < 3) { |
2416 o.channelId = "foo"; | 2416 o.channelId = "foo"; |
2417 o.channelTitle = "foo"; | 2417 o.channelTitle = "foo"; |
2418 o.description = "foo"; | 2418 o.description = "foo"; |
2419 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); | 2419 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); |
2420 o.tags = buildUnnamed362(); | 2420 o.tags = buildUnnamed385(); |
2421 o.thumbnails = buildThumbnailDetails(); | 2421 o.thumbnails = buildThumbnailDetails(); |
2422 o.title = "foo"; | 2422 o.title = "foo"; |
2423 } | 2423 } |
2424 buildCounterPlaylistSnippet--; | 2424 buildCounterPlaylistSnippet--; |
2425 return o; | 2425 return o; |
2426 } | 2426 } |
2427 | 2427 |
2428 checkPlaylistSnippet(api.PlaylistSnippet o) { | 2428 checkPlaylistSnippet(api.PlaylistSnippet o) { |
2429 buildCounterPlaylistSnippet++; | 2429 buildCounterPlaylistSnippet++; |
2430 if (buildCounterPlaylistSnippet < 3) { | 2430 if (buildCounterPlaylistSnippet < 3) { |
2431 unittest.expect(o.channelId, unittest.equals('foo')); | 2431 unittest.expect(o.channelId, unittest.equals('foo')); |
2432 unittest.expect(o.channelTitle, unittest.equals('foo')); | 2432 unittest.expect(o.channelTitle, unittest.equals('foo')); |
2433 unittest.expect(o.description, unittest.equals('foo')); | 2433 unittest.expect(o.description, unittest.equals('foo')); |
2434 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 2434 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
2435 checkUnnamed362(o.tags); | 2435 checkUnnamed385(o.tags); |
2436 checkThumbnailDetails(o.thumbnails); | 2436 checkThumbnailDetails(o.thumbnails); |
2437 unittest.expect(o.title, unittest.equals('foo')); | 2437 unittest.expect(o.title, unittest.equals('foo')); |
2438 } | 2438 } |
2439 buildCounterPlaylistSnippet--; | 2439 buildCounterPlaylistSnippet--; |
2440 } | 2440 } |
2441 | 2441 |
2442 core.int buildCounterPlaylistStatus = 0; | 2442 core.int buildCounterPlaylistStatus = 0; |
2443 buildPlaylistStatus() { | 2443 buildPlaylistStatus() { |
2444 var o = new api.PlaylistStatus(); | 2444 var o = new api.PlaylistStatus(); |
2445 buildCounterPlaylistStatus++; | 2445 buildCounterPlaylistStatus++; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 buildCounterResourceId++; | 2547 buildCounterResourceId++; |
2548 if (buildCounterResourceId < 3) { | 2548 if (buildCounterResourceId < 3) { |
2549 unittest.expect(o.channelId, unittest.equals('foo')); | 2549 unittest.expect(o.channelId, unittest.equals('foo')); |
2550 unittest.expect(o.kind, unittest.equals('foo')); | 2550 unittest.expect(o.kind, unittest.equals('foo')); |
2551 unittest.expect(o.playlistId, unittest.equals('foo')); | 2551 unittest.expect(o.playlistId, unittest.equals('foo')); |
2552 unittest.expect(o.videoId, unittest.equals('foo')); | 2552 unittest.expect(o.videoId, unittest.equals('foo')); |
2553 } | 2553 } |
2554 buildCounterResourceId--; | 2554 buildCounterResourceId--; |
2555 } | 2555 } |
2556 | 2556 |
2557 buildUnnamed363() { | 2557 buildUnnamed386() { |
2558 var o = new core.List<api.SearchResult>(); | 2558 var o = new core.List<api.SearchResult>(); |
2559 o.add(buildSearchResult()); | 2559 o.add(buildSearchResult()); |
2560 o.add(buildSearchResult()); | 2560 o.add(buildSearchResult()); |
2561 return o; | 2561 return o; |
2562 } | 2562 } |
2563 | 2563 |
2564 checkUnnamed363(core.List<api.SearchResult> o) { | 2564 checkUnnamed386(core.List<api.SearchResult> o) { |
2565 unittest.expect(o, unittest.hasLength(2)); | 2565 unittest.expect(o, unittest.hasLength(2)); |
2566 checkSearchResult(o[0]); | 2566 checkSearchResult(o[0]); |
2567 checkSearchResult(o[1]); | 2567 checkSearchResult(o[1]); |
2568 } | 2568 } |
2569 | 2569 |
2570 core.int buildCounterSearchListResponse = 0; | 2570 core.int buildCounterSearchListResponse = 0; |
2571 buildSearchListResponse() { | 2571 buildSearchListResponse() { |
2572 var o = new api.SearchListResponse(); | 2572 var o = new api.SearchListResponse(); |
2573 buildCounterSearchListResponse++; | 2573 buildCounterSearchListResponse++; |
2574 if (buildCounterSearchListResponse < 3) { | 2574 if (buildCounterSearchListResponse < 3) { |
2575 o.etag = "foo"; | 2575 o.etag = "foo"; |
2576 o.eventId = "foo"; | 2576 o.eventId = "foo"; |
2577 o.items = buildUnnamed363(); | 2577 o.items = buildUnnamed386(); |
2578 o.kind = "foo"; | 2578 o.kind = "foo"; |
2579 o.nextPageToken = "foo"; | 2579 o.nextPageToken = "foo"; |
2580 o.pageInfo = buildPageInfo(); | 2580 o.pageInfo = buildPageInfo(); |
2581 o.prevPageToken = "foo"; | 2581 o.prevPageToken = "foo"; |
2582 o.tokenPagination = buildTokenPagination(); | 2582 o.tokenPagination = buildTokenPagination(); |
2583 o.visitorId = "foo"; | 2583 o.visitorId = "foo"; |
2584 } | 2584 } |
2585 buildCounterSearchListResponse--; | 2585 buildCounterSearchListResponse--; |
2586 return o; | 2586 return o; |
2587 } | 2587 } |
2588 | 2588 |
2589 checkSearchListResponse(api.SearchListResponse o) { | 2589 checkSearchListResponse(api.SearchListResponse o) { |
2590 buildCounterSearchListResponse++; | 2590 buildCounterSearchListResponse++; |
2591 if (buildCounterSearchListResponse < 3) { | 2591 if (buildCounterSearchListResponse < 3) { |
2592 unittest.expect(o.etag, unittest.equals('foo')); | 2592 unittest.expect(o.etag, unittest.equals('foo')); |
2593 unittest.expect(o.eventId, unittest.equals('foo')); | 2593 unittest.expect(o.eventId, unittest.equals('foo')); |
2594 checkUnnamed363(o.items); | 2594 checkUnnamed386(o.items); |
2595 unittest.expect(o.kind, unittest.equals('foo')); | 2595 unittest.expect(o.kind, unittest.equals('foo')); |
2596 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2596 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2597 checkPageInfo(o.pageInfo); | 2597 checkPageInfo(o.pageInfo); |
2598 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2598 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2599 checkTokenPagination(o.tokenPagination); | 2599 checkTokenPagination(o.tokenPagination); |
2600 unittest.expect(o.visitorId, unittest.equals('foo')); | 2600 unittest.expect(o.visitorId, unittest.equals('foo')); |
2601 } | 2601 } |
2602 buildCounterSearchListResponse--; | 2602 buildCounterSearchListResponse--; |
2603 } | 2603 } |
2604 | 2604 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) { | 2703 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) { |
2704 buildCounterSubscriptionContentDetails++; | 2704 buildCounterSubscriptionContentDetails++; |
2705 if (buildCounterSubscriptionContentDetails < 3) { | 2705 if (buildCounterSubscriptionContentDetails < 3) { |
2706 unittest.expect(o.activityType, unittest.equals('foo')); | 2706 unittest.expect(o.activityType, unittest.equals('foo')); |
2707 unittest.expect(o.newItemCount, unittest.equals(42)); | 2707 unittest.expect(o.newItemCount, unittest.equals(42)); |
2708 unittest.expect(o.totalItemCount, unittest.equals(42)); | 2708 unittest.expect(o.totalItemCount, unittest.equals(42)); |
2709 } | 2709 } |
2710 buildCounterSubscriptionContentDetails--; | 2710 buildCounterSubscriptionContentDetails--; |
2711 } | 2711 } |
2712 | 2712 |
2713 buildUnnamed364() { | 2713 buildUnnamed387() { |
2714 var o = new core.List<api.Subscription>(); | 2714 var o = new core.List<api.Subscription>(); |
2715 o.add(buildSubscription()); | 2715 o.add(buildSubscription()); |
2716 o.add(buildSubscription()); | 2716 o.add(buildSubscription()); |
2717 return o; | 2717 return o; |
2718 } | 2718 } |
2719 | 2719 |
2720 checkUnnamed364(core.List<api.Subscription> o) { | 2720 checkUnnamed387(core.List<api.Subscription> o) { |
2721 unittest.expect(o, unittest.hasLength(2)); | 2721 unittest.expect(o, unittest.hasLength(2)); |
2722 checkSubscription(o[0]); | 2722 checkSubscription(o[0]); |
2723 checkSubscription(o[1]); | 2723 checkSubscription(o[1]); |
2724 } | 2724 } |
2725 | 2725 |
2726 core.int buildCounterSubscriptionListResponse = 0; | 2726 core.int buildCounterSubscriptionListResponse = 0; |
2727 buildSubscriptionListResponse() { | 2727 buildSubscriptionListResponse() { |
2728 var o = new api.SubscriptionListResponse(); | 2728 var o = new api.SubscriptionListResponse(); |
2729 buildCounterSubscriptionListResponse++; | 2729 buildCounterSubscriptionListResponse++; |
2730 if (buildCounterSubscriptionListResponse < 3) { | 2730 if (buildCounterSubscriptionListResponse < 3) { |
2731 o.etag = "foo"; | 2731 o.etag = "foo"; |
2732 o.eventId = "foo"; | 2732 o.eventId = "foo"; |
2733 o.items = buildUnnamed364(); | 2733 o.items = buildUnnamed387(); |
2734 o.kind = "foo"; | 2734 o.kind = "foo"; |
2735 o.nextPageToken = "foo"; | 2735 o.nextPageToken = "foo"; |
2736 o.pageInfo = buildPageInfo(); | 2736 o.pageInfo = buildPageInfo(); |
2737 o.prevPageToken = "foo"; | 2737 o.prevPageToken = "foo"; |
2738 o.tokenPagination = buildTokenPagination(); | 2738 o.tokenPagination = buildTokenPagination(); |
2739 o.visitorId = "foo"; | 2739 o.visitorId = "foo"; |
2740 } | 2740 } |
2741 buildCounterSubscriptionListResponse--; | 2741 buildCounterSubscriptionListResponse--; |
2742 return o; | 2742 return o; |
2743 } | 2743 } |
2744 | 2744 |
2745 checkSubscriptionListResponse(api.SubscriptionListResponse o) { | 2745 checkSubscriptionListResponse(api.SubscriptionListResponse o) { |
2746 buildCounterSubscriptionListResponse++; | 2746 buildCounterSubscriptionListResponse++; |
2747 if (buildCounterSubscriptionListResponse < 3) { | 2747 if (buildCounterSubscriptionListResponse < 3) { |
2748 unittest.expect(o.etag, unittest.equals('foo')); | 2748 unittest.expect(o.etag, unittest.equals('foo')); |
2749 unittest.expect(o.eventId, unittest.equals('foo')); | 2749 unittest.expect(o.eventId, unittest.equals('foo')); |
2750 checkUnnamed364(o.items); | 2750 checkUnnamed387(o.items); |
2751 unittest.expect(o.kind, unittest.equals('foo')); | 2751 unittest.expect(o.kind, unittest.equals('foo')); |
2752 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2752 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2753 checkPageInfo(o.pageInfo); | 2753 checkPageInfo(o.pageInfo); |
2754 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2754 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2755 checkTokenPagination(o.tokenPagination); | 2755 checkTokenPagination(o.tokenPagination); |
2756 unittest.expect(o.visitorId, unittest.equals('foo')); | 2756 unittest.expect(o.visitorId, unittest.equals('foo')); |
2757 } | 2757 } |
2758 buildCounterSubscriptionListResponse--; | 2758 buildCounterSubscriptionListResponse--; |
2759 } | 2759 } |
2760 | 2760 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2857 if (buildCounterThumbnailDetails < 3) { | 2857 if (buildCounterThumbnailDetails < 3) { |
2858 checkThumbnail(o.default_); | 2858 checkThumbnail(o.default_); |
2859 checkThumbnail(o.high); | 2859 checkThumbnail(o.high); |
2860 checkThumbnail(o.maxres); | 2860 checkThumbnail(o.maxres); |
2861 checkThumbnail(o.medium); | 2861 checkThumbnail(o.medium); |
2862 checkThumbnail(o.standard); | 2862 checkThumbnail(o.standard); |
2863 } | 2863 } |
2864 buildCounterThumbnailDetails--; | 2864 buildCounterThumbnailDetails--; |
2865 } | 2865 } |
2866 | 2866 |
2867 buildUnnamed365() { | 2867 buildUnnamed388() { |
2868 var o = new core.List<api.ThumbnailDetails>(); | 2868 var o = new core.List<api.ThumbnailDetails>(); |
2869 o.add(buildThumbnailDetails()); | 2869 o.add(buildThumbnailDetails()); |
2870 o.add(buildThumbnailDetails()); | 2870 o.add(buildThumbnailDetails()); |
2871 return o; | 2871 return o; |
2872 } | 2872 } |
2873 | 2873 |
2874 checkUnnamed365(core.List<api.ThumbnailDetails> o) { | 2874 checkUnnamed388(core.List<api.ThumbnailDetails> o) { |
2875 unittest.expect(o, unittest.hasLength(2)); | 2875 unittest.expect(o, unittest.hasLength(2)); |
2876 checkThumbnailDetails(o[0]); | 2876 checkThumbnailDetails(o[0]); |
2877 checkThumbnailDetails(o[1]); | 2877 checkThumbnailDetails(o[1]); |
2878 } | 2878 } |
2879 | 2879 |
2880 core.int buildCounterThumbnailSetResponse = 0; | 2880 core.int buildCounterThumbnailSetResponse = 0; |
2881 buildThumbnailSetResponse() { | 2881 buildThumbnailSetResponse() { |
2882 var o = new api.ThumbnailSetResponse(); | 2882 var o = new api.ThumbnailSetResponse(); |
2883 buildCounterThumbnailSetResponse++; | 2883 buildCounterThumbnailSetResponse++; |
2884 if (buildCounterThumbnailSetResponse < 3) { | 2884 if (buildCounterThumbnailSetResponse < 3) { |
2885 o.etag = "foo"; | 2885 o.etag = "foo"; |
2886 o.eventId = "foo"; | 2886 o.eventId = "foo"; |
2887 o.items = buildUnnamed365(); | 2887 o.items = buildUnnamed388(); |
2888 o.kind = "foo"; | 2888 o.kind = "foo"; |
2889 o.visitorId = "foo"; | 2889 o.visitorId = "foo"; |
2890 } | 2890 } |
2891 buildCounterThumbnailSetResponse--; | 2891 buildCounterThumbnailSetResponse--; |
2892 return o; | 2892 return o; |
2893 } | 2893 } |
2894 | 2894 |
2895 checkThumbnailSetResponse(api.ThumbnailSetResponse o) { | 2895 checkThumbnailSetResponse(api.ThumbnailSetResponse o) { |
2896 buildCounterThumbnailSetResponse++; | 2896 buildCounterThumbnailSetResponse++; |
2897 if (buildCounterThumbnailSetResponse < 3) { | 2897 if (buildCounterThumbnailSetResponse < 3) { |
2898 unittest.expect(o.etag, unittest.equals('foo')); | 2898 unittest.expect(o.etag, unittest.equals('foo')); |
2899 unittest.expect(o.eventId, unittest.equals('foo')); | 2899 unittest.expect(o.eventId, unittest.equals('foo')); |
2900 checkUnnamed365(o.items); | 2900 checkUnnamed388(o.items); |
2901 unittest.expect(o.kind, unittest.equals('foo')); | 2901 unittest.expect(o.kind, unittest.equals('foo')); |
2902 unittest.expect(o.visitorId, unittest.equals('foo')); | 2902 unittest.expect(o.visitorId, unittest.equals('foo')); |
2903 } | 2903 } |
2904 buildCounterThumbnailSetResponse--; | 2904 buildCounterThumbnailSetResponse--; |
2905 } | 2905 } |
2906 | 2906 |
2907 core.int buildCounterTokenPagination = 0; | 2907 core.int buildCounterTokenPagination = 0; |
2908 buildTokenPagination() { | 2908 buildTokenPagination() { |
2909 var o = new api.TokenPagination(); | 2909 var o = new api.TokenPagination(); |
2910 buildCounterTokenPagination++; | 2910 buildCounterTokenPagination++; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3015 buildCounterVideoCategory++; | 3015 buildCounterVideoCategory++; |
3016 if (buildCounterVideoCategory < 3) { | 3016 if (buildCounterVideoCategory < 3) { |
3017 unittest.expect(o.etag, unittest.equals('foo')); | 3017 unittest.expect(o.etag, unittest.equals('foo')); |
3018 unittest.expect(o.id, unittest.equals('foo')); | 3018 unittest.expect(o.id, unittest.equals('foo')); |
3019 unittest.expect(o.kind, unittest.equals('foo')); | 3019 unittest.expect(o.kind, unittest.equals('foo')); |
3020 checkVideoCategorySnippet(o.snippet); | 3020 checkVideoCategorySnippet(o.snippet); |
3021 } | 3021 } |
3022 buildCounterVideoCategory--; | 3022 buildCounterVideoCategory--; |
3023 } | 3023 } |
3024 | 3024 |
3025 buildUnnamed366() { | 3025 buildUnnamed389() { |
3026 var o = new core.List<api.VideoCategory>(); | 3026 var o = new core.List<api.VideoCategory>(); |
3027 o.add(buildVideoCategory()); | 3027 o.add(buildVideoCategory()); |
3028 o.add(buildVideoCategory()); | 3028 o.add(buildVideoCategory()); |
3029 return o; | 3029 return o; |
3030 } | 3030 } |
3031 | 3031 |
3032 checkUnnamed366(core.List<api.VideoCategory> o) { | 3032 checkUnnamed389(core.List<api.VideoCategory> o) { |
3033 unittest.expect(o, unittest.hasLength(2)); | 3033 unittest.expect(o, unittest.hasLength(2)); |
3034 checkVideoCategory(o[0]); | 3034 checkVideoCategory(o[0]); |
3035 checkVideoCategory(o[1]); | 3035 checkVideoCategory(o[1]); |
3036 } | 3036 } |
3037 | 3037 |
3038 core.int buildCounterVideoCategoryListResponse = 0; | 3038 core.int buildCounterVideoCategoryListResponse = 0; |
3039 buildVideoCategoryListResponse() { | 3039 buildVideoCategoryListResponse() { |
3040 var o = new api.VideoCategoryListResponse(); | 3040 var o = new api.VideoCategoryListResponse(); |
3041 buildCounterVideoCategoryListResponse++; | 3041 buildCounterVideoCategoryListResponse++; |
3042 if (buildCounterVideoCategoryListResponse < 3) { | 3042 if (buildCounterVideoCategoryListResponse < 3) { |
3043 o.etag = "foo"; | 3043 o.etag = "foo"; |
3044 o.eventId = "foo"; | 3044 o.eventId = "foo"; |
3045 o.items = buildUnnamed366(); | 3045 o.items = buildUnnamed389(); |
3046 o.kind = "foo"; | 3046 o.kind = "foo"; |
3047 o.nextPageToken = "foo"; | 3047 o.nextPageToken = "foo"; |
3048 o.pageInfo = buildPageInfo(); | 3048 o.pageInfo = buildPageInfo(); |
3049 o.prevPageToken = "foo"; | 3049 o.prevPageToken = "foo"; |
3050 o.tokenPagination = buildTokenPagination(); | 3050 o.tokenPagination = buildTokenPagination(); |
3051 o.visitorId = "foo"; | 3051 o.visitorId = "foo"; |
3052 } | 3052 } |
3053 buildCounterVideoCategoryListResponse--; | 3053 buildCounterVideoCategoryListResponse--; |
3054 return o; | 3054 return o; |
3055 } | 3055 } |
3056 | 3056 |
3057 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) { | 3057 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) { |
3058 buildCounterVideoCategoryListResponse++; | 3058 buildCounterVideoCategoryListResponse++; |
3059 if (buildCounterVideoCategoryListResponse < 3) { | 3059 if (buildCounterVideoCategoryListResponse < 3) { |
3060 unittest.expect(o.etag, unittest.equals('foo')); | 3060 unittest.expect(o.etag, unittest.equals('foo')); |
3061 unittest.expect(o.eventId, unittest.equals('foo')); | 3061 unittest.expect(o.eventId, unittest.equals('foo')); |
3062 checkUnnamed366(o.items); | 3062 checkUnnamed389(o.items); |
3063 unittest.expect(o.kind, unittest.equals('foo')); | 3063 unittest.expect(o.kind, unittest.equals('foo')); |
3064 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3064 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3065 checkPageInfo(o.pageInfo); | 3065 checkPageInfo(o.pageInfo); |
3066 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 3066 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
3067 checkTokenPagination(o.tokenPagination); | 3067 checkTokenPagination(o.tokenPagination); |
3068 unittest.expect(o.visitorId, unittest.equals('foo')); | 3068 unittest.expect(o.visitorId, unittest.equals('foo')); |
3069 } | 3069 } |
3070 buildCounterVideoCategoryListResponse--; | 3070 buildCounterVideoCategoryListResponse--; |
3071 } | 3071 } |
3072 | 3072 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 checkAccessPolicy(o.countryRestriction); | 3119 checkAccessPolicy(o.countryRestriction); |
3120 unittest.expect(o.definition, unittest.equals('foo')); | 3120 unittest.expect(o.definition, unittest.equals('foo')); |
3121 unittest.expect(o.dimension, unittest.equals('foo')); | 3121 unittest.expect(o.dimension, unittest.equals('foo')); |
3122 unittest.expect(o.duration, unittest.equals('foo')); | 3122 unittest.expect(o.duration, unittest.equals('foo')); |
3123 unittest.expect(o.licensedContent, unittest.isTrue); | 3123 unittest.expect(o.licensedContent, unittest.isTrue); |
3124 checkVideoContentDetailsRegionRestriction(o.regionRestriction); | 3124 checkVideoContentDetailsRegionRestriction(o.regionRestriction); |
3125 } | 3125 } |
3126 buildCounterVideoContentDetails--; | 3126 buildCounterVideoContentDetails--; |
3127 } | 3127 } |
3128 | 3128 |
3129 buildUnnamed367() { | 3129 buildUnnamed390() { |
3130 var o = new core.List<core.String>(); | 3130 var o = new core.List<core.String>(); |
3131 o.add("foo"); | 3131 o.add("foo"); |
3132 o.add("foo"); | 3132 o.add("foo"); |
3133 return o; | 3133 return o; |
3134 } | 3134 } |
3135 | 3135 |
3136 checkUnnamed367(core.List<core.String> o) { | 3136 checkUnnamed390(core.List<core.String> o) { |
3137 unittest.expect(o, unittest.hasLength(2)); | 3137 unittest.expect(o, unittest.hasLength(2)); |
3138 unittest.expect(o[0], unittest.equals('foo')); | 3138 unittest.expect(o[0], unittest.equals('foo')); |
3139 unittest.expect(o[1], unittest.equals('foo')); | 3139 unittest.expect(o[1], unittest.equals('foo')); |
3140 } | 3140 } |
3141 | 3141 |
3142 buildUnnamed368() { | 3142 buildUnnamed391() { |
3143 var o = new core.List<core.String>(); | 3143 var o = new core.List<core.String>(); |
3144 o.add("foo"); | 3144 o.add("foo"); |
3145 o.add("foo"); | 3145 o.add("foo"); |
3146 return o; | 3146 return o; |
3147 } | 3147 } |
3148 | 3148 |
3149 checkUnnamed368(core.List<core.String> o) { | 3149 checkUnnamed391(core.List<core.String> o) { |
3150 unittest.expect(o, unittest.hasLength(2)); | 3150 unittest.expect(o, unittest.hasLength(2)); |
3151 unittest.expect(o[0], unittest.equals('foo')); | 3151 unittest.expect(o[0], unittest.equals('foo')); |
3152 unittest.expect(o[1], unittest.equals('foo')); | 3152 unittest.expect(o[1], unittest.equals('foo')); |
3153 } | 3153 } |
3154 | 3154 |
3155 core.int buildCounterVideoContentDetailsRegionRestriction = 0; | 3155 core.int buildCounterVideoContentDetailsRegionRestriction = 0; |
3156 buildVideoContentDetailsRegionRestriction() { | 3156 buildVideoContentDetailsRegionRestriction() { |
3157 var o = new api.VideoContentDetailsRegionRestriction(); | 3157 var o = new api.VideoContentDetailsRegionRestriction(); |
3158 buildCounterVideoContentDetailsRegionRestriction++; | 3158 buildCounterVideoContentDetailsRegionRestriction++; |
3159 if (buildCounterVideoContentDetailsRegionRestriction < 3) { | 3159 if (buildCounterVideoContentDetailsRegionRestriction < 3) { |
3160 o.allowed = buildUnnamed367(); | 3160 o.allowed = buildUnnamed390(); |
3161 o.blocked = buildUnnamed368(); | 3161 o.blocked = buildUnnamed391(); |
3162 } | 3162 } |
3163 buildCounterVideoContentDetailsRegionRestriction--; | 3163 buildCounterVideoContentDetailsRegionRestriction--; |
3164 return o; | 3164 return o; |
3165 } | 3165 } |
3166 | 3166 |
3167 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti
on o) { | 3167 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti
on o) { |
3168 buildCounterVideoContentDetailsRegionRestriction++; | 3168 buildCounterVideoContentDetailsRegionRestriction++; |
3169 if (buildCounterVideoContentDetailsRegionRestriction < 3) { | 3169 if (buildCounterVideoContentDetailsRegionRestriction < 3) { |
3170 checkUnnamed367(o.allowed); | 3170 checkUnnamed390(o.allowed); |
3171 checkUnnamed368(o.blocked); | 3171 checkUnnamed391(o.blocked); |
3172 } | 3172 } |
3173 buildCounterVideoContentDetailsRegionRestriction--; | 3173 buildCounterVideoContentDetailsRegionRestriction--; |
3174 } | 3174 } |
3175 | 3175 |
3176 core.int buildCounterVideoConversionPing = 0; | 3176 core.int buildCounterVideoConversionPing = 0; |
3177 buildVideoConversionPing() { | 3177 buildVideoConversionPing() { |
3178 var o = new api.VideoConversionPing(); | 3178 var o = new api.VideoConversionPing(); |
3179 buildCounterVideoConversionPing++; | 3179 buildCounterVideoConversionPing++; |
3180 if (buildCounterVideoConversionPing < 3) { | 3180 if (buildCounterVideoConversionPing < 3) { |
3181 o.context = "foo"; | 3181 o.context = "foo"; |
3182 o.conversionUrl = "foo"; | 3182 o.conversionUrl = "foo"; |
3183 } | 3183 } |
3184 buildCounterVideoConversionPing--; | 3184 buildCounterVideoConversionPing--; |
3185 return o; | 3185 return o; |
3186 } | 3186 } |
3187 | 3187 |
3188 checkVideoConversionPing(api.VideoConversionPing o) { | 3188 checkVideoConversionPing(api.VideoConversionPing o) { |
3189 buildCounterVideoConversionPing++; | 3189 buildCounterVideoConversionPing++; |
3190 if (buildCounterVideoConversionPing < 3) { | 3190 if (buildCounterVideoConversionPing < 3) { |
3191 unittest.expect(o.context, unittest.equals('foo')); | 3191 unittest.expect(o.context, unittest.equals('foo')); |
3192 unittest.expect(o.conversionUrl, unittest.equals('foo')); | 3192 unittest.expect(o.conversionUrl, unittest.equals('foo')); |
3193 } | 3193 } |
3194 buildCounterVideoConversionPing--; | 3194 buildCounterVideoConversionPing--; |
3195 } | 3195 } |
3196 | 3196 |
3197 buildUnnamed369() { | 3197 buildUnnamed392() { |
3198 var o = new core.List<api.VideoConversionPing>(); | 3198 var o = new core.List<api.VideoConversionPing>(); |
3199 o.add(buildVideoConversionPing()); | 3199 o.add(buildVideoConversionPing()); |
3200 o.add(buildVideoConversionPing()); | 3200 o.add(buildVideoConversionPing()); |
3201 return o; | 3201 return o; |
3202 } | 3202 } |
3203 | 3203 |
3204 checkUnnamed369(core.List<api.VideoConversionPing> o) { | 3204 checkUnnamed392(core.List<api.VideoConversionPing> o) { |
3205 unittest.expect(o, unittest.hasLength(2)); | 3205 unittest.expect(o, unittest.hasLength(2)); |
3206 checkVideoConversionPing(o[0]); | 3206 checkVideoConversionPing(o[0]); |
3207 checkVideoConversionPing(o[1]); | 3207 checkVideoConversionPing(o[1]); |
3208 } | 3208 } |
3209 | 3209 |
3210 core.int buildCounterVideoConversionPings = 0; | 3210 core.int buildCounterVideoConversionPings = 0; |
3211 buildVideoConversionPings() { | 3211 buildVideoConversionPings() { |
3212 var o = new api.VideoConversionPings(); | 3212 var o = new api.VideoConversionPings(); |
3213 buildCounterVideoConversionPings++; | 3213 buildCounterVideoConversionPings++; |
3214 if (buildCounterVideoConversionPings < 3) { | 3214 if (buildCounterVideoConversionPings < 3) { |
3215 o.pings = buildUnnamed369(); | 3215 o.pings = buildUnnamed392(); |
3216 } | 3216 } |
3217 buildCounterVideoConversionPings--; | 3217 buildCounterVideoConversionPings--; |
3218 return o; | 3218 return o; |
3219 } | 3219 } |
3220 | 3220 |
3221 checkVideoConversionPings(api.VideoConversionPings o) { | 3221 checkVideoConversionPings(api.VideoConversionPings o) { |
3222 buildCounterVideoConversionPings++; | 3222 buildCounterVideoConversionPings++; |
3223 if (buildCounterVideoConversionPings < 3) { | 3223 if (buildCounterVideoConversionPings < 3) { |
3224 checkUnnamed369(o.pings); | 3224 checkUnnamed392(o.pings); |
3225 } | 3225 } |
3226 buildCounterVideoConversionPings--; | 3226 buildCounterVideoConversionPings--; |
3227 } | 3227 } |
3228 | 3228 |
3229 buildUnnamed370() { | 3229 buildUnnamed393() { |
3230 var o = new core.List<api.VideoFileDetailsAudioStream>(); | 3230 var o = new core.List<api.VideoFileDetailsAudioStream>(); |
3231 o.add(buildVideoFileDetailsAudioStream()); | 3231 o.add(buildVideoFileDetailsAudioStream()); |
3232 o.add(buildVideoFileDetailsAudioStream()); | 3232 o.add(buildVideoFileDetailsAudioStream()); |
3233 return o; | 3233 return o; |
3234 } | 3234 } |
3235 | 3235 |
3236 checkUnnamed370(core.List<api.VideoFileDetailsAudioStream> o) { | 3236 checkUnnamed393(core.List<api.VideoFileDetailsAudioStream> o) { |
3237 unittest.expect(o, unittest.hasLength(2)); | 3237 unittest.expect(o, unittest.hasLength(2)); |
3238 checkVideoFileDetailsAudioStream(o[0]); | 3238 checkVideoFileDetailsAudioStream(o[0]); |
3239 checkVideoFileDetailsAudioStream(o[1]); | 3239 checkVideoFileDetailsAudioStream(o[1]); |
3240 } | 3240 } |
3241 | 3241 |
3242 buildUnnamed371() { | 3242 buildUnnamed394() { |
3243 var o = new core.List<api.VideoFileDetailsVideoStream>(); | 3243 var o = new core.List<api.VideoFileDetailsVideoStream>(); |
3244 o.add(buildVideoFileDetailsVideoStream()); | 3244 o.add(buildVideoFileDetailsVideoStream()); |
3245 o.add(buildVideoFileDetailsVideoStream()); | 3245 o.add(buildVideoFileDetailsVideoStream()); |
3246 return o; | 3246 return o; |
3247 } | 3247 } |
3248 | 3248 |
3249 checkUnnamed371(core.List<api.VideoFileDetailsVideoStream> o) { | 3249 checkUnnamed394(core.List<api.VideoFileDetailsVideoStream> o) { |
3250 unittest.expect(o, unittest.hasLength(2)); | 3250 unittest.expect(o, unittest.hasLength(2)); |
3251 checkVideoFileDetailsVideoStream(o[0]); | 3251 checkVideoFileDetailsVideoStream(o[0]); |
3252 checkVideoFileDetailsVideoStream(o[1]); | 3252 checkVideoFileDetailsVideoStream(o[1]); |
3253 } | 3253 } |
3254 | 3254 |
3255 core.int buildCounterVideoFileDetails = 0; | 3255 core.int buildCounterVideoFileDetails = 0; |
3256 buildVideoFileDetails() { | 3256 buildVideoFileDetails() { |
3257 var o = new api.VideoFileDetails(); | 3257 var o = new api.VideoFileDetails(); |
3258 buildCounterVideoFileDetails++; | 3258 buildCounterVideoFileDetails++; |
3259 if (buildCounterVideoFileDetails < 3) { | 3259 if (buildCounterVideoFileDetails < 3) { |
3260 o.audioStreams = buildUnnamed370(); | 3260 o.audioStreams = buildUnnamed393(); |
3261 o.bitrateBps = "foo"; | 3261 o.bitrateBps = "foo"; |
3262 o.container = "foo"; | 3262 o.container = "foo"; |
3263 o.creationTime = "foo"; | 3263 o.creationTime = "foo"; |
3264 o.durationMs = "foo"; | 3264 o.durationMs = "foo"; |
3265 o.fileName = "foo"; | 3265 o.fileName = "foo"; |
3266 o.fileSize = "foo"; | 3266 o.fileSize = "foo"; |
3267 o.fileType = "foo"; | 3267 o.fileType = "foo"; |
3268 o.recordingLocation = buildGeoPoint(); | 3268 o.recordingLocation = buildGeoPoint(); |
3269 o.videoStreams = buildUnnamed371(); | 3269 o.videoStreams = buildUnnamed394(); |
3270 } | 3270 } |
3271 buildCounterVideoFileDetails--; | 3271 buildCounterVideoFileDetails--; |
3272 return o; | 3272 return o; |
3273 } | 3273 } |
3274 | 3274 |
3275 checkVideoFileDetails(api.VideoFileDetails o) { | 3275 checkVideoFileDetails(api.VideoFileDetails o) { |
3276 buildCounterVideoFileDetails++; | 3276 buildCounterVideoFileDetails++; |
3277 if (buildCounterVideoFileDetails < 3) { | 3277 if (buildCounterVideoFileDetails < 3) { |
3278 checkUnnamed370(o.audioStreams); | 3278 checkUnnamed393(o.audioStreams); |
3279 unittest.expect(o.bitrateBps, unittest.equals('foo')); | 3279 unittest.expect(o.bitrateBps, unittest.equals('foo')); |
3280 unittest.expect(o.container, unittest.equals('foo')); | 3280 unittest.expect(o.container, unittest.equals('foo')); |
3281 unittest.expect(o.creationTime, unittest.equals('foo')); | 3281 unittest.expect(o.creationTime, unittest.equals('foo')); |
3282 unittest.expect(o.durationMs, unittest.equals('foo')); | 3282 unittest.expect(o.durationMs, unittest.equals('foo')); |
3283 unittest.expect(o.fileName, unittest.equals('foo')); | 3283 unittest.expect(o.fileName, unittest.equals('foo')); |
3284 unittest.expect(o.fileSize, unittest.equals('foo')); | 3284 unittest.expect(o.fileSize, unittest.equals('foo')); |
3285 unittest.expect(o.fileType, unittest.equals('foo')); | 3285 unittest.expect(o.fileType, unittest.equals('foo')); |
3286 checkGeoPoint(o.recordingLocation); | 3286 checkGeoPoint(o.recordingLocation); |
3287 checkUnnamed371(o.videoStreams); | 3287 checkUnnamed394(o.videoStreams); |
3288 } | 3288 } |
3289 buildCounterVideoFileDetails--; | 3289 buildCounterVideoFileDetails--; |
3290 } | 3290 } |
3291 | 3291 |
3292 core.int buildCounterVideoFileDetailsAudioStream = 0; | 3292 core.int buildCounterVideoFileDetailsAudioStream = 0; |
3293 buildVideoFileDetailsAudioStream() { | 3293 buildVideoFileDetailsAudioStream() { |
3294 var o = new api.VideoFileDetailsAudioStream(); | 3294 var o = new api.VideoFileDetailsAudioStream(); |
3295 buildCounterVideoFileDetailsAudioStream++; | 3295 buildCounterVideoFileDetailsAudioStream++; |
3296 if (buildCounterVideoFileDetailsAudioStream < 3) { | 3296 if (buildCounterVideoFileDetailsAudioStream < 3) { |
3297 o.bitrateBps = "foo"; | 3297 o.bitrateBps = "foo"; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3340 unittest.expect(o.codec, unittest.equals('foo')); | 3340 unittest.expect(o.codec, unittest.equals('foo')); |
3341 unittest.expect(o.frameRateFps, unittest.equals(42.0)); | 3341 unittest.expect(o.frameRateFps, unittest.equals(42.0)); |
3342 unittest.expect(o.heightPixels, unittest.equals(42)); | 3342 unittest.expect(o.heightPixels, unittest.equals(42)); |
3343 unittest.expect(o.rotation, unittest.equals('foo')); | 3343 unittest.expect(o.rotation, unittest.equals('foo')); |
3344 unittest.expect(o.vendor, unittest.equals('foo')); | 3344 unittest.expect(o.vendor, unittest.equals('foo')); |
3345 unittest.expect(o.widthPixels, unittest.equals(42)); | 3345 unittest.expect(o.widthPixels, unittest.equals(42)); |
3346 } | 3346 } |
3347 buildCounterVideoFileDetailsVideoStream--; | 3347 buildCounterVideoFileDetailsVideoStream--; |
3348 } | 3348 } |
3349 | 3349 |
3350 buildUnnamed372() { | 3350 buildUnnamed395() { |
3351 var o = new core.List<api.VideoRating>(); | 3351 var o = new core.List<api.VideoRating>(); |
3352 o.add(buildVideoRating()); | 3352 o.add(buildVideoRating()); |
3353 o.add(buildVideoRating()); | 3353 o.add(buildVideoRating()); |
3354 return o; | 3354 return o; |
3355 } | 3355 } |
3356 | 3356 |
3357 checkUnnamed372(core.List<api.VideoRating> o) { | 3357 checkUnnamed395(core.List<api.VideoRating> o) { |
3358 unittest.expect(o, unittest.hasLength(2)); | 3358 unittest.expect(o, unittest.hasLength(2)); |
3359 checkVideoRating(o[0]); | 3359 checkVideoRating(o[0]); |
3360 checkVideoRating(o[1]); | 3360 checkVideoRating(o[1]); |
3361 } | 3361 } |
3362 | 3362 |
3363 core.int buildCounterVideoGetRatingResponse = 0; | 3363 core.int buildCounterVideoGetRatingResponse = 0; |
3364 buildVideoGetRatingResponse() { | 3364 buildVideoGetRatingResponse() { |
3365 var o = new api.VideoGetRatingResponse(); | 3365 var o = new api.VideoGetRatingResponse(); |
3366 buildCounterVideoGetRatingResponse++; | 3366 buildCounterVideoGetRatingResponse++; |
3367 if (buildCounterVideoGetRatingResponse < 3) { | 3367 if (buildCounterVideoGetRatingResponse < 3) { |
3368 o.etag = "foo"; | 3368 o.etag = "foo"; |
3369 o.items = buildUnnamed372(); | 3369 o.items = buildUnnamed395(); |
3370 o.kind = "foo"; | 3370 o.kind = "foo"; |
3371 } | 3371 } |
3372 buildCounterVideoGetRatingResponse--; | 3372 buildCounterVideoGetRatingResponse--; |
3373 return o; | 3373 return o; |
3374 } | 3374 } |
3375 | 3375 |
3376 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { | 3376 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { |
3377 buildCounterVideoGetRatingResponse++; | 3377 buildCounterVideoGetRatingResponse++; |
3378 if (buildCounterVideoGetRatingResponse < 3) { | 3378 if (buildCounterVideoGetRatingResponse < 3) { |
3379 unittest.expect(o.etag, unittest.equals('foo')); | 3379 unittest.expect(o.etag, unittest.equals('foo')); |
3380 checkUnnamed372(o.items); | 3380 checkUnnamed395(o.items); |
3381 unittest.expect(o.kind, unittest.equals('foo')); | 3381 unittest.expect(o.kind, unittest.equals('foo')); |
3382 } | 3382 } |
3383 buildCounterVideoGetRatingResponse--; | 3383 buildCounterVideoGetRatingResponse--; |
3384 } | 3384 } |
3385 | 3385 |
3386 buildUnnamed373() { | 3386 buildUnnamed396() { |
3387 var o = new core.List<api.Video>(); | 3387 var o = new core.List<api.Video>(); |
3388 o.add(buildVideo()); | 3388 o.add(buildVideo()); |
3389 o.add(buildVideo()); | 3389 o.add(buildVideo()); |
3390 return o; | 3390 return o; |
3391 } | 3391 } |
3392 | 3392 |
3393 checkUnnamed373(core.List<api.Video> o) { | 3393 checkUnnamed396(core.List<api.Video> o) { |
3394 unittest.expect(o, unittest.hasLength(2)); | 3394 unittest.expect(o, unittest.hasLength(2)); |
3395 checkVideo(o[0]); | 3395 checkVideo(o[0]); |
3396 checkVideo(o[1]); | 3396 checkVideo(o[1]); |
3397 } | 3397 } |
3398 | 3398 |
3399 core.int buildCounterVideoListResponse = 0; | 3399 core.int buildCounterVideoListResponse = 0; |
3400 buildVideoListResponse() { | 3400 buildVideoListResponse() { |
3401 var o = new api.VideoListResponse(); | 3401 var o = new api.VideoListResponse(); |
3402 buildCounterVideoListResponse++; | 3402 buildCounterVideoListResponse++; |
3403 if (buildCounterVideoListResponse < 3) { | 3403 if (buildCounterVideoListResponse < 3) { |
3404 o.etag = "foo"; | 3404 o.etag = "foo"; |
3405 o.eventId = "foo"; | 3405 o.eventId = "foo"; |
3406 o.items = buildUnnamed373(); | 3406 o.items = buildUnnamed396(); |
3407 o.kind = "foo"; | 3407 o.kind = "foo"; |
3408 o.nextPageToken = "foo"; | 3408 o.nextPageToken = "foo"; |
3409 o.pageInfo = buildPageInfo(); | 3409 o.pageInfo = buildPageInfo(); |
3410 o.prevPageToken = "foo"; | 3410 o.prevPageToken = "foo"; |
3411 o.tokenPagination = buildTokenPagination(); | 3411 o.tokenPagination = buildTokenPagination(); |
3412 o.visitorId = "foo"; | 3412 o.visitorId = "foo"; |
3413 } | 3413 } |
3414 buildCounterVideoListResponse--; | 3414 buildCounterVideoListResponse--; |
3415 return o; | 3415 return o; |
3416 } | 3416 } |
3417 | 3417 |
3418 checkVideoListResponse(api.VideoListResponse o) { | 3418 checkVideoListResponse(api.VideoListResponse o) { |
3419 buildCounterVideoListResponse++; | 3419 buildCounterVideoListResponse++; |
3420 if (buildCounterVideoListResponse < 3) { | 3420 if (buildCounterVideoListResponse < 3) { |
3421 unittest.expect(o.etag, unittest.equals('foo')); | 3421 unittest.expect(o.etag, unittest.equals('foo')); |
3422 unittest.expect(o.eventId, unittest.equals('foo')); | 3422 unittest.expect(o.eventId, unittest.equals('foo')); |
3423 checkUnnamed373(o.items); | 3423 checkUnnamed396(o.items); |
3424 unittest.expect(o.kind, unittest.equals('foo')); | 3424 unittest.expect(o.kind, unittest.equals('foo')); |
3425 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3425 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3426 checkPageInfo(o.pageInfo); | 3426 checkPageInfo(o.pageInfo); |
3427 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 3427 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
3428 checkTokenPagination(o.tokenPagination); | 3428 checkTokenPagination(o.tokenPagination); |
3429 unittest.expect(o.visitorId, unittest.equals('foo')); | 3429 unittest.expect(o.visitorId, unittest.equals('foo')); |
3430 } | 3430 } |
3431 buildCounterVideoListResponse--; | 3431 buildCounterVideoListResponse--; |
3432 } | 3432 } |
3433 | 3433 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3545 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
ngProgress o) { | 3545 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
ngProgress o) { |
3546 buildCounterVideoProcessingDetailsProcessingProgress++; | 3546 buildCounterVideoProcessingDetailsProcessingProgress++; |
3547 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) { | 3547 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) { |
3548 unittest.expect(o.partsProcessed, unittest.equals('foo')); | 3548 unittest.expect(o.partsProcessed, unittest.equals('foo')); |
3549 unittest.expect(o.partsTotal, unittest.equals('foo')); | 3549 unittest.expect(o.partsTotal, unittest.equals('foo')); |
3550 unittest.expect(o.timeLeftMs, unittest.equals('foo')); | 3550 unittest.expect(o.timeLeftMs, unittest.equals('foo')); |
3551 } | 3551 } |
3552 buildCounterVideoProcessingDetailsProcessingProgress--; | 3552 buildCounterVideoProcessingDetailsProcessingProgress--; |
3553 } | 3553 } |
3554 | 3554 |
3555 buildUnnamed374() { | 3555 buildUnnamed397() { |
3556 var o = new core.List<core.String>(); | 3556 var o = new core.List<core.String>(); |
3557 o.add("foo"); | 3557 o.add("foo"); |
3558 o.add("foo"); | 3558 o.add("foo"); |
3559 return o; | 3559 return o; |
3560 } | 3560 } |
3561 | 3561 |
3562 checkUnnamed374(core.List<core.String> o) { | 3562 checkUnnamed397(core.List<core.String> o) { |
3563 unittest.expect(o, unittest.hasLength(2)); | 3563 unittest.expect(o, unittest.hasLength(2)); |
3564 unittest.expect(o[0], unittest.equals('foo')); | 3564 unittest.expect(o[0], unittest.equals('foo')); |
3565 unittest.expect(o[1], unittest.equals('foo')); | 3565 unittest.expect(o[1], unittest.equals('foo')); |
3566 } | 3566 } |
3567 | 3567 |
3568 core.int buildCounterVideoProjectDetails = 0; | 3568 core.int buildCounterVideoProjectDetails = 0; |
3569 buildVideoProjectDetails() { | 3569 buildVideoProjectDetails() { |
3570 var o = new api.VideoProjectDetails(); | 3570 var o = new api.VideoProjectDetails(); |
3571 buildCounterVideoProjectDetails++; | 3571 buildCounterVideoProjectDetails++; |
3572 if (buildCounterVideoProjectDetails < 3) { | 3572 if (buildCounterVideoProjectDetails < 3) { |
3573 o.tags = buildUnnamed374(); | 3573 o.tags = buildUnnamed397(); |
3574 } | 3574 } |
3575 buildCounterVideoProjectDetails--; | 3575 buildCounterVideoProjectDetails--; |
3576 return o; | 3576 return o; |
3577 } | 3577 } |
3578 | 3578 |
3579 checkVideoProjectDetails(api.VideoProjectDetails o) { | 3579 checkVideoProjectDetails(api.VideoProjectDetails o) { |
3580 buildCounterVideoProjectDetails++; | 3580 buildCounterVideoProjectDetails++; |
3581 if (buildCounterVideoProjectDetails < 3) { | 3581 if (buildCounterVideoProjectDetails < 3) { |
3582 checkUnnamed374(o.tags); | 3582 checkUnnamed397(o.tags); |
3583 } | 3583 } |
3584 buildCounterVideoProjectDetails--; | 3584 buildCounterVideoProjectDetails--; |
3585 } | 3585 } |
3586 | 3586 |
3587 core.int buildCounterVideoRating = 0; | 3587 core.int buildCounterVideoRating = 0; |
3588 buildVideoRating() { | 3588 buildVideoRating() { |
3589 var o = new api.VideoRating(); | 3589 var o = new api.VideoRating(); |
3590 buildCounterVideoRating++; | 3590 buildCounterVideoRating++; |
3591 if (buildCounterVideoRating < 3) { | 3591 if (buildCounterVideoRating < 3) { |
3592 o.rating = "foo"; | 3592 o.rating = "foo"; |
(...skipping 28 matching lines...) Expand all Loading... |
3621 checkVideoRecordingDetails(api.VideoRecordingDetails o) { | 3621 checkVideoRecordingDetails(api.VideoRecordingDetails o) { |
3622 buildCounterVideoRecordingDetails++; | 3622 buildCounterVideoRecordingDetails++; |
3623 if (buildCounterVideoRecordingDetails < 3) { | 3623 if (buildCounterVideoRecordingDetails < 3) { |
3624 checkGeoPoint(o.location); | 3624 checkGeoPoint(o.location); |
3625 unittest.expect(o.locationDescription, unittest.equals('foo')); | 3625 unittest.expect(o.locationDescription, unittest.equals('foo')); |
3626 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 3626 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
3627 } | 3627 } |
3628 buildCounterVideoRecordingDetails--; | 3628 buildCounterVideoRecordingDetails--; |
3629 } | 3629 } |
3630 | 3630 |
3631 buildUnnamed375() { | 3631 buildUnnamed398() { |
3632 var o = new core.List<core.String>(); | 3632 var o = new core.List<core.String>(); |
3633 o.add("foo"); | 3633 o.add("foo"); |
3634 o.add("foo"); | 3634 o.add("foo"); |
3635 return o; | 3635 return o; |
3636 } | 3636 } |
3637 | 3637 |
3638 checkUnnamed375(core.List<core.String> o) { | 3638 checkUnnamed398(core.List<core.String> o) { |
3639 unittest.expect(o, unittest.hasLength(2)); | 3639 unittest.expect(o, unittest.hasLength(2)); |
3640 unittest.expect(o[0], unittest.equals('foo')); | 3640 unittest.expect(o[0], unittest.equals('foo')); |
3641 unittest.expect(o[1], unittest.equals('foo')); | 3641 unittest.expect(o[1], unittest.equals('foo')); |
3642 } | 3642 } |
3643 | 3643 |
3644 core.int buildCounterVideoSnippet = 0; | 3644 core.int buildCounterVideoSnippet = 0; |
3645 buildVideoSnippet() { | 3645 buildVideoSnippet() { |
3646 var o = new api.VideoSnippet(); | 3646 var o = new api.VideoSnippet(); |
3647 buildCounterVideoSnippet++; | 3647 buildCounterVideoSnippet++; |
3648 if (buildCounterVideoSnippet < 3) { | 3648 if (buildCounterVideoSnippet < 3) { |
3649 o.categoryId = "foo"; | 3649 o.categoryId = "foo"; |
3650 o.channelId = "foo"; | 3650 o.channelId = "foo"; |
3651 o.channelTitle = "foo"; | 3651 o.channelTitle = "foo"; |
3652 o.description = "foo"; | 3652 o.description = "foo"; |
3653 o.liveBroadcastContent = "foo"; | 3653 o.liveBroadcastContent = "foo"; |
3654 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); | 3654 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); |
3655 o.tags = buildUnnamed375(); | 3655 o.tags = buildUnnamed398(); |
3656 o.thumbnails = buildThumbnailDetails(); | 3656 o.thumbnails = buildThumbnailDetails(); |
3657 o.title = "foo"; | 3657 o.title = "foo"; |
3658 } | 3658 } |
3659 buildCounterVideoSnippet--; | 3659 buildCounterVideoSnippet--; |
3660 return o; | 3660 return o; |
3661 } | 3661 } |
3662 | 3662 |
3663 checkVideoSnippet(api.VideoSnippet o) { | 3663 checkVideoSnippet(api.VideoSnippet o) { |
3664 buildCounterVideoSnippet++; | 3664 buildCounterVideoSnippet++; |
3665 if (buildCounterVideoSnippet < 3) { | 3665 if (buildCounterVideoSnippet < 3) { |
3666 unittest.expect(o.categoryId, unittest.equals('foo')); | 3666 unittest.expect(o.categoryId, unittest.equals('foo')); |
3667 unittest.expect(o.channelId, unittest.equals('foo')); | 3667 unittest.expect(o.channelId, unittest.equals('foo')); |
3668 unittest.expect(o.channelTitle, unittest.equals('foo')); | 3668 unittest.expect(o.channelTitle, unittest.equals('foo')); |
3669 unittest.expect(o.description, unittest.equals('foo')); | 3669 unittest.expect(o.description, unittest.equals('foo')); |
3670 unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); | 3670 unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); |
3671 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 3671 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
3672 checkUnnamed375(o.tags); | 3672 checkUnnamed398(o.tags); |
3673 checkThumbnailDetails(o.thumbnails); | 3673 checkThumbnailDetails(o.thumbnails); |
3674 unittest.expect(o.title, unittest.equals('foo')); | 3674 unittest.expect(o.title, unittest.equals('foo')); |
3675 } | 3675 } |
3676 buildCounterVideoSnippet--; | 3676 buildCounterVideoSnippet--; |
3677 } | 3677 } |
3678 | 3678 |
3679 core.int buildCounterVideoStatistics = 0; | 3679 core.int buildCounterVideoStatistics = 0; |
3680 buildVideoStatistics() { | 3680 buildVideoStatistics() { |
3681 var o = new api.VideoStatistics(); | 3681 var o = new api.VideoStatistics(); |
3682 buildCounterVideoStatistics++; | 3682 buildCounterVideoStatistics++; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3729 unittest.expect(o.license, unittest.equals('foo')); | 3729 unittest.expect(o.license, unittest.equals('foo')); |
3730 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 3730 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
3731 unittest.expect(o.publicStatsViewable, unittest.isTrue); | 3731 unittest.expect(o.publicStatsViewable, unittest.isTrue); |
3732 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 3732 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
3733 unittest.expect(o.rejectionReason, unittest.equals('foo')); | 3733 unittest.expect(o.rejectionReason, unittest.equals('foo')); |
3734 unittest.expect(o.uploadStatus, unittest.equals('foo')); | 3734 unittest.expect(o.uploadStatus, unittest.equals('foo')); |
3735 } | 3735 } |
3736 buildCounterVideoStatus--; | 3736 buildCounterVideoStatus--; |
3737 } | 3737 } |
3738 | 3738 |
3739 buildUnnamed376() { | 3739 buildUnnamed399() { |
3740 var o = new core.List<core.String>(); | 3740 var o = new core.List<core.String>(); |
3741 o.add("foo"); | 3741 o.add("foo"); |
3742 o.add("foo"); | 3742 o.add("foo"); |
3743 return o; | 3743 return o; |
3744 } | 3744 } |
3745 | 3745 |
3746 checkUnnamed376(core.List<core.String> o) { | 3746 checkUnnamed399(core.List<core.String> o) { |
3747 unittest.expect(o, unittest.hasLength(2)); | 3747 unittest.expect(o, unittest.hasLength(2)); |
3748 unittest.expect(o[0], unittest.equals('foo')); | 3748 unittest.expect(o[0], unittest.equals('foo')); |
3749 unittest.expect(o[1], unittest.equals('foo')); | 3749 unittest.expect(o[1], unittest.equals('foo')); |
3750 } | 3750 } |
3751 | 3751 |
3752 buildUnnamed377() { | 3752 buildUnnamed400() { |
3753 var o = new core.List<core.String>(); | 3753 var o = new core.List<core.String>(); |
3754 o.add("foo"); | 3754 o.add("foo"); |
3755 o.add("foo"); | 3755 o.add("foo"); |
3756 return o; | 3756 return o; |
3757 } | 3757 } |
3758 | 3758 |
3759 checkUnnamed377(core.List<core.String> o) { | 3759 checkUnnamed400(core.List<core.String> o) { |
3760 unittest.expect(o, unittest.hasLength(2)); | 3760 unittest.expect(o, unittest.hasLength(2)); |
3761 unittest.expect(o[0], unittest.equals('foo')); | 3761 unittest.expect(o[0], unittest.equals('foo')); |
3762 unittest.expect(o[1], unittest.equals('foo')); | 3762 unittest.expect(o[1], unittest.equals('foo')); |
3763 } | 3763 } |
3764 | 3764 |
3765 buildUnnamed378() { | 3765 buildUnnamed401() { |
3766 var o = new core.List<core.String>(); | 3766 var o = new core.List<core.String>(); |
3767 o.add("foo"); | 3767 o.add("foo"); |
3768 o.add("foo"); | 3768 o.add("foo"); |
3769 return o; | 3769 return o; |
3770 } | 3770 } |
3771 | 3771 |
3772 checkUnnamed378(core.List<core.String> o) { | 3772 checkUnnamed401(core.List<core.String> o) { |
3773 unittest.expect(o, unittest.hasLength(2)); | 3773 unittest.expect(o, unittest.hasLength(2)); |
3774 unittest.expect(o[0], unittest.equals('foo')); | 3774 unittest.expect(o[0], unittest.equals('foo')); |
3775 unittest.expect(o[1], unittest.equals('foo')); | 3775 unittest.expect(o[1], unittest.equals('foo')); |
3776 } | 3776 } |
3777 | 3777 |
3778 buildUnnamed379() { | 3778 buildUnnamed402() { |
3779 var o = new core.List<core.String>(); | 3779 var o = new core.List<core.String>(); |
3780 o.add("foo"); | 3780 o.add("foo"); |
3781 o.add("foo"); | 3781 o.add("foo"); |
3782 return o; | 3782 return o; |
3783 } | 3783 } |
3784 | 3784 |
3785 checkUnnamed379(core.List<core.String> o) { | 3785 checkUnnamed402(core.List<core.String> o) { |
3786 unittest.expect(o, unittest.hasLength(2)); | 3786 unittest.expect(o, unittest.hasLength(2)); |
3787 unittest.expect(o[0], unittest.equals('foo')); | 3787 unittest.expect(o[0], unittest.equals('foo')); |
3788 unittest.expect(o[1], unittest.equals('foo')); | 3788 unittest.expect(o[1], unittest.equals('foo')); |
3789 } | 3789 } |
3790 | 3790 |
3791 buildUnnamed380() { | 3791 buildUnnamed403() { |
3792 var o = new core.List<api.VideoSuggestionsTagSuggestion>(); | 3792 var o = new core.List<api.VideoSuggestionsTagSuggestion>(); |
3793 o.add(buildVideoSuggestionsTagSuggestion()); | 3793 o.add(buildVideoSuggestionsTagSuggestion()); |
3794 o.add(buildVideoSuggestionsTagSuggestion()); | 3794 o.add(buildVideoSuggestionsTagSuggestion()); |
3795 return o; | 3795 return o; |
3796 } | 3796 } |
3797 | 3797 |
3798 checkUnnamed380(core.List<api.VideoSuggestionsTagSuggestion> o) { | 3798 checkUnnamed403(core.List<api.VideoSuggestionsTagSuggestion> o) { |
3799 unittest.expect(o, unittest.hasLength(2)); | 3799 unittest.expect(o, unittest.hasLength(2)); |
3800 checkVideoSuggestionsTagSuggestion(o[0]); | 3800 checkVideoSuggestionsTagSuggestion(o[0]); |
3801 checkVideoSuggestionsTagSuggestion(o[1]); | 3801 checkVideoSuggestionsTagSuggestion(o[1]); |
3802 } | 3802 } |
3803 | 3803 |
3804 core.int buildCounterVideoSuggestions = 0; | 3804 core.int buildCounterVideoSuggestions = 0; |
3805 buildVideoSuggestions() { | 3805 buildVideoSuggestions() { |
3806 var o = new api.VideoSuggestions(); | 3806 var o = new api.VideoSuggestions(); |
3807 buildCounterVideoSuggestions++; | 3807 buildCounterVideoSuggestions++; |
3808 if (buildCounterVideoSuggestions < 3) { | 3808 if (buildCounterVideoSuggestions < 3) { |
3809 o.editorSuggestions = buildUnnamed376(); | 3809 o.editorSuggestions = buildUnnamed399(); |
3810 o.processingErrors = buildUnnamed377(); | 3810 o.processingErrors = buildUnnamed400(); |
3811 o.processingHints = buildUnnamed378(); | 3811 o.processingHints = buildUnnamed401(); |
3812 o.processingWarnings = buildUnnamed379(); | 3812 o.processingWarnings = buildUnnamed402(); |
3813 o.tagSuggestions = buildUnnamed380(); | 3813 o.tagSuggestions = buildUnnamed403(); |
3814 } | 3814 } |
3815 buildCounterVideoSuggestions--; | 3815 buildCounterVideoSuggestions--; |
3816 return o; | 3816 return o; |
3817 } | 3817 } |
3818 | 3818 |
3819 checkVideoSuggestions(api.VideoSuggestions o) { | 3819 checkVideoSuggestions(api.VideoSuggestions o) { |
3820 buildCounterVideoSuggestions++; | 3820 buildCounterVideoSuggestions++; |
3821 if (buildCounterVideoSuggestions < 3) { | 3821 if (buildCounterVideoSuggestions < 3) { |
3822 checkUnnamed376(o.editorSuggestions); | 3822 checkUnnamed399(o.editorSuggestions); |
3823 checkUnnamed377(o.processingErrors); | 3823 checkUnnamed400(o.processingErrors); |
3824 checkUnnamed378(o.processingHints); | 3824 checkUnnamed401(o.processingHints); |
3825 checkUnnamed379(o.processingWarnings); | 3825 checkUnnamed402(o.processingWarnings); |
3826 checkUnnamed380(o.tagSuggestions); | 3826 checkUnnamed403(o.tagSuggestions); |
3827 } | 3827 } |
3828 buildCounterVideoSuggestions--; | 3828 buildCounterVideoSuggestions--; |
3829 } | 3829 } |
3830 | 3830 |
3831 buildUnnamed381() { | 3831 buildUnnamed404() { |
3832 var o = new core.List<core.String>(); | 3832 var o = new core.List<core.String>(); |
3833 o.add("foo"); | 3833 o.add("foo"); |
3834 o.add("foo"); | 3834 o.add("foo"); |
3835 return o; | 3835 return o; |
3836 } | 3836 } |
3837 | 3837 |
3838 checkUnnamed381(core.List<core.String> o) { | 3838 checkUnnamed404(core.List<core.String> o) { |
3839 unittest.expect(o, unittest.hasLength(2)); | 3839 unittest.expect(o, unittest.hasLength(2)); |
3840 unittest.expect(o[0], unittest.equals('foo')); | 3840 unittest.expect(o[0], unittest.equals('foo')); |
3841 unittest.expect(o[1], unittest.equals('foo')); | 3841 unittest.expect(o[1], unittest.equals('foo')); |
3842 } | 3842 } |
3843 | 3843 |
3844 core.int buildCounterVideoSuggestionsTagSuggestion = 0; | 3844 core.int buildCounterVideoSuggestionsTagSuggestion = 0; |
3845 buildVideoSuggestionsTagSuggestion() { | 3845 buildVideoSuggestionsTagSuggestion() { |
3846 var o = new api.VideoSuggestionsTagSuggestion(); | 3846 var o = new api.VideoSuggestionsTagSuggestion(); |
3847 buildCounterVideoSuggestionsTagSuggestion++; | 3847 buildCounterVideoSuggestionsTagSuggestion++; |
3848 if (buildCounterVideoSuggestionsTagSuggestion < 3) { | 3848 if (buildCounterVideoSuggestionsTagSuggestion < 3) { |
3849 o.categoryRestricts = buildUnnamed381(); | 3849 o.categoryRestricts = buildUnnamed404(); |
3850 o.tag = "foo"; | 3850 o.tag = "foo"; |
3851 } | 3851 } |
3852 buildCounterVideoSuggestionsTagSuggestion--; | 3852 buildCounterVideoSuggestionsTagSuggestion--; |
3853 return o; | 3853 return o; |
3854 } | 3854 } |
3855 | 3855 |
3856 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { | 3856 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { |
3857 buildCounterVideoSuggestionsTagSuggestion++; | 3857 buildCounterVideoSuggestionsTagSuggestion++; |
3858 if (buildCounterVideoSuggestionsTagSuggestion < 3) { | 3858 if (buildCounterVideoSuggestionsTagSuggestion < 3) { |
3859 checkUnnamed381(o.categoryRestricts); | 3859 checkUnnamed404(o.categoryRestricts); |
3860 unittest.expect(o.tag, unittest.equals('foo')); | 3860 unittest.expect(o.tag, unittest.equals('foo')); |
3861 } | 3861 } |
3862 buildCounterVideoSuggestionsTagSuggestion--; | 3862 buildCounterVideoSuggestionsTagSuggestion--; |
3863 } | 3863 } |
3864 | 3864 |
3865 buildUnnamed382() { | 3865 buildUnnamed405() { |
3866 var o = new core.List<core.String>(); | 3866 var o = new core.List<core.String>(); |
3867 o.add("foo"); | 3867 o.add("foo"); |
3868 o.add("foo"); | 3868 o.add("foo"); |
3869 return o; | 3869 return o; |
3870 } | 3870 } |
3871 | 3871 |
3872 checkUnnamed382(core.List<core.String> o) { | 3872 checkUnnamed405(core.List<core.String> o) { |
3873 unittest.expect(o, unittest.hasLength(2)); | 3873 unittest.expect(o, unittest.hasLength(2)); |
3874 unittest.expect(o[0], unittest.equals('foo')); | 3874 unittest.expect(o[0], unittest.equals('foo')); |
3875 unittest.expect(o[1], unittest.equals('foo')); | 3875 unittest.expect(o[1], unittest.equals('foo')); |
3876 } | 3876 } |
3877 | 3877 |
3878 buildUnnamed383() { | 3878 buildUnnamed406() { |
3879 var o = new core.List<core.String>(); | 3879 var o = new core.List<core.String>(); |
3880 o.add("foo"); | 3880 o.add("foo"); |
3881 o.add("foo"); | 3881 o.add("foo"); |
3882 return o; | 3882 return o; |
3883 } | 3883 } |
3884 | 3884 |
3885 checkUnnamed383(core.List<core.String> o) { | 3885 checkUnnamed406(core.List<core.String> o) { |
3886 unittest.expect(o, unittest.hasLength(2)); | 3886 unittest.expect(o, unittest.hasLength(2)); |
3887 unittest.expect(o[0], unittest.equals('foo')); | 3887 unittest.expect(o[0], unittest.equals('foo')); |
3888 unittest.expect(o[1], unittest.equals('foo')); | 3888 unittest.expect(o[1], unittest.equals('foo')); |
3889 } | 3889 } |
3890 | 3890 |
3891 core.int buildCounterVideoTopicDetails = 0; | 3891 core.int buildCounterVideoTopicDetails = 0; |
3892 buildVideoTopicDetails() { | 3892 buildVideoTopicDetails() { |
3893 var o = new api.VideoTopicDetails(); | 3893 var o = new api.VideoTopicDetails(); |
3894 buildCounterVideoTopicDetails++; | 3894 buildCounterVideoTopicDetails++; |
3895 if (buildCounterVideoTopicDetails < 3) { | 3895 if (buildCounterVideoTopicDetails < 3) { |
3896 o.relevantTopicIds = buildUnnamed382(); | 3896 o.relevantTopicIds = buildUnnamed405(); |
3897 o.topicIds = buildUnnamed383(); | 3897 o.topicIds = buildUnnamed406(); |
3898 } | 3898 } |
3899 buildCounterVideoTopicDetails--; | 3899 buildCounterVideoTopicDetails--; |
3900 return o; | 3900 return o; |
3901 } | 3901 } |
3902 | 3902 |
3903 checkVideoTopicDetails(api.VideoTopicDetails o) { | 3903 checkVideoTopicDetails(api.VideoTopicDetails o) { |
3904 buildCounterVideoTopicDetails++; | 3904 buildCounterVideoTopicDetails++; |
3905 if (buildCounterVideoTopicDetails < 3) { | 3905 if (buildCounterVideoTopicDetails < 3) { |
3906 checkUnnamed382(o.relevantTopicIds); | 3906 checkUnnamed405(o.relevantTopicIds); |
3907 checkUnnamed383(o.topicIds); | 3907 checkUnnamed406(o.topicIds); |
3908 } | 3908 } |
3909 buildCounterVideoTopicDetails--; | 3909 buildCounterVideoTopicDetails--; |
3910 } | 3910 } |
3911 | 3911 |
3912 core.int buildCounterWatchSettings = 0; | 3912 core.int buildCounterWatchSettings = 0; |
3913 buildWatchSettings() { | 3913 buildWatchSettings() { |
3914 var o = new api.WatchSettings(); | 3914 var o = new api.WatchSettings(); |
3915 buildCounterWatchSettings++; | 3915 buildCounterWatchSettings++; |
3916 if (buildCounterWatchSettings < 3) { | 3916 if (buildCounterWatchSettings < 3) { |
3917 o.backgroundColor = "foo"; | 3917 o.backgroundColor = "foo"; |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5049 var arg_request = buildActivity(); | 5049 var arg_request = buildActivity(); |
5050 var arg_part = "foo"; | 5050 var arg_part = "foo"; |
5051 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5051 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5052 var obj = new api.Activity.fromJson(json); | 5052 var obj = new api.Activity.fromJson(json); |
5053 checkActivity(obj); | 5053 checkActivity(obj); |
5054 | 5054 |
5055 var path = (req.url).path; | 5055 var path = (req.url).path; |
5056 var pathOffset = 0; | 5056 var pathOffset = 0; |
5057 var index; | 5057 var index; |
5058 var subPart; | 5058 var subPart; |
5059 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5059 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5060 pathOffset += 12; | 5060 pathOffset += 1; |
| 5061 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5062 pathOffset += 11; |
5061 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("activities")); | 5063 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("activities")); |
5062 pathOffset += 10; | 5064 pathOffset += 10; |
5063 | 5065 |
5064 var query = (req.url).query; | 5066 var query = (req.url).query; |
5065 var queryOffset = 0; | 5067 var queryOffset = 0; |
5066 var queryMap = {}; | 5068 var queryMap = {}; |
5067 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5069 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5068 parseBool(n) { | 5070 parseBool(n) { |
5069 if (n == "true") return true; | 5071 if (n == "true") return true; |
5070 if (n == "false") return false; | 5072 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5102 var arg_mine = true; | 5104 var arg_mine = true; |
5103 var arg_pageToken = "foo"; | 5105 var arg_pageToken = "foo"; |
5104 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 5106 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
5105 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 5107 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
5106 var arg_regionCode = "foo"; | 5108 var arg_regionCode = "foo"; |
5107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5108 var path = (req.url).path; | 5110 var path = (req.url).path; |
5109 var pathOffset = 0; | 5111 var pathOffset = 0; |
5110 var index; | 5112 var index; |
5111 var subPart; | 5113 var subPart; |
5112 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5114 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5113 pathOffset += 12; | 5115 pathOffset += 1; |
| 5116 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5117 pathOffset += 11; |
5114 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("activities")); | 5118 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("activities")); |
5115 pathOffset += 10; | 5119 pathOffset += 10; |
5116 | 5120 |
5117 var query = (req.url).query; | 5121 var query = (req.url).query; |
5118 var queryOffset = 0; | 5122 var queryOffset = 0; |
5119 var queryMap = {}; | 5123 var queryMap = {}; |
5120 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5124 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5121 parseBool(n) { | 5125 parseBool(n) { |
5122 if (n == "true") return true; | 5126 if (n == "true") return true; |
5123 if (n == "false") return false; | 5127 if (n == "false") return false; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5165 var arg_request = buildChannelBannerResource(); | 5169 var arg_request = buildChannelBannerResource(); |
5166 var arg_onBehalfOfContentOwner = "foo"; | 5170 var arg_onBehalfOfContentOwner = "foo"; |
5167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5171 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5168 var obj = new api.ChannelBannerResource.fromJson(json); | 5172 var obj = new api.ChannelBannerResource.fromJson(json); |
5169 checkChannelBannerResource(obj); | 5173 checkChannelBannerResource(obj); |
5170 | 5174 |
5171 var path = (req.url).path; | 5175 var path = (req.url).path; |
5172 var pathOffset = 0; | 5176 var pathOffset = 0; |
5173 var index; | 5177 var index; |
5174 var subPart; | 5178 var subPart; |
5175 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5179 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5176 pathOffset += 12; | 5180 pathOffset += 1; |
| 5181 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5182 pathOffset += 11; |
5177 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("channelBanners/insert")); | 5183 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("channelBanners/insert")); |
5178 pathOffset += 21; | 5184 pathOffset += 21; |
5179 | 5185 |
5180 var query = (req.url).query; | 5186 var query = (req.url).query; |
5181 var queryOffset = 0; | 5187 var queryOffset = 0; |
5182 var queryMap = {}; | 5188 var queryMap = {}; |
5183 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5189 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5184 parseBool(n) { | 5190 parseBool(n) { |
5185 if (n == "true") return true; | 5191 if (n == "true") return true; |
5186 if (n == "false") return false; | 5192 if (n == "false") return false; |
(...skipping 27 matching lines...) Expand all Loading... |
5214 unittest.test("method--delete", () { | 5220 unittest.test("method--delete", () { |
5215 | 5221 |
5216 var mock = new common_test.HttpServerMock(); | 5222 var mock = new common_test.HttpServerMock(); |
5217 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; | 5223 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; |
5218 var arg_id = "foo"; | 5224 var arg_id = "foo"; |
5219 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5225 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5220 var path = (req.url).path; | 5226 var path = (req.url).path; |
5221 var pathOffset = 0; | 5227 var pathOffset = 0; |
5222 var index; | 5228 var index; |
5223 var subPart; | 5229 var subPart; |
5224 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5230 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5225 pathOffset += 12; | 5231 pathOffset += 1; |
| 5232 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5233 pathOffset += 11; |
5226 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); | 5234 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); |
5227 pathOffset += 15; | 5235 pathOffset += 15; |
5228 | 5236 |
5229 var query = (req.url).query; | 5237 var query = (req.url).query; |
5230 var queryOffset = 0; | 5238 var queryOffset = 0; |
5231 var queryMap = {}; | 5239 var queryMap = {}; |
5232 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5240 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5233 parseBool(n) { | 5241 parseBool(n) { |
5234 if (n == "true") return true; | 5242 if (n == "true") return true; |
5235 if (n == "false") return false; | 5243 if (n == "false") return false; |
(...skipping 27 matching lines...) Expand all Loading... |
5263 var arg_onBehalfOfContentOwner = "foo"; | 5271 var arg_onBehalfOfContentOwner = "foo"; |
5264 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5272 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5273 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5266 var obj = new api.ChannelSection.fromJson(json); | 5274 var obj = new api.ChannelSection.fromJson(json); |
5267 checkChannelSection(obj); | 5275 checkChannelSection(obj); |
5268 | 5276 |
5269 var path = (req.url).path; | 5277 var path = (req.url).path; |
5270 var pathOffset = 0; | 5278 var pathOffset = 0; |
5271 var index; | 5279 var index; |
5272 var subPart; | 5280 var subPart; |
5273 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5274 pathOffset += 12; | 5282 pathOffset += 1; |
| 5283 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5284 pathOffset += 11; |
5275 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); | 5285 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); |
5276 pathOffset += 15; | 5286 pathOffset += 15; |
5277 | 5287 |
5278 var query = (req.url).query; | 5288 var query = (req.url).query; |
5279 var queryOffset = 0; | 5289 var queryOffset = 0; |
5280 var queryMap = {}; | 5290 var queryMap = {}; |
5281 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5291 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5282 parseBool(n) { | 5292 parseBool(n) { |
5283 if (n == "true") return true; | 5293 if (n == "true") return true; |
5284 if (n == "false") return false; | 5294 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
5314 var arg_part = "foo"; | 5324 var arg_part = "foo"; |
5315 var arg_channelId = "foo"; | 5325 var arg_channelId = "foo"; |
5316 var arg_id = "foo"; | 5326 var arg_id = "foo"; |
5317 var arg_mine = true; | 5327 var arg_mine = true; |
5318 var arg_onBehalfOfContentOwner = "foo"; | 5328 var arg_onBehalfOfContentOwner = "foo"; |
5319 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5329 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5320 var path = (req.url).path; | 5330 var path = (req.url).path; |
5321 var pathOffset = 0; | 5331 var pathOffset = 0; |
5322 var index; | 5332 var index; |
5323 var subPart; | 5333 var subPart; |
5324 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5334 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5325 pathOffset += 12; | 5335 pathOffset += 1; |
| 5336 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5337 pathOffset += 11; |
5326 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); | 5338 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); |
5327 pathOffset += 15; | 5339 pathOffset += 15; |
5328 | 5340 |
5329 var query = (req.url).query; | 5341 var query = (req.url).query; |
5330 var queryOffset = 0; | 5342 var queryOffset = 0; |
5331 var queryMap = {}; | 5343 var queryMap = {}; |
5332 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5344 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5333 parseBool(n) { | 5345 parseBool(n) { |
5334 if (n == "true") return true; | 5346 if (n == "true") return true; |
5335 if (n == "false") return false; | 5347 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5367 var arg_request = buildChannelSection(); | 5379 var arg_request = buildChannelSection(); |
5368 var arg_part = "foo"; | 5380 var arg_part = "foo"; |
5369 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5370 var obj = new api.ChannelSection.fromJson(json); | 5382 var obj = new api.ChannelSection.fromJson(json); |
5371 checkChannelSection(obj); | 5383 checkChannelSection(obj); |
5372 | 5384 |
5373 var path = (req.url).path; | 5385 var path = (req.url).path; |
5374 var pathOffset = 0; | 5386 var pathOffset = 0; |
5375 var index; | 5387 var index; |
5376 var subPart; | 5388 var subPart; |
5377 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5389 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5378 pathOffset += 12; | 5390 pathOffset += 1; |
| 5391 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5392 pathOffset += 11; |
5379 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); | 5393 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("channelSections")); |
5380 pathOffset += 15; | 5394 pathOffset += 15; |
5381 | 5395 |
5382 var query = (req.url).query; | 5396 var query = (req.url).query; |
5383 var queryOffset = 0; | 5397 var queryOffset = 0; |
5384 var queryMap = {}; | 5398 var queryMap = {}; |
5385 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5399 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5386 parseBool(n) { | 5400 parseBool(n) { |
5387 if (n == "true") return true; | 5401 if (n == "true") return true; |
5388 if (n == "false") return false; | 5402 if (n == "false") return false; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5425 var arg_maxResults = 42; | 5439 var arg_maxResults = 42; |
5426 var arg_mine = true; | 5440 var arg_mine = true; |
5427 var arg_mySubscribers = true; | 5441 var arg_mySubscribers = true; |
5428 var arg_onBehalfOfContentOwner = "foo"; | 5442 var arg_onBehalfOfContentOwner = "foo"; |
5429 var arg_pageToken = "foo"; | 5443 var arg_pageToken = "foo"; |
5430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5431 var path = (req.url).path; | 5445 var path = (req.url).path; |
5432 var pathOffset = 0; | 5446 var pathOffset = 0; |
5433 var index; | 5447 var index; |
5434 var subPart; | 5448 var subPart; |
5435 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5436 pathOffset += 12; | 5450 pathOffset += 1; |
| 5451 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5452 pathOffset += 11; |
5437 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("channels")); | 5453 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("channels")); |
5438 pathOffset += 8; | 5454 pathOffset += 8; |
5439 | 5455 |
5440 var query = (req.url).query; | 5456 var query = (req.url).query; |
5441 var queryOffset = 0; | 5457 var queryOffset = 0; |
5442 var queryMap = {}; | 5458 var queryMap = {}; |
5443 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5459 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5444 parseBool(n) { | 5460 parseBool(n) { |
5445 if (n == "true") return true; | 5461 if (n == "true") return true; |
5446 if (n == "false") return false; | 5462 if (n == "false") return false; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5484 var arg_part = "foo"; | 5500 var arg_part = "foo"; |
5485 var arg_onBehalfOfContentOwner = "foo"; | 5501 var arg_onBehalfOfContentOwner = "foo"; |
5486 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5502 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5487 var obj = new api.Channel.fromJson(json); | 5503 var obj = new api.Channel.fromJson(json); |
5488 checkChannel(obj); | 5504 checkChannel(obj); |
5489 | 5505 |
5490 var path = (req.url).path; | 5506 var path = (req.url).path; |
5491 var pathOffset = 0; | 5507 var pathOffset = 0; |
5492 var index; | 5508 var index; |
5493 var subPart; | 5509 var subPart; |
5494 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5495 pathOffset += 12; | 5511 pathOffset += 1; |
| 5512 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5513 pathOffset += 11; |
5496 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("channels")); | 5514 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("channels")); |
5497 pathOffset += 8; | 5515 pathOffset += 8; |
5498 | 5516 |
5499 var query = (req.url).query; | 5517 var query = (req.url).query; |
5500 var queryOffset = 0; | 5518 var queryOffset = 0; |
5501 var queryMap = {}; | 5519 var queryMap = {}; |
5502 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5520 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5503 parseBool(n) { | 5521 parseBool(n) { |
5504 if (n == "true") return true; | 5522 if (n == "true") return true; |
5505 if (n == "false") return false; | 5523 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5537 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor
ies; | 5555 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor
ies; |
5538 var arg_part = "foo"; | 5556 var arg_part = "foo"; |
5539 var arg_hl = "foo"; | 5557 var arg_hl = "foo"; |
5540 var arg_id = "foo"; | 5558 var arg_id = "foo"; |
5541 var arg_regionCode = "foo"; | 5559 var arg_regionCode = "foo"; |
5542 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5560 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5543 var path = (req.url).path; | 5561 var path = (req.url).path; |
5544 var pathOffset = 0; | 5562 var pathOffset = 0; |
5545 var index; | 5563 var index; |
5546 var subPart; | 5564 var subPart; |
5547 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5565 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5548 pathOffset += 12; | 5566 pathOffset += 1; |
| 5567 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5568 pathOffset += 11; |
5549 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("guideCategories")); | 5569 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("guideCategories")); |
5550 pathOffset += 15; | 5570 pathOffset += 15; |
5551 | 5571 |
5552 var query = (req.url).query; | 5572 var query = (req.url).query; |
5553 var queryOffset = 0; | 5573 var queryOffset = 0; |
5554 var queryMap = {}; | 5574 var queryMap = {}; |
5555 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5575 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5556 parseBool(n) { | 5576 parseBool(n) { |
5557 if (n == "true") return true; | 5577 if (n == "true") return true; |
5558 if (n == "false") return false; | 5578 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5590 | 5610 |
5591 var mock = new common_test.HttpServerMock(); | 5611 var mock = new common_test.HttpServerMock(); |
5592 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; | 5612 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; |
5593 var arg_part = "foo"; | 5613 var arg_part = "foo"; |
5594 var arg_hl = "foo"; | 5614 var arg_hl = "foo"; |
5595 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5615 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5596 var path = (req.url).path; | 5616 var path = (req.url).path; |
5597 var pathOffset = 0; | 5617 var pathOffset = 0; |
5598 var index; | 5618 var index; |
5599 var subPart; | 5619 var subPart; |
5600 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5601 pathOffset += 12; | 5621 pathOffset += 1; |
| 5622 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5623 pathOffset += 11; |
5602 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("i18nLanguages")); | 5624 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("i18nLanguages")); |
5603 pathOffset += 13; | 5625 pathOffset += 13; |
5604 | 5626 |
5605 var query = (req.url).query; | 5627 var query = (req.url).query; |
5606 var queryOffset = 0; | 5628 var queryOffset = 0; |
5607 var queryMap = {}; | 5629 var queryMap = {}; |
5608 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5630 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5609 parseBool(n) { | 5631 parseBool(n) { |
5610 if (n == "true") return true; | 5632 if (n == "true") return true; |
5611 if (n == "false") return false; | 5633 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
5641 | 5663 |
5642 var mock = new common_test.HttpServerMock(); | 5664 var mock = new common_test.HttpServerMock(); |
5643 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; | 5665 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; |
5644 var arg_part = "foo"; | 5666 var arg_part = "foo"; |
5645 var arg_hl = "foo"; | 5667 var arg_hl = "foo"; |
5646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5668 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5647 var path = (req.url).path; | 5669 var path = (req.url).path; |
5648 var pathOffset = 0; | 5670 var pathOffset = 0; |
5649 var index; | 5671 var index; |
5650 var subPart; | 5672 var subPart; |
5651 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5652 pathOffset += 12; | 5674 pathOffset += 1; |
| 5675 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5676 pathOffset += 11; |
5653 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("i18nRegions")); | 5677 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("i18nRegions")); |
5654 pathOffset += 11; | 5678 pathOffset += 11; |
5655 | 5679 |
5656 var query = (req.url).query; | 5680 var query = (req.url).query; |
5657 var queryOffset = 0; | 5681 var queryOffset = 0; |
5658 var queryMap = {}; | 5682 var queryMap = {}; |
5659 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5683 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5660 parseBool(n) { | 5684 parseBool(n) { |
5661 if (n == "true") return true; | 5685 if (n == "true") return true; |
5662 if (n == "false") return false; | 5686 if (n == "false") return false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5695 var arg_id = "foo"; | 5719 var arg_id = "foo"; |
5696 var arg_part = "foo"; | 5720 var arg_part = "foo"; |
5697 var arg_onBehalfOfContentOwner = "foo"; | 5721 var arg_onBehalfOfContentOwner = "foo"; |
5698 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5722 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5699 var arg_streamId = "foo"; | 5723 var arg_streamId = "foo"; |
5700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5724 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5701 var path = (req.url).path; | 5725 var path = (req.url).path; |
5702 var pathOffset = 0; | 5726 var pathOffset = 0; |
5703 var index; | 5727 var index; |
5704 var subPart; | 5728 var subPart; |
5705 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5706 pathOffset += 12; | 5730 pathOffset += 1; |
| 5731 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5732 pathOffset += 11; |
5707 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("liveBroadcasts/bind")); | 5733 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("liveBroadcasts/bind")); |
5708 pathOffset += 19; | 5734 pathOffset += 19; |
5709 | 5735 |
5710 var query = (req.url).query; | 5736 var query = (req.url).query; |
5711 var queryOffset = 0; | 5737 var queryOffset = 0; |
5712 var queryMap = {}; | 5738 var queryMap = {}; |
5713 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5739 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5714 parseBool(n) { | 5740 parseBool(n) { |
5715 if (n == "true") return true; | 5741 if (n == "true") return true; |
5716 if (n == "false") return false; | 5742 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5750 var arg_displaySlate = true; | 5776 var arg_displaySlate = true; |
5751 var arg_offsetTimeMs = "foo"; | 5777 var arg_offsetTimeMs = "foo"; |
5752 var arg_onBehalfOfContentOwner = "foo"; | 5778 var arg_onBehalfOfContentOwner = "foo"; |
5753 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5779 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5754 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); | 5780 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); |
5755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5781 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5756 var path = (req.url).path; | 5782 var path = (req.url).path; |
5757 var pathOffset = 0; | 5783 var pathOffset = 0; |
5758 var index; | 5784 var index; |
5759 var subPart; | 5785 var subPart; |
5760 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5786 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5761 pathOffset += 12; | 5787 pathOffset += 1; |
| 5788 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5789 pathOffset += 11; |
5762 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("liveBroadcasts/control")); | 5790 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("liveBroadcasts/control")); |
5763 pathOffset += 22; | 5791 pathOffset += 22; |
5764 | 5792 |
5765 var query = (req.url).query; | 5793 var query = (req.url).query; |
5766 var queryOffset = 0; | 5794 var queryOffset = 0; |
5767 var queryMap = {}; | 5795 var queryMap = {}; |
5768 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5796 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5769 parseBool(n) { | 5797 parseBool(n) { |
5770 if (n == "true") return true; | 5798 if (n == "true") return true; |
5771 if (n == "false") return false; | 5799 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5803 var mock = new common_test.HttpServerMock(); | 5831 var mock = new common_test.HttpServerMock(); |
5804 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 5832 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
5805 var arg_id = "foo"; | 5833 var arg_id = "foo"; |
5806 var arg_onBehalfOfContentOwner = "foo"; | 5834 var arg_onBehalfOfContentOwner = "foo"; |
5807 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5835 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5809 var path = (req.url).path; | 5837 var path = (req.url).path; |
5810 var pathOffset = 0; | 5838 var pathOffset = 0; |
5811 var index; | 5839 var index; |
5812 var subPart; | 5840 var subPart; |
5813 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5814 pathOffset += 12; | 5842 pathOffset += 1; |
| 5843 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5844 pathOffset += 11; |
5815 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); | 5845 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); |
5816 pathOffset += 14; | 5846 pathOffset += 14; |
5817 | 5847 |
5818 var query = (req.url).query; | 5848 var query = (req.url).query; |
5819 var queryOffset = 0; | 5849 var queryOffset = 0; |
5820 var queryMap = {}; | 5850 var queryMap = {}; |
5821 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5851 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5822 parseBool(n) { | 5852 parseBool(n) { |
5823 if (n == "true") return true; | 5853 if (n == "true") return true; |
5824 if (n == "false") return false; | 5854 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
5854 var arg_onBehalfOfContentOwner = "foo"; | 5884 var arg_onBehalfOfContentOwner = "foo"; |
5855 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5885 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5856 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5857 var obj = new api.LiveBroadcast.fromJson(json); | 5887 var obj = new api.LiveBroadcast.fromJson(json); |
5858 checkLiveBroadcast(obj); | 5888 checkLiveBroadcast(obj); |
5859 | 5889 |
5860 var path = (req.url).path; | 5890 var path = (req.url).path; |
5861 var pathOffset = 0; | 5891 var pathOffset = 0; |
5862 var index; | 5892 var index; |
5863 var subPart; | 5893 var subPart; |
5864 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5894 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5865 pathOffset += 12; | 5895 pathOffset += 1; |
| 5896 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5897 pathOffset += 11; |
5866 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); | 5898 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); |
5867 pathOffset += 14; | 5899 pathOffset += 14; |
5868 | 5900 |
5869 var query = (req.url).query; | 5901 var query = (req.url).query; |
5870 var queryOffset = 0; | 5902 var queryOffset = 0; |
5871 var queryMap = {}; | 5903 var queryMap = {}; |
5872 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5904 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5873 parseBool(n) { | 5905 parseBool(n) { |
5874 if (n == "true") return true; | 5906 if (n == "true") return true; |
5875 if (n == "false") return false; | 5907 if (n == "false") return false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5908 var arg_maxResults = 42; | 5940 var arg_maxResults = 42; |
5909 var arg_mine = true; | 5941 var arg_mine = true; |
5910 var arg_onBehalfOfContentOwner = "foo"; | 5942 var arg_onBehalfOfContentOwner = "foo"; |
5911 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5943 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5912 var arg_pageToken = "foo"; | 5944 var arg_pageToken = "foo"; |
5913 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5945 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5914 var path = (req.url).path; | 5946 var path = (req.url).path; |
5915 var pathOffset = 0; | 5947 var pathOffset = 0; |
5916 var index; | 5948 var index; |
5917 var subPart; | 5949 var subPart; |
5918 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 5950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5919 pathOffset += 12; | 5951 pathOffset += 1; |
| 5952 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5953 pathOffset += 11; |
5920 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); | 5954 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); |
5921 pathOffset += 14; | 5955 pathOffset += 14; |
5922 | 5956 |
5923 var query = (req.url).query; | 5957 var query = (req.url).query; |
5924 var queryOffset = 0; | 5958 var queryOffset = 0; |
5925 var queryMap = {}; | 5959 var queryMap = {}; |
5926 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5960 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5927 parseBool(n) { | 5961 parseBool(n) { |
5928 if (n == "true") return true; | 5962 if (n == "true") return true; |
5929 if (n == "false") return false; | 5963 if (n == "false") return false; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5964 var arg_broadcastStatus = "foo"; | 5998 var arg_broadcastStatus = "foo"; |
5965 var arg_id = "foo"; | 5999 var arg_id = "foo"; |
5966 var arg_part = "foo"; | 6000 var arg_part = "foo"; |
5967 var arg_onBehalfOfContentOwner = "foo"; | 6001 var arg_onBehalfOfContentOwner = "foo"; |
5968 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6002 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6003 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5970 var path = (req.url).path; | 6004 var path = (req.url).path; |
5971 var pathOffset = 0; | 6005 var pathOffset = 0; |
5972 var index; | 6006 var index; |
5973 var subPart; | 6007 var subPart; |
5974 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6008 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5975 pathOffset += 12; | 6009 pathOffset += 1; |
| 6010 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6011 pathOffset += 11; |
5976 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("liveBroadcasts/transition")); | 6012 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("liveBroadcasts/transition")); |
5977 pathOffset += 25; | 6013 pathOffset += 25; |
5978 | 6014 |
5979 var query = (req.url).query; | 6015 var query = (req.url).query; |
5980 var queryOffset = 0; | 6016 var queryOffset = 0; |
5981 var queryMap = {}; | 6017 var queryMap = {}; |
5982 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6018 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5983 parseBool(n) { | 6019 parseBool(n) { |
5984 if (n == "true") return true; | 6020 if (n == "true") return true; |
5985 if (n == "false") return false; | 6021 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6019 var arg_onBehalfOfContentOwner = "foo"; | 6055 var arg_onBehalfOfContentOwner = "foo"; |
6020 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6056 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6021 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6057 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6022 var obj = new api.LiveBroadcast.fromJson(json); | 6058 var obj = new api.LiveBroadcast.fromJson(json); |
6023 checkLiveBroadcast(obj); | 6059 checkLiveBroadcast(obj); |
6024 | 6060 |
6025 var path = (req.url).path; | 6061 var path = (req.url).path; |
6026 var pathOffset = 0; | 6062 var pathOffset = 0; |
6027 var index; | 6063 var index; |
6028 var subPart; | 6064 var subPart; |
6029 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6065 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6030 pathOffset += 12; | 6066 pathOffset += 1; |
| 6067 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6068 pathOffset += 11; |
6031 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); | 6069 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("liveBroadcasts")); |
6032 pathOffset += 14; | 6070 pathOffset += 14; |
6033 | 6071 |
6034 var query = (req.url).query; | 6072 var query = (req.url).query; |
6035 var queryOffset = 0; | 6073 var queryOffset = 0; |
6036 var queryMap = {}; | 6074 var queryMap = {}; |
6037 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6038 parseBool(n) { | 6076 parseBool(n) { |
6039 if (n == "true") return true; | 6077 if (n == "true") return true; |
6040 if (n == "false") return false; | 6078 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6072 var mock = new common_test.HttpServerMock(); | 6110 var mock = new common_test.HttpServerMock(); |
6073 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; | 6111 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; |
6074 var arg_id = "foo"; | 6112 var arg_id = "foo"; |
6075 var arg_onBehalfOfContentOwner = "foo"; | 6113 var arg_onBehalfOfContentOwner = "foo"; |
6076 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6114 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6077 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6078 var path = (req.url).path; | 6116 var path = (req.url).path; |
6079 var pathOffset = 0; | 6117 var pathOffset = 0; |
6080 var index; | 6118 var index; |
6081 var subPart; | 6119 var subPart; |
6082 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6120 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6083 pathOffset += 12; | 6121 pathOffset += 1; |
| 6122 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6123 pathOffset += 11; |
6084 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); | 6124 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); |
6085 pathOffset += 11; | 6125 pathOffset += 11; |
6086 | 6126 |
6087 var query = (req.url).query; | 6127 var query = (req.url).query; |
6088 var queryOffset = 0; | 6128 var queryOffset = 0; |
6089 var queryMap = {}; | 6129 var queryMap = {}; |
6090 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6130 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6091 parseBool(n) { | 6131 parseBool(n) { |
6092 if (n == "true") return true; | 6132 if (n == "true") return true; |
6093 if (n == "false") return false; | 6133 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
6123 var arg_onBehalfOfContentOwner = "foo"; | 6163 var arg_onBehalfOfContentOwner = "foo"; |
6124 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6164 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6125 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6126 var obj = new api.LiveStream.fromJson(json); | 6166 var obj = new api.LiveStream.fromJson(json); |
6127 checkLiveStream(obj); | 6167 checkLiveStream(obj); |
6128 | 6168 |
6129 var path = (req.url).path; | 6169 var path = (req.url).path; |
6130 var pathOffset = 0; | 6170 var pathOffset = 0; |
6131 var index; | 6171 var index; |
6132 var subPart; | 6172 var subPart; |
6133 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6173 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6134 pathOffset += 12; | 6174 pathOffset += 1; |
| 6175 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6176 pathOffset += 11; |
6135 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); | 6177 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); |
6136 pathOffset += 11; | 6178 pathOffset += 11; |
6137 | 6179 |
6138 var query = (req.url).query; | 6180 var query = (req.url).query; |
6139 var queryOffset = 0; | 6181 var queryOffset = 0; |
6140 var queryMap = {}; | 6182 var queryMap = {}; |
6141 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6183 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6142 parseBool(n) { | 6184 parseBool(n) { |
6143 if (n == "true") return true; | 6185 if (n == "true") return true; |
6144 if (n == "false") return false; | 6186 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6176 var arg_maxResults = 42; | 6218 var arg_maxResults = 42; |
6177 var arg_mine = true; | 6219 var arg_mine = true; |
6178 var arg_onBehalfOfContentOwner = "foo"; | 6220 var arg_onBehalfOfContentOwner = "foo"; |
6179 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6221 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6180 var arg_pageToken = "foo"; | 6222 var arg_pageToken = "foo"; |
6181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6223 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6182 var path = (req.url).path; | 6224 var path = (req.url).path; |
6183 var pathOffset = 0; | 6225 var pathOffset = 0; |
6184 var index; | 6226 var index; |
6185 var subPart; | 6227 var subPart; |
6186 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6228 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6187 pathOffset += 12; | 6229 pathOffset += 1; |
| 6230 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6231 pathOffset += 11; |
6188 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); | 6232 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); |
6189 pathOffset += 11; | 6233 pathOffset += 11; |
6190 | 6234 |
6191 var query = (req.url).query; | 6235 var query = (req.url).query; |
6192 var queryOffset = 0; | 6236 var queryOffset = 0; |
6193 var queryMap = {}; | 6237 var queryMap = {}; |
6194 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6238 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6195 parseBool(n) { | 6239 parseBool(n) { |
6196 if (n == "true") return true; | 6240 if (n == "true") return true; |
6197 if (n == "false") return false; | 6241 if (n == "false") return false; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6233 var arg_onBehalfOfContentOwner = "foo"; | 6277 var arg_onBehalfOfContentOwner = "foo"; |
6234 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6278 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6235 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6236 var obj = new api.LiveStream.fromJson(json); | 6280 var obj = new api.LiveStream.fromJson(json); |
6237 checkLiveStream(obj); | 6281 checkLiveStream(obj); |
6238 | 6282 |
6239 var path = (req.url).path; | 6283 var path = (req.url).path; |
6240 var pathOffset = 0; | 6284 var pathOffset = 0; |
6241 var index; | 6285 var index; |
6242 var subPart; | 6286 var subPart; |
6243 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6244 pathOffset += 12; | 6288 pathOffset += 1; |
| 6289 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6290 pathOffset += 11; |
6245 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); | 6291 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("liveStreams")); |
6246 pathOffset += 11; | 6292 pathOffset += 11; |
6247 | 6293 |
6248 var query = (req.url).query; | 6294 var query = (req.url).query; |
6249 var queryOffset = 0; | 6295 var queryOffset = 0; |
6250 var queryMap = {}; | 6296 var queryMap = {}; |
6251 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6297 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6252 parseBool(n) { | 6298 parseBool(n) { |
6253 if (n == "true") return true; | 6299 if (n == "true") return true; |
6254 if (n == "false") return false; | 6300 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
6284 unittest.test("method--delete", () { | 6330 unittest.test("method--delete", () { |
6285 | 6331 |
6286 var mock = new common_test.HttpServerMock(); | 6332 var mock = new common_test.HttpServerMock(); |
6287 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; | 6333 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; |
6288 var arg_id = "foo"; | 6334 var arg_id = "foo"; |
6289 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6290 var path = (req.url).path; | 6336 var path = (req.url).path; |
6291 var pathOffset = 0; | 6337 var pathOffset = 0; |
6292 var index; | 6338 var index; |
6293 var subPart; | 6339 var subPart; |
6294 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6295 pathOffset += 12; | 6341 pathOffset += 1; |
| 6342 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6343 pathOffset += 11; |
6296 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); | 6344 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); |
6297 pathOffset += 13; | 6345 pathOffset += 13; |
6298 | 6346 |
6299 var query = (req.url).query; | 6347 var query = (req.url).query; |
6300 var queryOffset = 0; | 6348 var queryOffset = 0; |
6301 var queryMap = {}; | 6349 var queryMap = {}; |
6302 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6350 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6303 parseBool(n) { | 6351 parseBool(n) { |
6304 if (n == "true") return true; | 6352 if (n == "true") return true; |
6305 if (n == "false") return false; | 6353 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
6332 var arg_part = "foo"; | 6380 var arg_part = "foo"; |
6333 var arg_onBehalfOfContentOwner = "foo"; | 6381 var arg_onBehalfOfContentOwner = "foo"; |
6334 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6382 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6335 var obj = new api.PlaylistItem.fromJson(json); | 6383 var obj = new api.PlaylistItem.fromJson(json); |
6336 checkPlaylistItem(obj); | 6384 checkPlaylistItem(obj); |
6337 | 6385 |
6338 var path = (req.url).path; | 6386 var path = (req.url).path; |
6339 var pathOffset = 0; | 6387 var pathOffset = 0; |
6340 var index; | 6388 var index; |
6341 var subPart; | 6389 var subPart; |
6342 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6390 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6343 pathOffset += 12; | 6391 pathOffset += 1; |
| 6392 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6393 pathOffset += 11; |
6344 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); | 6394 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); |
6345 pathOffset += 13; | 6395 pathOffset += 13; |
6346 | 6396 |
6347 var query = (req.url).query; | 6397 var query = (req.url).query; |
6348 var queryOffset = 0; | 6398 var queryOffset = 0; |
6349 var queryMap = {}; | 6399 var queryMap = {}; |
6350 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6351 parseBool(n) { | 6401 parseBool(n) { |
6352 if (n == "true") return true; | 6402 if (n == "true") return true; |
6353 if (n == "false") return false; | 6403 if (n == "false") return false; |
(...skipping 30 matching lines...) Expand all Loading... |
6384 var arg_maxResults = 42; | 6434 var arg_maxResults = 42; |
6385 var arg_onBehalfOfContentOwner = "foo"; | 6435 var arg_onBehalfOfContentOwner = "foo"; |
6386 var arg_pageToken = "foo"; | 6436 var arg_pageToken = "foo"; |
6387 var arg_playlistId = "foo"; | 6437 var arg_playlistId = "foo"; |
6388 var arg_videoId = "foo"; | 6438 var arg_videoId = "foo"; |
6389 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6439 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6390 var path = (req.url).path; | 6440 var path = (req.url).path; |
6391 var pathOffset = 0; | 6441 var pathOffset = 0; |
6392 var index; | 6442 var index; |
6393 var subPart; | 6443 var subPart; |
6394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6444 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6395 pathOffset += 12; | 6445 pathOffset += 1; |
| 6446 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6447 pathOffset += 11; |
6396 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); | 6448 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); |
6397 pathOffset += 13; | 6449 pathOffset += 13; |
6398 | 6450 |
6399 var query = (req.url).query; | 6451 var query = (req.url).query; |
6400 var queryOffset = 0; | 6452 var queryOffset = 0; |
6401 var queryMap = {}; | 6453 var queryMap = {}; |
6402 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6454 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6403 parseBool(n) { | 6455 parseBool(n) { |
6404 if (n == "true") return true; | 6456 if (n == "true") return true; |
6405 if (n == "false") return false; | 6457 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6439 var arg_request = buildPlaylistItem(); | 6491 var arg_request = buildPlaylistItem(); |
6440 var arg_part = "foo"; | 6492 var arg_part = "foo"; |
6441 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6442 var obj = new api.PlaylistItem.fromJson(json); | 6494 var obj = new api.PlaylistItem.fromJson(json); |
6443 checkPlaylistItem(obj); | 6495 checkPlaylistItem(obj); |
6444 | 6496 |
6445 var path = (req.url).path; | 6497 var path = (req.url).path; |
6446 var pathOffset = 0; | 6498 var pathOffset = 0; |
6447 var index; | 6499 var index; |
6448 var subPart; | 6500 var subPart; |
6449 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6450 pathOffset += 12; | 6502 pathOffset += 1; |
| 6503 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6504 pathOffset += 11; |
6451 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); | 6505 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("playlistItems")); |
6452 pathOffset += 13; | 6506 pathOffset += 13; |
6453 | 6507 |
6454 var query = (req.url).query; | 6508 var query = (req.url).query; |
6455 var queryOffset = 0; | 6509 var queryOffset = 0; |
6456 var queryMap = {}; | 6510 var queryMap = {}; |
6457 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6511 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6458 parseBool(n) { | 6512 parseBool(n) { |
6459 if (n == "true") return true; | 6513 if (n == "true") return true; |
6460 if (n == "false") return false; | 6514 if (n == "false") return false; |
(...skipping 28 matching lines...) Expand all Loading... |
6489 | 6543 |
6490 var mock = new common_test.HttpServerMock(); | 6544 var mock = new common_test.HttpServerMock(); |
6491 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; | 6545 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; |
6492 var arg_id = "foo"; | 6546 var arg_id = "foo"; |
6493 var arg_onBehalfOfContentOwner = "foo"; | 6547 var arg_onBehalfOfContentOwner = "foo"; |
6494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6548 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6495 var path = (req.url).path; | 6549 var path = (req.url).path; |
6496 var pathOffset = 0; | 6550 var pathOffset = 0; |
6497 var index; | 6551 var index; |
6498 var subPart; | 6552 var subPart; |
6499 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6553 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6500 pathOffset += 12; | 6554 pathOffset += 1; |
| 6555 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6556 pathOffset += 11; |
6501 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); | 6557 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); |
6502 pathOffset += 9; | 6558 pathOffset += 9; |
6503 | 6559 |
6504 var query = (req.url).query; | 6560 var query = (req.url).query; |
6505 var queryOffset = 0; | 6561 var queryOffset = 0; |
6506 var queryMap = {}; | 6562 var queryMap = {}; |
6507 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6563 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6508 parseBool(n) { | 6564 parseBool(n) { |
6509 if (n == "true") return true; | 6565 if (n == "true") return true; |
6510 if (n == "false") return false; | 6566 if (n == "false") return false; |
(...skipping 28 matching lines...) Expand all Loading... |
6539 var arg_onBehalfOfContentOwner = "foo"; | 6595 var arg_onBehalfOfContentOwner = "foo"; |
6540 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6596 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6541 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6597 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6542 var obj = new api.Playlist.fromJson(json); | 6598 var obj = new api.Playlist.fromJson(json); |
6543 checkPlaylist(obj); | 6599 checkPlaylist(obj); |
6544 | 6600 |
6545 var path = (req.url).path; | 6601 var path = (req.url).path; |
6546 var pathOffset = 0; | 6602 var pathOffset = 0; |
6547 var index; | 6603 var index; |
6548 var subPart; | 6604 var subPart; |
6549 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6605 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6550 pathOffset += 12; | 6606 pathOffset += 1; |
| 6607 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6608 pathOffset += 11; |
6551 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); | 6609 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); |
6552 pathOffset += 9; | 6610 pathOffset += 9; |
6553 | 6611 |
6554 var query = (req.url).query; | 6612 var query = (req.url).query; |
6555 var queryOffset = 0; | 6613 var queryOffset = 0; |
6556 var queryMap = {}; | 6614 var queryMap = {}; |
6557 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6615 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6558 parseBool(n) { | 6616 parseBool(n) { |
6559 if (n == "true") return true; | 6617 if (n == "true") return true; |
6560 if (n == "false") return false; | 6618 if (n == "false") return false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6593 var arg_maxResults = 42; | 6651 var arg_maxResults = 42; |
6594 var arg_mine = true; | 6652 var arg_mine = true; |
6595 var arg_onBehalfOfContentOwner = "foo"; | 6653 var arg_onBehalfOfContentOwner = "foo"; |
6596 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6654 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6597 var arg_pageToken = "foo"; | 6655 var arg_pageToken = "foo"; |
6598 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6656 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6599 var path = (req.url).path; | 6657 var path = (req.url).path; |
6600 var pathOffset = 0; | 6658 var pathOffset = 0; |
6601 var index; | 6659 var index; |
6602 var subPart; | 6660 var subPart; |
6603 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6604 pathOffset += 12; | 6662 pathOffset += 1; |
| 6663 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6664 pathOffset += 11; |
6605 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); | 6665 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); |
6606 pathOffset += 9; | 6666 pathOffset += 9; |
6607 | 6667 |
6608 var query = (req.url).query; | 6668 var query = (req.url).query; |
6609 var queryOffset = 0; | 6669 var queryOffset = 0; |
6610 var queryMap = {}; | 6670 var queryMap = {}; |
6611 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6671 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6612 parseBool(n) { | 6672 parseBool(n) { |
6613 if (n == "true") return true; | 6673 if (n == "true") return true; |
6614 if (n == "false") return false; | 6674 if (n == "false") return false; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6650 var arg_part = "foo"; | 6710 var arg_part = "foo"; |
6651 var arg_onBehalfOfContentOwner = "foo"; | 6711 var arg_onBehalfOfContentOwner = "foo"; |
6652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6653 var obj = new api.Playlist.fromJson(json); | 6713 var obj = new api.Playlist.fromJson(json); |
6654 checkPlaylist(obj); | 6714 checkPlaylist(obj); |
6655 | 6715 |
6656 var path = (req.url).path; | 6716 var path = (req.url).path; |
6657 var pathOffset = 0; | 6717 var pathOffset = 0; |
6658 var index; | 6718 var index; |
6659 var subPart; | 6719 var subPart; |
6660 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6720 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6661 pathOffset += 12; | 6721 pathOffset += 1; |
| 6722 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6723 pathOffset += 11; |
6662 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); | 6724 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("playlists")); |
6663 pathOffset += 9; | 6725 pathOffset += 9; |
6664 | 6726 |
6665 var query = (req.url).query; | 6727 var query = (req.url).query; |
6666 var queryOffset = 0; | 6728 var queryOffset = 0; |
6667 var queryMap = {}; | 6729 var queryMap = {}; |
6668 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6730 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6669 parseBool(n) { | 6731 parseBool(n) { |
6670 if (n == "true") return true; | 6732 if (n == "true") return true; |
6671 if (n == "false") return false; | 6733 if (n == "false") return false; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6728 var arg_videoDuration = "foo"; | 6790 var arg_videoDuration = "foo"; |
6729 var arg_videoEmbeddable = "foo"; | 6791 var arg_videoEmbeddable = "foo"; |
6730 var arg_videoLicense = "foo"; | 6792 var arg_videoLicense = "foo"; |
6731 var arg_videoSyndicated = "foo"; | 6793 var arg_videoSyndicated = "foo"; |
6732 var arg_videoType = "foo"; | 6794 var arg_videoType = "foo"; |
6733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6795 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6734 var path = (req.url).path; | 6796 var path = (req.url).path; |
6735 var pathOffset = 0; | 6797 var pathOffset = 0; |
6736 var index; | 6798 var index; |
6737 var subPart; | 6799 var subPart; |
6738 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6800 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6739 pathOffset += 12; | 6801 pathOffset += 1; |
| 6802 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6803 pathOffset += 11; |
6740 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("search")); | 6804 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("search")); |
6741 pathOffset += 6; | 6805 pathOffset += 6; |
6742 | 6806 |
6743 var query = (req.url).query; | 6807 var query = (req.url).query; |
6744 var queryOffset = 0; | 6808 var queryOffset = 0; |
6745 var queryMap = {}; | 6809 var queryMap = {}; |
6746 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6810 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6747 parseBool(n) { | 6811 parseBool(n) { |
6748 if (n == "true") return true; | 6812 if (n == "true") return true; |
6749 if (n == "false") return false; | 6813 if (n == "false") return false; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6805 unittest.test("method--delete", () { | 6869 unittest.test("method--delete", () { |
6806 | 6870 |
6807 var mock = new common_test.HttpServerMock(); | 6871 var mock = new common_test.HttpServerMock(); |
6808 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; | 6872 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; |
6809 var arg_id = "foo"; | 6873 var arg_id = "foo"; |
6810 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6811 var path = (req.url).path; | 6875 var path = (req.url).path; |
6812 var pathOffset = 0; | 6876 var pathOffset = 0; |
6813 var index; | 6877 var index; |
6814 var subPart; | 6878 var subPart; |
6815 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6816 pathOffset += 12; | 6880 pathOffset += 1; |
| 6881 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6882 pathOffset += 11; |
6817 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); | 6883 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); |
6818 pathOffset += 13; | 6884 pathOffset += 13; |
6819 | 6885 |
6820 var query = (req.url).query; | 6886 var query = (req.url).query; |
6821 var queryOffset = 0; | 6887 var queryOffset = 0; |
6822 var queryMap = {}; | 6888 var queryMap = {}; |
6823 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6889 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6824 parseBool(n) { | 6890 parseBool(n) { |
6825 if (n == "true") return true; | 6891 if (n == "true") return true; |
6826 if (n == "false") return false; | 6892 if (n == "false") return false; |
(...skipping 25 matching lines...) Expand all Loading... |
6852 var arg_request = buildSubscription(); | 6918 var arg_request = buildSubscription(); |
6853 var arg_part = "foo"; | 6919 var arg_part = "foo"; |
6854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6920 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6855 var obj = new api.Subscription.fromJson(json); | 6921 var obj = new api.Subscription.fromJson(json); |
6856 checkSubscription(obj); | 6922 checkSubscription(obj); |
6857 | 6923 |
6858 var path = (req.url).path; | 6924 var path = (req.url).path; |
6859 var pathOffset = 0; | 6925 var pathOffset = 0; |
6860 var index; | 6926 var index; |
6861 var subPart; | 6927 var subPart; |
6862 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6863 pathOffset += 12; | 6929 pathOffset += 1; |
| 6930 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6931 pathOffset += 11; |
6864 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); | 6932 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); |
6865 pathOffset += 13; | 6933 pathOffset += 13; |
6866 | 6934 |
6867 var query = (req.url).query; | 6935 var query = (req.url).query; |
6868 var queryOffset = 0; | 6936 var queryOffset = 0; |
6869 var queryMap = {}; | 6937 var queryMap = {}; |
6870 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6938 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6871 parseBool(n) { | 6939 parseBool(n) { |
6872 if (n == "true") return true; | 6940 if (n == "true") return true; |
6873 if (n == "false") return false; | 6941 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6907 var arg_mySubscribers = true; | 6975 var arg_mySubscribers = true; |
6908 var arg_onBehalfOfContentOwner = "foo"; | 6976 var arg_onBehalfOfContentOwner = "foo"; |
6909 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6977 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6910 var arg_order = "foo"; | 6978 var arg_order = "foo"; |
6911 var arg_pageToken = "foo"; | 6979 var arg_pageToken = "foo"; |
6912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6913 var path = (req.url).path; | 6981 var path = (req.url).path; |
6914 var pathOffset = 0; | 6982 var pathOffset = 0; |
6915 var index; | 6983 var index; |
6916 var subPart; | 6984 var subPart; |
6917 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 6985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6918 pathOffset += 12; | 6986 pathOffset += 1; |
| 6987 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 6988 pathOffset += 11; |
6919 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); | 6989 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); |
6920 pathOffset += 13; | 6990 pathOffset += 13; |
6921 | 6991 |
6922 var query = (req.url).query; | 6992 var query = (req.url).query; |
6923 var queryOffset = 0; | 6993 var queryOffset = 0; |
6924 var queryMap = {}; | 6994 var queryMap = {}; |
6925 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6995 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6926 parseBool(n) { | 6996 parseBool(n) { |
6927 if (n == "true") return true; | 6997 if (n == "true") return true; |
6928 if (n == "false") return false; | 6998 if (n == "false") return false; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6969 | 7039 |
6970 var mock = new common_test.HttpServerMock(); | 7040 var mock = new common_test.HttpServerMock(); |
6971 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; | 7041 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; |
6972 var arg_videoId = "foo"; | 7042 var arg_videoId = "foo"; |
6973 var arg_onBehalfOfContentOwner = "foo"; | 7043 var arg_onBehalfOfContentOwner = "foo"; |
6974 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7044 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6975 var path = (req.url).path; | 7045 var path = (req.url).path; |
6976 var pathOffset = 0; | 7046 var pathOffset = 0; |
6977 var index; | 7047 var index; |
6978 var subPart; | 7048 var subPart; |
6979 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7049 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6980 pathOffset += 12; | 7050 pathOffset += 1; |
| 7051 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7052 pathOffset += 11; |
6981 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("thumbnails/set")); | 7053 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("thumbnails/set")); |
6982 pathOffset += 14; | 7054 pathOffset += 14; |
6983 | 7055 |
6984 var query = (req.url).query; | 7056 var query = (req.url).query; |
6985 var queryOffset = 0; | 7057 var queryOffset = 0; |
6986 var queryMap = {}; | 7058 var queryMap = {}; |
6987 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7059 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6988 parseBool(n) { | 7060 parseBool(n) { |
6989 if (n == "true") return true; | 7061 if (n == "true") return true; |
6990 if (n == "false") return false; | 7062 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7022 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor
ies; | 7094 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor
ies; |
7023 var arg_part = "foo"; | 7095 var arg_part = "foo"; |
7024 var arg_hl = "foo"; | 7096 var arg_hl = "foo"; |
7025 var arg_id = "foo"; | 7097 var arg_id = "foo"; |
7026 var arg_regionCode = "foo"; | 7098 var arg_regionCode = "foo"; |
7027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7099 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7028 var path = (req.url).path; | 7100 var path = (req.url).path; |
7029 var pathOffset = 0; | 7101 var pathOffset = 0; |
7030 var index; | 7102 var index; |
7031 var subPart; | 7103 var subPart; |
7032 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7104 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7033 pathOffset += 12; | 7105 pathOffset += 1; |
| 7106 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7107 pathOffset += 11; |
7034 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("videoCategories")); | 7108 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("videoCategories")); |
7035 pathOffset += 15; | 7109 pathOffset += 15; |
7036 | 7110 |
7037 var query = (req.url).query; | 7111 var query = (req.url).query; |
7038 var queryOffset = 0; | 7112 var queryOffset = 0; |
7039 var queryMap = {}; | 7113 var queryMap = {}; |
7040 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7114 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7041 parseBool(n) { | 7115 parseBool(n) { |
7042 if (n == "true") return true; | 7116 if (n == "true") return true; |
7043 if (n == "false") return false; | 7117 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7075 | 7149 |
7076 var mock = new common_test.HttpServerMock(); | 7150 var mock = new common_test.HttpServerMock(); |
7077 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7151 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7078 var arg_id = "foo"; | 7152 var arg_id = "foo"; |
7079 var arg_onBehalfOfContentOwner = "foo"; | 7153 var arg_onBehalfOfContentOwner = "foo"; |
7080 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7154 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7081 var path = (req.url).path; | 7155 var path = (req.url).path; |
7082 var pathOffset = 0; | 7156 var pathOffset = 0; |
7083 var index; | 7157 var index; |
7084 var subPart; | 7158 var subPart; |
7085 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7086 pathOffset += 12; | 7160 pathOffset += 1; |
| 7161 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7162 pathOffset += 11; |
7087 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); | 7163 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); |
7088 pathOffset += 6; | 7164 pathOffset += 6; |
7089 | 7165 |
7090 var query = (req.url).query; | 7166 var query = (req.url).query; |
7091 var queryOffset = 0; | 7167 var queryOffset = 0; |
7092 var queryMap = {}; | 7168 var queryMap = {}; |
7093 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7169 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7094 parseBool(n) { | 7170 parseBool(n) { |
7095 if (n == "true") return true; | 7171 if (n == "true") return true; |
7096 if (n == "false") return false; | 7172 if (n == "false") return false; |
(...skipping 23 matching lines...) Expand all Loading... |
7120 | 7196 |
7121 var mock = new common_test.HttpServerMock(); | 7197 var mock = new common_test.HttpServerMock(); |
7122 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7198 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7123 var arg_id = "foo"; | 7199 var arg_id = "foo"; |
7124 var arg_onBehalfOfContentOwner = "foo"; | 7200 var arg_onBehalfOfContentOwner = "foo"; |
7125 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7201 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7126 var path = (req.url).path; | 7202 var path = (req.url).path; |
7127 var pathOffset = 0; | 7203 var pathOffset = 0; |
7128 var index; | 7204 var index; |
7129 var subPart; | 7205 var subPart; |
7130 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7206 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7131 pathOffset += 12; | 7207 pathOffset += 1; |
| 7208 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7209 pathOffset += 11; |
7132 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("videos/getRating")); | 7210 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("videos/getRating")); |
7133 pathOffset += 16; | 7211 pathOffset += 16; |
7134 | 7212 |
7135 var query = (req.url).query; | 7213 var query = (req.url).query; |
7136 var queryOffset = 0; | 7214 var queryOffset = 0; |
7137 var queryMap = {}; | 7215 var queryMap = {}; |
7138 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7216 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7139 parseBool(n) { | 7217 parseBool(n) { |
7140 if (n == "true") return true; | 7218 if (n == "true") return true; |
7141 if (n == "false") return false; | 7219 if (n == "false") return false; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7177 var arg_onBehalfOfContentOwnerChannel = "foo"; | 7255 var arg_onBehalfOfContentOwnerChannel = "foo"; |
7178 var arg_stabilize = true; | 7256 var arg_stabilize = true; |
7179 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7180 var obj = new api.Video.fromJson(json); | 7258 var obj = new api.Video.fromJson(json); |
7181 checkVideo(obj); | 7259 checkVideo(obj); |
7182 | 7260 |
7183 var path = (req.url).path; | 7261 var path = (req.url).path; |
7184 var pathOffset = 0; | 7262 var pathOffset = 0; |
7185 var index; | 7263 var index; |
7186 var subPart; | 7264 var subPart; |
7187 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7188 pathOffset += 12; | 7266 pathOffset += 1; |
| 7267 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7268 pathOffset += 11; |
7189 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); | 7269 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); |
7190 pathOffset += 6; | 7270 pathOffset += 6; |
7191 | 7271 |
7192 var query = (req.url).query; | 7272 var query = (req.url).query; |
7193 var queryOffset = 0; | 7273 var queryOffset = 0; |
7194 var queryMap = {}; | 7274 var queryMap = {}; |
7195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7275 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7196 parseBool(n) { | 7276 parseBool(n) { |
7197 if (n == "true") return true; | 7277 if (n == "true") return true; |
7198 if (n == "false") return false; | 7278 if (n == "false") return false; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7236 var arg_myRating = "foo"; | 7316 var arg_myRating = "foo"; |
7237 var arg_onBehalfOfContentOwner = "foo"; | 7317 var arg_onBehalfOfContentOwner = "foo"; |
7238 var arg_pageToken = "foo"; | 7318 var arg_pageToken = "foo"; |
7239 var arg_regionCode = "foo"; | 7319 var arg_regionCode = "foo"; |
7240 var arg_videoCategoryId = "foo"; | 7320 var arg_videoCategoryId = "foo"; |
7241 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7321 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7242 var path = (req.url).path; | 7322 var path = (req.url).path; |
7243 var pathOffset = 0; | 7323 var pathOffset = 0; |
7244 var index; | 7324 var index; |
7245 var subPart; | 7325 var subPart; |
7246 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7326 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7247 pathOffset += 12; | 7327 pathOffset += 1; |
| 7328 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7329 pathOffset += 11; |
7248 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); | 7330 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); |
7249 pathOffset += 6; | 7331 pathOffset += 6; |
7250 | 7332 |
7251 var query = (req.url).query; | 7333 var query = (req.url).query; |
7252 var queryOffset = 0; | 7334 var queryOffset = 0; |
7253 var queryMap = {}; | 7335 var queryMap = {}; |
7254 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7336 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7255 parseBool(n) { | 7337 parseBool(n) { |
7256 if (n == "true") return true; | 7338 if (n == "true") return true; |
7257 if (n == "false") return false; | 7339 if (n == "false") return false; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7292 var mock = new common_test.HttpServerMock(); | 7374 var mock = new common_test.HttpServerMock(); |
7293 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7375 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7294 var arg_id = "foo"; | 7376 var arg_id = "foo"; |
7295 var arg_rating = "foo"; | 7377 var arg_rating = "foo"; |
7296 var arg_onBehalfOfContentOwner = "foo"; | 7378 var arg_onBehalfOfContentOwner = "foo"; |
7297 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7379 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7298 var path = (req.url).path; | 7380 var path = (req.url).path; |
7299 var pathOffset = 0; | 7381 var pathOffset = 0; |
7300 var index; | 7382 var index; |
7301 var subPart; | 7383 var subPart; |
7302 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7384 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7303 pathOffset += 12; | 7385 pathOffset += 1; |
| 7386 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7387 pathOffset += 11; |
7304 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("videos/rate")); | 7388 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("videos/rate")); |
7305 pathOffset += 11; | 7389 pathOffset += 11; |
7306 | 7390 |
7307 var query = (req.url).query; | 7391 var query = (req.url).query; |
7308 var queryOffset = 0; | 7392 var queryOffset = 0; |
7309 var queryMap = {}; | 7393 var queryMap = {}; |
7310 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7394 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7311 parseBool(n) { | 7395 parseBool(n) { |
7312 if (n == "true") return true; | 7396 if (n == "true") return true; |
7313 if (n == "false") return false; | 7397 if (n == "false") return false; |
(...skipping 28 matching lines...) Expand all Loading... |
7342 var arg_part = "foo"; | 7426 var arg_part = "foo"; |
7343 var arg_onBehalfOfContentOwner = "foo"; | 7427 var arg_onBehalfOfContentOwner = "foo"; |
7344 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7428 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7345 var obj = new api.Video.fromJson(json); | 7429 var obj = new api.Video.fromJson(json); |
7346 checkVideo(obj); | 7430 checkVideo(obj); |
7347 | 7431 |
7348 var path = (req.url).path; | 7432 var path = (req.url).path; |
7349 var pathOffset = 0; | 7433 var pathOffset = 0; |
7350 var index; | 7434 var index; |
7351 var subPart; | 7435 var subPart; |
7352 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7353 pathOffset += 12; | 7437 pathOffset += 1; |
| 7438 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7439 pathOffset += 11; |
7354 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); | 7440 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("videos")); |
7355 pathOffset += 6; | 7441 pathOffset += 6; |
7356 | 7442 |
7357 var query = (req.url).query; | 7443 var query = (req.url).query; |
7358 var queryOffset = 0; | 7444 var queryOffset = 0; |
7359 var queryMap = {}; | 7445 var queryMap = {}; |
7360 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7361 parseBool(n) { | 7447 parseBool(n) { |
7362 if (n == "true") return true; | 7448 if (n == "true") return true; |
7363 if (n == "false") return false; | 7449 if (n == "false") return false; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7399 var arg_channelId = "foo"; | 7485 var arg_channelId = "foo"; |
7400 var arg_onBehalfOfContentOwner = "foo"; | 7486 var arg_onBehalfOfContentOwner = "foo"; |
7401 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7487 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7402 var obj = new api.InvideoBranding.fromJson(json); | 7488 var obj = new api.InvideoBranding.fromJson(json); |
7403 checkInvideoBranding(obj); | 7489 checkInvideoBranding(obj); |
7404 | 7490 |
7405 var path = (req.url).path; | 7491 var path = (req.url).path; |
7406 var pathOffset = 0; | 7492 var pathOffset = 0; |
7407 var index; | 7493 var index; |
7408 var subPart; | 7494 var subPart; |
7409 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7495 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7410 pathOffset += 12; | 7496 pathOffset += 1; |
| 7497 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7498 pathOffset += 11; |
7411 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("watermarks/set")); | 7499 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("watermarks/set")); |
7412 pathOffset += 14; | 7500 pathOffset += 14; |
7413 | 7501 |
7414 var query = (req.url).query; | 7502 var query = (req.url).query; |
7415 var queryOffset = 0; | 7503 var queryOffset = 0; |
7416 var queryMap = {}; | 7504 var queryMap = {}; |
7417 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7505 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7418 parseBool(n) { | 7506 parseBool(n) { |
7419 if (n == "true") return true; | 7507 if (n == "true") return true; |
7420 if (n == "false") return false; | 7508 if (n == "false") return false; |
(...skipping 23 matching lines...) Expand all Loading... |
7444 | 7532 |
7445 var mock = new common_test.HttpServerMock(); | 7533 var mock = new common_test.HttpServerMock(); |
7446 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; | 7534 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; |
7447 var arg_channelId = "foo"; | 7535 var arg_channelId = "foo"; |
7448 var arg_onBehalfOfContentOwner = "foo"; | 7536 var arg_onBehalfOfContentOwner = "foo"; |
7449 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7450 var path = (req.url).path; | 7538 var path = (req.url).path; |
7451 var pathOffset = 0; | 7539 var pathOffset = 0; |
7452 var index; | 7540 var index; |
7453 var subPart; | 7541 var subPart; |
7454 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/youtube/v3/")); | 7542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7455 pathOffset += 12; | 7543 pathOffset += 1; |
| 7544 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 7545 pathOffset += 11; |
7456 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("watermarks/unset")); | 7546 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("watermarks/unset")); |
7457 pathOffset += 16; | 7547 pathOffset += 16; |
7458 | 7548 |
7459 var query = (req.url).query; | 7549 var query = (req.url).query; |
7460 var queryOffset = 0; | 7550 var queryOffset = 0; |
7461 var queryMap = {}; | 7551 var queryMap = {}; |
7462 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7552 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7463 parseBool(n) { | 7553 parseBool(n) { |
7464 if (n == "true") return true; | 7554 if (n == "true") return true; |
7465 if (n == "false") return false; | 7555 if (n == "false") return false; |
(...skipping 17 matching lines...) Expand all Loading... |
7483 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7573 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
7484 }), true); | 7574 }), true); |
7485 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne
r).then(unittest.expectAsync((_) {})); | 7575 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne
r).then(unittest.expectAsync((_) {})); |
7486 }); | 7576 }); |
7487 | 7577 |
7488 }); | 7578 }); |
7489 | 7579 |
7490 | 7580 |
7491 } | 7581 } |
7492 | 7582 |
OLD | NEW |