| Index: generated/googleapis/test/youtube/v3_test.dart
|
| diff --git a/generated/googleapis/test/youtube/v3_test.dart b/generated/googleapis/test/youtube/v3_test.dart
|
| index 993affc085e4e9aa7d80ed967a45286c7fc13776..0ee713d8dd8fc526b4b67a99ccd89d0ff94c11a8 100644
|
| --- a/generated/googleapis/test/youtube/v3_test.dart
|
| +++ b/generated/googleapis/test/youtube/v3_test.dart
|
| @@ -16,14 +16,14 @@ import 'package:googleapis/youtube/v3.dart' as api;
|
|
|
|
|
|
|
| -buildUnnamed1136() {
|
| +buildUnnamed359() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1136(core.List<core.String> o) {
|
| +checkUnnamed359(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -35,7 +35,7 @@ buildAccessPolicy() {
|
| buildCounterAccessPolicy++;
|
| if (buildCounterAccessPolicy < 3) {
|
| o.allowed = true;
|
| - o.exception = buildUnnamed1136();
|
| + o.exception = buildUnnamed359();
|
| }
|
| buildCounterAccessPolicy--;
|
| return o;
|
| @@ -45,7 +45,7 @@ checkAccessPolicy(api.AccessPolicy o) {
|
| buildCounterAccessPolicy++;
|
| if (buildCounterAccessPolicy < 3) {
|
| unittest.expect(o.allowed, unittest.isTrue);
|
| - checkUnnamed1136(o.exception);
|
| + checkUnnamed359(o.exception);
|
| }
|
| buildCounterAccessPolicy--;
|
| }
|
| @@ -234,27 +234,27 @@ checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
|
| buildCounterActivityContentDetailsPlaylistItem--;
|
| }
|
|
|
| -buildUnnamed1137() {
|
| +buildUnnamed360() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1137(core.List<core.String> o) {
|
| +checkUnnamed360(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1138() {
|
| +buildUnnamed361() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1138(core.List<core.String> o) {
|
| +checkUnnamed361(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -272,8 +272,8 @@ buildActivityContentDetailsPromotedItem() {
|
| o.customCtaButtonText = "foo";
|
| o.descriptionText = "foo";
|
| o.destinationUrl = "foo";
|
| - o.forecastingUrl = buildUnnamed1137();
|
| - o.impressionUrl = buildUnnamed1138();
|
| + o.forecastingUrl = buildUnnamed360();
|
| + o.impressionUrl = buildUnnamed361();
|
| o.videoId = "foo";
|
| }
|
| buildCounterActivityContentDetailsPromotedItem--;
|
| @@ -290,8 +290,8 @@ checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o
|
| unittest.expect(o.customCtaButtonText, unittest.equals('foo'));
|
| unittest.expect(o.descriptionText, unittest.equals('foo'));
|
| unittest.expect(o.destinationUrl, unittest.equals('foo'));
|
| - checkUnnamed1137(o.forecastingUrl);
|
| - checkUnnamed1138(o.impressionUrl);
|
| + checkUnnamed360(o.forecastingUrl);
|
| + checkUnnamed361(o.impressionUrl);
|
| unittest.expect(o.videoId, unittest.equals('foo'));
|
| }
|
| buildCounterActivityContentDetailsPromotedItem--;
|
| @@ -385,14 +385,14 @@ checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) {
|
| buildCounterActivityContentDetailsUpload--;
|
| }
|
|
|
| -buildUnnamed1139() {
|
| +buildUnnamed362() {
|
| var o = new core.List<api.Activity>();
|
| o.add(buildActivity());
|
| o.add(buildActivity());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1139(core.List<api.Activity> o) {
|
| +checkUnnamed362(core.List<api.Activity> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkActivity(o[0]);
|
| checkActivity(o[1]);
|
| @@ -405,7 +405,7 @@ buildActivityListResponse() {
|
| if (buildCounterActivityListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1139();
|
| + o.items = buildUnnamed362();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -422,7 +422,7 @@ checkActivityListResponse(api.ActivityListResponse o) {
|
| if (buildCounterActivityListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1139(o.items);
|
| + checkUnnamed362(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -489,6 +489,19 @@ checkCdnSettings(api.CdnSettings o) {
|
| buildCounterCdnSettings--;
|
| }
|
|
|
| +buildUnnamed363() {
|
| + var o = new core.Map<core.String, api.ChannelLocalization>();
|
| + o["x"] = buildChannelLocalization();
|
| + o["y"] = buildChannelLocalization();
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed363(core.Map<core.String, api.ChannelLocalization> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkChannelLocalization(o["x"]);
|
| + checkChannelLocalization(o["y"]);
|
| +}
|
| +
|
| core.int buildCounterChannel = 0;
|
| buildChannel() {
|
| var o = new api.Channel();
|
| @@ -503,6 +516,7 @@ buildChannel() {
|
| o.id = "foo";
|
| o.invideoPromotion = buildInvideoPromotion();
|
| o.kind = "foo";
|
| + o.localizations = buildUnnamed363();
|
| o.snippet = buildChannelSnippet();
|
| o.statistics = buildChannelStatistics();
|
| o.status = buildChannelStatus();
|
| @@ -524,6 +538,7 @@ checkChannel(api.Channel o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkInvideoPromotion(o.invideoPromotion);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed363(o.localizations);
|
| checkChannelSnippet(o.snippet);
|
| checkChannelStatistics(o.statistics);
|
| checkChannelStatus(o.status);
|
| @@ -580,14 +595,14 @@ checkChannelBannerResource(api.ChannelBannerResource o) {
|
| buildCounterChannelBannerResource--;
|
| }
|
|
|
| -buildUnnamed1140() {
|
| +buildUnnamed364() {
|
| var o = new core.List<api.PropertyValue>();
|
| o.add(buildPropertyValue());
|
| o.add(buildPropertyValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1140(core.List<api.PropertyValue> o) {
|
| +checkUnnamed364(core.List<api.PropertyValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPropertyValue(o[0]);
|
| checkPropertyValue(o[1]);
|
| @@ -599,7 +614,7 @@ buildChannelBrandingSettings() {
|
| buildCounterChannelBrandingSettings++;
|
| if (buildCounterChannelBrandingSettings < 3) {
|
| o.channel = buildChannelSettings();
|
| - o.hints = buildUnnamed1140();
|
| + o.hints = buildUnnamed364();
|
| o.image = buildImageSettings();
|
| o.watch = buildWatchSettings();
|
| }
|
| @@ -611,7 +626,7 @@ checkChannelBrandingSettings(api.ChannelBrandingSettings o) {
|
| buildCounterChannelBrandingSettings++;
|
| if (buildCounterChannelBrandingSettings < 3) {
|
| checkChannelSettings(o.channel);
|
| - checkUnnamed1140(o.hints);
|
| + checkUnnamed364(o.hints);
|
| checkImageSettings(o.image);
|
| checkWatchSettings(o.watch);
|
| }
|
| @@ -708,14 +723,14 @@ checkChannelConversionPing(api.ChannelConversionPing o) {
|
| buildCounterChannelConversionPing--;
|
| }
|
|
|
| -buildUnnamed1141() {
|
| +buildUnnamed365() {
|
| var o = new core.List<api.ChannelConversionPing>();
|
| o.add(buildChannelConversionPing());
|
| o.add(buildChannelConversionPing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1141(core.List<api.ChannelConversionPing> o) {
|
| +checkUnnamed365(core.List<api.ChannelConversionPing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChannelConversionPing(o[0]);
|
| checkChannelConversionPing(o[1]);
|
| @@ -726,7 +741,7 @@ buildChannelConversionPings() {
|
| var o = new api.ChannelConversionPings();
|
| buildCounterChannelConversionPings++;
|
| if (buildCounterChannelConversionPings < 3) {
|
| - o.pings = buildUnnamed1141();
|
| + o.pings = buildUnnamed365();
|
| }
|
| buildCounterChannelConversionPings--;
|
| return o;
|
| @@ -735,19 +750,19 @@ buildChannelConversionPings() {
|
| checkChannelConversionPings(api.ChannelConversionPings o) {
|
| buildCounterChannelConversionPings++;
|
| if (buildCounterChannelConversionPings < 3) {
|
| - checkUnnamed1141(o.pings);
|
| + checkUnnamed365(o.pings);
|
| }
|
| buildCounterChannelConversionPings--;
|
| }
|
|
|
| -buildUnnamed1142() {
|
| +buildUnnamed366() {
|
| var o = new core.List<api.Channel>();
|
| o.add(buildChannel());
|
| o.add(buildChannel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1142(core.List<api.Channel> o) {
|
| +checkUnnamed366(core.List<api.Channel> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChannel(o[0]);
|
| checkChannel(o[1]);
|
| @@ -760,7 +775,7 @@ buildChannelListResponse() {
|
| if (buildCounterChannelListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1142();
|
| + o.items = buildUnnamed366();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -777,7 +792,7 @@ checkChannelListResponse(api.ChannelListResponse o) {
|
| if (buildCounterChannelListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1142(o.items);
|
| + checkUnnamed366(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -788,6 +803,27 @@ checkChannelListResponse(api.ChannelListResponse o) {
|
| buildCounterChannelListResponse--;
|
| }
|
|
|
| +core.int buildCounterChannelLocalization = 0;
|
| +buildChannelLocalization() {
|
| + var o = new api.ChannelLocalization();
|
| + buildCounterChannelLocalization++;
|
| + if (buildCounterChannelLocalization < 3) {
|
| + o.description = "foo";
|
| + o.title = "foo";
|
| + }
|
| + buildCounterChannelLocalization--;
|
| + return o;
|
| +}
|
| +
|
| +checkChannelLocalization(api.ChannelLocalization o) {
|
| + buildCounterChannelLocalization++;
|
| + if (buildCounterChannelLocalization < 3) {
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.title, unittest.equals('foo'));
|
| + }
|
| + buildCounterChannelLocalization--;
|
| +}
|
| +
|
| core.int buildCounterChannelSection = 0;
|
| buildChannelSection() {
|
| var o = new api.ChannelSection();
|
| @@ -815,27 +851,27 @@ checkChannelSection(api.ChannelSection o) {
|
| buildCounterChannelSection--;
|
| }
|
|
|
| -buildUnnamed1143() {
|
| +buildUnnamed367() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1143(core.List<core.String> o) {
|
| +checkUnnamed367(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1144() {
|
| +buildUnnamed368() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1144(core.List<core.String> o) {
|
| +checkUnnamed368(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -846,8 +882,8 @@ buildChannelSectionContentDetails() {
|
| var o = new api.ChannelSectionContentDetails();
|
| buildCounterChannelSectionContentDetails++;
|
| if (buildCounterChannelSectionContentDetails < 3) {
|
| - o.channels = buildUnnamed1143();
|
| - o.playlists = buildUnnamed1144();
|
| + o.channels = buildUnnamed367();
|
| + o.playlists = buildUnnamed368();
|
| }
|
| buildCounterChannelSectionContentDetails--;
|
| return o;
|
| @@ -856,20 +892,20 @@ buildChannelSectionContentDetails() {
|
| checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) {
|
| buildCounterChannelSectionContentDetails++;
|
| if (buildCounterChannelSectionContentDetails < 3) {
|
| - checkUnnamed1143(o.channels);
|
| - checkUnnamed1144(o.playlists);
|
| + checkUnnamed367(o.channels);
|
| + checkUnnamed368(o.playlists);
|
| }
|
| buildCounterChannelSectionContentDetails--;
|
| }
|
|
|
| -buildUnnamed1145() {
|
| +buildUnnamed369() {
|
| var o = new core.List<api.ChannelSection>();
|
| o.add(buildChannelSection());
|
| o.add(buildChannelSection());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1145(core.List<api.ChannelSection> o) {
|
| +checkUnnamed369(core.List<api.ChannelSection> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChannelSection(o[0]);
|
| checkChannelSection(o[1]);
|
| @@ -882,7 +918,7 @@ buildChannelSectionListResponse() {
|
| if (buildCounterChannelSectionListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1145();
|
| + o.items = buildUnnamed369();
|
| o.kind = "foo";
|
| o.visitorId = "foo";
|
| }
|
| @@ -895,7 +931,7 @@ checkChannelSectionListResponse(api.ChannelSectionListResponse o) {
|
| if (buildCounterChannelSectionListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1145(o.items);
|
| + checkUnnamed369(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.visitorId, unittest.equals('foo'));
|
| }
|
| @@ -929,14 +965,14 @@ checkChannelSectionSnippet(api.ChannelSectionSnippet o) {
|
| buildCounterChannelSectionSnippet--;
|
| }
|
|
|
| -buildUnnamed1146() {
|
| +buildUnnamed370() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1146(core.List<core.String> o) {
|
| +checkUnnamed370(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -947,10 +983,11 @@ buildChannelSettings() {
|
| var o = new api.ChannelSettings();
|
| buildCounterChannelSettings++;
|
| if (buildCounterChannelSettings < 3) {
|
| + o.defaultLanguage = "foo";
|
| o.defaultTab = "foo";
|
| o.description = "foo";
|
| o.featuredChannelsTitle = "foo";
|
| - o.featuredChannelsUrls = buildUnnamed1146();
|
| + o.featuredChannelsUrls = buildUnnamed370();
|
| o.keywords = "foo";
|
| o.moderateComments = true;
|
| o.profileColor = "foo";
|
| @@ -967,10 +1004,11 @@ buildChannelSettings() {
|
| checkChannelSettings(api.ChannelSettings o) {
|
| buildCounterChannelSettings++;
|
| if (buildCounterChannelSettings < 3) {
|
| + unittest.expect(o.defaultLanguage, unittest.equals('foo'));
|
| unittest.expect(o.defaultTab, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.featuredChannelsTitle, unittest.equals('foo'));
|
| - checkUnnamed1146(o.featuredChannelsUrls);
|
| + checkUnnamed370(o.featuredChannelsUrls);
|
| unittest.expect(o.keywords, unittest.equals('foo'));
|
| unittest.expect(o.moderateComments, unittest.isTrue);
|
| unittest.expect(o.profileColor, unittest.equals('foo'));
|
| @@ -988,7 +1026,9 @@ buildChannelSnippet() {
|
| var o = new api.ChannelSnippet();
|
| buildCounterChannelSnippet++;
|
| if (buildCounterChannelSnippet < 3) {
|
| + o.defaultLanguage = "foo";
|
| o.description = "foo";
|
| + o.localized = buildChannelLocalization();
|
| o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.thumbnails = buildThumbnailDetails();
|
| o.title = "foo";
|
| @@ -1000,7 +1040,9 @@ buildChannelSnippet() {
|
| checkChannelSnippet(api.ChannelSnippet o) {
|
| buildCounterChannelSnippet++;
|
| if (buildCounterChannelSnippet < 3) {
|
| + unittest.expect(o.defaultLanguage, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| + checkChannelLocalization(o.localized);
|
| unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkThumbnailDetails(o.thumbnails);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| @@ -1058,14 +1100,14 @@ checkChannelStatus(api.ChannelStatus o) {
|
| buildCounterChannelStatus--;
|
| }
|
|
|
| -buildUnnamed1147() {
|
| +buildUnnamed371() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1147(core.List<core.String> o) {
|
| +checkUnnamed371(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1076,7 +1118,7 @@ buildChannelTopicDetails() {
|
| var o = new api.ChannelTopicDetails();
|
| buildCounterChannelTopicDetails++;
|
| if (buildCounterChannelTopicDetails < 3) {
|
| - o.topicIds = buildUnnamed1147();
|
| + o.topicIds = buildUnnamed371();
|
| }
|
| buildCounterChannelTopicDetails--;
|
| return o;
|
| @@ -1085,19 +1127,19 @@ buildChannelTopicDetails() {
|
| checkChannelTopicDetails(api.ChannelTopicDetails o) {
|
| buildCounterChannelTopicDetails++;
|
| if (buildCounterChannelTopicDetails < 3) {
|
| - checkUnnamed1147(o.topicIds);
|
| + checkUnnamed371(o.topicIds);
|
| }
|
| buildCounterChannelTopicDetails--;
|
| }
|
|
|
| -buildUnnamed1148() {
|
| +buildUnnamed372() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1148(core.List<core.String> o) {
|
| +checkUnnamed372(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1127,7 +1169,7 @@ buildContentRating() {
|
| o.cscfRating = "foo";
|
| o.czfilmRating = "foo";
|
| o.djctqRating = "foo";
|
| - o.djctqRatingReasons = buildUnnamed1148();
|
| + o.djctqRatingReasons = buildUnnamed372();
|
| o.eefilmRating = "foo";
|
| o.egfilmRating = "foo";
|
| o.eirinRating = "foo";
|
| @@ -1199,7 +1241,7 @@ checkContentRating(api.ContentRating o) {
|
| unittest.expect(o.cscfRating, unittest.equals('foo'));
|
| unittest.expect(o.czfilmRating, unittest.equals('foo'));
|
| unittest.expect(o.djctqRating, unittest.equals('foo'));
|
| - checkUnnamed1148(o.djctqRatingReasons);
|
| + checkUnnamed372(o.djctqRatingReasons);
|
| unittest.expect(o.eefilmRating, unittest.equals('foo'));
|
| unittest.expect(o.egfilmRating, unittest.equals('foo'));
|
| unittest.expect(o.eirinRating, unittest.equals('foo'));
|
| @@ -1296,14 +1338,14 @@ checkGuideCategory(api.GuideCategory o) {
|
| buildCounterGuideCategory--;
|
| }
|
|
|
| -buildUnnamed1149() {
|
| +buildUnnamed373() {
|
| var o = new core.List<api.GuideCategory>();
|
| o.add(buildGuideCategory());
|
| o.add(buildGuideCategory());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1149(core.List<api.GuideCategory> o) {
|
| +checkUnnamed373(core.List<api.GuideCategory> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGuideCategory(o[0]);
|
| checkGuideCategory(o[1]);
|
| @@ -1316,7 +1358,7 @@ buildGuideCategoryListResponse() {
|
| if (buildCounterGuideCategoryListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1149();
|
| + o.items = buildUnnamed373();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -1333,7 +1375,7 @@ checkGuideCategoryListResponse(api.GuideCategoryListResponse o) {
|
| if (buildCounterGuideCategoryListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1149(o.items);
|
| + checkUnnamed373(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -1390,14 +1432,14 @@ checkI18nLanguage(api.I18nLanguage o) {
|
| buildCounterI18nLanguage--;
|
| }
|
|
|
| -buildUnnamed1150() {
|
| +buildUnnamed374() {
|
| var o = new core.List<api.I18nLanguage>();
|
| o.add(buildI18nLanguage());
|
| o.add(buildI18nLanguage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1150(core.List<api.I18nLanguage> o) {
|
| +checkUnnamed374(core.List<api.I18nLanguage> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkI18nLanguage(o[0]);
|
| checkI18nLanguage(o[1]);
|
| @@ -1410,7 +1452,7 @@ buildI18nLanguageListResponse() {
|
| if (buildCounterI18nLanguageListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1150();
|
| + o.items = buildUnnamed374();
|
| o.kind = "foo";
|
| o.visitorId = "foo";
|
| }
|
| @@ -1423,7 +1465,7 @@ checkI18nLanguageListResponse(api.I18nLanguageListResponse o) {
|
| if (buildCounterI18nLanguageListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1150(o.items);
|
| + checkUnnamed374(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.visitorId, unittest.equals('foo'));
|
| }
|
| @@ -1476,14 +1518,14 @@ checkI18nRegion(api.I18nRegion o) {
|
| buildCounterI18nRegion--;
|
| }
|
|
|
| -buildUnnamed1151() {
|
| +buildUnnamed375() {
|
| var o = new core.List<api.I18nRegion>();
|
| o.add(buildI18nRegion());
|
| o.add(buildI18nRegion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1151(core.List<api.I18nRegion> o) {
|
| +checkUnnamed375(core.List<api.I18nRegion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkI18nRegion(o[0]);
|
| checkI18nRegion(o[1]);
|
| @@ -1496,7 +1538,7 @@ buildI18nRegionListResponse() {
|
| if (buildCounterI18nRegionListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1151();
|
| + o.items = buildUnnamed375();
|
| o.kind = "foo";
|
| o.visitorId = "foo";
|
| }
|
| @@ -1509,7 +1551,7 @@ checkI18nRegionListResponse(api.I18nRegionListResponse o) {
|
| if (buildCounterI18nRegionListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1151(o.items);
|
| + checkUnnamed375(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.visitorId, unittest.equals('foo'));
|
| }
|
| @@ -1669,14 +1711,14 @@ checkInvideoPosition(api.InvideoPosition o) {
|
| buildCounterInvideoPosition--;
|
| }
|
|
|
| -buildUnnamed1152() {
|
| +buildUnnamed376() {
|
| var o = new core.List<api.PromotedItem>();
|
| o.add(buildPromotedItem());
|
| o.add(buildPromotedItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1152(core.List<api.PromotedItem> o) {
|
| +checkUnnamed376(core.List<api.PromotedItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPromotedItem(o[0]);
|
| checkPromotedItem(o[1]);
|
| @@ -1688,7 +1730,7 @@ buildInvideoPromotion() {
|
| buildCounterInvideoPromotion++;
|
| if (buildCounterInvideoPromotion < 3) {
|
| o.defaultTiming = buildInvideoTiming();
|
| - o.items = buildUnnamed1152();
|
| + o.items = buildUnnamed376();
|
| o.position = buildInvideoPosition();
|
| o.useSmartTiming = true;
|
| }
|
| @@ -1700,7 +1742,7 @@ checkInvideoPromotion(api.InvideoPromotion o) {
|
| buildCounterInvideoPromotion++;
|
| if (buildCounterInvideoPromotion < 3) {
|
| checkInvideoTiming(o.defaultTiming);
|
| - checkUnnamed1152(o.items);
|
| + checkUnnamed376(o.items);
|
| checkInvideoPosition(o.position);
|
| unittest.expect(o.useSmartTiming, unittest.isTrue);
|
| }
|
| @@ -1730,6 +1772,25 @@ checkInvideoTiming(api.InvideoTiming o) {
|
| buildCounterInvideoTiming--;
|
| }
|
|
|
| +core.int buildCounterLanguageTag = 0;
|
| +buildLanguageTag() {
|
| + var o = new api.LanguageTag();
|
| + buildCounterLanguageTag++;
|
| + if (buildCounterLanguageTag < 3) {
|
| + o.value = "foo";
|
| + }
|
| + buildCounterLanguageTag--;
|
| + return o;
|
| +}
|
| +
|
| +checkLanguageTag(api.LanguageTag o) {
|
| + buildCounterLanguageTag++;
|
| + if (buildCounterLanguageTag < 3) {
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterLanguageTag--;
|
| +}
|
| +
|
| core.int buildCounterLiveBroadcast = 0;
|
| buildLiveBroadcast() {
|
| var o = new api.LiveBroadcast();
|
| @@ -1792,14 +1853,14 @@ checkLiveBroadcastContentDetails(api.LiveBroadcastContentDetails o) {
|
| buildCounterLiveBroadcastContentDetails--;
|
| }
|
|
|
| -buildUnnamed1153() {
|
| +buildUnnamed377() {
|
| var o = new core.List<api.LiveBroadcast>();
|
| o.add(buildLiveBroadcast());
|
| o.add(buildLiveBroadcast());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1153(core.List<api.LiveBroadcast> o) {
|
| +checkUnnamed377(core.List<api.LiveBroadcast> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLiveBroadcast(o[0]);
|
| checkLiveBroadcast(o[1]);
|
| @@ -1812,7 +1873,7 @@ buildLiveBroadcastListResponse() {
|
| if (buildCounterLiveBroadcastListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1153();
|
| + o.items = buildUnnamed377();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -1829,7 +1890,7 @@ checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) {
|
| if (buildCounterLiveBroadcastListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1153(o.items);
|
| + checkUnnamed377(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -1952,14 +2013,14 @@ checkLiveStreamContentDetails(api.LiveStreamContentDetails o) {
|
| buildCounterLiveStreamContentDetails--;
|
| }
|
|
|
| -buildUnnamed1154() {
|
| +buildUnnamed378() {
|
| var o = new core.List<api.LiveStream>();
|
| o.add(buildLiveStream());
|
| o.add(buildLiveStream());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1154(core.List<api.LiveStream> o) {
|
| +checkUnnamed378(core.List<api.LiveStream> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLiveStream(o[0]);
|
| checkLiveStream(o[1]);
|
| @@ -1972,7 +2033,7 @@ buildLiveStreamListResponse() {
|
| if (buildCounterLiveStreamListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1154();
|
| + o.items = buildUnnamed378();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -1989,7 +2050,7 @@ checkLiveStreamListResponse(api.LiveStreamListResponse o) {
|
| if (buildCounterLiveStreamListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1154(o.items);
|
| + checkUnnamed378(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -2044,14 +2105,14 @@ checkLiveStreamStatus(api.LiveStreamStatus o) {
|
| buildCounterLiveStreamStatus--;
|
| }
|
|
|
| -buildUnnamed1155() {
|
| +buildUnnamed379() {
|
| var o = new core.List<api.LocalizedString>();
|
| o.add(buildLocalizedString());
|
| o.add(buildLocalizedString());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1155(core.List<api.LocalizedString> o) {
|
| +checkUnnamed379(core.List<api.LocalizedString> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocalizedString(o[0]);
|
| checkLocalizedString(o[1]);
|
| @@ -2063,7 +2124,8 @@ buildLocalizedProperty() {
|
| buildCounterLocalizedProperty++;
|
| if (buildCounterLocalizedProperty < 3) {
|
| o.default_ = "foo";
|
| - o.localized = buildUnnamed1155();
|
| + o.defaultLanguage = buildLanguageTag();
|
| + o.localized = buildUnnamed379();
|
| }
|
| buildCounterLocalizedProperty--;
|
| return o;
|
| @@ -2073,7 +2135,8 @@ checkLocalizedProperty(api.LocalizedProperty o) {
|
| buildCounterLocalizedProperty++;
|
| if (buildCounterLocalizedProperty < 3) {
|
| unittest.expect(o.default_, unittest.equals('foo'));
|
| - checkUnnamed1155(o.localized);
|
| + checkLanguageTag(o.defaultLanguage);
|
| + checkUnnamed379(o.localized);
|
| }
|
| buildCounterLocalizedProperty--;
|
| }
|
| @@ -2247,14 +2310,14 @@ checkPlaylistItemContentDetails(api.PlaylistItemContentDetails o) {
|
| buildCounterPlaylistItemContentDetails--;
|
| }
|
|
|
| -buildUnnamed1156() {
|
| +buildUnnamed380() {
|
| var o = new core.List<api.PlaylistItem>();
|
| o.add(buildPlaylistItem());
|
| o.add(buildPlaylistItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1156(core.List<api.PlaylistItem> o) {
|
| +checkUnnamed380(core.List<api.PlaylistItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlaylistItem(o[0]);
|
| checkPlaylistItem(o[1]);
|
| @@ -2267,7 +2330,7 @@ buildPlaylistItemListResponse() {
|
| if (buildCounterPlaylistItemListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1156();
|
| + o.items = buildUnnamed380();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -2284,7 +2347,7 @@ checkPlaylistItemListResponse(api.PlaylistItemListResponse o) {
|
| if (buildCounterPlaylistItemListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1156(o.items);
|
| + checkUnnamed380(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -2349,14 +2412,14 @@ checkPlaylistItemStatus(api.PlaylistItemStatus o) {
|
| buildCounterPlaylistItemStatus--;
|
| }
|
|
|
| -buildUnnamed1157() {
|
| +buildUnnamed381() {
|
| var o = new core.List<api.Playlist>();
|
| o.add(buildPlaylist());
|
| o.add(buildPlaylist());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1157(core.List<api.Playlist> o) {
|
| +checkUnnamed381(core.List<api.Playlist> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlaylist(o[0]);
|
| checkPlaylist(o[1]);
|
| @@ -2369,7 +2432,7 @@ buildPlaylistListResponse() {
|
| if (buildCounterPlaylistListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1157();
|
| + o.items = buildUnnamed381();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -2386,7 +2449,7 @@ checkPlaylistListResponse(api.PlaylistListResponse o) {
|
| if (buildCounterPlaylistListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1157(o.items);
|
| + checkUnnamed381(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -2416,14 +2479,14 @@ checkPlaylistPlayer(api.PlaylistPlayer o) {
|
| buildCounterPlaylistPlayer--;
|
| }
|
|
|
| -buildUnnamed1158() {
|
| +buildUnnamed382() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1158(core.List<core.String> o) {
|
| +checkUnnamed382(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -2438,7 +2501,7 @@ buildPlaylistSnippet() {
|
| o.channelTitle = "foo";
|
| o.description = "foo";
|
| o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.tags = buildUnnamed1158();
|
| + o.tags = buildUnnamed382();
|
| o.thumbnails = buildThumbnailDetails();
|
| o.title = "foo";
|
| }
|
| @@ -2453,7 +2516,7 @@ checkPlaylistSnippet(api.PlaylistSnippet o) {
|
| unittest.expect(o.channelTitle, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed1158(o.tags);
|
| + checkUnnamed382(o.tags);
|
| checkThumbnailDetails(o.thumbnails);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| @@ -2575,14 +2638,14 @@ checkResourceId(api.ResourceId o) {
|
| buildCounterResourceId--;
|
| }
|
|
|
| -buildUnnamed1159() {
|
| +buildUnnamed383() {
|
| var o = new core.List<api.SearchResult>();
|
| o.add(buildSearchResult());
|
| o.add(buildSearchResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1159(core.List<api.SearchResult> o) {
|
| +checkUnnamed383(core.List<api.SearchResult> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSearchResult(o[0]);
|
| checkSearchResult(o[1]);
|
| @@ -2595,7 +2658,7 @@ buildSearchListResponse() {
|
| if (buildCounterSearchListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1159();
|
| + o.items = buildUnnamed383();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -2612,7 +2675,7 @@ checkSearchListResponse(api.SearchListResponse o) {
|
| if (buildCounterSearchListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1159(o.items);
|
| + checkUnnamed383(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -2731,14 +2794,14 @@ checkSubscriptionContentDetails(api.SubscriptionContentDetails o) {
|
| buildCounterSubscriptionContentDetails--;
|
| }
|
|
|
| -buildUnnamed1160() {
|
| +buildUnnamed384() {
|
| var o = new core.List<api.Subscription>();
|
| o.add(buildSubscription());
|
| o.add(buildSubscription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1160(core.List<api.Subscription> o) {
|
| +checkUnnamed384(core.List<api.Subscription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSubscription(o[0]);
|
| checkSubscription(o[1]);
|
| @@ -2751,7 +2814,7 @@ buildSubscriptionListResponse() {
|
| if (buildCounterSubscriptionListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1160();
|
| + o.items = buildUnnamed384();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -2768,7 +2831,7 @@ checkSubscriptionListResponse(api.SubscriptionListResponse o) {
|
| if (buildCounterSubscriptionListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1160(o.items);
|
| + checkUnnamed384(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -2885,14 +2948,14 @@ checkThumbnailDetails(api.ThumbnailDetails o) {
|
| buildCounterThumbnailDetails--;
|
| }
|
|
|
| -buildUnnamed1161() {
|
| +buildUnnamed385() {
|
| var o = new core.List<api.ThumbnailDetails>();
|
| o.add(buildThumbnailDetails());
|
| o.add(buildThumbnailDetails());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1161(core.List<api.ThumbnailDetails> o) {
|
| +checkUnnamed385(core.List<api.ThumbnailDetails> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkThumbnailDetails(o[0]);
|
| checkThumbnailDetails(o[1]);
|
| @@ -2905,7 +2968,7 @@ buildThumbnailSetResponse() {
|
| if (buildCounterThumbnailSetResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1161();
|
| + o.items = buildUnnamed385();
|
| o.kind = "foo";
|
| o.visitorId = "foo";
|
| }
|
| @@ -2918,7 +2981,7 @@ checkThumbnailSetResponse(api.ThumbnailSetResponse o) {
|
| if (buildCounterThumbnailSetResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1161(o.items);
|
| + checkUnnamed385(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.visitorId, unittest.equals('foo'));
|
| }
|
| @@ -3043,14 +3106,14 @@ checkVideoCategory(api.VideoCategory o) {
|
| buildCounterVideoCategory--;
|
| }
|
|
|
| -buildUnnamed1162() {
|
| +buildUnnamed386() {
|
| var o = new core.List<api.VideoCategory>();
|
| o.add(buildVideoCategory());
|
| o.add(buildVideoCategory());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1162(core.List<api.VideoCategory> o) {
|
| +checkUnnamed386(core.List<api.VideoCategory> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoCategory(o[0]);
|
| checkVideoCategory(o[1]);
|
| @@ -3063,7 +3126,7 @@ buildVideoCategoryListResponse() {
|
| if (buildCounterVideoCategoryListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1162();
|
| + o.items = buildUnnamed386();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -3080,7 +3143,7 @@ checkVideoCategoryListResponse(api.VideoCategoryListResponse o) {
|
| if (buildCounterVideoCategoryListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1162(o.items);
|
| + checkUnnamed386(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -3147,27 +3210,27 @@ checkVideoContentDetails(api.VideoContentDetails o) {
|
| buildCounterVideoContentDetails--;
|
| }
|
|
|
| -buildUnnamed1163() {
|
| +buildUnnamed387() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1163(core.List<core.String> o) {
|
| +checkUnnamed387(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1164() {
|
| +buildUnnamed388() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1164(core.List<core.String> o) {
|
| +checkUnnamed388(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -3178,8 +3241,8 @@ buildVideoContentDetailsRegionRestriction() {
|
| var o = new api.VideoContentDetailsRegionRestriction();
|
| buildCounterVideoContentDetailsRegionRestriction++;
|
| if (buildCounterVideoContentDetailsRegionRestriction < 3) {
|
| - o.allowed = buildUnnamed1163();
|
| - o.blocked = buildUnnamed1164();
|
| + o.allowed = buildUnnamed387();
|
| + o.blocked = buildUnnamed388();
|
| }
|
| buildCounterVideoContentDetailsRegionRestriction--;
|
| return o;
|
| @@ -3188,8 +3251,8 @@ buildVideoContentDetailsRegionRestriction() {
|
| checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) {
|
| buildCounterVideoContentDetailsRegionRestriction++;
|
| if (buildCounterVideoContentDetailsRegionRestriction < 3) {
|
| - checkUnnamed1163(o.allowed);
|
| - checkUnnamed1164(o.blocked);
|
| + checkUnnamed387(o.allowed);
|
| + checkUnnamed388(o.blocked);
|
| }
|
| buildCounterVideoContentDetailsRegionRestriction--;
|
| }
|
| @@ -3215,14 +3278,14 @@ checkVideoConversionPing(api.VideoConversionPing o) {
|
| buildCounterVideoConversionPing--;
|
| }
|
|
|
| -buildUnnamed1165() {
|
| +buildUnnamed389() {
|
| var o = new core.List<api.VideoConversionPing>();
|
| o.add(buildVideoConversionPing());
|
| o.add(buildVideoConversionPing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1165(core.List<api.VideoConversionPing> o) {
|
| +checkUnnamed389(core.List<api.VideoConversionPing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoConversionPing(o[0]);
|
| checkVideoConversionPing(o[1]);
|
| @@ -3233,7 +3296,7 @@ buildVideoConversionPings() {
|
| var o = new api.VideoConversionPings();
|
| buildCounterVideoConversionPings++;
|
| if (buildCounterVideoConversionPings < 3) {
|
| - o.pings = buildUnnamed1165();
|
| + o.pings = buildUnnamed389();
|
| }
|
| buildCounterVideoConversionPings--;
|
| return o;
|
| @@ -3242,32 +3305,32 @@ buildVideoConversionPings() {
|
| checkVideoConversionPings(api.VideoConversionPings o) {
|
| buildCounterVideoConversionPings++;
|
| if (buildCounterVideoConversionPings < 3) {
|
| - checkUnnamed1165(o.pings);
|
| + checkUnnamed389(o.pings);
|
| }
|
| buildCounterVideoConversionPings--;
|
| }
|
|
|
| -buildUnnamed1166() {
|
| +buildUnnamed390() {
|
| var o = new core.List<api.VideoFileDetailsAudioStream>();
|
| o.add(buildVideoFileDetailsAudioStream());
|
| o.add(buildVideoFileDetailsAudioStream());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1166(core.List<api.VideoFileDetailsAudioStream> o) {
|
| +checkUnnamed390(core.List<api.VideoFileDetailsAudioStream> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoFileDetailsAudioStream(o[0]);
|
| checkVideoFileDetailsAudioStream(o[1]);
|
| }
|
|
|
| -buildUnnamed1167() {
|
| +buildUnnamed391() {
|
| var o = new core.List<api.VideoFileDetailsVideoStream>();
|
| o.add(buildVideoFileDetailsVideoStream());
|
| o.add(buildVideoFileDetailsVideoStream());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1167(core.List<api.VideoFileDetailsVideoStream> o) {
|
| +checkUnnamed391(core.List<api.VideoFileDetailsVideoStream> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoFileDetailsVideoStream(o[0]);
|
| checkVideoFileDetailsVideoStream(o[1]);
|
| @@ -3278,7 +3341,7 @@ buildVideoFileDetails() {
|
| var o = new api.VideoFileDetails();
|
| buildCounterVideoFileDetails++;
|
| if (buildCounterVideoFileDetails < 3) {
|
| - o.audioStreams = buildUnnamed1166();
|
| + o.audioStreams = buildUnnamed390();
|
| o.bitrateBps = "foo";
|
| o.container = "foo";
|
| o.creationTime = "foo";
|
| @@ -3287,7 +3350,7 @@ buildVideoFileDetails() {
|
| o.fileSize = "foo";
|
| o.fileType = "foo";
|
| o.recordingLocation = buildGeoPoint();
|
| - o.videoStreams = buildUnnamed1167();
|
| + o.videoStreams = buildUnnamed391();
|
| }
|
| buildCounterVideoFileDetails--;
|
| return o;
|
| @@ -3296,7 +3359,7 @@ buildVideoFileDetails() {
|
| checkVideoFileDetails(api.VideoFileDetails o) {
|
| buildCounterVideoFileDetails++;
|
| if (buildCounterVideoFileDetails < 3) {
|
| - checkUnnamed1166(o.audioStreams);
|
| + checkUnnamed390(o.audioStreams);
|
| unittest.expect(o.bitrateBps, unittest.equals('foo'));
|
| unittest.expect(o.container, unittest.equals('foo'));
|
| unittest.expect(o.creationTime, unittest.equals('foo'));
|
| @@ -3305,7 +3368,7 @@ checkVideoFileDetails(api.VideoFileDetails o) {
|
| unittest.expect(o.fileSize, unittest.equals('foo'));
|
| unittest.expect(o.fileType, unittest.equals('foo'));
|
| checkGeoPoint(o.recordingLocation);
|
| - checkUnnamed1167(o.videoStreams);
|
| + checkUnnamed391(o.videoStreams);
|
| }
|
| buildCounterVideoFileDetails--;
|
| }
|
| @@ -3368,14 +3431,14 @@ checkVideoFileDetailsVideoStream(api.VideoFileDetailsVideoStream o) {
|
| buildCounterVideoFileDetailsVideoStream--;
|
| }
|
|
|
| -buildUnnamed1168() {
|
| +buildUnnamed392() {
|
| var o = new core.List<api.VideoRating>();
|
| o.add(buildVideoRating());
|
| o.add(buildVideoRating());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1168(core.List<api.VideoRating> o) {
|
| +checkUnnamed392(core.List<api.VideoRating> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoRating(o[0]);
|
| checkVideoRating(o[1]);
|
| @@ -3388,7 +3451,7 @@ buildVideoGetRatingResponse() {
|
| if (buildCounterVideoGetRatingResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1168();
|
| + o.items = buildUnnamed392();
|
| o.kind = "foo";
|
| o.visitorId = "foo";
|
| }
|
| @@ -3401,21 +3464,21 @@ checkVideoGetRatingResponse(api.VideoGetRatingResponse o) {
|
| if (buildCounterVideoGetRatingResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1168(o.items);
|
| + checkUnnamed392(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.visitorId, unittest.equals('foo'));
|
| }
|
| buildCounterVideoGetRatingResponse--;
|
| }
|
|
|
| -buildUnnamed1169() {
|
| +buildUnnamed393() {
|
| var o = new core.List<api.Video>();
|
| o.add(buildVideo());
|
| o.add(buildVideo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1169(core.List<api.Video> o) {
|
| +checkUnnamed393(core.List<api.Video> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideo(o[0]);
|
| checkVideo(o[1]);
|
| @@ -3428,7 +3491,7 @@ buildVideoListResponse() {
|
| if (buildCounterVideoListResponse < 3) {
|
| o.etag = "foo";
|
| o.eventId = "foo";
|
| - o.items = buildUnnamed1169();
|
| + o.items = buildUnnamed393();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.pageInfo = buildPageInfo();
|
| @@ -3445,7 +3508,7 @@ checkVideoListResponse(api.VideoListResponse o) {
|
| if (buildCounterVideoListResponse < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.eventId, unittest.equals('foo'));
|
| - checkUnnamed1169(o.items);
|
| + checkUnnamed393(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| @@ -3577,14 +3640,14 @@ checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
|
| buildCounterVideoProcessingDetailsProcessingProgress--;
|
| }
|
|
|
| -buildUnnamed1170() {
|
| +buildUnnamed394() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1170(core.List<core.String> o) {
|
| +checkUnnamed394(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -3595,7 +3658,7 @@ buildVideoProjectDetails() {
|
| var o = new api.VideoProjectDetails();
|
| buildCounterVideoProjectDetails++;
|
| if (buildCounterVideoProjectDetails < 3) {
|
| - o.tags = buildUnnamed1170();
|
| + o.tags = buildUnnamed394();
|
| }
|
| buildCounterVideoProjectDetails--;
|
| return o;
|
| @@ -3604,7 +3667,7 @@ buildVideoProjectDetails() {
|
| checkVideoProjectDetails(api.VideoProjectDetails o) {
|
| buildCounterVideoProjectDetails++;
|
| if (buildCounterVideoProjectDetails < 3) {
|
| - checkUnnamed1170(o.tags);
|
| + checkUnnamed394(o.tags);
|
| }
|
| buildCounterVideoProjectDetails--;
|
| }
|
| @@ -3653,14 +3716,14 @@ checkVideoRecordingDetails(api.VideoRecordingDetails o) {
|
| buildCounterVideoRecordingDetails--;
|
| }
|
|
|
| -buildUnnamed1171() {
|
| +buildUnnamed395() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1171(core.List<core.String> o) {
|
| +checkUnnamed395(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -3677,7 +3740,7 @@ buildVideoSnippet() {
|
| o.description = "foo";
|
| o.liveBroadcastContent = "foo";
|
| o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.tags = buildUnnamed1171();
|
| + o.tags = buildUnnamed395();
|
| o.thumbnails = buildThumbnailDetails();
|
| o.title = "foo";
|
| }
|
| @@ -3694,7 +3757,7 @@ checkVideoSnippet(api.VideoSnippet o) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.liveBroadcastContent, unittest.equals('foo'));
|
| unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed1171(o.tags);
|
| + checkUnnamed395(o.tags);
|
| checkThumbnailDetails(o.thumbnails);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| @@ -3761,66 +3824,66 @@ checkVideoStatus(api.VideoStatus o) {
|
| buildCounterVideoStatus--;
|
| }
|
|
|
| -buildUnnamed1172() {
|
| +buildUnnamed396() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1172(core.List<core.String> o) {
|
| +checkUnnamed396(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1173() {
|
| +buildUnnamed397() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1173(core.List<core.String> o) {
|
| +checkUnnamed397(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1174() {
|
| +buildUnnamed398() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1174(core.List<core.String> o) {
|
| +checkUnnamed398(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1175() {
|
| +buildUnnamed399() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1175(core.List<core.String> o) {
|
| +checkUnnamed399(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1176() {
|
| +buildUnnamed400() {
|
| var o = new core.List<api.VideoSuggestionsTagSuggestion>();
|
| o.add(buildVideoSuggestionsTagSuggestion());
|
| o.add(buildVideoSuggestionsTagSuggestion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1176(core.List<api.VideoSuggestionsTagSuggestion> o) {
|
| +checkUnnamed400(core.List<api.VideoSuggestionsTagSuggestion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVideoSuggestionsTagSuggestion(o[0]);
|
| checkVideoSuggestionsTagSuggestion(o[1]);
|
| @@ -3831,11 +3894,11 @@ buildVideoSuggestions() {
|
| var o = new api.VideoSuggestions();
|
| buildCounterVideoSuggestions++;
|
| if (buildCounterVideoSuggestions < 3) {
|
| - o.editorSuggestions = buildUnnamed1172();
|
| - o.processingErrors = buildUnnamed1173();
|
| - o.processingHints = buildUnnamed1174();
|
| - o.processingWarnings = buildUnnamed1175();
|
| - o.tagSuggestions = buildUnnamed1176();
|
| + o.editorSuggestions = buildUnnamed396();
|
| + o.processingErrors = buildUnnamed397();
|
| + o.processingHints = buildUnnamed398();
|
| + o.processingWarnings = buildUnnamed399();
|
| + o.tagSuggestions = buildUnnamed400();
|
| }
|
| buildCounterVideoSuggestions--;
|
| return o;
|
| @@ -3844,23 +3907,23 @@ buildVideoSuggestions() {
|
| checkVideoSuggestions(api.VideoSuggestions o) {
|
| buildCounterVideoSuggestions++;
|
| if (buildCounterVideoSuggestions < 3) {
|
| - checkUnnamed1172(o.editorSuggestions);
|
| - checkUnnamed1173(o.processingErrors);
|
| - checkUnnamed1174(o.processingHints);
|
| - checkUnnamed1175(o.processingWarnings);
|
| - checkUnnamed1176(o.tagSuggestions);
|
| + checkUnnamed396(o.editorSuggestions);
|
| + checkUnnamed397(o.processingErrors);
|
| + checkUnnamed398(o.processingHints);
|
| + checkUnnamed399(o.processingWarnings);
|
| + checkUnnamed400(o.tagSuggestions);
|
| }
|
| buildCounterVideoSuggestions--;
|
| }
|
|
|
| -buildUnnamed1177() {
|
| +buildUnnamed401() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1177(core.List<core.String> o) {
|
| +checkUnnamed401(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -3871,7 +3934,7 @@ buildVideoSuggestionsTagSuggestion() {
|
| var o = new api.VideoSuggestionsTagSuggestion();
|
| buildCounterVideoSuggestionsTagSuggestion++;
|
| if (buildCounterVideoSuggestionsTagSuggestion < 3) {
|
| - o.categoryRestricts = buildUnnamed1177();
|
| + o.categoryRestricts = buildUnnamed401();
|
| o.tag = "foo";
|
| }
|
| buildCounterVideoSuggestionsTagSuggestion--;
|
| @@ -3881,33 +3944,33 @@ buildVideoSuggestionsTagSuggestion() {
|
| checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) {
|
| buildCounterVideoSuggestionsTagSuggestion++;
|
| if (buildCounterVideoSuggestionsTagSuggestion < 3) {
|
| - checkUnnamed1177(o.categoryRestricts);
|
| + checkUnnamed401(o.categoryRestricts);
|
| unittest.expect(o.tag, unittest.equals('foo'));
|
| }
|
| buildCounterVideoSuggestionsTagSuggestion--;
|
| }
|
|
|
| -buildUnnamed1178() {
|
| +buildUnnamed402() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1178(core.List<core.String> o) {
|
| +checkUnnamed402(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1179() {
|
| +buildUnnamed403() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1179(core.List<core.String> o) {
|
| +checkUnnamed403(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -3918,8 +3981,8 @@ buildVideoTopicDetails() {
|
| var o = new api.VideoTopicDetails();
|
| buildCounterVideoTopicDetails++;
|
| if (buildCounterVideoTopicDetails < 3) {
|
| - o.relevantTopicIds = buildUnnamed1178();
|
| - o.topicIds = buildUnnamed1179();
|
| + o.relevantTopicIds = buildUnnamed402();
|
| + o.topicIds = buildUnnamed403();
|
| }
|
| buildCounterVideoTopicDetails--;
|
| return o;
|
| @@ -3928,8 +3991,8 @@ buildVideoTopicDetails() {
|
| checkVideoTopicDetails(api.VideoTopicDetails o) {
|
| buildCounterVideoTopicDetails++;
|
| if (buildCounterVideoTopicDetails < 3) {
|
| - checkUnnamed1178(o.relevantTopicIds);
|
| - checkUnnamed1179(o.topicIds);
|
| + checkUnnamed402(o.relevantTopicIds);
|
| + checkUnnamed403(o.topicIds);
|
| }
|
| buildCounterVideoTopicDetails--;
|
| }
|
| @@ -4202,6 +4265,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-ChannelLocalization", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildChannelLocalization();
|
| + var od = new api.ChannelLocalization.fromJson(o.toJson());
|
| + checkChannelLocalization(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-ChannelSection", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildChannelSection();
|
| @@ -4436,6 +4508,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-LanguageTag", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildLanguageTag();
|
| + var od = new api.LanguageTag.fromJson(o.toJson());
|
| + checkLanguageTag(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-LiveBroadcast", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLiveBroadcast();
|
|
|