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

Unified Diff: generated/googleapis/test/youtube/v3_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 56b4d1421a68e77677f06febe5276ea66ca28636..cdbe86d33da9270aefe3dd2cf882a44be82b34f6 100644
--- a/generated/googleapis/test/youtube/v3_test.dart
+++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed477() {
+buildUnnamed481() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed477(core.List<core.String> o) {
+checkUnnamed481(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'));
@@ -70,7 +70,7 @@ buildAccessPolicy() {
buildCounterAccessPolicy++;
if (buildCounterAccessPolicy < 3) {
o.allowed = true;
- o.exception = buildUnnamed477();
+ o.exception = buildUnnamed481();
}
buildCounterAccessPolicy--;
return o;
@@ -80,7 +80,7 @@ checkAccessPolicy(api.AccessPolicy o) {
buildCounterAccessPolicy++;
if (buildCounterAccessPolicy < 3) {
unittest.expect(o.allowed, unittest.isTrue);
- checkUnnamed477(o.exception);
+ checkUnnamed481(o.exception);
}
buildCounterAccessPolicy--;
}
@@ -269,27 +269,27 @@ checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
buildCounterActivityContentDetailsPlaylistItem--;
}
-buildUnnamed478() {
+buildUnnamed482() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed478(core.List<core.String> o) {
+checkUnnamed482(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'));
}
-buildUnnamed479() {
+buildUnnamed483() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed479(core.List<core.String> o) {
+checkUnnamed483(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'));
@@ -307,8 +307,8 @@ buildActivityContentDetailsPromotedItem() {
o.customCtaButtonText = "foo";
o.descriptionText = "foo";
o.destinationUrl = "foo";
- o.forecastingUrl = buildUnnamed478();
- o.impressionUrl = buildUnnamed479();
+ o.forecastingUrl = buildUnnamed482();
+ o.impressionUrl = buildUnnamed483();
o.videoId = "foo";
}
buildCounterActivityContentDetailsPromotedItem--;
@@ -325,8 +325,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'));
- checkUnnamed478(o.forecastingUrl);
- checkUnnamed479(o.impressionUrl);
+ checkUnnamed482(o.forecastingUrl);
+ checkUnnamed483(o.impressionUrl);
unittest.expect(o.videoId, unittest.equals('foo'));
}
buildCounterActivityContentDetailsPromotedItem--;
@@ -420,14 +420,14 @@ checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) {
buildCounterActivityContentDetailsUpload--;
}
-buildUnnamed480() {
+buildUnnamed484() {
var o = new core.List<api.Activity>();
o.add(buildActivity());
o.add(buildActivity());
return o;
}
-checkUnnamed480(core.List<api.Activity> o) {
+checkUnnamed484(core.List<api.Activity> o) {
unittest.expect(o, unittest.hasLength(2));
checkActivity(o[0]);
checkActivity(o[1]);
@@ -440,7 +440,7 @@ buildActivityListResponse() {
if (buildCounterActivityListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed480();
+ o.items = buildUnnamed484();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -457,7 +457,7 @@ checkActivityListResponse(api.ActivityListResponse o) {
if (buildCounterActivityListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed480(o.items);
+ checkUnnamed484(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -526,14 +526,14 @@ checkCaption(api.Caption o) {
buildCounterCaption--;
}
-buildUnnamed481() {
+buildUnnamed485() {
var o = new core.List<api.Caption>();
o.add(buildCaption());
o.add(buildCaption());
return o;
}
-checkUnnamed481(core.List<api.Caption> o) {
+checkUnnamed485(core.List<api.Caption> o) {
unittest.expect(o, unittest.hasLength(2));
checkCaption(o[0]);
checkCaption(o[1]);
@@ -546,7 +546,7 @@ buildCaptionListResponse() {
if (buildCounterCaptionListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed481();
+ o.items = buildUnnamed485();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -559,7 +559,7 @@ checkCaptionListResponse(api.CaptionListResponse o) {
if (buildCounterCaptionListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed481(o.items);
+ checkUnnamed485(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
@@ -636,14 +636,14 @@ checkCdnSettings(api.CdnSettings o) {
buildCounterCdnSettings--;
}
-buildUnnamed482() {
+buildUnnamed486() {
var o = new core.Map<core.String, api.ChannelLocalization>();
o["x"] = buildChannelLocalization();
o["y"] = buildChannelLocalization();
return o;
}
-checkUnnamed482(core.Map<core.String, api.ChannelLocalization> o) {
+checkUnnamed486(core.Map<core.String, api.ChannelLocalization> o) {
unittest.expect(o, unittest.hasLength(2));
checkChannelLocalization(o["x"]);
checkChannelLocalization(o["y"]);
@@ -663,7 +663,7 @@ buildChannel() {
o.id = "foo";
o.invideoPromotion = buildInvideoPromotion();
o.kind = "foo";
- o.localizations = buildUnnamed482();
+ o.localizations = buildUnnamed486();
o.snippet = buildChannelSnippet();
o.statistics = buildChannelStatistics();
o.status = buildChannelStatus();
@@ -685,7 +685,7 @@ checkChannel(api.Channel o) {
unittest.expect(o.id, unittest.equals('foo'));
checkInvideoPromotion(o.invideoPromotion);
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed482(o.localizations);
+ checkUnnamed486(o.localizations);
checkChannelSnippet(o.snippet);
checkChannelStatistics(o.statistics);
checkChannelStatus(o.status);
@@ -742,14 +742,14 @@ checkChannelBannerResource(api.ChannelBannerResource o) {
buildCounterChannelBannerResource--;
}
-buildUnnamed483() {
+buildUnnamed487() {
var o = new core.List<api.PropertyValue>();
o.add(buildPropertyValue());
o.add(buildPropertyValue());
return o;
}
-checkUnnamed483(core.List<api.PropertyValue> o) {
+checkUnnamed487(core.List<api.PropertyValue> o) {
unittest.expect(o, unittest.hasLength(2));
checkPropertyValue(o[0]);
checkPropertyValue(o[1]);
@@ -761,7 +761,7 @@ buildChannelBrandingSettings() {
buildCounterChannelBrandingSettings++;
if (buildCounterChannelBrandingSettings < 3) {
o.channel = buildChannelSettings();
- o.hints = buildUnnamed483();
+ o.hints = buildUnnamed487();
o.image = buildImageSettings();
o.watch = buildWatchSettings();
}
@@ -773,7 +773,7 @@ checkChannelBrandingSettings(api.ChannelBrandingSettings o) {
buildCounterChannelBrandingSettings++;
if (buildCounterChannelBrandingSettings < 3) {
checkChannelSettings(o.channel);
- checkUnnamed483(o.hints);
+ checkUnnamed487(o.hints);
checkImageSettings(o.image);
checkWatchSettings(o.watch);
}
@@ -868,14 +868,14 @@ checkChannelConversionPing(api.ChannelConversionPing o) {
buildCounterChannelConversionPing--;
}
-buildUnnamed484() {
+buildUnnamed488() {
var o = new core.List<api.ChannelConversionPing>();
o.add(buildChannelConversionPing());
o.add(buildChannelConversionPing());
return o;
}
-checkUnnamed484(core.List<api.ChannelConversionPing> o) {
+checkUnnamed488(core.List<api.ChannelConversionPing> o) {
unittest.expect(o, unittest.hasLength(2));
checkChannelConversionPing(o[0]);
checkChannelConversionPing(o[1]);
@@ -886,7 +886,7 @@ buildChannelConversionPings() {
var o = new api.ChannelConversionPings();
buildCounterChannelConversionPings++;
if (buildCounterChannelConversionPings < 3) {
- o.pings = buildUnnamed484();
+ o.pings = buildUnnamed488();
}
buildCounterChannelConversionPings--;
return o;
@@ -895,19 +895,19 @@ buildChannelConversionPings() {
checkChannelConversionPings(api.ChannelConversionPings o) {
buildCounterChannelConversionPings++;
if (buildCounterChannelConversionPings < 3) {
- checkUnnamed484(o.pings);
+ checkUnnamed488(o.pings);
}
buildCounterChannelConversionPings--;
}
-buildUnnamed485() {
+buildUnnamed489() {
var o = new core.List<api.Channel>();
o.add(buildChannel());
o.add(buildChannel());
return o;
}
-checkUnnamed485(core.List<api.Channel> o) {
+checkUnnamed489(core.List<api.Channel> o) {
unittest.expect(o, unittest.hasLength(2));
checkChannel(o[0]);
checkChannel(o[1]);
@@ -920,7 +920,7 @@ buildChannelListResponse() {
if (buildCounterChannelListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed485();
+ o.items = buildUnnamed489();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -937,7 +937,7 @@ checkChannelListResponse(api.ChannelListResponse o) {
if (buildCounterChannelListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed485(o.items);
+ checkUnnamed489(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -994,14 +994,14 @@ checkChannelProfileDetails(api.ChannelProfileDetails o) {
buildCounterChannelProfileDetails--;
}
-buildUnnamed486() {
+buildUnnamed490() {
var o = new core.Map<core.String, api.ChannelSectionLocalization>();
o["x"] = buildChannelSectionLocalization();
o["y"] = buildChannelSectionLocalization();
return o;
}
-checkUnnamed486(core.Map<core.String, api.ChannelSectionLocalization> o) {
+checkUnnamed490(core.Map<core.String, api.ChannelSectionLocalization> o) {
unittest.expect(o, unittest.hasLength(2));
checkChannelSectionLocalization(o["x"]);
checkChannelSectionLocalization(o["y"]);
@@ -1016,7 +1016,7 @@ buildChannelSection() {
o.etag = "foo";
o.id = "foo";
o.kind = "foo";
- o.localizations = buildUnnamed486();
+ o.localizations = buildUnnamed490();
o.snippet = buildChannelSectionSnippet();
o.targeting = buildChannelSectionTargeting();
}
@@ -1031,34 +1031,34 @@ checkChannelSection(api.ChannelSection o) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed486(o.localizations);
+ checkUnnamed490(o.localizations);
checkChannelSectionSnippet(o.snippet);
checkChannelSectionTargeting(o.targeting);
}
buildCounterChannelSection--;
}
-buildUnnamed487() {
+buildUnnamed491() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed487(core.List<core.String> o) {
+checkUnnamed491(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'));
}
-buildUnnamed488() {
+buildUnnamed492() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed488(core.List<core.String> o) {
+checkUnnamed492(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'));
@@ -1069,8 +1069,8 @@ buildChannelSectionContentDetails() {
var o = new api.ChannelSectionContentDetails();
buildCounterChannelSectionContentDetails++;
if (buildCounterChannelSectionContentDetails < 3) {
- o.channels = buildUnnamed487();
- o.playlists = buildUnnamed488();
+ o.channels = buildUnnamed491();
+ o.playlists = buildUnnamed492();
}
buildCounterChannelSectionContentDetails--;
return o;
@@ -1079,20 +1079,20 @@ buildChannelSectionContentDetails() {
checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) {
buildCounterChannelSectionContentDetails++;
if (buildCounterChannelSectionContentDetails < 3) {
- checkUnnamed487(o.channels);
- checkUnnamed488(o.playlists);
+ checkUnnamed491(o.channels);
+ checkUnnamed492(o.playlists);
}
buildCounterChannelSectionContentDetails--;
}
-buildUnnamed489() {
+buildUnnamed493() {
var o = new core.List<api.ChannelSection>();
o.add(buildChannelSection());
o.add(buildChannelSection());
return o;
}
-checkUnnamed489(core.List<api.ChannelSection> o) {
+checkUnnamed493(core.List<api.ChannelSection> o) {
unittest.expect(o, unittest.hasLength(2));
checkChannelSection(o[0]);
checkChannelSection(o[1]);
@@ -1105,7 +1105,7 @@ buildChannelSectionListResponse() {
if (buildCounterChannelSectionListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed489();
+ o.items = buildUnnamed493();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -1118,7 +1118,7 @@ checkChannelSectionListResponse(api.ChannelSectionListResponse o) {
if (buildCounterChannelSectionListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed489(o.items);
+ checkUnnamed493(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
@@ -1175,40 +1175,40 @@ checkChannelSectionSnippet(api.ChannelSectionSnippet o) {
buildCounterChannelSectionSnippet--;
}
-buildUnnamed490() {
+buildUnnamed494() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed490(core.List<core.String> o) {
+checkUnnamed494(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'));
}
-buildUnnamed491() {
+buildUnnamed495() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed491(core.List<core.String> o) {
+checkUnnamed495(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'));
}
-buildUnnamed492() {
+buildUnnamed496() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed492(core.List<core.String> o) {
+checkUnnamed496(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'));
@@ -1219,9 +1219,9 @@ buildChannelSectionTargeting() {
var o = new api.ChannelSectionTargeting();
buildCounterChannelSectionTargeting++;
if (buildCounterChannelSectionTargeting < 3) {
- o.countries = buildUnnamed490();
- o.languages = buildUnnamed491();
- o.regions = buildUnnamed492();
+ o.countries = buildUnnamed494();
+ o.languages = buildUnnamed495();
+ o.regions = buildUnnamed496();
}
buildCounterChannelSectionTargeting--;
return o;
@@ -1230,21 +1230,21 @@ buildChannelSectionTargeting() {
checkChannelSectionTargeting(api.ChannelSectionTargeting o) {
buildCounterChannelSectionTargeting++;
if (buildCounterChannelSectionTargeting < 3) {
- checkUnnamed490(o.countries);
- checkUnnamed491(o.languages);
- checkUnnamed492(o.regions);
+ checkUnnamed494(o.countries);
+ checkUnnamed495(o.languages);
+ checkUnnamed496(o.regions);
}
buildCounterChannelSectionTargeting--;
}
-buildUnnamed493() {
+buildUnnamed497() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed493(core.List<core.String> o) {
+checkUnnamed497(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'));
@@ -1260,7 +1260,7 @@ buildChannelSettings() {
o.defaultTab = "foo";
o.description = "foo";
o.featuredChannelsTitle = "foo";
- o.featuredChannelsUrls = buildUnnamed493();
+ o.featuredChannelsUrls = buildUnnamed497();
o.keywords = "foo";
o.moderateComments = true;
o.profileColor = "foo";
@@ -1282,7 +1282,7 @@ checkChannelSettings(api.ChannelSettings o) {
unittest.expect(o.defaultTab, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.featuredChannelsTitle, unittest.equals('foo'));
- checkUnnamed493(o.featuredChannelsUrls);
+ checkUnnamed497(o.featuredChannelsUrls);
unittest.expect(o.keywords, unittest.equals('foo'));
unittest.expect(o.moderateComments, unittest.isTrue);
unittest.expect(o.profileColor, unittest.equals('foo'));
@@ -1378,14 +1378,27 @@ checkChannelStatus(api.ChannelStatus o) {
buildCounterChannelStatus--;
}
-buildUnnamed494() {
+buildUnnamed498() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed494(core.List<core.String> o) {
+checkUnnamed498(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'));
+}
+
+buildUnnamed499() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed499(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'));
@@ -1396,7 +1409,8 @@ buildChannelTopicDetails() {
var o = new api.ChannelTopicDetails();
buildCounterChannelTopicDetails++;
if (buildCounterChannelTopicDetails < 3) {
- o.topicIds = buildUnnamed494();
+ o.topicCategories = buildUnnamed498();
+ o.topicIds = buildUnnamed499();
}
buildCounterChannelTopicDetails--;
return o;
@@ -1405,7 +1419,8 @@ buildChannelTopicDetails() {
checkChannelTopicDetails(api.ChannelTopicDetails o) {
buildCounterChannelTopicDetails++;
if (buildCounterChannelTopicDetails < 3) {
- checkUnnamed494(o.topicIds);
+ checkUnnamed498(o.topicCategories);
+ checkUnnamed499(o.topicIds);
}
buildCounterChannelTopicDetails--;
}
@@ -1435,14 +1450,14 @@ checkComment(api.Comment o) {
buildCounterComment--;
}
-buildUnnamed495() {
+buildUnnamed500() {
var o = new core.List<api.Comment>();
o.add(buildComment());
o.add(buildComment());
return o;
}
-checkUnnamed495(core.List<api.Comment> o) {
+checkUnnamed500(core.List<api.Comment> o) {
unittest.expect(o, unittest.hasLength(2));
checkComment(o[0]);
checkComment(o[1]);
@@ -1455,7 +1470,7 @@ buildCommentListResponse() {
if (buildCounterCommentListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed495();
+ o.items = buildUnnamed500();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -1471,7 +1486,7 @@ checkCommentListResponse(api.CommentListResponse o) {
if (buildCounterCommentListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed495(o.items);
+ checkUnnamed500(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -1555,14 +1570,14 @@ checkCommentThread(api.CommentThread o) {
buildCounterCommentThread--;
}
-buildUnnamed496() {
+buildUnnamed501() {
var o = new core.List<api.CommentThread>();
o.add(buildCommentThread());
o.add(buildCommentThread());
return o;
}
-checkUnnamed496(core.List<api.CommentThread> o) {
+checkUnnamed501(core.List<api.CommentThread> o) {
unittest.expect(o, unittest.hasLength(2));
checkCommentThread(o[0]);
checkCommentThread(o[1]);
@@ -1575,7 +1590,7 @@ buildCommentThreadListResponse() {
if (buildCounterCommentThreadListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed496();
+ o.items = buildUnnamed501();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -1591,7 +1606,7 @@ checkCommentThreadListResponse(api.CommentThreadListResponse o) {
if (buildCounterCommentThreadListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed496(o.items);
+ checkUnnamed501(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -1601,14 +1616,14 @@ checkCommentThreadListResponse(api.CommentThreadListResponse o) {
buildCounterCommentThreadListResponse--;
}
-buildUnnamed497() {
+buildUnnamed502() {
var o = new core.List<api.Comment>();
o.add(buildComment());
o.add(buildComment());
return o;
}
-checkUnnamed497(core.List<api.Comment> o) {
+checkUnnamed502(core.List<api.Comment> o) {
unittest.expect(o, unittest.hasLength(2));
checkComment(o[0]);
checkComment(o[1]);
@@ -1619,7 +1634,7 @@ buildCommentThreadReplies() {
var o = new api.CommentThreadReplies();
buildCounterCommentThreadReplies++;
if (buildCounterCommentThreadReplies < 3) {
- o.comments = buildUnnamed497();
+ o.comments = buildUnnamed502();
}
buildCounterCommentThreadReplies--;
return o;
@@ -1628,7 +1643,7 @@ buildCommentThreadReplies() {
checkCommentThreadReplies(api.CommentThreadReplies o) {
buildCounterCommentThreadReplies++;
if (buildCounterCommentThreadReplies < 3) {
- checkUnnamed497(o.comments);
+ checkUnnamed502(o.comments);
}
buildCounterCommentThreadReplies--;
}
@@ -1662,27 +1677,27 @@ checkCommentThreadSnippet(api.CommentThreadSnippet o) {
buildCounterCommentThreadSnippet--;
}
-buildUnnamed498() {
+buildUnnamed503() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed498(core.List<core.String> o) {
+checkUnnamed503(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'));
}
-buildUnnamed499() {
+buildUnnamed504() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed499(core.List<core.String> o) {
+checkUnnamed504(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'));
@@ -1713,7 +1728,7 @@ buildContentRating() {
o.cscfRating = "foo";
o.czfilmRating = "foo";
o.djctqRating = "foo";
- o.djctqRatingReasons = buildUnnamed498();
+ o.djctqRatingReasons = buildUnnamed503();
o.ecbmctRating = "foo";
o.eefilmRating = "foo";
o.egfilmRating = "foo";
@@ -1722,7 +1737,7 @@ buildContentRating() {
o.fcoRating = "foo";
o.fmocRating = "foo";
o.fpbRating = "foo";
- o.fpbRatingReasons = buildUnnamed499();
+ o.fpbRatingReasons = buildUnnamed504();
o.fskRating = "foo";
o.grfilmRating = "foo";
o.icaaRating = "foo";
@@ -1789,7 +1804,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'));
- checkUnnamed498(o.djctqRatingReasons);
+ checkUnnamed503(o.djctqRatingReasons);
unittest.expect(o.ecbmctRating, unittest.equals('foo'));
unittest.expect(o.eefilmRating, unittest.equals('foo'));
unittest.expect(o.egfilmRating, unittest.equals('foo'));
@@ -1798,7 +1813,7 @@ checkContentRating(api.ContentRating o) {
unittest.expect(o.fcoRating, unittest.equals('foo'));
unittest.expect(o.fmocRating, unittest.equals('foo'));
unittest.expect(o.fpbRating, unittest.equals('foo'));
- checkUnnamed499(o.fpbRatingReasons);
+ checkUnnamed504(o.fpbRatingReasons);
unittest.expect(o.fskRating, unittest.equals('foo'));
unittest.expect(o.grfilmRating, unittest.equals('foo'));
unittest.expect(o.icaaRating, unittest.equals('foo'));
@@ -1866,14 +1881,14 @@ checkFanFundingEvent(api.FanFundingEvent o) {
buildCounterFanFundingEvent--;
}
-buildUnnamed500() {
+buildUnnamed505() {
var o = new core.List<api.FanFundingEvent>();
o.add(buildFanFundingEvent());
o.add(buildFanFundingEvent());
return o;
}
-checkUnnamed500(core.List<api.FanFundingEvent> o) {
+checkUnnamed505(core.List<api.FanFundingEvent> o) {
unittest.expect(o, unittest.hasLength(2));
checkFanFundingEvent(o[0]);
checkFanFundingEvent(o[1]);
@@ -1886,7 +1901,7 @@ buildFanFundingEventListResponse() {
if (buildCounterFanFundingEventListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed500();
+ o.items = buildUnnamed505();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -1902,7 +1917,7 @@ checkFanFundingEventListResponse(api.FanFundingEventListResponse o) {
if (buildCounterFanFundingEventListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed500(o.items);
+ checkUnnamed505(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -1991,14 +2006,14 @@ checkGuideCategory(api.GuideCategory o) {
buildCounterGuideCategory--;
}
-buildUnnamed501() {
+buildUnnamed506() {
var o = new core.List<api.GuideCategory>();
o.add(buildGuideCategory());
o.add(buildGuideCategory());
return o;
}
-checkUnnamed501(core.List<api.GuideCategory> o) {
+checkUnnamed506(core.List<api.GuideCategory> o) {
unittest.expect(o, unittest.hasLength(2));
checkGuideCategory(o[0]);
checkGuideCategory(o[1]);
@@ -2011,7 +2026,7 @@ buildGuideCategoryListResponse() {
if (buildCounterGuideCategoryListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed501();
+ o.items = buildUnnamed506();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -2028,7 +2043,7 @@ checkGuideCategoryListResponse(api.GuideCategoryListResponse o) {
if (buildCounterGuideCategoryListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed501(o.items);
+ checkUnnamed506(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -2085,14 +2100,14 @@ checkI18nLanguage(api.I18nLanguage o) {
buildCounterI18nLanguage--;
}
-buildUnnamed502() {
+buildUnnamed507() {
var o = new core.List<api.I18nLanguage>();
o.add(buildI18nLanguage());
o.add(buildI18nLanguage());
return o;
}
-checkUnnamed502(core.List<api.I18nLanguage> o) {
+checkUnnamed507(core.List<api.I18nLanguage> o) {
unittest.expect(o, unittest.hasLength(2));
checkI18nLanguage(o[0]);
checkI18nLanguage(o[1]);
@@ -2105,7 +2120,7 @@ buildI18nLanguageListResponse() {
if (buildCounterI18nLanguageListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed502();
+ o.items = buildUnnamed507();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -2118,7 +2133,7 @@ checkI18nLanguageListResponse(api.I18nLanguageListResponse o) {
if (buildCounterI18nLanguageListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed502(o.items);
+ checkUnnamed507(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
@@ -2171,14 +2186,14 @@ checkI18nRegion(api.I18nRegion o) {
buildCounterI18nRegion--;
}
-buildUnnamed503() {
+buildUnnamed508() {
var o = new core.List<api.I18nRegion>();
o.add(buildI18nRegion());
o.add(buildI18nRegion());
return o;
}
-checkUnnamed503(core.List<api.I18nRegion> o) {
+checkUnnamed508(core.List<api.I18nRegion> o) {
unittest.expect(o, unittest.hasLength(2));
checkI18nRegion(o[0]);
checkI18nRegion(o[1]);
@@ -2191,7 +2206,7 @@ buildI18nRegionListResponse() {
if (buildCounterI18nRegionListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed503();
+ o.items = buildUnnamed508();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -2204,7 +2219,7 @@ checkI18nRegionListResponse(api.I18nRegionListResponse o) {
if (buildCounterI18nRegionListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed503(o.items);
+ checkUnnamed508(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
@@ -2364,14 +2379,14 @@ checkInvideoPosition(api.InvideoPosition o) {
buildCounterInvideoPosition--;
}
-buildUnnamed504() {
+buildUnnamed509() {
var o = new core.List<api.PromotedItem>();
o.add(buildPromotedItem());
o.add(buildPromotedItem());
return o;
}
-checkUnnamed504(core.List<api.PromotedItem> o) {
+checkUnnamed509(core.List<api.PromotedItem> o) {
unittest.expect(o, unittest.hasLength(2));
checkPromotedItem(o[0]);
checkPromotedItem(o[1]);
@@ -2383,7 +2398,7 @@ buildInvideoPromotion() {
buildCounterInvideoPromotion++;
if (buildCounterInvideoPromotion < 3) {
o.defaultTiming = buildInvideoTiming();
- o.items = buildUnnamed504();
+ o.items = buildUnnamed509();
o.position = buildInvideoPosition();
o.useSmartTiming = true;
}
@@ -2395,7 +2410,7 @@ checkInvideoPromotion(api.InvideoPromotion o) {
buildCounterInvideoPromotion++;
if (buildCounterInvideoPromotion < 3) {
checkInvideoTiming(o.defaultTiming);
- checkUnnamed504(o.items);
+ checkUnnamed509(o.items);
checkInvideoPosition(o.position);
unittest.expect(o.useSmartTiming, unittest.isTrue);
}
@@ -2518,14 +2533,14 @@ checkLiveBroadcastContentDetails(api.LiveBroadcastContentDetails o) {
buildCounterLiveBroadcastContentDetails--;
}
-buildUnnamed505() {
+buildUnnamed510() {
var o = new core.List<api.LiveBroadcast>();
o.add(buildLiveBroadcast());
o.add(buildLiveBroadcast());
return o;
}
-checkUnnamed505(core.List<api.LiveBroadcast> o) {
+checkUnnamed510(core.List<api.LiveBroadcast> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveBroadcast(o[0]);
checkLiveBroadcast(o[1]);
@@ -2538,7 +2553,7 @@ buildLiveBroadcastListResponse() {
if (buildCounterLiveBroadcastListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed505();
+ o.items = buildUnnamed510();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -2555,7 +2570,7 @@ checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) {
if (buildCounterLiveBroadcastListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed505(o.items);
+ checkUnnamed510(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -2674,14 +2689,14 @@ checkLiveBroadcastTopic(api.LiveBroadcastTopic o) {
buildCounterLiveBroadcastTopic--;
}
-buildUnnamed506() {
+buildUnnamed511() {
var o = new core.List<api.LiveBroadcastTopic>();
o.add(buildLiveBroadcastTopic());
o.add(buildLiveBroadcastTopic());
return o;
}
-checkUnnamed506(core.List<api.LiveBroadcastTopic> o) {
+checkUnnamed511(core.List<api.LiveBroadcastTopic> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveBroadcastTopic(o[0]);
checkLiveBroadcastTopic(o[1]);
@@ -2692,7 +2707,7 @@ buildLiveBroadcastTopicDetails() {
var o = new api.LiveBroadcastTopicDetails();
buildCounterLiveBroadcastTopicDetails++;
if (buildCounterLiveBroadcastTopicDetails < 3) {
- o.topics = buildUnnamed506();
+ o.topics = buildUnnamed511();
}
buildCounterLiveBroadcastTopicDetails--;
return o;
@@ -2701,7 +2716,7 @@ buildLiveBroadcastTopicDetails() {
checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) {
buildCounterLiveBroadcastTopicDetails++;
if (buildCounterLiveBroadcastTopicDetails < 3) {
- checkUnnamed506(o.topics);
+ checkUnnamed511(o.topics);
}
buildCounterLiveBroadcastTopicDetails--;
}
@@ -2881,14 +2896,14 @@ checkLiveChatMessageDeletedDetails(api.LiveChatMessageDeletedDetails o) {
buildCounterLiveChatMessageDeletedDetails--;
}
-buildUnnamed507() {
+buildUnnamed512() {
var o = new core.List<api.LiveChatMessage>();
o.add(buildLiveChatMessage());
o.add(buildLiveChatMessage());
return o;
}
-checkUnnamed507(core.List<api.LiveChatMessage> o) {
+checkUnnamed512(core.List<api.LiveChatMessage> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveChatMessage(o[0]);
checkLiveChatMessage(o[1]);
@@ -2901,7 +2916,7 @@ buildLiveChatMessageListResponse() {
if (buildCounterLiveChatMessageListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed507();
+ o.items = buildUnnamed512();
o.kind = "foo";
o.nextPageToken = "foo";
o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02");
@@ -2919,7 +2934,7 @@ checkLiveChatMessageListResponse(api.LiveChatMessageListResponse o) {
if (buildCounterLiveChatMessageListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed507(o.items);
+ checkUnnamed512(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
@@ -2967,6 +2982,7 @@ buildLiveChatMessageSnippet() {
o.pollOpenedDetails = buildLiveChatPollOpenedDetails();
o.pollVotedDetails = buildLiveChatPollVotedDetails();
o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
+ o.superChatDetails = buildLiveChatSuperChatDetails();
o.textMessageDetails = buildLiveChatTextMessageDetails();
o.type = "foo";
o.userBannedDetails = buildLiveChatUserBannedMessageDetails();
@@ -2990,6 +3006,7 @@ checkLiveChatMessageSnippet(api.LiveChatMessageSnippet o) {
checkLiveChatPollOpenedDetails(o.pollOpenedDetails);
checkLiveChatPollVotedDetails(o.pollVotedDetails);
unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
+ checkLiveChatSuperChatDetails(o.superChatDetails);
checkLiveChatTextMessageDetails(o.textMessageDetails);
unittest.expect(o.type, unittest.equals('foo'));
checkLiveChatUserBannedMessageDetails(o.userBannedDetails);
@@ -3022,14 +3039,14 @@ checkLiveChatModerator(api.LiveChatModerator o) {
buildCounterLiveChatModerator--;
}
-buildUnnamed508() {
+buildUnnamed513() {
var o = new core.List<api.LiveChatModerator>();
o.add(buildLiveChatModerator());
o.add(buildLiveChatModerator());
return o;
}
-checkUnnamed508(core.List<api.LiveChatModerator> o) {
+checkUnnamed513(core.List<api.LiveChatModerator> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveChatModerator(o[0]);
checkLiveChatModerator(o[1]);
@@ -3042,7 +3059,7 @@ buildLiveChatModeratorListResponse() {
if (buildCounterLiveChatModeratorListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed508();
+ o.items = buildUnnamed513();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -3059,7 +3076,7 @@ checkLiveChatModeratorListResponse(api.LiveChatModeratorListResponse o) {
if (buildCounterLiveChatModeratorListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed508(o.items);
+ checkUnnamed513(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -3110,14 +3127,14 @@ checkLiveChatPollClosedDetails(api.LiveChatPollClosedDetails o) {
buildCounterLiveChatPollClosedDetails--;
}
-buildUnnamed509() {
+buildUnnamed514() {
var o = new core.List<api.LiveChatPollItem>();
o.add(buildLiveChatPollItem());
o.add(buildLiveChatPollItem());
return o;
}
-checkUnnamed509(core.List<api.LiveChatPollItem> o) {
+checkUnnamed514(core.List<api.LiveChatPollItem> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveChatPollItem(o[0]);
checkLiveChatPollItem(o[1]);
@@ -3129,7 +3146,7 @@ buildLiveChatPollEditedDetails() {
buildCounterLiveChatPollEditedDetails++;
if (buildCounterLiveChatPollEditedDetails < 3) {
o.id = "foo";
- o.items = buildUnnamed509();
+ o.items = buildUnnamed514();
o.prompt = "foo";
}
buildCounterLiveChatPollEditedDetails--;
@@ -3140,7 +3157,7 @@ checkLiveChatPollEditedDetails(api.LiveChatPollEditedDetails o) {
buildCounterLiveChatPollEditedDetails++;
if (buildCounterLiveChatPollEditedDetails < 3) {
unittest.expect(o.id, unittest.equals('foo'));
- checkUnnamed509(o.items);
+ checkUnnamed514(o.items);
unittest.expect(o.prompt, unittest.equals('foo'));
}
buildCounterLiveChatPollEditedDetails--;
@@ -3167,14 +3184,14 @@ checkLiveChatPollItem(api.LiveChatPollItem o) {
buildCounterLiveChatPollItem--;
}
-buildUnnamed510() {
+buildUnnamed515() {
var o = new core.List<api.LiveChatPollItem>();
o.add(buildLiveChatPollItem());
o.add(buildLiveChatPollItem());
return o;
}
-checkUnnamed510(core.List<api.LiveChatPollItem> o) {
+checkUnnamed515(core.List<api.LiveChatPollItem> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveChatPollItem(o[0]);
checkLiveChatPollItem(o[1]);
@@ -3186,7 +3203,7 @@ buildLiveChatPollOpenedDetails() {
buildCounterLiveChatPollOpenedDetails++;
if (buildCounterLiveChatPollOpenedDetails < 3) {
o.id = "foo";
- o.items = buildUnnamed510();
+ o.items = buildUnnamed515();
o.prompt = "foo";
}
buildCounterLiveChatPollOpenedDetails--;
@@ -3197,7 +3214,7 @@ checkLiveChatPollOpenedDetails(api.LiveChatPollOpenedDetails o) {
buildCounterLiveChatPollOpenedDetails++;
if (buildCounterLiveChatPollOpenedDetails < 3) {
unittest.expect(o.id, unittest.equals('foo'));
- checkUnnamed510(o.items);
+ checkUnnamed515(o.items);
unittest.expect(o.prompt, unittest.equals('foo'));
}
buildCounterLiveChatPollOpenedDetails--;
@@ -3224,6 +3241,33 @@ checkLiveChatPollVotedDetails(api.LiveChatPollVotedDetails o) {
buildCounterLiveChatPollVotedDetails--;
}
+core.int buildCounterLiveChatSuperChatDetails = 0;
+buildLiveChatSuperChatDetails() {
+ var o = new api.LiveChatSuperChatDetails();
+ buildCounterLiveChatSuperChatDetails++;
+ if (buildCounterLiveChatSuperChatDetails < 3) {
+ o.amountDisplayString = "foo";
+ o.amountMicros = "foo";
+ o.currency = "foo";
+ o.tier = 42;
+ o.userComment = "foo";
+ }
+ buildCounterLiveChatSuperChatDetails--;
+ return o;
+}
+
+checkLiveChatSuperChatDetails(api.LiveChatSuperChatDetails o) {
+ buildCounterLiveChatSuperChatDetails++;
+ if (buildCounterLiveChatSuperChatDetails < 3) {
+ unittest.expect(o.amountDisplayString, unittest.equals('foo'));
+ unittest.expect(o.amountMicros, unittest.equals('foo'));
+ unittest.expect(o.currency, unittest.equals('foo'));
+ unittest.expect(o.tier, unittest.equals(42));
+ unittest.expect(o.userComment, unittest.equals('foo'));
+ }
+ buildCounterLiveChatSuperChatDetails--;
+}
+
core.int buildCounterLiveChatTextMessageDetails = 0;
buildLiveChatTextMessageDetails() {
var o = new api.LiveChatTextMessageDetails();
@@ -3343,14 +3387,14 @@ checkLiveStreamContentDetails(api.LiveStreamContentDetails o) {
buildCounterLiveStreamContentDetails--;
}
-buildUnnamed511() {
+buildUnnamed516() {
var o = new core.List<api.LiveStreamConfigurationIssue>();
o.add(buildLiveStreamConfigurationIssue());
o.add(buildLiveStreamConfigurationIssue());
return o;
}
-checkUnnamed511(core.List<api.LiveStreamConfigurationIssue> o) {
+checkUnnamed516(core.List<api.LiveStreamConfigurationIssue> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveStreamConfigurationIssue(o[0]);
checkLiveStreamConfigurationIssue(o[1]);
@@ -3361,7 +3405,7 @@ buildLiveStreamHealthStatus() {
var o = new api.LiveStreamHealthStatus();
buildCounterLiveStreamHealthStatus++;
if (buildCounterLiveStreamHealthStatus < 3) {
- o.configurationIssues = buildUnnamed511();
+ o.configurationIssues = buildUnnamed516();
o.lastUpdateTimeSeconds = "foo";
o.status = "foo";
}
@@ -3372,21 +3416,21 @@ buildLiveStreamHealthStatus() {
checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) {
buildCounterLiveStreamHealthStatus++;
if (buildCounterLiveStreamHealthStatus < 3) {
- checkUnnamed511(o.configurationIssues);
+ checkUnnamed516(o.configurationIssues);
unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo'));
unittest.expect(o.status, unittest.equals('foo'));
}
buildCounterLiveStreamHealthStatus--;
}
-buildUnnamed512() {
+buildUnnamed517() {
var o = new core.List<api.LiveStream>();
o.add(buildLiveStream());
o.add(buildLiveStream());
return o;
}
-checkUnnamed512(core.List<api.LiveStream> o) {
+checkUnnamed517(core.List<api.LiveStream> o) {
unittest.expect(o, unittest.hasLength(2));
checkLiveStream(o[0]);
checkLiveStream(o[1]);
@@ -3399,7 +3443,7 @@ buildLiveStreamListResponse() {
if (buildCounterLiveStreamListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed512();
+ o.items = buildUnnamed517();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -3416,7 +3460,7 @@ checkLiveStreamListResponse(api.LiveStreamListResponse o) {
if (buildCounterLiveStreamListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed512(o.items);
+ checkUnnamed517(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -3475,14 +3519,14 @@ checkLiveStreamStatus(api.LiveStreamStatus o) {
buildCounterLiveStreamStatus--;
}
-buildUnnamed513() {
+buildUnnamed518() {
var o = new core.List<api.LocalizedString>();
o.add(buildLocalizedString());
o.add(buildLocalizedString());
return o;
}
-checkUnnamed513(core.List<api.LocalizedString> o) {
+checkUnnamed518(core.List<api.LocalizedString> o) {
unittest.expect(o, unittest.hasLength(2));
checkLocalizedString(o[0]);
checkLocalizedString(o[1]);
@@ -3495,7 +3539,7 @@ buildLocalizedProperty() {
if (buildCounterLocalizedProperty < 3) {
o.default_ = "foo";
o.defaultLanguage = buildLanguageTag();
- o.localized = buildUnnamed513();
+ o.localized = buildUnnamed518();
}
buildCounterLocalizedProperty--;
return o;
@@ -3506,7 +3550,7 @@ checkLocalizedProperty(api.LocalizedProperty o) {
if (buildCounterLocalizedProperty < 3) {
unittest.expect(o.default_, unittest.equals('foo'));
checkLanguageTag(o.defaultLanguage);
- checkUnnamed513(o.localized);
+ checkUnnamed518(o.localized);
}
buildCounterLocalizedProperty--;
}
@@ -3576,14 +3620,14 @@ checkPageInfo(api.PageInfo o) {
buildCounterPageInfo--;
}
-buildUnnamed514() {
+buildUnnamed519() {
var o = new core.Map<core.String, api.PlaylistLocalization>();
o["x"] = buildPlaylistLocalization();
o["y"] = buildPlaylistLocalization();
return o;
}
-checkUnnamed514(core.Map<core.String, api.PlaylistLocalization> o) {
+checkUnnamed519(core.Map<core.String, api.PlaylistLocalization> o) {
unittest.expect(o, unittest.hasLength(2));
checkPlaylistLocalization(o["x"]);
checkPlaylistLocalization(o["y"]);
@@ -3598,7 +3642,7 @@ buildPlaylist() {
o.etag = "foo";
o.id = "foo";
o.kind = "foo";
- o.localizations = buildUnnamed514();
+ o.localizations = buildUnnamed519();
o.player = buildPlaylistPlayer();
o.snippet = buildPlaylistSnippet();
o.status = buildPlaylistStatus();
@@ -3614,7 +3658,7 @@ checkPlaylist(api.Playlist o) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed514(o.localizations);
+ checkUnnamed519(o.localizations);
checkPlaylistPlayer(o.player);
checkPlaylistSnippet(o.snippet);
checkPlaylistStatus(o.status);
@@ -3697,14 +3741,14 @@ checkPlaylistItemContentDetails(api.PlaylistItemContentDetails o) {
buildCounterPlaylistItemContentDetails--;
}
-buildUnnamed515() {
+buildUnnamed520() {
var o = new core.List<api.PlaylistItem>();
o.add(buildPlaylistItem());
o.add(buildPlaylistItem());
return o;
}
-checkUnnamed515(core.List<api.PlaylistItem> o) {
+checkUnnamed520(core.List<api.PlaylistItem> o) {
unittest.expect(o, unittest.hasLength(2));
checkPlaylistItem(o[0]);
checkPlaylistItem(o[1]);
@@ -3717,7 +3761,7 @@ buildPlaylistItemListResponse() {
if (buildCounterPlaylistItemListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed515();
+ o.items = buildUnnamed520();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -3734,7 +3778,7 @@ checkPlaylistItemListResponse(api.PlaylistItemListResponse o) {
if (buildCounterPlaylistItemListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed515(o.items);
+ checkUnnamed520(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -3799,14 +3843,14 @@ checkPlaylistItemStatus(api.PlaylistItemStatus o) {
buildCounterPlaylistItemStatus--;
}
-buildUnnamed516() {
+buildUnnamed521() {
var o = new core.List<api.Playlist>();
o.add(buildPlaylist());
o.add(buildPlaylist());
return o;
}
-checkUnnamed516(core.List<api.Playlist> o) {
+checkUnnamed521(core.List<api.Playlist> o) {
unittest.expect(o, unittest.hasLength(2));
checkPlaylist(o[0]);
checkPlaylist(o[1]);
@@ -3819,7 +3863,7 @@ buildPlaylistListResponse() {
if (buildCounterPlaylistListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed516();
+ o.items = buildUnnamed521();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -3836,7 +3880,7 @@ checkPlaylistListResponse(api.PlaylistListResponse o) {
if (buildCounterPlaylistListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed516(o.items);
+ checkUnnamed521(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -3887,14 +3931,14 @@ checkPlaylistPlayer(api.PlaylistPlayer o) {
buildCounterPlaylistPlayer--;
}
-buildUnnamed517() {
+buildUnnamed522() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed517(core.List<core.String> o) {
+checkUnnamed522(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'));
@@ -3911,7 +3955,7 @@ buildPlaylistSnippet() {
o.description = "foo";
o.localized = buildPlaylistLocalization();
o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
- o.tags = buildUnnamed517();
+ o.tags = buildUnnamed522();
o.thumbnails = buildThumbnailDetails();
o.title = "foo";
}
@@ -3928,7 +3972,7 @@ checkPlaylistSnippet(api.PlaylistSnippet o) {
unittest.expect(o.description, unittest.equals('foo'));
checkPlaylistLocalization(o.localized);
unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
- checkUnnamed517(o.tags);
+ checkUnnamed522(o.tags);
checkThumbnailDetails(o.thumbnails);
unittest.expect(o.title, unittest.equals('foo'));
}
@@ -4050,14 +4094,14 @@ checkResourceId(api.ResourceId o) {
buildCounterResourceId--;
}
-buildUnnamed518() {
+buildUnnamed523() {
var o = new core.List<api.SearchResult>();
o.add(buildSearchResult());
o.add(buildSearchResult());
return o;
}
-checkUnnamed518(core.List<api.SearchResult> o) {
+checkUnnamed523(core.List<api.SearchResult> o) {
unittest.expect(o, unittest.hasLength(2));
checkSearchResult(o[0]);
checkSearchResult(o[1]);
@@ -4070,7 +4114,7 @@ buildSearchListResponse() {
if (buildCounterSearchListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed518();
+ o.items = buildUnnamed523();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -4088,7 +4132,7 @@ checkSearchListResponse(api.SearchListResponse o) {
if (buildCounterSearchListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed518(o.items);
+ checkUnnamed523(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -4181,14 +4225,14 @@ checkSponsor(api.Sponsor o) {
buildCounterSponsor--;
}
-buildUnnamed519() {
+buildUnnamed524() {
var o = new core.List<api.Sponsor>();
o.add(buildSponsor());
o.add(buildSponsor());
return o;
}
-checkUnnamed519(core.List<api.Sponsor> o) {
+checkUnnamed524(core.List<api.Sponsor> o) {
unittest.expect(o, unittest.hasLength(2));
checkSponsor(o[0]);
checkSponsor(o[1]);
@@ -4201,7 +4245,7 @@ buildSponsorListResponse() {
if (buildCounterSponsorListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed519();
+ o.items = buildUnnamed524();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -4217,7 +4261,7 @@ checkSponsorListResponse(api.SponsorListResponse o) {
if (buildCounterSponsorListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed519(o.items);
+ checkUnnamed524(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -4302,14 +4346,14 @@ checkSubscriptionContentDetails(api.SubscriptionContentDetails o) {
buildCounterSubscriptionContentDetails--;
}
-buildUnnamed520() {
+buildUnnamed525() {
var o = new core.List<api.Subscription>();
o.add(buildSubscription());
o.add(buildSubscription());
return o;
}
-checkUnnamed520(core.List<api.Subscription> o) {
+checkUnnamed525(core.List<api.Subscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkSubscription(o[0]);
checkSubscription(o[1]);
@@ -4322,7 +4366,7 @@ buildSubscriptionListResponse() {
if (buildCounterSubscriptionListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed520();
+ o.items = buildUnnamed525();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -4339,7 +4383,7 @@ checkSubscriptionListResponse(api.SubscriptionListResponse o) {
if (buildCounterSubscriptionListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed520(o.items);
+ checkUnnamed525(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -4406,6 +4450,110 @@ checkSubscriptionSubscriberSnippet(api.SubscriptionSubscriberSnippet o) {
buildCounterSubscriptionSubscriberSnippet--;
}
+core.int buildCounterSuperChatEvent = 0;
+buildSuperChatEvent() {
+ var o = new api.SuperChatEvent();
+ buildCounterSuperChatEvent++;
+ if (buildCounterSuperChatEvent < 3) {
+ o.etag = "foo";
+ o.id = "foo";
+ o.kind = "foo";
+ o.snippet = buildSuperChatEventSnippet();
+ }
+ buildCounterSuperChatEvent--;
+ return o;
+}
+
+checkSuperChatEvent(api.SuperChatEvent o) {
+ buildCounterSuperChatEvent++;
+ if (buildCounterSuperChatEvent < 3) {
+ unittest.expect(o.etag, unittest.equals('foo'));
+ unittest.expect(o.id, unittest.equals('foo'));
+ unittest.expect(o.kind, unittest.equals('foo'));
+ checkSuperChatEventSnippet(o.snippet);
+ }
+ buildCounterSuperChatEvent--;
+}
+
+buildUnnamed526() {
+ var o = new core.List<api.SuperChatEvent>();
+ o.add(buildSuperChatEvent());
+ o.add(buildSuperChatEvent());
+ return o;
+}
+
+checkUnnamed526(core.List<api.SuperChatEvent> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkSuperChatEvent(o[0]);
+ checkSuperChatEvent(o[1]);
+}
+
+core.int buildCounterSuperChatEventListResponse = 0;
+buildSuperChatEventListResponse() {
+ var o = new api.SuperChatEventListResponse();
+ buildCounterSuperChatEventListResponse++;
+ if (buildCounterSuperChatEventListResponse < 3) {
+ o.etag = "foo";
+ o.eventId = "foo";
+ o.items = buildUnnamed526();
+ o.kind = "foo";
+ o.nextPageToken = "foo";
+ o.pageInfo = buildPageInfo();
+ o.tokenPagination = buildTokenPagination();
+ o.visitorId = "foo";
+ }
+ buildCounterSuperChatEventListResponse--;
+ return o;
+}
+
+checkSuperChatEventListResponse(api.SuperChatEventListResponse o) {
+ buildCounterSuperChatEventListResponse++;
+ if (buildCounterSuperChatEventListResponse < 3) {
+ unittest.expect(o.etag, unittest.equals('foo'));
+ unittest.expect(o.eventId, unittest.equals('foo'));
+ checkUnnamed526(o.items);
+ unittest.expect(o.kind, unittest.equals('foo'));
+ unittest.expect(o.nextPageToken, unittest.equals('foo'));
+ checkPageInfo(o.pageInfo);
+ checkTokenPagination(o.tokenPagination);
+ unittest.expect(o.visitorId, unittest.equals('foo'));
+ }
+ buildCounterSuperChatEventListResponse--;
+}
+
+core.int buildCounterSuperChatEventSnippet = 0;
+buildSuperChatEventSnippet() {
+ var o = new api.SuperChatEventSnippet();
+ buildCounterSuperChatEventSnippet++;
+ if (buildCounterSuperChatEventSnippet < 3) {
+ o.amountMicros = "foo";
+ o.channelId = "foo";
+ o.commentText = "foo";
+ o.createdAt = core.DateTime.parse("2002-02-27T14:01:02");
+ o.currency = "foo";
+ o.displayString = "foo";
+ o.messageType = 42;
+ o.supporterDetails = buildChannelProfileDetails();
+ }
+ buildCounterSuperChatEventSnippet--;
+ return o;
+}
+
+checkSuperChatEventSnippet(api.SuperChatEventSnippet o) {
+ buildCounterSuperChatEventSnippet++;
+ if (buildCounterSuperChatEventSnippet < 3) {
+ unittest.expect(o.amountMicros, unittest.equals('foo'));
+ unittest.expect(o.channelId, unittest.equals('foo'));
+ unittest.expect(o.commentText, unittest.equals('foo'));
+ unittest.expect(o.createdAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
+ unittest.expect(o.currency, unittest.equals('foo'));
+ unittest.expect(o.displayString, unittest.equals('foo'));
+ unittest.expect(o.messageType, unittest.equals(42));
+ checkChannelProfileDetails(o.supporterDetails);
+ }
+ buildCounterSuperChatEventSnippet--;
+}
+
core.int buildCounterThumbnail = 0;
buildThumbnail() {
var o = new api.Thumbnail();
@@ -4456,14 +4604,14 @@ checkThumbnailDetails(api.ThumbnailDetails o) {
buildCounterThumbnailDetails--;
}
-buildUnnamed521() {
+buildUnnamed527() {
var o = new core.List<api.ThumbnailDetails>();
o.add(buildThumbnailDetails());
o.add(buildThumbnailDetails());
return o;
}
-checkUnnamed521(core.List<api.ThumbnailDetails> o) {
+checkUnnamed527(core.List<api.ThumbnailDetails> o) {
unittest.expect(o, unittest.hasLength(2));
checkThumbnailDetails(o[0]);
checkThumbnailDetails(o[1]);
@@ -4476,7 +4624,7 @@ buildThumbnailSetResponse() {
if (buildCounterThumbnailSetResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed521();
+ o.items = buildUnnamed527();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -4489,7 +4637,7 @@ checkThumbnailSetResponse(api.ThumbnailSetResponse o) {
if (buildCounterThumbnailSetResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed521(o.items);
+ checkUnnamed527(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
@@ -4513,14 +4661,14 @@ checkTokenPagination(api.TokenPagination o) {
buildCounterTokenPagination--;
}
-buildUnnamed522() {
+buildUnnamed528() {
var o = new core.Map<core.String, api.VideoLocalization>();
o["x"] = buildVideoLocalization();
o["y"] = buildVideoLocalization();
return o;
}
-checkUnnamed522(core.Map<core.String, api.VideoLocalization> o) {
+checkUnnamed528(core.Map<core.String, api.VideoLocalization> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoLocalization(o["x"]);
checkVideoLocalization(o["y"]);
@@ -4538,7 +4686,7 @@ buildVideo() {
o.id = "foo";
o.kind = "foo";
o.liveStreamingDetails = buildVideoLiveStreamingDetails();
- o.localizations = buildUnnamed522();
+ o.localizations = buildUnnamed528();
o.monetizationDetails = buildVideoMonetizationDetails();
o.player = buildVideoPlayer();
o.processingDetails = buildVideoProcessingDetails();
@@ -4564,7 +4712,7 @@ checkVideo(api.Video o) {
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
checkVideoLiveStreamingDetails(o.liveStreamingDetails);
- checkUnnamed522(o.localizations);
+ checkUnnamed528(o.localizations);
checkVideoMonetizationDetails(o.monetizationDetails);
checkVideoPlayer(o.player);
checkVideoProcessingDetails(o.processingDetails);
@@ -4631,14 +4779,14 @@ checkVideoAbuseReportReason(api.VideoAbuseReportReason o) {
buildCounterVideoAbuseReportReason--;
}
-buildUnnamed523() {
+buildUnnamed529() {
var o = new core.List<api.VideoAbuseReportReason>();
o.add(buildVideoAbuseReportReason());
o.add(buildVideoAbuseReportReason());
return o;
}
-checkUnnamed523(core.List<api.VideoAbuseReportReason> o) {
+checkUnnamed529(core.List<api.VideoAbuseReportReason> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoAbuseReportReason(o[0]);
checkVideoAbuseReportReason(o[1]);
@@ -4651,7 +4799,7 @@ buildVideoAbuseReportReasonListResponse() {
if (buildCounterVideoAbuseReportReasonListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed523();
+ o.items = buildUnnamed529();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -4664,21 +4812,21 @@ checkVideoAbuseReportReasonListResponse(api.VideoAbuseReportReasonListResponse o
if (buildCounterVideoAbuseReportReasonListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed523(o.items);
+ checkUnnamed529(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
buildCounterVideoAbuseReportReasonListResponse--;
}
-buildUnnamed524() {
+buildUnnamed530() {
var o = new core.List<api.VideoAbuseReportSecondaryReason>();
o.add(buildVideoAbuseReportSecondaryReason());
o.add(buildVideoAbuseReportSecondaryReason());
return o;
}
-checkUnnamed524(core.List<api.VideoAbuseReportSecondaryReason> o) {
+checkUnnamed530(core.List<api.VideoAbuseReportSecondaryReason> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoAbuseReportSecondaryReason(o[0]);
checkVideoAbuseReportSecondaryReason(o[1]);
@@ -4690,7 +4838,7 @@ buildVideoAbuseReportReasonSnippet() {
buildCounterVideoAbuseReportReasonSnippet++;
if (buildCounterVideoAbuseReportReasonSnippet < 3) {
o.label = "foo";
- o.secondaryReasons = buildUnnamed524();
+ o.secondaryReasons = buildUnnamed530();
}
buildCounterVideoAbuseReportReasonSnippet--;
return o;
@@ -4700,7 +4848,7 @@ checkVideoAbuseReportReasonSnippet(api.VideoAbuseReportReasonSnippet o) {
buildCounterVideoAbuseReportReasonSnippet++;
if (buildCounterVideoAbuseReportReasonSnippet < 3) {
unittest.expect(o.label, unittest.equals('foo'));
- checkUnnamed524(o.secondaryReasons);
+ checkUnnamed530(o.secondaryReasons);
}
buildCounterVideoAbuseReportReasonSnippet--;
}
@@ -4774,14 +4922,14 @@ checkVideoCategory(api.VideoCategory o) {
buildCounterVideoCategory--;
}
-buildUnnamed525() {
+buildUnnamed531() {
var o = new core.List<api.VideoCategory>();
o.add(buildVideoCategory());
o.add(buildVideoCategory());
return o;
}
-checkUnnamed525(core.List<api.VideoCategory> o) {
+checkUnnamed531(core.List<api.VideoCategory> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoCategory(o[0]);
checkVideoCategory(o[1]);
@@ -4794,7 +4942,7 @@ buildVideoCategoryListResponse() {
if (buildCounterVideoCategoryListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed525();
+ o.items = buildUnnamed531();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -4811,7 +4959,7 @@ checkVideoCategoryListResponse(api.VideoCategoryListResponse o) {
if (buildCounterVideoCategoryListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed525(o.items);
+ checkUnnamed531(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -4882,27 +5030,27 @@ checkVideoContentDetails(api.VideoContentDetails o) {
buildCounterVideoContentDetails--;
}
-buildUnnamed526() {
+buildUnnamed532() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed526(core.List<core.String> o) {
+checkUnnamed532(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'));
}
-buildUnnamed527() {
+buildUnnamed533() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed527(core.List<core.String> o) {
+checkUnnamed533(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'));
@@ -4913,8 +5061,8 @@ buildVideoContentDetailsRegionRestriction() {
var o = new api.VideoContentDetailsRegionRestriction();
buildCounterVideoContentDetailsRegionRestriction++;
if (buildCounterVideoContentDetailsRegionRestriction < 3) {
- o.allowed = buildUnnamed526();
- o.blocked = buildUnnamed527();
+ o.allowed = buildUnnamed532();
+ o.blocked = buildUnnamed533();
}
buildCounterVideoContentDetailsRegionRestriction--;
return o;
@@ -4923,33 +5071,33 @@ buildVideoContentDetailsRegionRestriction() {
checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) {
buildCounterVideoContentDetailsRegionRestriction++;
if (buildCounterVideoContentDetailsRegionRestriction < 3) {
- checkUnnamed526(o.allowed);
- checkUnnamed527(o.blocked);
+ checkUnnamed532(o.allowed);
+ checkUnnamed533(o.blocked);
}
buildCounterVideoContentDetailsRegionRestriction--;
}
-buildUnnamed528() {
+buildUnnamed534() {
var o = new core.List<api.VideoFileDetailsAudioStream>();
o.add(buildVideoFileDetailsAudioStream());
o.add(buildVideoFileDetailsAudioStream());
return o;
}
-checkUnnamed528(core.List<api.VideoFileDetailsAudioStream> o) {
+checkUnnamed534(core.List<api.VideoFileDetailsAudioStream> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoFileDetailsAudioStream(o[0]);
checkVideoFileDetailsAudioStream(o[1]);
}
-buildUnnamed529() {
+buildUnnamed535() {
var o = new core.List<api.VideoFileDetailsVideoStream>();
o.add(buildVideoFileDetailsVideoStream());
o.add(buildVideoFileDetailsVideoStream());
return o;
}
-checkUnnamed529(core.List<api.VideoFileDetailsVideoStream> o) {
+checkUnnamed535(core.List<api.VideoFileDetailsVideoStream> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoFileDetailsVideoStream(o[0]);
checkVideoFileDetailsVideoStream(o[1]);
@@ -4960,7 +5108,7 @@ buildVideoFileDetails() {
var o = new api.VideoFileDetails();
buildCounterVideoFileDetails++;
if (buildCounterVideoFileDetails < 3) {
- o.audioStreams = buildUnnamed528();
+ o.audioStreams = buildUnnamed534();
o.bitrateBps = "foo";
o.container = "foo";
o.creationTime = "foo";
@@ -4968,7 +5116,7 @@ buildVideoFileDetails() {
o.fileName = "foo";
o.fileSize = "foo";
o.fileType = "foo";
- o.videoStreams = buildUnnamed529();
+ o.videoStreams = buildUnnamed535();
}
buildCounterVideoFileDetails--;
return o;
@@ -4977,7 +5125,7 @@ buildVideoFileDetails() {
checkVideoFileDetails(api.VideoFileDetails o) {
buildCounterVideoFileDetails++;
if (buildCounterVideoFileDetails < 3) {
- checkUnnamed528(o.audioStreams);
+ checkUnnamed534(o.audioStreams);
unittest.expect(o.bitrateBps, unittest.equals('foo'));
unittest.expect(o.container, unittest.equals('foo'));
unittest.expect(o.creationTime, unittest.equals('foo'));
@@ -4985,7 +5133,7 @@ checkVideoFileDetails(api.VideoFileDetails o) {
unittest.expect(o.fileName, unittest.equals('foo'));
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.fileType, unittest.equals('foo'));
- checkUnnamed529(o.videoStreams);
+ checkUnnamed535(o.videoStreams);
}
buildCounterVideoFileDetails--;
}
@@ -5048,14 +5196,14 @@ checkVideoFileDetailsVideoStream(api.VideoFileDetailsVideoStream o) {
buildCounterVideoFileDetailsVideoStream--;
}
-buildUnnamed530() {
+buildUnnamed536() {
var o = new core.List<api.VideoRating>();
o.add(buildVideoRating());
o.add(buildVideoRating());
return o;
}
-checkUnnamed530(core.List<api.VideoRating> o) {
+checkUnnamed536(core.List<api.VideoRating> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoRating(o[0]);
checkVideoRating(o[1]);
@@ -5068,7 +5216,7 @@ buildVideoGetRatingResponse() {
if (buildCounterVideoGetRatingResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed530();
+ o.items = buildUnnamed536();
o.kind = "foo";
o.visitorId = "foo";
}
@@ -5081,21 +5229,21 @@ checkVideoGetRatingResponse(api.VideoGetRatingResponse o) {
if (buildCounterVideoGetRatingResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed530(o.items);
+ checkUnnamed536(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.visitorId, unittest.equals('foo'));
}
buildCounterVideoGetRatingResponse--;
}
-buildUnnamed531() {
+buildUnnamed537() {
var o = new core.List<api.Video>();
o.add(buildVideo());
o.add(buildVideo());
return o;
}
-checkUnnamed531(core.List<api.Video> o) {
+checkUnnamed537(core.List<api.Video> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideo(o[0]);
checkVideo(o[1]);
@@ -5108,7 +5256,7 @@ buildVideoListResponse() {
if (buildCounterVideoListResponse < 3) {
o.etag = "foo";
o.eventId = "foo";
- o.items = buildUnnamed531();
+ o.items = buildUnnamed537();
o.kind = "foo";
o.nextPageToken = "foo";
o.pageInfo = buildPageInfo();
@@ -5125,7 +5273,7 @@ checkVideoListResponse(api.VideoListResponse o) {
if (buildCounterVideoListResponse < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.eventId, unittest.equals('foo'));
- checkUnnamed531(o.items);
+ checkUnnamed537(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkPageInfo(o.pageInfo);
@@ -5284,14 +5432,14 @@ checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
buildCounterVideoProcessingDetailsProcessingProgress--;
}
-buildUnnamed532() {
+buildUnnamed538() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed532(core.List<core.String> o) {
+checkUnnamed538(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'));
@@ -5302,7 +5450,7 @@ buildVideoProjectDetails() {
var o = new api.VideoProjectDetails();
buildCounterVideoProjectDetails++;
if (buildCounterVideoProjectDetails < 3) {
- o.tags = buildUnnamed532();
+ o.tags = buildUnnamed538();
}
buildCounterVideoProjectDetails--;
return o;
@@ -5311,7 +5459,7 @@ buildVideoProjectDetails() {
checkVideoProjectDetails(api.VideoProjectDetails o) {
buildCounterVideoProjectDetails++;
if (buildCounterVideoProjectDetails < 3) {
- checkUnnamed532(o.tags);
+ checkUnnamed538(o.tags);
}
buildCounterVideoProjectDetails--;
}
@@ -5360,14 +5508,14 @@ checkVideoRecordingDetails(api.VideoRecordingDetails o) {
buildCounterVideoRecordingDetails--;
}
-buildUnnamed533() {
+buildUnnamed539() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed533(core.List<core.String> o) {
+checkUnnamed539(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'));
@@ -5387,7 +5535,7 @@ buildVideoSnippet() {
o.liveBroadcastContent = "foo";
o.localized = buildVideoLocalization();
o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02");
- o.tags = buildUnnamed533();
+ o.tags = buildUnnamed539();
o.thumbnails = buildThumbnailDetails();
o.title = "foo";
}
@@ -5407,7 +5555,7 @@ checkVideoSnippet(api.VideoSnippet o) {
unittest.expect(o.liveBroadcastContent, unittest.equals('foo'));
checkVideoLocalization(o.localized);
unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
- checkUnnamed533(o.tags);
+ checkUnnamed539(o.tags);
checkThumbnailDetails(o.thumbnails);
unittest.expect(o.title, unittest.equals('foo'));
}
@@ -5474,66 +5622,66 @@ checkVideoStatus(api.VideoStatus o) {
buildCounterVideoStatus--;
}
-buildUnnamed534() {
+buildUnnamed540() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed534(core.List<core.String> o) {
+checkUnnamed540(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'));
}
-buildUnnamed535() {
+buildUnnamed541() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed535(core.List<core.String> o) {
+checkUnnamed541(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'));
}
-buildUnnamed536() {
+buildUnnamed542() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed536(core.List<core.String> o) {
+checkUnnamed542(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'));
}
-buildUnnamed537() {
+buildUnnamed543() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed537(core.List<core.String> o) {
+checkUnnamed543(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'));
}
-buildUnnamed538() {
+buildUnnamed544() {
var o = new core.List<api.VideoSuggestionsTagSuggestion>();
o.add(buildVideoSuggestionsTagSuggestion());
o.add(buildVideoSuggestionsTagSuggestion());
return o;
}
-checkUnnamed538(core.List<api.VideoSuggestionsTagSuggestion> o) {
+checkUnnamed544(core.List<api.VideoSuggestionsTagSuggestion> o) {
unittest.expect(o, unittest.hasLength(2));
checkVideoSuggestionsTagSuggestion(o[0]);
checkVideoSuggestionsTagSuggestion(o[1]);
@@ -5544,11 +5692,11 @@ buildVideoSuggestions() {
var o = new api.VideoSuggestions();
buildCounterVideoSuggestions++;
if (buildCounterVideoSuggestions < 3) {
- o.editorSuggestions = buildUnnamed534();
- o.processingErrors = buildUnnamed535();
- o.processingHints = buildUnnamed536();
- o.processingWarnings = buildUnnamed537();
- o.tagSuggestions = buildUnnamed538();
+ o.editorSuggestions = buildUnnamed540();
+ o.processingErrors = buildUnnamed541();
+ o.processingHints = buildUnnamed542();
+ o.processingWarnings = buildUnnamed543();
+ o.tagSuggestions = buildUnnamed544();
}
buildCounterVideoSuggestions--;
return o;
@@ -5557,23 +5705,23 @@ buildVideoSuggestions() {
checkVideoSuggestions(api.VideoSuggestions o) {
buildCounterVideoSuggestions++;
if (buildCounterVideoSuggestions < 3) {
- checkUnnamed534(o.editorSuggestions);
- checkUnnamed535(o.processingErrors);
- checkUnnamed536(o.processingHints);
- checkUnnamed537(o.processingWarnings);
- checkUnnamed538(o.tagSuggestions);
+ checkUnnamed540(o.editorSuggestions);
+ checkUnnamed541(o.processingErrors);
+ checkUnnamed542(o.processingHints);
+ checkUnnamed543(o.processingWarnings);
+ checkUnnamed544(o.tagSuggestions);
}
buildCounterVideoSuggestions--;
}
-buildUnnamed539() {
+buildUnnamed545() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed539(core.List<core.String> o) {
+checkUnnamed545(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'));
@@ -5584,7 +5732,7 @@ buildVideoSuggestionsTagSuggestion() {
var o = new api.VideoSuggestionsTagSuggestion();
buildCounterVideoSuggestionsTagSuggestion++;
if (buildCounterVideoSuggestionsTagSuggestion < 3) {
- o.categoryRestricts = buildUnnamed539();
+ o.categoryRestricts = buildUnnamed545();
o.tag = "foo";
}
buildCounterVideoSuggestionsTagSuggestion--;
@@ -5594,33 +5742,46 @@ buildVideoSuggestionsTagSuggestion() {
checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) {
buildCounterVideoSuggestionsTagSuggestion++;
if (buildCounterVideoSuggestionsTagSuggestion < 3) {
- checkUnnamed539(o.categoryRestricts);
+ checkUnnamed545(o.categoryRestricts);
unittest.expect(o.tag, unittest.equals('foo'));
}
buildCounterVideoSuggestionsTagSuggestion--;
}
-buildUnnamed540() {
+buildUnnamed546() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed540(core.List<core.String> o) {
+checkUnnamed546(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'));
}
-buildUnnamed541() {
+buildUnnamed547() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed541(core.List<core.String> o) {
+checkUnnamed547(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'));
+}
+
+buildUnnamed548() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed548(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'));
@@ -5631,8 +5792,9 @@ buildVideoTopicDetails() {
var o = new api.VideoTopicDetails();
buildCounterVideoTopicDetails++;
if (buildCounterVideoTopicDetails < 3) {
- o.relevantTopicIds = buildUnnamed540();
- o.topicIds = buildUnnamed541();
+ o.relevantTopicIds = buildUnnamed546();
+ o.topicCategories = buildUnnamed547();
+ o.topicIds = buildUnnamed548();
}
buildCounterVideoTopicDetails--;
return o;
@@ -5641,8 +5803,9 @@ buildVideoTopicDetails() {
checkVideoTopicDetails(api.VideoTopicDetails o) {
buildCounterVideoTopicDetails++;
if (buildCounterVideoTopicDetails < 3) {
- checkUnnamed540(o.relevantTopicIds);
- checkUnnamed541(o.topicIds);
+ checkUnnamed546(o.relevantTopicIds);
+ checkUnnamed547(o.topicCategories);
+ checkUnnamed548(o.topicIds);
}
buildCounterVideoTopicDetails--;
}
@@ -6545,6 +6708,15 @@ main() {
});
+ unittest.group("obj-schema-LiveChatSuperChatDetails", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildLiveChatSuperChatDetails();
+ var od = new api.LiveChatSuperChatDetails.fromJson(o.toJson());
+ checkLiveChatSuperChatDetails(od);
+ });
+ });
+
+
unittest.group("obj-schema-LiveChatTextMessageDetails", () {
unittest.test("to-json--from-json", () {
var o = buildLiveChatTextMessageDetails();
@@ -6905,6 +7077,33 @@ main() {
});
+ unittest.group("obj-schema-SuperChatEvent", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildSuperChatEvent();
+ var od = new api.SuperChatEvent.fromJson(o.toJson());
+ checkSuperChatEvent(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-SuperChatEventListResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildSuperChatEventListResponse();
+ var od = new api.SuperChatEventListResponse.fromJson(o.toJson());
+ checkSuperChatEventListResponse(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-SuperChatEventSnippet", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildSuperChatEventSnippet();
+ var od = new api.SuperChatEventSnippet.fromJson(o.toJson());
+ checkSuperChatEventSnippet(od);
+ });
+ });
+
+
unittest.group("obj-schema-Thumbnail", () {
unittest.test("to-json--from-json", () {
var o = buildThumbnail();
@@ -10533,6 +10732,63 @@ main() {
});
+ unittest.group("resource-SuperChatEventsResourceApi", () {
+ unittest.test("method--list", () {
+
+ var mock = new HttpServerMock();
+ api.SuperChatEventsResourceApi res = new api.YoutubeApi(mock).superChatEvents;
+ var arg_part = "foo";
+ var arg_hl = "foo";
+ var arg_maxResults = 42;
+ var arg_pageToken = "foo";
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("youtube/v3/"));
+ pathOffset += 11;
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("superChatEvents"));
+ pathOffset += 15;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["part"].first, unittest.equals(arg_part));
+ unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl));
+ unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildSuperChatEventListResponse());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res.list(arg_part, hl: arg_hl, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SuperChatEventListResponse response) {
+ checkSuperChatEventListResponse(response);
+ })));
+ });
+
+ });
+
+
unittest.group("resource-ThumbnailsResourceApi", () {
unittest.test("method--set", () {
// TODO: Implement tests for media upload;
« no previous file with comments | « generated/googleapis/test/webmasters/v3_test.dart ('k') | generated/googleapis/test/youtubeanalytics/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698