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

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

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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 2e4d347fee8a89980d77dea52aeeb8456382108e..b6c86fc09063666e8a1a3c52b3848a6cf400b6e3 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);
}
-buildUnnamed704() {
+buildUnnamed963() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed704(core.List<core.String> o) {
+checkUnnamed963(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 = buildUnnamed704();
+ o.additionalRoles = buildUnnamed963();
o.primaryRole = "foo";
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
@@ -79,20 +79,20 @@ buildAboutAdditionalRoleInfoRoleSets() {
checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) {
buildCounterAboutAdditionalRoleInfoRoleSets++;
if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
- checkUnnamed704(o.additionalRoles);
+ checkUnnamed963(o.additionalRoles);
unittest.expect(o.primaryRole, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfoRoleSets--;
}
-buildUnnamed705() {
+buildUnnamed964() {
var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>();
o.add(buildAboutAdditionalRoleInfoRoleSets());
o.add(buildAboutAdditionalRoleInfoRoleSets());
return o;
}
-checkUnnamed705(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
+checkUnnamed964(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 = buildUnnamed705();
+ o.roleSets = buildUnnamed964();
o.type = "foo";
}
buildCounterAboutAdditionalRoleInfo--;
@@ -113,33 +113,33 @@ buildAboutAdditionalRoleInfo() {
checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) {
buildCounterAboutAdditionalRoleInfo++;
if (buildCounterAboutAdditionalRoleInfo < 3) {
- checkUnnamed705(o.roleSets);
+ checkUnnamed964(o.roleSets);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterAboutAdditionalRoleInfo--;
}
-buildUnnamed706() {
+buildUnnamed965() {
var o = new core.List<api.AboutAdditionalRoleInfo>();
o.add(buildAboutAdditionalRoleInfo());
o.add(buildAboutAdditionalRoleInfo());
return o;
}
-checkUnnamed706(core.List<api.AboutAdditionalRoleInfo> o) {
+checkUnnamed965(core.List<api.AboutAdditionalRoleInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutAdditionalRoleInfo(o[0]);
checkAboutAdditionalRoleInfo(o[1]);
}
-buildUnnamed707() {
+buildUnnamed966() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed707(core.List<core.String> o) {
+checkUnnamed966(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 = buildUnnamed707();
+ o.targets = buildUnnamed966();
}
buildCounterAboutExportFormats--;
return o;
@@ -161,19 +161,19 @@ checkAboutExportFormats(api.AboutExportFormats o) {
buildCounterAboutExportFormats++;
if (buildCounterAboutExportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed707(o.targets);
+ checkUnnamed966(o.targets);
}
buildCounterAboutExportFormats--;
}
-buildUnnamed708() {
+buildUnnamed967() {
var o = new core.List<api.AboutExportFormats>();
o.add(buildAboutExportFormats());
o.add(buildAboutExportFormats());
return o;
}
-checkUnnamed708(core.List<api.AboutExportFormats> o) {
+checkUnnamed967(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--;
}
-buildUnnamed709() {
+buildUnnamed968() {
var o = new core.List<api.AboutFeatures>();
o.add(buildAboutFeatures());
o.add(buildAboutFeatures());
return o;
}
-checkUnnamed709(core.List<api.AboutFeatures> o) {
+checkUnnamed968(core.List<api.AboutFeatures> o) {
unittest.expect(o, unittest.hasLength(2));
checkAboutFeatures(o[0]);
checkAboutFeatures(o[1]);
}
-buildUnnamed710() {
+buildUnnamed969() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed710(core.List<core.String> o) {
+checkUnnamed969(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'));
}
-buildUnnamed711() {
+buildUnnamed970() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed711(core.List<core.String> o) {
+checkUnnamed970(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 = buildUnnamed711();
+ o.targets = buildUnnamed970();
}
buildCounterAboutImportFormats--;
return o;
@@ -255,19 +255,19 @@ checkAboutImportFormats(api.AboutImportFormats o) {
buildCounterAboutImportFormats++;
if (buildCounterAboutImportFormats < 3) {
unittest.expect(o.source, unittest.equals('foo'));
- checkUnnamed711(o.targets);
+ checkUnnamed970(o.targets);
}
buildCounterAboutImportFormats--;
}
-buildUnnamed712() {
+buildUnnamed971() {
var o = new core.List<api.AboutImportFormats>();
o.add(buildAboutImportFormats());
o.add(buildAboutImportFormats());
return o;
}
-checkUnnamed712(core.List<api.AboutImportFormats> o) {
+checkUnnamed971(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--;
}
-buildUnnamed713() {
+buildUnnamed972() {
var o = new core.List<api.AboutMaxUploadSizes>();
o.add(buildAboutMaxUploadSizes());
o.add(buildAboutMaxUploadSizes());
return o;
}
-checkUnnamed713(core.List<api.AboutMaxUploadSizes> o) {
+checkUnnamed972(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--;
}
-buildUnnamed714() {
+buildUnnamed973() {
var o = new core.List<api.AboutQuotaBytesByService>();
o.add(buildAboutQuotaBytesByService());
o.add(buildAboutQuotaBytesByService());
return o;
}
-checkUnnamed714(core.List<api.AboutQuotaBytesByService> o) {
+checkUnnamed973(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 = buildUnnamed706();
+ o.additionalRoleInfo = buildUnnamed965();
o.domainSharingPolicy = "foo";
o.etag = "foo";
- o.exportFormats = buildUnnamed708();
- o.features = buildUnnamed709();
- o.folderColorPalette = buildUnnamed710();
- o.importFormats = buildUnnamed712();
+ o.exportFormats = buildUnnamed967();
+ o.features = buildUnnamed968();
+ o.folderColorPalette = buildUnnamed969();
+ o.importFormats = buildUnnamed971();
o.isCurrentAppInstalled = true;
o.kind = "foo";
o.languageCode = "foo";
o.largestChangeId = "foo";
- o.maxUploadSizes = buildUnnamed713();
+ o.maxUploadSizes = buildUnnamed972();
o.name = "foo";
o.permissionId = "foo";
- o.quotaBytesByService = buildUnnamed714();
+ o.quotaBytesByService = buildUnnamed973();
o.quotaBytesTotal = "foo";
o.quotaBytesUsed = "foo";
o.quotaBytesUsedAggregate = "foo";
@@ -378,21 +378,21 @@ buildAbout() {
checkAbout(api.About o) {
buildCounterAbout++;
if (buildCounterAbout < 3) {
- checkUnnamed706(o.additionalRoleInfo);
+ checkUnnamed965(o.additionalRoleInfo);
unittest.expect(o.domainSharingPolicy, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed708(o.exportFormats);
- checkUnnamed709(o.features);
- checkUnnamed710(o.folderColorPalette);
- checkUnnamed712(o.importFormats);
+ checkUnnamed967(o.exportFormats);
+ checkUnnamed968(o.features);
+ checkUnnamed969(o.folderColorPalette);
+ checkUnnamed971(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'));
- checkUnnamed713(o.maxUploadSizes);
+ checkUnnamed972(o.maxUploadSizes);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.permissionId, unittest.equals('foo'));
- checkUnnamed714(o.quotaBytesByService);
+ checkUnnamed973(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--;
}
-buildUnnamed715() {
+buildUnnamed974() {
var o = new core.List<api.AppIcons>();
o.add(buildAppIcons());
o.add(buildAppIcons());
return o;
}
-checkUnnamed715(core.List<api.AppIcons> o) {
+checkUnnamed974(core.List<api.AppIcons> o) {
unittest.expect(o, unittest.hasLength(2));
checkAppIcons(o[0]);
checkAppIcons(o[1]);
}
-buildUnnamed716() {
+buildUnnamed975() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed716(core.List<core.String> o) {
+checkUnnamed975(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'));
}
-buildUnnamed717() {
+buildUnnamed976() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed717(core.List<core.String> o) {
+checkUnnamed976(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'));
}
-buildUnnamed718() {
+buildUnnamed977() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed718(core.List<core.String> o) {
+checkUnnamed977(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'));
}
-buildUnnamed719() {
+buildUnnamed978() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed719(core.List<core.String> o) {
+checkUnnamed978(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 = buildUnnamed715();
+ o.icons = buildUnnamed974();
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 = buildUnnamed716();
- o.primaryMimeTypes = buildUnnamed717();
+ o.primaryFileExtensions = buildUnnamed975();
+ o.primaryMimeTypes = buildUnnamed976();
o.productId = "foo";
o.productUrl = "foo";
- o.secondaryFileExtensions = buildUnnamed718();
- o.secondaryMimeTypes = buildUnnamed719();
+ o.secondaryFileExtensions = buildUnnamed977();
+ o.secondaryMimeTypes = buildUnnamed978();
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);
- checkUnnamed715(o.icons);
+ checkUnnamed974(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'));
- checkUnnamed716(o.primaryFileExtensions);
- checkUnnamed717(o.primaryMimeTypes);
+ checkUnnamed975(o.primaryFileExtensions);
+ checkUnnamed976(o.primaryMimeTypes);
unittest.expect(o.productId, unittest.equals('foo'));
unittest.expect(o.productUrl, unittest.equals('foo'));
- checkUnnamed718(o.secondaryFileExtensions);
- checkUnnamed719(o.secondaryMimeTypes);
+ checkUnnamed977(o.secondaryFileExtensions);
+ checkUnnamed978(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--;
}
-buildUnnamed720() {
+buildUnnamed979() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed720(core.List<core.String> o) {
+checkUnnamed979(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'));
}
-buildUnnamed721() {
+buildUnnamed980() {
var o = new core.List<api.App>();
o.add(buildApp());
o.add(buildApp());
return o;
}
-checkUnnamed721(core.List<api.App> o) {
+checkUnnamed980(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 = buildUnnamed720();
+ o.defaultAppIds = buildUnnamed979();
o.etag = "foo";
- o.items = buildUnnamed721();
+ o.items = buildUnnamed980();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -603,9 +603,9 @@ buildAppList() {
checkAppList(api.AppList o) {
buildCounterAppList++;
if (buildCounterAppList < 3) {
- checkUnnamed720(o.defaultAppIds);
+ checkUnnamed979(o.defaultAppIds);
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed721(o.items);
+ checkUnnamed980(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--;
}
-buildUnnamed722() {
+buildUnnamed981() {
var o = new core.List<api.Change>();
o.add(buildChange());
o.add(buildChange());
return o;
}
-checkUnnamed722(core.List<api.Change> o) {
+checkUnnamed981(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 = buildUnnamed722();
+ o.items = buildUnnamed981();
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'));
- checkUnnamed722(o.items);
+ checkUnnamed981(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--;
}
-buildUnnamed723() {
+buildUnnamed982() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed723(core.Map<core.String, core.String> o) {
+checkUnnamed982(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 = buildUnnamed723();
+ o.params = buildUnnamed982();
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'));
- checkUnnamed723(o.params);
+ checkUnnamed982(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--;
}
-buildUnnamed724() {
+buildUnnamed983() {
var o = new core.List<api.ChildReference>();
o.add(buildChildReference());
o.add(buildChildReference());
return o;
}
-checkUnnamed724(core.List<api.ChildReference> o) {
+checkUnnamed983(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 = buildUnnamed724();
+ o.items = buildUnnamed983();
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'));
- checkUnnamed724(o.items);
+ checkUnnamed983(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--;
}
-buildUnnamed725() {
+buildUnnamed984() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed725(core.List<api.CommentReply> o) {
+checkUnnamed984(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 = buildUnnamed725();
+ o.replies = buildUnnamed984();
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")));
- checkUnnamed725(o.replies);
+ checkUnnamed984(o.replies);
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.status, unittest.equals('foo'));
}
buildCounterComment--;
}
-buildUnnamed726() {
+buildUnnamed985() {
var o = new core.List<api.Comment>();
o.add(buildComment());
o.add(buildComment());
return o;
}
-checkUnnamed726(core.List<api.Comment> o) {
+checkUnnamed985(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 = buildUnnamed726();
+ o.items = buildUnnamed985();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -916,7 +916,7 @@ buildCommentList() {
checkCommentList(api.CommentList o) {
buildCounterCommentList++;
if (buildCounterCommentList < 3) {
- checkUnnamed726(o.items);
+ checkUnnamed985(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--;
}
-buildUnnamed727() {
+buildUnnamed986() {
var o = new core.List<api.CommentReply>();
o.add(buildCommentReply());
o.add(buildCommentReply());
return o;
}
-checkUnnamed727(core.List<api.CommentReply> o) {
+checkUnnamed986(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 = buildUnnamed727();
+ o.items = buildUnnamed986();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -991,7 +991,7 @@ buildCommentReplyList() {
checkCommentReplyList(api.CommentReplyList o) {
buildCounterCommentReplyList++;
if (buildCounterCommentReplyList < 3) {
- checkUnnamed727(o.items);
+ checkUnnamed986(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--;
}
-buildUnnamed728() {
+buildUnnamed987() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed728(core.Map<core.String, core.String> o) {
+checkUnnamed987(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--;
}
-buildUnnamed729() {
+buildUnnamed988() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed729(core.Map<core.String, core.String> o) {
+checkUnnamed988(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'));
}
-buildUnnamed730() {
+buildUnnamed989() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed730(core.List<core.String> o) {
+checkUnnamed989(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'));
}
-buildUnnamed731() {
+buildUnnamed990() {
var o = new core.List<api.User>();
o.add(buildUser());
o.add(buildUser());
return o;
}
-checkUnnamed731(core.List<api.User> o) {
+checkUnnamed990(core.List<api.User> o) {
unittest.expect(o, unittest.hasLength(2));
checkUser(o[0]);
checkUser(o[1]);
}
-buildUnnamed732() {
+buildUnnamed991() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed732(core.List<api.ParentReference> o) {
+checkUnnamed991(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
}
-buildUnnamed733() {
+buildUnnamed992() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed733(core.List<api.Permission> o) {
+checkUnnamed992(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
}
-buildUnnamed734() {
+buildUnnamed993() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed734(core.List<api.Property> o) {
+checkUnnamed993(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
}
-buildUnnamed735() {
+buildUnnamed994() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed735(core.List<core.String> o) {
+checkUnnamed994(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'));
@@ -1284,6 +1284,7 @@ buildFile() {
o.alternateLink = "foo";
o.appDataContents = true;
o.canComment = true;
+ o.canReadRevisions = true;
o.copyable = true;
o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
o.defaultOpenWithLink = "foo";
@@ -1293,7 +1294,7 @@ buildFile() {
o.embedLink = "foo";
o.etag = "foo";
o.explicitlyTrashed = true;
- o.exportLinks = buildUnnamed728();
+ o.exportLinks = buildUnnamed987();
o.fileExtension = "foo";
o.fileSize = "foo";
o.folderColorRgb = "foo";
@@ -1313,21 +1314,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 = buildUnnamed729();
+ o.openWithLinks = buildUnnamed988();
o.originalFilename = "foo";
o.ownedByMe = true;
- o.ownerNames = buildUnnamed730();
- o.owners = buildUnnamed731();
- o.parents = buildUnnamed732();
- o.permissions = buildUnnamed733();
- o.properties = buildUnnamed734();
+ o.ownerNames = buildUnnamed989();
+ o.owners = buildUnnamed990();
+ o.parents = buildUnnamed991();
+ o.permissions = buildUnnamed992();
+ o.properties = buildUnnamed993();
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 = buildUnnamed735();
+ o.spaces = buildUnnamed994();
o.thumbnail = buildFileThumbnail();
o.thumbnailLink = "foo";
o.title = "foo";
@@ -1348,6 +1349,7 @@ checkFile(api.File o) {
unittest.expect(o.alternateLink, unittest.equals('foo'));
unittest.expect(o.appDataContents, unittest.isTrue);
unittest.expect(o.canComment, unittest.isTrue);
+ unittest.expect(o.canReadRevisions, unittest.isTrue);
unittest.expect(o.copyable, unittest.isTrue);
unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
@@ -1357,7 +1359,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);
- checkUnnamed728(o.exportLinks);
+ checkUnnamed987(o.exportLinks);
unittest.expect(o.fileExtension, unittest.equals('foo'));
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.folderColorRgb, unittest.equals('foo'));
@@ -1377,21 +1379,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")));
- checkUnnamed729(o.openWithLinks);
+ checkUnnamed988(o.openWithLinks);
unittest.expect(o.originalFilename, unittest.equals('foo'));
unittest.expect(o.ownedByMe, unittest.isTrue);
- checkUnnamed730(o.ownerNames);
- checkUnnamed731(o.owners);
- checkUnnamed732(o.parents);
- checkUnnamed733(o.permissions);
- checkUnnamed734(o.properties);
+ checkUnnamed989(o.ownerNames);
+ checkUnnamed990(o.owners);
+ checkUnnamed991(o.parents);
+ checkUnnamed992(o.permissions);
+ checkUnnamed993(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);
- checkUnnamed735(o.spaces);
+ checkUnnamed994(o.spaces);
checkFileThumbnail(o.thumbnail);
unittest.expect(o.thumbnailLink, unittest.equals('foo'));
unittest.expect(o.title, unittest.equals('foo'));
@@ -1405,14 +1407,14 @@ checkFile(api.File o) {
buildCounterFile--;
}
-buildUnnamed736() {
+buildUnnamed995() {
var o = new core.List<api.File>();
o.add(buildFile());
o.add(buildFile());
return o;
}
-checkUnnamed736(core.List<api.File> o) {
+checkUnnamed995(core.List<api.File> o) {
unittest.expect(o, unittest.hasLength(2));
checkFile(o[0]);
checkFile(o[1]);
@@ -1424,7 +1426,7 @@ buildFileList() {
buildCounterFileList++;
if (buildCounterFileList < 3) {
o.etag = "foo";
- o.items = buildUnnamed736();
+ o.items = buildUnnamed995();
o.kind = "foo";
o.nextLink = "foo";
o.nextPageToken = "foo";
@@ -1438,7 +1440,7 @@ checkFileList(api.FileList o) {
buildCounterFileList++;
if (buildCounterFileList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed736(o.items);
+ checkUnnamed995(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextLink, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -1447,14 +1449,14 @@ checkFileList(api.FileList o) {
buildCounterFileList--;
}
-buildUnnamed737() {
+buildUnnamed996() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed737(core.List<core.String> o) {
+checkUnnamed996(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'));
@@ -1465,7 +1467,7 @@ buildGeneratedIds() {
var o = new api.GeneratedIds();
buildCounterGeneratedIds++;
if (buildCounterGeneratedIds < 3) {
- o.ids = buildUnnamed737();
+ o.ids = buildUnnamed996();
o.kind = "foo";
o.space = "foo";
}
@@ -1476,21 +1478,21 @@ buildGeneratedIds() {
checkGeneratedIds(api.GeneratedIds o) {
buildCounterGeneratedIds++;
if (buildCounterGeneratedIds < 3) {
- checkUnnamed737(o.ids);
+ checkUnnamed996(o.ids);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.space, unittest.equals('foo'));
}
buildCounterGeneratedIds--;
}
-buildUnnamed738() {
+buildUnnamed997() {
var o = new core.List<api.ParentReference>();
o.add(buildParentReference());
o.add(buildParentReference());
return o;
}
-checkUnnamed738(core.List<api.ParentReference> o) {
+checkUnnamed997(core.List<api.ParentReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkParentReference(o[0]);
checkParentReference(o[1]);
@@ -1502,7 +1504,7 @@ buildParentList() {
buildCounterParentList++;
if (buildCounterParentList < 3) {
o.etag = "foo";
- o.items = buildUnnamed738();
+ o.items = buildUnnamed997();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1514,7 +1516,7 @@ checkParentList(api.ParentList o) {
buildCounterParentList++;
if (buildCounterParentList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed738(o.items);
+ checkUnnamed997(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1548,14 +1550,14 @@ checkParentReference(api.ParentReference o) {
buildCounterParentReference--;
}
-buildUnnamed739() {
+buildUnnamed998() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed739(core.List<core.String> o) {
+checkUnnamed998(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'));
@@ -1566,7 +1568,7 @@ buildPermission() {
var o = new api.Permission();
buildCounterPermission++;
if (buildCounterPermission < 3) {
- o.additionalRoles = buildUnnamed739();
+ o.additionalRoles = buildUnnamed998();
o.authKey = "foo";
o.domain = "foo";
o.emailAddress = "foo";
@@ -1588,7 +1590,7 @@ buildPermission() {
checkPermission(api.Permission o) {
buildCounterPermission++;
if (buildCounterPermission < 3) {
- checkUnnamed739(o.additionalRoles);
+ checkUnnamed998(o.additionalRoles);
unittest.expect(o.authKey, unittest.equals('foo'));
unittest.expect(o.domain, unittest.equals('foo'));
unittest.expect(o.emailAddress, unittest.equals('foo'));
@@ -1627,14 +1629,14 @@ checkPermissionId(api.PermissionId o) {
buildCounterPermissionId--;
}
-buildUnnamed740() {
+buildUnnamed999() {
var o = new core.List<api.Permission>();
o.add(buildPermission());
o.add(buildPermission());
return o;
}
-checkUnnamed740(core.List<api.Permission> o) {
+checkUnnamed999(core.List<api.Permission> o) {
unittest.expect(o, unittest.hasLength(2));
checkPermission(o[0]);
checkPermission(o[1]);
@@ -1646,7 +1648,7 @@ buildPermissionList() {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed740();
+ o.items = buildUnnamed999();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1658,7 +1660,7 @@ checkPermissionList(api.PermissionList o) {
buildCounterPermissionList++;
if (buildCounterPermissionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed740(o.items);
+ checkUnnamed999(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -1694,14 +1696,14 @@ checkProperty(api.Property o) {
buildCounterProperty--;
}
-buildUnnamed741() {
+buildUnnamed1000() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed741(core.List<api.Property> o) {
+checkUnnamed1000(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
@@ -1713,7 +1715,7 @@ buildPropertyList() {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
o.etag = "foo";
- o.items = buildUnnamed741();
+ o.items = buildUnnamed1000();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1725,21 +1727,21 @@ checkPropertyList(api.PropertyList o) {
buildCounterPropertyList++;
if (buildCounterPropertyList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed741(o.items);
+ checkUnnamed1000(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
buildCounterPropertyList--;
}
-buildUnnamed742() {
+buildUnnamed1001() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed742(core.Map<core.String, core.String> o) {
+checkUnnamed1001(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'));
@@ -1752,7 +1754,7 @@ buildRevision() {
if (buildCounterRevision < 3) {
o.downloadUrl = "foo";
o.etag = "foo";
- o.exportLinks = buildUnnamed742();
+ o.exportLinks = buildUnnamed1001();
o.fileSize = "foo";
o.id = "foo";
o.kind = "foo";
@@ -1778,7 +1780,7 @@ checkRevision(api.Revision o) {
if (buildCounterRevision < 3) {
unittest.expect(o.downloadUrl, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed742(o.exportLinks);
+ checkUnnamed1001(o.exportLinks);
unittest.expect(o.fileSize, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
@@ -1798,14 +1800,14 @@ checkRevision(api.Revision o) {
buildCounterRevision--;
}
-buildUnnamed743() {
+buildUnnamed1002() {
var o = new core.List<api.Revision>();
o.add(buildRevision());
o.add(buildRevision());
return o;
}
-checkUnnamed743(core.List<api.Revision> o) {
+checkUnnamed1002(core.List<api.Revision> o) {
unittest.expect(o, unittest.hasLength(2));
checkRevision(o[0]);
checkRevision(o[1]);
@@ -1817,7 +1819,7 @@ buildRevisionList() {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
o.etag = "foo";
- o.items = buildUnnamed743();
+ o.items = buildUnnamed1002();
o.kind = "foo";
o.selfLink = "foo";
}
@@ -1829,7 +1831,7 @@ checkRevisionList(api.RevisionList o) {
buildCounterRevisionList++;
if (buildCounterRevisionList < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed743(o.items);
+ checkUnnamed1002(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
}
@@ -3390,6 +3392,61 @@ main() {
res.emptyTrash().then(unittest.expectAsync((_) {}));
});
+ unittest.test("method--export", () {
+ // TODO: Implement tests for media upload;
+ // TODO: Implement tests for media download;
+
+ var mock = new HttpServerMock();
+ api.FilesResourceApi res = new api.DriveApi(mock).files;
+ var arg_fileId = "foo";
+ var arg_mimeType = "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 + 6), unittest.equals("files/"));
+ pathOffset += 6;
+ index = path.indexOf("/export", pathOffset);
+ unittest.expect(index >= 0, unittest.isTrue);
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
+ pathOffset = index;
+ unittest.expect(subPart, unittest.equals("$arg_fileId"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/export"));
+ pathOffset += 7;
+
+ 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["mimeType"].first, unittest.equals(arg_mimeType));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = "";
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync((_) {}));
+ });
+
unittest.test("method--generateIds", () {
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