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

Unified Diff: generated/googleapis/test/drive/v2_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/drive/v2_test.dart
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart
index b0d698b651aec26cb00702ceac747cfa7d4030eb..e1dc91964d6cf84f1f42e1339e37965a26924b6f 100644
--- a/generated/googleapis/test/drive/v2_test.dart
+++ b/generated/googleapis/test/drive/v2_test.dart
@@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed586() {
+buildUnnamed593() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed586(core.List<core.String> o) {
+checkUnnamed593(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'));
@@ -69,7 +69,7 @@ buildAboutAdditionalRoleInfoRoleSets() {
var o = new api.AboutAdditionalRoleInfoRoleSets();
buildCounterAboutAdditionalRoleInfoRoleSets++;
if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
- o.additionalRoles = buildUnnamed586();
+ o.additionalRoles = buildUnnamed593();
o.primaryRole = "foo";
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
@@ -79,20 +79,20 @@ buildAboutAdditionalRoleInfoRoleSets() {
checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) {
buildCounterAboutAdditionalRoleInfoRoleSets++;
if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
- checkUnnamed586(o.additionalRoles);
+ checkUnnamed593(o.additionalRoles);
unittest.expect(o.primaryRole, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
}
-buildUnnamed587() {
+buildUnnamed594() {
var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>();
o.add(buildAboutAdditionalRoleInfoRoleSets());
o.add(buildAboutAdditionalRoleInfoRoleSets());
return o;
}
-checkUnnamed587(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
+checkUnnamed594(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutAdditionalRoleInfoRoleSets(o[0]);
checkAboutAdditionalRoleInfoRoleSets(o[1]);
@@ -103,7 +103,7 @@ buildAboutAdditionalRoleInfo() {
var o = new api.AboutAdditionalRoleInfo();
buildCounterAboutAdditionalRoleInfo++;
if (buildCounterAboutAdditionalRoleInfo < 3) {
- o.roleSets = buildUnnamed587();
+ o.roleSets = buildUnnamed594();
o.type = "foo";
}
buildCounterAboutAdditionalRoleInfo--;
@@ -113,33 +113,33 @@ buildAboutAdditionalRoleInfo() {
checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) {
buildCounterAboutAdditionalRoleInfo++;
if (buildCounterAboutAdditionalRoleInfo < 3) {
- checkUnnamed587(o.roleSets);
+ checkUnnamed594(o.roleSets);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfo--;
}
-buildUnnamed588() {
+buildUnnamed595() {
var o = new core.List<api.AboutAdditionalRoleInfo>();
o.add(buildAboutAdditionalRoleInfo());
o.add(buildAboutAdditionalRoleInfo());
return o;
}
-checkUnnamed588(core.List<api.AboutAdditionalRoleInfo> o) {
+checkUnnamed595(core.List<api.AboutAdditionalRoleInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutAdditionalRoleInfo(o[0]);
checkAboutAdditionalRoleInfo(o[1]);
}
-buildUnnamed589() {
+buildUnnamed596() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed589(core.List<core.String> o) {
+checkUnnamed596(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'));
@@ -151,7 +151,7 @@ buildAboutExportFormats() {
buildCounterAboutExportFormats++;
if (buildCounterAboutExportFormats < 3) {
o.source = "foo";
- o.targets = buildUnnamed589();
+ o.targets = buildUnnamed596();
}
buildCounterAboutExportFormats--;
return o;
@@ -161,19 +161,19 @@ checkAboutExportFormats(api.AboutExportFormats o) {
buildCounterAboutExportFormats++;
if (buildCounterAboutExportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed589(o.targets);
+ checkUnnamed596(o.targets);
}
buildCounterAboutExportFormats--;
}
-buildUnnamed590() {
+buildUnnamed597() {
var o = new core.List<api.AboutExportFormats>();
o.add(buildAboutExportFormats());
o.add(buildAboutExportFormats());
return o;
}
-checkUnnamed590(core.List<api.AboutExportFormats> o) {
+checkUnnamed597(core.List<api.AboutExportFormats> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutExportFormats(o[0]);
checkAboutExportFormats(o[1]);
@@ -200,40 +200,40 @@ checkAboutFeatures(api.AboutFeatures o) {
buildCounterAboutFeatures--;
}
-buildUnnamed591() {
+buildUnnamed598() {
var o = new core.List<api.AboutFeatures>();
o.add(buildAboutFeatures());
o.add(buildAboutFeatures());
return o;
}
-checkUnnamed591(core.List<api.AboutFeatures> o) {
+checkUnnamed598(core.List<api.AboutFeatures> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutFeatures(o[0]);
checkAboutFeatures(o[1]);
}
-buildUnnamed592() {
+buildUnnamed599() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed592(core.List<core.String> o) {
+checkUnnamed599(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'));
}
-buildUnnamed593() {
+buildUnnamed600() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed593(core.List<core.String> o) {
+checkUnnamed600(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'));
@@ -245,7 +245,7 @@ buildAboutImportFormats() {
buildCounterAboutImportFormats++;
if (buildCounterAboutImportFormats < 3) {
o.source = "foo";
- o.targets = buildUnnamed593();
+ o.targets = buildUnnamed600();
}
buildCounterAboutImportFormats--;
return o;
@@ -255,19 +255,19 @@ checkAboutImportFormats(api.AboutImportFormats o) {
buildCounterAboutImportFormats++;
if (buildCounterAboutImportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed593(o.targets);
+ checkUnnamed600(o.targets);
}
buildCounterAboutImportFormats--;
}
-buildUnnamed594() {
+buildUnnamed601() {
var o = new core.List<api.AboutImportFormats>();
o.add(buildAboutImportFormats());
o.add(buildAboutImportFormats());
return o;
}
-checkUnnamed594(core.List<api.AboutImportFormats> o) {
+checkUnnamed601(core.List<api.AboutImportFormats> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutImportFormats(o[0]);
checkAboutImportFormats(o[1]);
@@ -294,14 +294,14 @@ checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) {
buildCounterAboutMaxUploadSizes--;
}
-buildUnnamed595() {
+buildUnnamed602() {
var o = new core.List<api.AboutMaxUploadSizes>();
o.add(buildAboutMaxUploadSizes());
o.add(buildAboutMaxUploadSizes());
return o;
}
-checkUnnamed595(core.List<api.AboutMaxUploadSizes> o) {
+checkUnnamed602(core.List<api.AboutMaxUploadSizes> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutMaxUploadSizes(o[0]);
checkAboutMaxUploadSizes(o[1]);
@@ -328,14 +328,14 @@ checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) {
buildCounterAboutQuotaBytesByService--;
}
-buildUnnamed596() {
+buildUnnamed603() {
var o = new core.List<api.AboutQuotaBytesByService>();
o.add(buildAboutQuotaBytesByService());
o.add(buildAboutQuotaBytesByService());
return o;
}
-checkUnnamed596(core.List<api.AboutQuotaBytesByService> o) {
+checkUnnamed603(core.List<api.AboutQuotaBytesByService> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutQuotaBytesByService(o[0]);
checkAboutQuotaBytesByService(o[1]);
@@ -346,21 +346,21 @@ buildAbout() {
var o = new api.About();
buildCounterAbout++;
if (buildCounterAbout < 3) {
- o.additionalRoleInfo = buildUnnamed588();
+ o.additionalRoleInfo = buildUnnamed595();
o.domainSharingPolicy = "foo";
o.etag = "foo";
- o.exportFormats = buildUnnamed590();
- o.features = buildUnnamed591();
- o.folderColorPalette = buildUnnamed592();
- o.importFormats = buildUnnamed594();
+ o.exportFormats = buildUnnamed597();
+ o.features = buildUnnamed598();
+ o.folderColorPalette = buildUnnamed599();
+ o.importFormats = buildUnnamed601();
o.isCurrentAppInstalled = true;
o.kind = "foo";
o.languageCode = "foo";
o.largestChangeId = "foo";
- o.maxUploadSizes = buildUnnamed595();
+ o.maxUploadSizes = buildUnnamed602();
o.name = "foo";
o.permissionId = "foo";
- o.quotaBytesByService = buildUnnamed596();
+ o.quotaBytesByService = buildUnnamed603();
o.quotaBytesTotal = "foo";
o.quotaBytesUsed = "foo";
o.quotaBytesUsedAggregate = "foo";
@@ -378,21 +378,21 @@ buildAbout() {
checkAbout(api.About o) {
buildCounterAbout++;
if (buildCounterAbout < 3) {
- checkUnnamed588(o.additionalRoleInfo);
+ checkUnnamed595(o.additionalRoleInfo);
unittest.expect(o.domainSharingPolicy, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed590(o.exportFormats);
- checkUnnamed591(o.features);
- checkUnnamed592(o.folderColorPalette);
- checkUnnamed594(o.importFormats);
+ checkUnnamed597(o.exportFormats);
+ checkUnnamed598(o.features);
+ checkUnnamed599(o.folderColorPalette);
+ checkUnnamed601(o.importFormats);
unittest.expect(o.isCurrentAppInstalled, unittest.isTrue);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
unittest.expect(o.largestChangeId, unittest.equals('foo'));
- checkUnnamed595(o.maxUploadSizes);
+ checkUnnamed602(o.maxUploadSizes);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.permissionId, unittest.equals('foo'));
- checkUnnamed596(o.quotaBytesByService);
+ checkUnnamed603(o.quotaBytesByService);
unittest.expect(o.quotaBytesTotal, unittest.equals('foo'));
unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo'));
@@ -429,66 +429,66 @@ checkAppIcons(api.AppIcons o) {
buildCounterAppIcons--;
}
-buildUnnamed597() {
+buildUnnamed604() {
var o = new core.List<api.AppIcons>();
o.add(buildAppIcons());
o.add(buildAppIcons());
return o;
}
-checkUnnamed597(core.List<api.AppIcons> o) {
+checkUnnamed604(core.List<api.AppIcons> o) {
unittest.expect(o, unittest.hasLength(2));
checkAppIcons(o[0]);
checkAppIcons(o[1]);
}
-buildUnnamed598() {
+buildUnnamed605() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed598(core.List<core.String> o) {
+checkUnnamed605(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'));
}
-buildUnnamed599() {
+buildUnnamed606() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed599(core.List<core.String> o) {
+checkUnnamed606(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'));
}
-buildUnnamed600() {
+buildUnnamed607() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed600(core.List<core.String> o) {
+checkUnnamed607(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'));
}
-buildUnnamed601() {
+buildUnnamed608() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed601(core.List<core.String> o) {
+checkUnnamed608(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'));
@@ -503,7 +503,7 @@ buildApp() {
o.createInFolderTemplate = "foo";
o.createUrl = "foo";
o.hasDriveWideScope = true;
- o.icons = buildUnnamed597();
+ o.icons = buildUnnamed604();
o.id = "foo";
o.installed = true;
o.kind = "foo";
@@ -511,12 +511,12 @@ buildApp() {
o.name = "foo";
o.objectType = "foo";
o.openUrlTemplate = "foo";
- o.primaryFileExtensions = buildUnnamed598();
- o.primaryMimeTypes = buildUnnamed599();
+ o.primaryFileExtensions = buildUnnamed605();
+ o.primaryMimeTypes = buildUnnamed606();
o.productId = "foo";
o.productUrl = "foo";
- o.secondaryFileExtensions = buildUnnamed600();
- o.secondaryMimeTypes = buildUnnamed601();
+ o.secondaryFileExtensions = buildUnnamed607();
+ o.secondaryMimeTypes = buildUnnamed608();
o.shortDescription = "foo";
o.supportsCreate = true;
o.supportsImport = true;
@@ -535,7 +535,7 @@ checkApp(api.App o) {
unittest.expect(o.createInFolderTemplate, unittest.equals('foo'));
unittest.expect(o.createUrl, unittest.equals('foo'));
unittest.expect(o.hasDriveWideScope, unittest.isTrue);
- checkUnnamed597(o.icons);
+ checkUnnamed604(o.icons);
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.installed, unittest.isTrue);
unittest.expect(o.kind, unittest.equals('foo'));
@@ -543,12 +543,12 @@ checkApp(api.App o) {
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.objectType, unittest.equals('foo'));
unittest.expect(o.openUrlTemplate, unittest.equals('foo'));
- checkUnnamed598(o.primaryFileExtensions);
- checkUnnamed599(o.primaryMimeTypes);
+ checkUnnamed605(o.primaryFileExtensions);
+ checkUnnamed606(o.primaryMimeTypes);
unittest.expect(o.productId, unittest.equals('foo'));
unittest.expect(o.productUrl, unittest.equals('foo'));
- checkUnnamed600(o.secondaryFileExtensions);
- checkUnnamed601(o.secondaryMimeTypes);
+ checkUnnamed607(o.secondaryFileExtensions);
+ checkUnnamed608(o.secondaryMimeTypes);
unittest.expect(o.shortDescription, unittest.equals('foo'));
unittest.expect(o.supportsCreate, unittest.isTrue);
unittest.expect(o.supportsImport, unittest.isTrue);
@@ -559,27 +559,27 @@ checkApp(api.App o) {
buildCounterApp--;
}
-buildUnnamed602() {
+buildUnnamed609() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed602(core.List<core.String> o) {
+checkUnnamed609(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'));
}
-buildUnnamed603() {
+buildUnnamed610() {
var o = new core.List<api.App>();
o.add(buildApp());
o.add(buildApp());
return o;
}
-checkUnnamed603(core.List<api.App> o) {
+checkUnnamed610(core.List<api.App> o) {
unittest.expect(o, unittest.hasLength(2));
checkApp(o[0]);
checkApp(o[1]);
@@ -590,9 +590,9 @@ buildAppList() {
var o = new api.AppList();
buildCounterAppList++;
if (buildCounterAppList < 3) {
- o.defaultAppIds = buildUnnamed602();
+ o.defaultAppIds = buildUnnamed609();
o.etag = "foo";
- o.items = buildUnnamed603();
+ o.items = buildUnnamed610();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -603,9 +603,9 @@ buildAppList() {
checkAppList(api.AppList o) {
buildCounterAppList++;
if (buildCounterAppList < 3) {
- checkUnnamed602(o.defaultAppIds);
+ checkUnnamed609(o.defaultAppIds);
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed603(o.items);
+ checkUnnamed610(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -643,14 +643,14 @@ checkChange(api.Change o) {
buildCounterChange--;
}
-buildUnnamed604() {
+buildUnnamed611() {
var o = new core.List<api.Change>();
o.add(buildChange());
o.add(buildChange());
return o;
}
-checkUnnamed604(core.List<api.Change> o) {
+checkUnnamed611(core.List<api.Change> o) {
unittest.expect(o, unittest.hasLength(2));
checkChange(o[0]);
checkChange(o[1]);
@@ -662,7 +662,7 @@ buildChangeList() {
buildCounterChangeList++;
if (buildCounterChangeList < 3) {
o.etag = "foo";
- o.items = buildUnnamed604();
+ o.items = buildUnnamed611();
o.kind = "foo";
o.largestChangeId = "foo";
o.nextLink = "foo";
@@ -677,7 +677,7 @@ checkChangeList(api.ChangeList o) {
buildCounterChangeList++;
if (buildCounterChangeList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed604(o.items);
+ checkUnnamed611(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.largestChangeId, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
@@ -687,14 +687,14 @@ checkChangeList(api.ChangeList o) {
buildCounterChangeList--;
}
-buildUnnamed605() {
+buildUnnamed612() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed605(core.Map<core.String, core.String> o) {
+checkUnnamed612(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -709,7 +709,7 @@ buildChannel() {
o.expiration = "foo";
o.id = "foo";
o.kind = "foo";
- o.params = buildUnnamed605();
+ o.params = buildUnnamed612();
o.payload = true;
o.resourceId = "foo";
o.resourceUri = "foo";
@@ -727,7 +727,7 @@ checkChannel(api.Channel o) {
unittest.expect(o.expiration, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed605(o.params);
+ checkUnnamed612(o.params);
unittest.expect(o.payload, unittest.isTrue);
unittest.expect(o.resourceId, unittest.equals('foo'));
unittest.expect(o.resourceUri, unittest.equals('foo'));
@@ -737,14 +737,14 @@ checkChannel(api.Channel o) {
buildCounterChannel--;
}
-buildUnnamed606() {
+buildUnnamed613() {
var o = new core.List<api.ChildReference>();
o.add(buildChildReference());
o.add(buildChildReference());
return o;
}
-checkUnnamed606(core.List<api.ChildReference> o) {
+checkUnnamed613(core.List<api.ChildReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkChildReference(o[0]);
checkChildReference(o[1]);
@@ -756,7 +756,7 @@ buildChildList() {
buildCounterChildList++;
if (buildCounterChildList < 3) {
o.etag = "foo";
- o.items = buildUnnamed606();
+ o.items = buildUnnamed613();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -770,7 +770,7 @@ checkChildList(api.ChildList o) {
buildCounterChildList++;
if (buildCounterChildList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed606(o.items);
+ checkUnnamed613(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -825,14 +825,14 @@ checkCommentContext(api.CommentContext o) {
buildCounterCommentContext--;
}
-buildUnnamed607() {
+buildUnnamed614() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed607(core.List<api.CommentReply> o) {
+checkUnnamed614(core.List<api.CommentReply> o) {
unittest.expect(o, unittest.hasLength(2));
checkCommentReply(o[0]);
checkCommentReply(o[1]);
@@ -855,7 +855,7 @@ buildComment() {
o.htmlContent = "foo";
o.kind = "foo";
o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
- o.replies = buildUnnamed607();
+ o.replies = buildUnnamed614();
o.selfLink = "foo";
o.status = "foo";
}
@@ -878,21 +878,21 @@ checkComment(api.Comment o) {
unittest.expect(o.htmlContent, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
- checkUnnamed607(o.replies);
+ checkUnnamed614(o.replies);
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.status, unittest.equals('foo'));
}
buildCounterComment--;
}
-buildUnnamed608() {
+buildUnnamed615() {
var o = new core.List<api.Comment>();
o.add(buildComment());
o.add(buildComment());
return o;
}
-checkUnnamed608(core.List<api.Comment> o) {
+checkUnnamed615(core.List<api.Comment> o) {
unittest.expect(o, unittest.hasLength(2));
checkComment(o[0]);
checkComment(o[1]);
@@ -903,7 +903,7 @@ buildCommentList() {
var o = new api.CommentList();
buildCounterCommentList++;
if (buildCounterCommentList < 3) {
- o.items = buildUnnamed608();
+ o.items = buildUnnamed615();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -916,7 +916,7 @@ buildCommentList() {
checkCommentList(api.CommentList o) {
buildCounterCommentList++;
if (buildCounterCommentList < 3) {
- checkUnnamed608(o.items);
+ checkUnnamed615(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -960,14 +960,14 @@ checkCommentReply(api.CommentReply o) {
buildCounterCommentReply--;
}
-buildUnnamed609() {
+buildUnnamed616() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed609(core.List<api.CommentReply> o) {
+checkUnnamed616(core.List<api.CommentReply> o) {
unittest.expect(o, unittest.hasLength(2));
checkCommentReply(o[0]);
checkCommentReply(o[1]);
@@ -978,7 +978,7 @@ buildCommentReplyList() {
var o = new api.CommentReplyList();
buildCounterCommentReplyList++;
if (buildCounterCommentReplyList < 3) {
- o.items = buildUnnamed609();
+ o.items = buildUnnamed616();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -991,7 +991,7 @@ buildCommentReplyList() {
checkCommentReplyList(api.CommentReplyList o) {
buildCounterCommentReplyList++;
if (buildCounterCommentReplyList < 3) {
- checkUnnamed609(o.items);
+ checkUnnamed616(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -1000,14 +1000,14 @@ checkCommentReplyList(api.CommentReplyList o) {
buildCounterCommentReplyList--;
}
-buildUnnamed610() {
+buildUnnamed617() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed610(core.Map<core.String, core.String> o) {
+checkUnnamed617(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -1143,92 +1143,92 @@ checkFileLabels(api.FileLabels o) {
buildCounterFileLabels--;
}
-buildUnnamed611() {
+buildUnnamed618() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed611(core.Map<core.String, core.String> o) {
+checkUnnamed618(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
}
-buildUnnamed612() {
+buildUnnamed619() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed612(core.List<core.String> o) {
+checkUnnamed619(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'));
}
-buildUnnamed613() {
+buildUnnamed620() {
var o = new core.List<api.User>();
o.add(buildUser());
o.add(buildUser());
return o;
}
-checkUnnamed613(core.List<api.User> o) {
+checkUnnamed620(core.List<api.User> o) {
unittest.expect(o, unittest.hasLength(2));
checkUser(o[0]);
checkUser(o[1]);
}
-buildUnnamed614() {
+buildUnnamed621() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed614(core.List<api.ParentReference> o) {
+checkUnnamed621(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
}
-buildUnnamed615() {
+buildUnnamed622() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed615(core.List<api.Permission> o) {
+checkUnnamed622(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
}
-buildUnnamed616() {
+buildUnnamed623() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed616(core.List<api.Property> o) {
+checkUnnamed623(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
}
-buildUnnamed617() {
+buildUnnamed624() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed617(core.List<core.String> o) {
+checkUnnamed624(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'));
@@ -1296,7 +1296,7 @@ buildFile() {
o.embedLink = "foo";
o.etag = "foo";
o.explicitlyTrashed = true;
- o.exportLinks = buildUnnamed610();
+ o.exportLinks = buildUnnamed617();
o.fileExtension = "foo";
o.fileSize = "foo";
o.folderColorRgb = "foo";
@@ -1318,21 +1318,21 @@ buildFile() {
o.mimeType = "foo";
o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
- o.openWithLinks = buildUnnamed611();
+ o.openWithLinks = buildUnnamed618();
o.originalFilename = "foo";
o.ownedByMe = true;
- o.ownerNames = buildUnnamed612();
- o.owners = buildUnnamed613();
- o.parents = buildUnnamed614();
- o.permissions = buildUnnamed615();
- o.properties = buildUnnamed616();
+ o.ownerNames = buildUnnamed619();
+ o.owners = buildUnnamed620();
+ o.parents = buildUnnamed621();
+ o.permissions = buildUnnamed622();
+ o.properties = buildUnnamed623();
o.quotaBytesUsed = "foo";
o.selfLink = "foo";
o.shareable = true;
o.shared = true;
o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
o.sharingUser = buildUser();
- o.spaces = buildUnnamed617();
+ o.spaces = buildUnnamed624();
o.thumbnail = buildFileThumbnail();
o.thumbnailLink = "foo";
o.thumbnailVersion = "foo";
@@ -1364,7 +1364,7 @@ checkFile(api.File o) {
unittest.expect(o.embedLink, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.explicitlyTrashed, unittest.isTrue);
- checkUnnamed610(o.exportLinks);
+ checkUnnamed617(o.exportLinks);
unittest.expect(o.fileExtension, unittest.equals('foo'));
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.folderColorRgb, unittest.equals('foo'));
@@ -1386,21 +1386,21 @@ checkFile(api.File o) {
unittest.expect(o.mimeType, unittest.equals('foo'));
unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
- checkUnnamed611(o.openWithLinks);
+ checkUnnamed618(o.openWithLinks);
unittest.expect(o.originalFilename, unittest.equals('foo'));
unittest.expect(o.ownedByMe, unittest.isTrue);
- checkUnnamed612(o.ownerNames);
- checkUnnamed613(o.owners);
- checkUnnamed614(o.parents);
- checkUnnamed615(o.permissions);
- checkUnnamed616(o.properties);
+ checkUnnamed619(o.ownerNames);
+ checkUnnamed620(o.owners);
+ checkUnnamed621(o.parents);
+ checkUnnamed622(o.permissions);
+ checkUnnamed623(o.properties);
unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.shareable, unittest.isTrue);
unittest.expect(o.shared, unittest.isTrue);
unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
checkUser(o.sharingUser);
- checkUnnamed617(o.spaces);
+ checkUnnamed624(o.spaces);
checkFileThumbnail(o.thumbnail);
unittest.expect(o.thumbnailLink, unittest.equals('foo'));
unittest.expect(o.thumbnailVersion, unittest.equals('foo'));
@@ -1415,14 +1415,14 @@ checkFile(api.File o) {
buildCounterFile--;
}
-buildUnnamed618() {
+buildUnnamed625() {
var o = new core.List<api.File>();
o.add(buildFile());
o.add(buildFile());
return o;
}
-checkUnnamed618(core.List<api.File> o) {
+checkUnnamed625(core.List<api.File> o) {
unittest.expect(o, unittest.hasLength(2));
checkFile(o[0]);
checkFile(o[1]);
@@ -1434,7 +1434,7 @@ buildFileList() {
buildCounterFileList++;
if (buildCounterFileList < 3) {
o.etag = "foo";
- o.items = buildUnnamed618();
+ o.items = buildUnnamed625();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -1448,7 +1448,7 @@ checkFileList(api.FileList o) {
buildCounterFileList++;
if (buildCounterFileList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed618(o.items);
+ checkUnnamed625(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -1457,14 +1457,14 @@ checkFileList(api.FileList o) {
buildCounterFileList--;
}
-buildUnnamed619() {
+buildUnnamed626() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed619(core.List<core.String> o) {
+checkUnnamed626(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'));
@@ -1475,7 +1475,7 @@ buildGeneratedIds() {
var o = new api.GeneratedIds();
buildCounterGeneratedIds++;
if (buildCounterGeneratedIds < 3) {
- o.ids = buildUnnamed619();
+ o.ids = buildUnnamed626();
o.kind = "foo";
o.space = "foo";
}
@@ -1486,21 +1486,21 @@ buildGeneratedIds() {
checkGeneratedIds(api.GeneratedIds o) {
buildCounterGeneratedIds++;
if (buildCounterGeneratedIds < 3) {
- checkUnnamed619(o.ids);
+ checkUnnamed626(o.ids);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.space, unittest.equals('foo'));
}
buildCounterGeneratedIds--;
}
-buildUnnamed620() {
+buildUnnamed627() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed620(core.List<api.ParentReference> o) {
+checkUnnamed627(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
@@ -1512,7 +1512,7 @@ buildParentList() {
buildCounterParentList++;
if (buildCounterParentList < 3) {
o.etag = "foo";
- o.items = buildUnnamed620();
+ o.items = buildUnnamed627();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1524,7 +1524,7 @@ checkParentList(api.ParentList o) {
buildCounterParentList++;
if (buildCounterParentList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed620(o.items);
+ checkUnnamed627(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1558,14 +1558,14 @@ checkParentReference(api.ParentReference o) {
buildCounterParentReference--;
}
-buildUnnamed621() {
+buildUnnamed628() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed621(core.List<core.String> o) {
+checkUnnamed628(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'));
@@ -1576,7 +1576,7 @@ buildPermission() {
var o = new api.Permission();
buildCounterPermission++;
if (buildCounterPermission < 3) {
- o.additionalRoles = buildUnnamed621();
+ o.additionalRoles = buildUnnamed628();
o.authKey = "foo";
o.domain = "foo";
o.emailAddress = "foo";
@@ -1599,7 +1599,7 @@ buildPermission() {
checkPermission(api.Permission o) {
buildCounterPermission++;
if (buildCounterPermission < 3) {
- checkUnnamed621(o.additionalRoles);
+ checkUnnamed628(o.additionalRoles);
unittest.expect(o.authKey, unittest.equals('foo'));
unittest.expect(o.domain, unittest.equals('foo'));
unittest.expect(o.emailAddress, unittest.equals('foo'));
@@ -1639,14 +1639,14 @@ checkPermissionId(api.PermissionId o) {
buildCounterPermissionId--;
}
-buildUnnamed622() {
+buildUnnamed629() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed622(core.List<api.Permission> o) {
+checkUnnamed629(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
@@ -1658,7 +1658,7 @@ buildPermissionList() {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed622();
+ o.items = buildUnnamed629();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1670,7 +1670,7 @@ checkPermissionList(api.PermissionList o) {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed622(o.items);
+ checkUnnamed629(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1706,14 +1706,14 @@ checkProperty(api.Property o) {
buildCounterProperty--;
}
-buildUnnamed623() {
+buildUnnamed630() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed623(core.List<api.Property> o) {
+checkUnnamed630(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
@@ -1725,7 +1725,7 @@ buildPropertyList() {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
o.etag = "foo";
- o.items = buildUnnamed623();
+ o.items = buildUnnamed630();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1737,21 +1737,21 @@ checkPropertyList(api.PropertyList o) {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed623(o.items);
+ checkUnnamed630(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
buildCounterPropertyList--;
}
-buildUnnamed624() {
+buildUnnamed631() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed624(core.Map<core.String, core.String> o) {
+checkUnnamed631(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -1764,7 +1764,7 @@ buildRevision() {
if (buildCounterRevision < 3) {
o.downloadUrl = "foo";
o.etag = "foo";
- o.exportLinks = buildUnnamed624();
+ o.exportLinks = buildUnnamed631();
o.fileSize = "foo";
o.id = "foo";
o.kind = "foo";
@@ -1790,7 +1790,7 @@ checkRevision(api.Revision o) {
if (buildCounterRevision < 3) {
unittest.expect(o.downloadUrl, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed624(o.exportLinks);
+ checkUnnamed631(o.exportLinks);
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
@@ -1810,14 +1810,14 @@ checkRevision(api.Revision o) {
buildCounterRevision--;
}
-buildUnnamed625() {
+buildUnnamed632() {
var o = new core.List<api.Revision>();
o.add(buildRevision());
o.add(buildRevision());
return o;
}
-checkUnnamed625(core.List<api.Revision> o) {
+checkUnnamed632(core.List<api.Revision> o) {
unittest.expect(o, unittest.hasLength(2));
checkRevision(o[0]);
checkRevision(o[1]);
@@ -1829,7 +1829,7 @@ buildRevisionList() {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed625();
+ o.items = buildUnnamed632();
o.kind = "foo";
o.nextPageToken = "foo";
o.selfLink = "foo";
@@ -1842,7 +1842,7 @@ checkRevisionList(api.RevisionList o) {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed625(o.items);
+ checkUnnamed632(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
@@ -1850,6 +1850,27 @@ checkRevisionList(api.RevisionList o) {
buildCounterRevisionList--;
}
+core.int buildCounterStartPageToken = 0;
+buildStartPageToken() {
+ var o = new api.StartPageToken();
+ buildCounterStartPageToken++;
+ if (buildCounterStartPageToken < 3) {
+ o.kind = "foo";
+ o.startPageToken = "foo";
+ }
+ buildCounterStartPageToken--;
+ return o;
+}
+
+checkStartPageToken(api.StartPageToken o) {
+ buildCounterStartPageToken++;
+ if (buildCounterStartPageToken < 3) {
+ unittest.expect(o.kind, unittest.equals('foo'));
+ unittest.expect(o.startPageToken, unittest.equals('foo'));
+ }
+ buildCounterStartPageToken--;
+}
+
core.int buildCounterUserPicture = 0;
buildUserPicture() {
var o = new api.UserPicture();
@@ -2251,6 +2272,15 @@ main() {
});
+ unittest.group("obj-schema-StartPageToken", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildStartPageToken();
+ var od = new api.StartPageToken.fromJson(o.toJson());
+ checkStartPageToken(od);
+ });
+ });
+
+
unittest.group("obj-schema-UserPicture", () {
unittest.test("to-json--from-json", () {
var o = buildUserPicture();
@@ -2478,6 +2508,51 @@ main() {
})));
});
+ unittest.test("method--getStartPageToken", () {
+
+ var mock = new HttpServerMock();
+ api.ChangesResourceApi res = new api.DriveApi(mock).changes;
+ 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 + 9), unittest.equals("drive/v2/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("changes/startPageToken"));
+ pathOffset += 22;
+
+ 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]));
+ }
+ }
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildStartPageToken());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res.getStartPageToken().then(unittest.expectAsync(((api.StartPageToken response) {
+ checkStartPageToken(response);
+ })));
+ });
+
unittest.test("method--list", () {
var mock = new HttpServerMock();
« no previous file with comments | « generated/googleapis/test/doubleclicksearch/v2_test.dart ('k') | generated/googleapis/test/drive/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698