| Index: generated/googleapis/test/drive/v3_test.dart
|
| diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart
|
| index 5dd673f9de5c09465547aa996367346f198210da..9a1a6dbca69e88e5aaad89409d85720789bb4d19 100644
|
| --- a/generated/googleapis/test/drive/v3_test.dart
|
| +++ b/generated/googleapis/test/drive/v3_test.dart
|
| @@ -51,79 +51,79 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed1801() {
|
| +buildUnnamed1816() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1801(core.List<core.String> o) {
|
| +checkUnnamed1816(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'));
|
| }
|
|
|
| -buildUnnamed1802() {
|
| +buildUnnamed1817() {
|
| var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed1801();
|
| - o["y"] = buildUnnamed1801();
|
| + o["x"] = buildUnnamed1816();
|
| + o["y"] = buildUnnamed1816();
|
| return o;
|
| }
|
|
|
| -checkUnnamed1802(core.Map<core.String, core.List<core.String>> o) {
|
| +checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1801(o["x"]);
|
| - checkUnnamed1801(o["y"]);
|
| + checkUnnamed1816(o["x"]);
|
| + checkUnnamed1816(o["y"]);
|
| }
|
|
|
| -buildUnnamed1803() {
|
| +buildUnnamed1818() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1803(core.List<core.String> o) {
|
| +checkUnnamed1818(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'));
|
| }
|
|
|
| -buildUnnamed1804() {
|
| +buildUnnamed1819() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1804(core.List<core.String> o) {
|
| +checkUnnamed1819(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'));
|
| }
|
|
|
| -buildUnnamed1805() {
|
| +buildUnnamed1820() {
|
| var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed1804();
|
| - o["y"] = buildUnnamed1804();
|
| + o["x"] = buildUnnamed1819();
|
| + o["y"] = buildUnnamed1819();
|
| return o;
|
| }
|
|
|
| -checkUnnamed1805(core.Map<core.String, core.List<core.String>> o) {
|
| +checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1804(o["x"]);
|
| - checkUnnamed1804(o["y"]);
|
| + checkUnnamed1819(o["x"]);
|
| + checkUnnamed1819(o["y"]);
|
| }
|
|
|
| -buildUnnamed1806() {
|
| +buildUnnamed1821() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1806(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1821(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'));
|
| @@ -160,11 +160,11 @@ buildAbout() {
|
| buildCounterAbout++;
|
| if (buildCounterAbout < 3) {
|
| o.appInstalled = true;
|
| - o.exportFormats = buildUnnamed1802();
|
| - o.folderColorPalette = buildUnnamed1803();
|
| - o.importFormats = buildUnnamed1805();
|
| + o.exportFormats = buildUnnamed1817();
|
| + o.folderColorPalette = buildUnnamed1818();
|
| + o.importFormats = buildUnnamed1820();
|
| o.kind = "foo";
|
| - o.maxImportSizes = buildUnnamed1806();
|
| + o.maxImportSizes = buildUnnamed1821();
|
| o.maxUploadSize = "foo";
|
| o.storageQuota = buildAboutStorageQuota();
|
| o.user = buildUser();
|
| @@ -177,11 +177,11 @@ checkAbout(api.About o) {
|
| buildCounterAbout++;
|
| if (buildCounterAbout < 3) {
|
| unittest.expect(o.appInstalled, unittest.isTrue);
|
| - checkUnnamed1802(o.exportFormats);
|
| - checkUnnamed1803(o.folderColorPalette);
|
| - checkUnnamed1805(o.importFormats);
|
| + checkUnnamed1817(o.exportFormats);
|
| + checkUnnamed1818(o.folderColorPalette);
|
| + checkUnnamed1820(o.importFormats);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1806(o.maxImportSizes);
|
| + checkUnnamed1821(o.maxImportSizes);
|
| unittest.expect(o.maxUploadSize, unittest.equals('foo'));
|
| checkAboutStorageQuota(o.storageQuota);
|
| checkUser(o.user);
|
| @@ -216,14 +216,14 @@ checkChange(api.Change o) {
|
| buildCounterChange--;
|
| }
|
|
|
| -buildUnnamed1807() {
|
| +buildUnnamed1822() {
|
| var o = new core.List<api.Change>();
|
| o.add(buildChange());
|
| o.add(buildChange());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1807(core.List<api.Change> o) {
|
| +checkUnnamed1822(core.List<api.Change> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChange(o[0]);
|
| checkChange(o[1]);
|
| @@ -234,7 +234,7 @@ buildChangeList() {
|
| var o = new api.ChangeList();
|
| buildCounterChangeList++;
|
| if (buildCounterChangeList < 3) {
|
| - o.changes = buildUnnamed1807();
|
| + o.changes = buildUnnamed1822();
|
| o.kind = "foo";
|
| o.newStartPageToken = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -246,7 +246,7 @@ buildChangeList() {
|
| checkChangeList(api.ChangeList o) {
|
| buildCounterChangeList++;
|
| if (buildCounterChangeList < 3) {
|
| - checkUnnamed1807(o.changes);
|
| + checkUnnamed1822(o.changes);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.newStartPageToken, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -254,14 +254,14 @@ checkChangeList(api.ChangeList o) {
|
| buildCounterChangeList--;
|
| }
|
|
|
| -buildUnnamed1808() {
|
| +buildUnnamed1823() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1808(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1823(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'));
|
| @@ -276,7 +276,7 @@ buildChannel() {
|
| o.expiration = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.params = buildUnnamed1808();
|
| + o.params = buildUnnamed1823();
|
| o.payload = true;
|
| o.resourceId = "foo";
|
| o.resourceUri = "foo";
|
| @@ -294,7 +294,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'));
|
| - checkUnnamed1808(o.params);
|
| + checkUnnamed1823(o.params);
|
| unittest.expect(o.payload, unittest.isTrue);
|
| unittest.expect(o.resourceId, unittest.equals('foo'));
|
| unittest.expect(o.resourceUri, unittest.equals('foo'));
|
| @@ -325,14 +325,14 @@ checkCommentQuotedFileContent(api.CommentQuotedFileContent o) {
|
| buildCounterCommentQuotedFileContent--;
|
| }
|
|
|
| -buildUnnamed1809() {
|
| +buildUnnamed1824() {
|
| var o = new core.List<api.Reply>();
|
| o.add(buildReply());
|
| o.add(buildReply());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1809(core.List<api.Reply> o) {
|
| +checkUnnamed1824(core.List<api.Reply> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReply(o[0]);
|
| checkReply(o[1]);
|
| @@ -353,7 +353,7 @@ buildComment() {
|
| o.kind = "foo";
|
| o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.quotedFileContent = buildCommentQuotedFileContent();
|
| - o.replies = buildUnnamed1809();
|
| + o.replies = buildUnnamed1824();
|
| o.resolved = true;
|
| }
|
| buildCounterComment--;
|
| @@ -373,20 +373,20 @@ checkComment(api.Comment o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkCommentQuotedFileContent(o.quotedFileContent);
|
| - checkUnnamed1809(o.replies);
|
| + checkUnnamed1824(o.replies);
|
| unittest.expect(o.resolved, unittest.isTrue);
|
| }
|
| buildCounterComment--;
|
| }
|
|
|
| -buildUnnamed1810() {
|
| +buildUnnamed1825() {
|
| var o = new core.List<api.Comment>();
|
| o.add(buildComment());
|
| o.add(buildComment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1810(core.List<api.Comment> o) {
|
| +checkUnnamed1825(core.List<api.Comment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkComment(o[0]);
|
| checkComment(o[1]);
|
| @@ -397,7 +397,7 @@ buildCommentList() {
|
| var o = new api.CommentList();
|
| buildCounterCommentList++;
|
| if (buildCounterCommentList < 3) {
|
| - o.comments = buildUnnamed1810();
|
| + o.comments = buildUnnamed1825();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -408,21 +408,21 @@ buildCommentList() {
|
| checkCommentList(api.CommentList o) {
|
| buildCounterCommentList++;
|
| if (buildCounterCommentList < 3) {
|
| - checkUnnamed1810(o.comments);
|
| + checkUnnamed1825(o.comments);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCommentList--;
|
| }
|
|
|
| -buildUnnamed1811() {
|
| +buildUnnamed1826() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1811(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1826(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'));
|
| @@ -579,66 +579,66 @@ checkFileImageMediaMetadata(api.FileImageMediaMetadata o) {
|
| buildCounterFileImageMediaMetadata--;
|
| }
|
|
|
| -buildUnnamed1812() {
|
| +buildUnnamed1827() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1812(core.List<api.User> o) {
|
| +checkUnnamed1827(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| }
|
|
|
| -buildUnnamed1813() {
|
| +buildUnnamed1828() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1813(core.List<core.String> o) {
|
| +checkUnnamed1828(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'));
|
| }
|
|
|
| -buildUnnamed1814() {
|
| +buildUnnamed1829() {
|
| var o = new core.List<api.Permission>();
|
| o.add(buildPermission());
|
| o.add(buildPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1814(core.List<api.Permission> o) {
|
| +checkUnnamed1829(core.List<api.Permission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPermission(o[0]);
|
| checkPermission(o[1]);
|
| }
|
|
|
| -buildUnnamed1815() {
|
| +buildUnnamed1830() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1815(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1830(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'));
|
| }
|
|
|
| -buildUnnamed1816() {
|
| +buildUnnamed1831() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1816(core.List<core.String> o) {
|
| +checkUnnamed1831(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'));
|
| @@ -672,7 +672,7 @@ buildFile() {
|
| var o = new api.File();
|
| buildCounterFile++;
|
| if (buildCounterFile < 3) {
|
| - o.appProperties = buildUnnamed1811();
|
| + o.appProperties = buildUnnamed1826();
|
| o.capabilities = buildFileCapabilities();
|
| o.contentHints = buildFileContentHints();
|
| o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| @@ -690,21 +690,22 @@ buildFile() {
|
| o.lastModifyingUser = buildUser();
|
| o.md5Checksum = "foo";
|
| o.mimeType = "foo";
|
| + o.modifiedByMe = true;
|
| o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.name = "foo";
|
| o.originalFilename = "foo";
|
| o.ownedByMe = true;
|
| - o.owners = buildUnnamed1812();
|
| - o.parents = buildUnnamed1813();
|
| - o.permissions = buildUnnamed1814();
|
| - o.properties = buildUnnamed1815();
|
| + o.owners = buildUnnamed1827();
|
| + o.parents = buildUnnamed1828();
|
| + o.permissions = buildUnnamed1829();
|
| + o.properties = buildUnnamed1830();
|
| o.quotaBytesUsed = "foo";
|
| o.shared = true;
|
| o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.sharingUser = buildUser();
|
| o.size = "foo";
|
| - o.spaces = buildUnnamed1816();
|
| + o.spaces = buildUnnamed1831();
|
| o.starred = true;
|
| o.thumbnailLink = "foo";
|
| o.trashed = true;
|
| @@ -724,7 +725,7 @@ buildFile() {
|
| checkFile(api.File o) {
|
| buildCounterFile++;
|
| if (buildCounterFile < 3) {
|
| - checkUnnamed1811(o.appProperties);
|
| + checkUnnamed1826(o.appProperties);
|
| checkFileCapabilities(o.capabilities);
|
| checkFileContentHints(o.contentHints);
|
| unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| @@ -742,21 +743,22 @@ checkFile(api.File o) {
|
| checkUser(o.lastModifyingUser);
|
| unittest.expect(o.md5Checksum, unittest.equals('foo'));
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| + unittest.expect(o.modifiedByMe, unittest.isTrue);
|
| unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.originalFilename, unittest.equals('foo'));
|
| unittest.expect(o.ownedByMe, unittest.isTrue);
|
| - checkUnnamed1812(o.owners);
|
| - checkUnnamed1813(o.parents);
|
| - checkUnnamed1814(o.permissions);
|
| - checkUnnamed1815(o.properties);
|
| + checkUnnamed1827(o.owners);
|
| + checkUnnamed1828(o.parents);
|
| + checkUnnamed1829(o.permissions);
|
| + checkUnnamed1830(o.properties);
|
| unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
|
| unittest.expect(o.shared, unittest.isTrue);
|
| unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkUser(o.sharingUser);
|
| unittest.expect(o.size, unittest.equals('foo'));
|
| - checkUnnamed1816(o.spaces);
|
| + checkUnnamed1831(o.spaces);
|
| unittest.expect(o.starred, unittest.isTrue);
|
| unittest.expect(o.thumbnailLink, unittest.equals('foo'));
|
| unittest.expect(o.trashed, unittest.isTrue);
|
| @@ -772,14 +774,14 @@ checkFile(api.File o) {
|
| buildCounterFile--;
|
| }
|
|
|
| -buildUnnamed1817() {
|
| +buildUnnamed1832() {
|
| var o = new core.List<api.File>();
|
| o.add(buildFile());
|
| o.add(buildFile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1817(core.List<api.File> o) {
|
| +checkUnnamed1832(core.List<api.File> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFile(o[0]);
|
| checkFile(o[1]);
|
| @@ -790,7 +792,7 @@ buildFileList() {
|
| var o = new api.FileList();
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| - o.files = buildUnnamed1817();
|
| + o.files = buildUnnamed1832();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -801,21 +803,21 @@ buildFileList() {
|
| checkFileList(api.FileList o) {
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| - checkUnnamed1817(o.files);
|
| + checkUnnamed1832(o.files);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterFileList--;
|
| }
|
|
|
| -buildUnnamed1818() {
|
| +buildUnnamed1833() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1818(core.List<core.String> o) {
|
| +checkUnnamed1833(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'));
|
| @@ -826,7 +828,7 @@ buildGeneratedIds() {
|
| var o = new api.GeneratedIds();
|
| buildCounterGeneratedIds++;
|
| if (buildCounterGeneratedIds < 3) {
|
| - o.ids = buildUnnamed1818();
|
| + o.ids = buildUnnamed1833();
|
| o.kind = "foo";
|
| o.space = "foo";
|
| }
|
| @@ -837,7 +839,7 @@ buildGeneratedIds() {
|
| checkGeneratedIds(api.GeneratedIds o) {
|
| buildCounterGeneratedIds++;
|
| if (buildCounterGeneratedIds < 3) {
|
| - checkUnnamed1818(o.ids);
|
| + checkUnnamed1833(o.ids);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.space, unittest.equals('foo'));
|
| }
|
| @@ -881,14 +883,14 @@ checkPermission(api.Permission o) {
|
| buildCounterPermission--;
|
| }
|
|
|
| -buildUnnamed1819() {
|
| +buildUnnamed1834() {
|
| var o = new core.List<api.Permission>();
|
| o.add(buildPermission());
|
| o.add(buildPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1819(core.List<api.Permission> o) {
|
| +checkUnnamed1834(core.List<api.Permission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPermission(o[0]);
|
| checkPermission(o[1]);
|
| @@ -900,7 +902,7 @@ buildPermissionList() {
|
| buildCounterPermissionList++;
|
| if (buildCounterPermissionList < 3) {
|
| o.kind = "foo";
|
| - o.permissions = buildUnnamed1819();
|
| + o.permissions = buildUnnamed1834();
|
| }
|
| buildCounterPermissionList--;
|
| return o;
|
| @@ -910,7 +912,7 @@ checkPermissionList(api.PermissionList o) {
|
| buildCounterPermissionList++;
|
| if (buildCounterPermissionList < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1819(o.permissions);
|
| + checkUnnamed1834(o.permissions);
|
| }
|
| buildCounterPermissionList--;
|
| }
|
| @@ -950,14 +952,14 @@ checkReply(api.Reply o) {
|
| buildCounterReply--;
|
| }
|
|
|
| -buildUnnamed1820() {
|
| +buildUnnamed1835() {
|
| var o = new core.List<api.Reply>();
|
| o.add(buildReply());
|
| o.add(buildReply());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1820(core.List<api.Reply> o) {
|
| +checkUnnamed1835(core.List<api.Reply> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReply(o[0]);
|
| checkReply(o[1]);
|
| @@ -970,7 +972,7 @@ buildReplyList() {
|
| if (buildCounterReplyList < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.replies = buildUnnamed1820();
|
| + o.replies = buildUnnamed1835();
|
| }
|
| buildCounterReplyList--;
|
| return o;
|
| @@ -981,7 +983,7 @@ checkReplyList(api.ReplyList o) {
|
| if (buildCounterReplyList < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1820(o.replies);
|
| + checkUnnamed1835(o.replies);
|
| }
|
| buildCounterReplyList--;
|
| }
|
| @@ -1027,14 +1029,14 @@ checkRevision(api.Revision o) {
|
| buildCounterRevision--;
|
| }
|
|
|
| -buildUnnamed1821() {
|
| +buildUnnamed1836() {
|
| var o = new core.List<api.Revision>();
|
| o.add(buildRevision());
|
| o.add(buildRevision());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1821(core.List<api.Revision> o) {
|
| +checkUnnamed1836(core.List<api.Revision> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRevision(o[0]);
|
| checkRevision(o[1]);
|
| @@ -1046,7 +1048,8 @@ buildRevisionList() {
|
| buildCounterRevisionList++;
|
| if (buildCounterRevisionList < 3) {
|
| o.kind = "foo";
|
| - o.revisions = buildUnnamed1821();
|
| + o.nextPageToken = "foo";
|
| + o.revisions = buildUnnamed1836();
|
| }
|
| buildCounterRevisionList--;
|
| return o;
|
| @@ -1056,7 +1059,8 @@ checkRevisionList(api.RevisionList o) {
|
| buildCounterRevisionList++;
|
| if (buildCounterRevisionList < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1821(o.revisions);
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1836(o.revisions);
|
| }
|
| buildCounterRevisionList--;
|
| }
|
| @@ -3208,6 +3212,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.RevisionsResourceApi res = new api.DriveApi(mock).revisions;
|
| var arg_fileId = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3243,6 +3249,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -3251,7 +3259,7 @@ main() {
|
| var resp = convert.JSON.encode(buildRevisionList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response) {
|
| + res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) {
|
| checkRevisionList(response);
|
| })));
|
| });
|
|
|