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

Unified Diff: generated/googleapis/test/drive/v2_test.dart

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 d1a26f2a2c3cafc5f0601d36d80c9b23cab82499..f4b1d83235ee3674df8b92d230de4b38a25d1cfc 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);
}
-buildUnnamed1615() {
+buildUnnamed681() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1615(core.List<core.String> o) {
+checkUnnamed681(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 = buildUnnamed1615();
+ o.additionalRoles = buildUnnamed681();
o.primaryRole = "foo";
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
@@ -79,20 +79,20 @@ buildAboutAdditionalRoleInfoRoleSets() {
checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) {
buildCounterAboutAdditionalRoleInfoRoleSets++;
if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
- checkUnnamed1615(o.additionalRoles);
+ checkUnnamed681(o.additionalRoles);
unittest.expect(o.primaryRole, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
}
-buildUnnamed1616() {
+buildUnnamed682() {
var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>();
o.add(buildAboutAdditionalRoleInfoRoleSets());
o.add(buildAboutAdditionalRoleInfoRoleSets());
return o;
}
-checkUnnamed1616(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
+checkUnnamed682(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 = buildUnnamed1616();
+ o.roleSets = buildUnnamed682();
o.type = "foo";
}
buildCounterAboutAdditionalRoleInfo--;
@@ -113,33 +113,33 @@ buildAboutAdditionalRoleInfo() {
checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) {
buildCounterAboutAdditionalRoleInfo++;
if (buildCounterAboutAdditionalRoleInfo < 3) {
- checkUnnamed1616(o.roleSets);
+ checkUnnamed682(o.roleSets);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfo--;
}
-buildUnnamed1617() {
+buildUnnamed683() {
var o = new core.List<api.AboutAdditionalRoleInfo>();
o.add(buildAboutAdditionalRoleInfo());
o.add(buildAboutAdditionalRoleInfo());
return o;
}
-checkUnnamed1617(core.List<api.AboutAdditionalRoleInfo> o) {
+checkUnnamed683(core.List<api.AboutAdditionalRoleInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutAdditionalRoleInfo(o[0]);
checkAboutAdditionalRoleInfo(o[1]);
}
-buildUnnamed1618() {
+buildUnnamed684() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1618(core.List<core.String> o) {
+checkUnnamed684(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 = buildUnnamed1618();
+ o.targets = buildUnnamed684();
}
buildCounterAboutExportFormats--;
return o;
@@ -161,19 +161,19 @@ checkAboutExportFormats(api.AboutExportFormats o) {
buildCounterAboutExportFormats++;
if (buildCounterAboutExportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed1618(o.targets);
+ checkUnnamed684(o.targets);
}
buildCounterAboutExportFormats--;
}
-buildUnnamed1619() {
+buildUnnamed685() {
var o = new core.List<api.AboutExportFormats>();
o.add(buildAboutExportFormats());
o.add(buildAboutExportFormats());
return o;
}
-checkUnnamed1619(core.List<api.AboutExportFormats> o) {
+checkUnnamed685(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--;
}
-buildUnnamed1620() {
+buildUnnamed686() {
var o = new core.List<api.AboutFeatures>();
o.add(buildAboutFeatures());
o.add(buildAboutFeatures());
return o;
}
-checkUnnamed1620(core.List<api.AboutFeatures> o) {
+checkUnnamed686(core.List<api.AboutFeatures> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutFeatures(o[0]);
checkAboutFeatures(o[1]);
}
-buildUnnamed1621() {
+buildUnnamed687() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1621(core.List<core.String> o) {
+checkUnnamed687(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'));
}
-buildUnnamed1622() {
+buildUnnamed688() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1622(core.List<core.String> o) {
+checkUnnamed688(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 = buildUnnamed1622();
+ o.targets = buildUnnamed688();
}
buildCounterAboutImportFormats--;
return o;
@@ -255,19 +255,19 @@ checkAboutImportFormats(api.AboutImportFormats o) {
buildCounterAboutImportFormats++;
if (buildCounterAboutImportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed1622(o.targets);
+ checkUnnamed688(o.targets);
}
buildCounterAboutImportFormats--;
}
-buildUnnamed1623() {
+buildUnnamed689() {
var o = new core.List<api.AboutImportFormats>();
o.add(buildAboutImportFormats());
o.add(buildAboutImportFormats());
return o;
}
-checkUnnamed1623(core.List<api.AboutImportFormats> o) {
+checkUnnamed689(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--;
}
-buildUnnamed1624() {
+buildUnnamed690() {
var o = new core.List<api.AboutMaxUploadSizes>();
o.add(buildAboutMaxUploadSizes());
o.add(buildAboutMaxUploadSizes());
return o;
}
-checkUnnamed1624(core.List<api.AboutMaxUploadSizes> o) {
+checkUnnamed690(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--;
}
-buildUnnamed1625() {
+buildUnnamed691() {
var o = new core.List<api.AboutQuotaBytesByService>();
o.add(buildAboutQuotaBytesByService());
o.add(buildAboutQuotaBytesByService());
return o;
}
-checkUnnamed1625(core.List<api.AboutQuotaBytesByService> o) {
+checkUnnamed691(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 = buildUnnamed1617();
+ o.additionalRoleInfo = buildUnnamed683();
o.domainSharingPolicy = "foo";
o.etag = "foo";
- o.exportFormats = buildUnnamed1619();
- o.features = buildUnnamed1620();
- o.folderColorPalette = buildUnnamed1621();
- o.importFormats = buildUnnamed1623();
+ o.exportFormats = buildUnnamed685();
+ o.features = buildUnnamed686();
+ o.folderColorPalette = buildUnnamed687();
+ o.importFormats = buildUnnamed689();
o.isCurrentAppInstalled = true;
o.kind = "foo";
o.languageCode = "foo";
o.largestChangeId = "foo";
- o.maxUploadSizes = buildUnnamed1624();
+ o.maxUploadSizes = buildUnnamed690();
o.name = "foo";
o.permissionId = "foo";
- o.quotaBytesByService = buildUnnamed1625();
+ o.quotaBytesByService = buildUnnamed691();
o.quotaBytesTotal = "foo";
o.quotaBytesUsed = "foo";
o.quotaBytesUsedAggregate = "foo";
@@ -378,21 +378,21 @@ buildAbout() {
checkAbout(api.About o) {
buildCounterAbout++;
if (buildCounterAbout < 3) {
- checkUnnamed1617(o.additionalRoleInfo);
+ checkUnnamed683(o.additionalRoleInfo);
unittest.expect(o.domainSharingPolicy, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1619(o.exportFormats);
- checkUnnamed1620(o.features);
- checkUnnamed1621(o.folderColorPalette);
- checkUnnamed1623(o.importFormats);
+ checkUnnamed685(o.exportFormats);
+ checkUnnamed686(o.features);
+ checkUnnamed687(o.folderColorPalette);
+ checkUnnamed689(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'));
- checkUnnamed1624(o.maxUploadSizes);
+ checkUnnamed690(o.maxUploadSizes);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.permissionId, unittest.equals('foo'));
- checkUnnamed1625(o.quotaBytesByService);
+ checkUnnamed691(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--;
}
-buildUnnamed1626() {
+buildUnnamed692() {
var o = new core.List<api.AppIcons>();
o.add(buildAppIcons());
o.add(buildAppIcons());
return o;
}
-checkUnnamed1626(core.List<api.AppIcons> o) {
+checkUnnamed692(core.List<api.AppIcons> o) {
unittest.expect(o, unittest.hasLength(2));
checkAppIcons(o[0]);
checkAppIcons(o[1]);
}
-buildUnnamed1627() {
+buildUnnamed693() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1627(core.List<core.String> o) {
+checkUnnamed693(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'));
}
-buildUnnamed1628() {
+buildUnnamed694() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1628(core.List<core.String> o) {
+checkUnnamed694(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'));
}
-buildUnnamed1629() {
+buildUnnamed695() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1629(core.List<core.String> o) {
+checkUnnamed695(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'));
}
-buildUnnamed1630() {
+buildUnnamed696() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1630(core.List<core.String> o) {
+checkUnnamed696(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 = buildUnnamed1626();
+ o.icons = buildUnnamed692();
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 = buildUnnamed1627();
- o.primaryMimeTypes = buildUnnamed1628();
+ o.primaryFileExtensions = buildUnnamed693();
+ o.primaryMimeTypes = buildUnnamed694();
o.productId = "foo";
o.productUrl = "foo";
- o.secondaryFileExtensions = buildUnnamed1629();
- o.secondaryMimeTypes = buildUnnamed1630();
+ o.secondaryFileExtensions = buildUnnamed695();
+ o.secondaryMimeTypes = buildUnnamed696();
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);
- checkUnnamed1626(o.icons);
+ checkUnnamed692(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'));
- checkUnnamed1627(o.primaryFileExtensions);
- checkUnnamed1628(o.primaryMimeTypes);
+ checkUnnamed693(o.primaryFileExtensions);
+ checkUnnamed694(o.primaryMimeTypes);
unittest.expect(o.productId, unittest.equals('foo'));
unittest.expect(o.productUrl, unittest.equals('foo'));
- checkUnnamed1629(o.secondaryFileExtensions);
- checkUnnamed1630(o.secondaryMimeTypes);
+ checkUnnamed695(o.secondaryFileExtensions);
+ checkUnnamed696(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--;
}
-buildUnnamed1631() {
+buildUnnamed697() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1631(core.List<core.String> o) {
+checkUnnamed697(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'));
}
-buildUnnamed1632() {
+buildUnnamed698() {
var o = new core.List<api.App>();
o.add(buildApp());
o.add(buildApp());
return o;
}
-checkUnnamed1632(core.List<api.App> o) {
+checkUnnamed698(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 = buildUnnamed1631();
+ o.defaultAppIds = buildUnnamed697();
o.etag = "foo";
- o.items = buildUnnamed1632();
+ o.items = buildUnnamed698();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -603,9 +603,9 @@ buildAppList() {
checkAppList(api.AppList o) {
buildCounterAppList++;
if (buildCounterAppList < 3) {
- checkUnnamed1631(o.defaultAppIds);
+ checkUnnamed697(o.defaultAppIds);
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1632(o.items);
+ checkUnnamed698(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--;
}
-buildUnnamed1633() {
+buildUnnamed699() {
var o = new core.List<api.Change>();
o.add(buildChange());
o.add(buildChange());
return o;
}
-checkUnnamed1633(core.List<api.Change> o) {
+checkUnnamed699(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 = buildUnnamed1633();
+ o.items = buildUnnamed699();
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'));
- checkUnnamed1633(o.items);
+ checkUnnamed699(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--;
}
-buildUnnamed1634() {
+buildUnnamed700() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1634(core.Map<core.String, core.String> o) {
+checkUnnamed700(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 = buildUnnamed1634();
+ o.params = buildUnnamed700();
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'));
- checkUnnamed1634(o.params);
+ checkUnnamed700(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--;
}
-buildUnnamed1635() {
+buildUnnamed701() {
var o = new core.List<api.ChildReference>();
o.add(buildChildReference());
o.add(buildChildReference());
return o;
}
-checkUnnamed1635(core.List<api.ChildReference> o) {
+checkUnnamed701(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 = buildUnnamed1635();
+ o.items = buildUnnamed701();
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'));
- checkUnnamed1635(o.items);
+ checkUnnamed701(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--;
}
-buildUnnamed1636() {
+buildUnnamed702() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed1636(core.List<api.CommentReply> o) {
+checkUnnamed702(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 = buildUnnamed1636();
+ o.replies = buildUnnamed702();
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")));
- checkUnnamed1636(o.replies);
+ checkUnnamed702(o.replies);
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.status, unittest.equals('foo'));
}
buildCounterComment--;
}
-buildUnnamed1637() {
+buildUnnamed703() {
var o = new core.List<api.Comment>();
o.add(buildComment());
o.add(buildComment());
return o;
}
-checkUnnamed1637(core.List<api.Comment> o) {
+checkUnnamed703(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 = buildUnnamed1637();
+ o.items = buildUnnamed703();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -916,7 +916,7 @@ buildCommentList() {
checkCommentList(api.CommentList o) {
buildCounterCommentList++;
if (buildCounterCommentList < 3) {
- checkUnnamed1637(o.items);
+ checkUnnamed703(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--;
}
-buildUnnamed1638() {
+buildUnnamed704() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed1638(core.List<api.CommentReply> o) {
+checkUnnamed704(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 = buildUnnamed1638();
+ o.items = buildUnnamed704();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -991,7 +991,7 @@ buildCommentReplyList() {
checkCommentReplyList(api.CommentReplyList o) {
buildCounterCommentReplyList++;
if (buildCounterCommentReplyList < 3) {
- checkUnnamed1638(o.items);
+ checkUnnamed704(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--;
}
-buildUnnamed1639() {
+buildUnnamed705() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1639(core.Map<core.String, core.String> o) {
+checkUnnamed705(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'));
@@ -1141,92 +1141,92 @@ checkFileLabels(api.FileLabels o) {
buildCounterFileLabels--;
}
-buildUnnamed1640() {
+buildUnnamed706() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1640(core.Map<core.String, core.String> o) {
+checkUnnamed706(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'));
}
-buildUnnamed1641() {
+buildUnnamed707() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1641(core.List<core.String> o) {
+checkUnnamed707(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'));
}
-buildUnnamed1642() {
+buildUnnamed708() {
var o = new core.List<api.User>();
o.add(buildUser());
o.add(buildUser());
return o;
}
-checkUnnamed1642(core.List<api.User> o) {
+checkUnnamed708(core.List<api.User> o) {
unittest.expect(o, unittest.hasLength(2));
checkUser(o[0]);
checkUser(o[1]);
}
-buildUnnamed1643() {
+buildUnnamed709() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed1643(core.List<api.ParentReference> o) {
+checkUnnamed709(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
}
-buildUnnamed1644() {
+buildUnnamed710() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed1644(core.List<api.Permission> o) {
+checkUnnamed710(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
}
-buildUnnamed1645() {
+buildUnnamed711() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed1645(core.List<api.Property> o) {
+checkUnnamed711(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
}
-buildUnnamed1646() {
+buildUnnamed712() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1646(core.List<core.String> o) {
+checkUnnamed712(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'));
@@ -1293,10 +1293,11 @@ buildFile() {
o.embedLink = "foo";
o.etag = "foo";
o.explicitlyTrashed = true;
- o.exportLinks = buildUnnamed1639();
+ o.exportLinks = buildUnnamed705();
o.fileExtension = "foo";
o.fileSize = "foo";
o.folderColorRgb = "foo";
+ o.fullFileExtension = "foo";
o.headRevisionId = "foo";
o.iconLink = "foo";
o.id = "foo";
@@ -1312,21 +1313,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 = buildUnnamed1640();
+ o.openWithLinks = buildUnnamed706();
o.originalFilename = "foo";
o.ownedByMe = true;
- o.ownerNames = buildUnnamed1641();
- o.owners = buildUnnamed1642();
- o.parents = buildUnnamed1643();
- o.permissions = buildUnnamed1644();
- o.properties = buildUnnamed1645();
+ o.ownerNames = buildUnnamed707();
+ o.owners = buildUnnamed708();
+ o.parents = buildUnnamed709();
+ o.permissions = buildUnnamed710();
+ o.properties = buildUnnamed711();
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 = buildUnnamed1646();
+ o.spaces = buildUnnamed712();
o.thumbnail = buildFileThumbnail();
o.thumbnailLink = "foo";
o.title = "foo";
@@ -1356,10 +1357,11 @@ checkFile(api.File o) {
unittest.expect(o.embedLink, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.explicitlyTrashed, unittest.isTrue);
- checkUnnamed1639(o.exportLinks);
+ checkUnnamed705(o.exportLinks);
unittest.expect(o.fileExtension, unittest.equals('foo'));
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.folderColorRgb, unittest.equals('foo'));
+ unittest.expect(o.fullFileExtension, unittest.equals('foo'));
unittest.expect(o.headRevisionId, unittest.equals('foo'));
unittest.expect(o.iconLink, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
@@ -1375,21 +1377,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")));
- checkUnnamed1640(o.openWithLinks);
+ checkUnnamed706(o.openWithLinks);
unittest.expect(o.originalFilename, unittest.equals('foo'));
unittest.expect(o.ownedByMe, unittest.isTrue);
- checkUnnamed1641(o.ownerNames);
- checkUnnamed1642(o.owners);
- checkUnnamed1643(o.parents);
- checkUnnamed1644(o.permissions);
- checkUnnamed1645(o.properties);
+ checkUnnamed707(o.ownerNames);
+ checkUnnamed708(o.owners);
+ checkUnnamed709(o.parents);
+ checkUnnamed710(o.permissions);
+ checkUnnamed711(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);
- checkUnnamed1646(o.spaces);
+ checkUnnamed712(o.spaces);
checkFileThumbnail(o.thumbnail);
unittest.expect(o.thumbnailLink, unittest.equals('foo'));
unittest.expect(o.title, unittest.equals('foo'));
@@ -1403,14 +1405,14 @@ checkFile(api.File o) {
buildCounterFile--;
}
-buildUnnamed1647() {
+buildUnnamed713() {
var o = new core.List<api.File>();
o.add(buildFile());
o.add(buildFile());
return o;
}
-checkUnnamed1647(core.List<api.File> o) {
+checkUnnamed713(core.List<api.File> o) {
unittest.expect(o, unittest.hasLength(2));
checkFile(o[0]);
checkFile(o[1]);
@@ -1422,7 +1424,7 @@ buildFileList() {
buildCounterFileList++;
if (buildCounterFileList < 3) {
o.etag = "foo";
- o.items = buildUnnamed1647();
+ o.items = buildUnnamed713();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -1436,7 +1438,7 @@ checkFileList(api.FileList o) {
buildCounterFileList++;
if (buildCounterFileList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1647(o.items);
+ checkUnnamed713(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -1445,14 +1447,50 @@ checkFileList(api.FileList o) {
buildCounterFileList--;
}
-buildUnnamed1648() {
+buildUnnamed714() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed714(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'));
+}
+
+core.int buildCounterGeneratedIds = 0;
+buildGeneratedIds() {
+ var o = new api.GeneratedIds();
+ buildCounterGeneratedIds++;
+ if (buildCounterGeneratedIds < 3) {
+ o.ids = buildUnnamed714();
+ o.kind = "foo";
+ o.space = "foo";
+ }
+ buildCounterGeneratedIds--;
+ return o;
+}
+
+checkGeneratedIds(api.GeneratedIds o) {
+ buildCounterGeneratedIds++;
+ if (buildCounterGeneratedIds < 3) {
+ checkUnnamed714(o.ids);
+ unittest.expect(o.kind, unittest.equals('foo'));
+ unittest.expect(o.space, unittest.equals('foo'));
+ }
+ buildCounterGeneratedIds--;
+}
+
+buildUnnamed715() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed1648(core.List<api.ParentReference> o) {
+checkUnnamed715(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
@@ -1464,7 +1502,7 @@ buildParentList() {
buildCounterParentList++;
if (buildCounterParentList < 3) {
o.etag = "foo";
- o.items = buildUnnamed1648();
+ o.items = buildUnnamed715();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1476,7 +1514,7 @@ checkParentList(api.ParentList o) {
buildCounterParentList++;
if (buildCounterParentList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1648(o.items);
+ checkUnnamed715(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1510,14 +1548,14 @@ checkParentReference(api.ParentReference o) {
buildCounterParentReference--;
}
-buildUnnamed1649() {
+buildUnnamed716() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1649(core.List<core.String> o) {
+checkUnnamed716(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'));
@@ -1528,7 +1566,7 @@ buildPermission() {
var o = new api.Permission();
buildCounterPermission++;
if (buildCounterPermission < 3) {
- o.additionalRoles = buildUnnamed1649();
+ o.additionalRoles = buildUnnamed716();
o.authKey = "foo";
o.domain = "foo";
o.emailAddress = "foo";
@@ -1550,7 +1588,7 @@ buildPermission() {
checkPermission(api.Permission o) {
buildCounterPermission++;
if (buildCounterPermission < 3) {
- checkUnnamed1649(o.additionalRoles);
+ checkUnnamed716(o.additionalRoles);
unittest.expect(o.authKey, unittest.equals('foo'));
unittest.expect(o.domain, unittest.equals('foo'));
unittest.expect(o.emailAddress, unittest.equals('foo'));
@@ -1589,14 +1627,14 @@ checkPermissionId(api.PermissionId o) {
buildCounterPermissionId--;
}
-buildUnnamed1650() {
+buildUnnamed717() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed1650(core.List<api.Permission> o) {
+checkUnnamed717(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
@@ -1608,7 +1646,7 @@ buildPermissionList() {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed1650();
+ o.items = buildUnnamed717();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1620,7 +1658,7 @@ checkPermissionList(api.PermissionList o) {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1650(o.items);
+ checkUnnamed717(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1656,14 +1694,14 @@ checkProperty(api.Property o) {
buildCounterProperty--;
}
-buildUnnamed1651() {
+buildUnnamed718() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed1651(core.List<api.Property> o) {
+checkUnnamed718(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
@@ -1675,7 +1713,7 @@ buildPropertyList() {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
o.etag = "foo";
- o.items = buildUnnamed1651();
+ o.items = buildUnnamed718();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1687,21 +1725,21 @@ checkPropertyList(api.PropertyList o) {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1651(o.items);
+ checkUnnamed718(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
buildCounterPropertyList--;
}
-buildUnnamed1652() {
+buildUnnamed719() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1652(core.Map<core.String, core.String> o) {
+checkUnnamed719(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'));
@@ -1714,7 +1752,7 @@ buildRevision() {
if (buildCounterRevision < 3) {
o.downloadUrl = "foo";
o.etag = "foo";
- o.exportLinks = buildUnnamed1652();
+ o.exportLinks = buildUnnamed719();
o.fileSize = "foo";
o.id = "foo";
o.kind = "foo";
@@ -1740,7 +1778,7 @@ checkRevision(api.Revision o) {
if (buildCounterRevision < 3) {
unittest.expect(o.downloadUrl, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1652(o.exportLinks);
+ checkUnnamed719(o.exportLinks);
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
@@ -1760,14 +1798,14 @@ checkRevision(api.Revision o) {
buildCounterRevision--;
}
-buildUnnamed1653() {
+buildUnnamed720() {
var o = new core.List<api.Revision>();
o.add(buildRevision());
o.add(buildRevision());
return o;
}
-checkUnnamed1653(core.List<api.Revision> o) {
+checkUnnamed720(core.List<api.Revision> o) {
unittest.expect(o, unittest.hasLength(2));
checkRevision(o[0]);
checkRevision(o[1]);
@@ -1779,7 +1817,7 @@ buildRevisionList() {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed1653();
+ o.items = buildUnnamed720();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1791,7 +1829,7 @@ checkRevisionList(api.RevisionList o) {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed1653(o.items);
+ checkUnnamed720(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -2109,6 +2147,15 @@ main() {
});
+ unittest.group("obj-schema-GeneratedIds", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGeneratedIds();
+ var od = new api.GeneratedIds.fromJson(o.toJson());
+ checkGeneratedIds(od);
+ });
+ });
+
+
unittest.group("obj-schema-ParentList", () {
unittest.test("to-json--from-json", () {
var o = buildParentList();
@@ -3341,6 +3388,55 @@ main() {
res.emptyTrash().then(unittest.expectAsync((_) {}));
});
+ unittest.test("method--generateIds", () {
+
+ var mock = new HttpServerMock();
+ api.FilesResourceApi res = new api.DriveApi(mock).files;
+ var arg_maxResults = 42;
+ var arg_space = "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 + 9), unittest.equals("drive/v2/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("files/generateIds"));
+ pathOffset += 17;
+
+ 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(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
+ unittest.expect(queryMap["space"].first, unittest.equals(arg_space));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildGeneratedIds());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res.generateIds(maxResults: arg_maxResults, space: arg_space).then(unittest.expectAsync(((api.GeneratedIds response) {
+ checkGeneratedIds(response);
+ })));
+ });
+
unittest.test("method--get", () {
// TODO: Implement tests for media upload;
// TODO: Implement tests for media download;
« no previous file with comments | « generated/googleapis/test/doubleclicksearch/v2_test.dart ('k') | generated/googleapis/test/fitness/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698