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

Unified Diff: generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years 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_beta/test/cloudresourcemanager/v1beta1_test.dart
diff --git a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
index bd4c9e891710c435a1e983e41d530a3c66301f1f..5db9f98a774a3d13d9fcd00cb71968bf0ef54b28 100644
--- a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
+++ b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
@@ -70,14 +70,14 @@ checkAncestor(api.Ancestor o) {
buildCounterAncestor--;
}
-buildUnnamed3933() {
+buildUnnamed3644() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3933(core.List<core.String> o) {
+checkUnnamed3644(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'));
@@ -88,7 +88,7 @@ buildBinding() {
var o = new api.Binding();
buildCounterBinding++;
if (buildCounterBinding < 3) {
- o.members = buildUnnamed3933();
+ o.members = buildUnnamed3644();
o.role = "foo";
}
buildCounterBinding--;
@@ -98,7 +98,7 @@ buildBinding() {
checkBinding(api.Binding o) {
buildCounterBinding++;
if (buildCounterBinding < 3) {
- checkUnnamed3933(o.members);
+ checkUnnamed3644(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterBinding--;
@@ -182,14 +182,14 @@ checkGetAncestryRequest(api.GetAncestryRequest o) {
buildCounterGetAncestryRequest--;
}
-buildUnnamed3934() {
+buildUnnamed3645() {
var o = new core.List<api.Ancestor>();
o.add(buildAncestor());
o.add(buildAncestor());
return o;
}
-checkUnnamed3934(core.List<api.Ancestor> o) {
+checkUnnamed3645(core.List<api.Ancestor> o) {
unittest.expect(o, unittest.hasLength(2));
checkAncestor(o[0]);
checkAncestor(o[1]);
@@ -200,7 +200,7 @@ buildGetAncestryResponse() {
var o = new api.GetAncestryResponse();
buildCounterGetAncestryResponse++;
if (buildCounterGetAncestryResponse < 3) {
- o.ancestor = buildUnnamed3934();
+ o.ancestor = buildUnnamed3645();
}
buildCounterGetAncestryResponse--;
return o;
@@ -209,7 +209,7 @@ buildGetAncestryResponse() {
checkGetAncestryResponse(api.GetAncestryResponse o) {
buildCounterGetAncestryResponse++;
if (buildCounterGetAncestryResponse < 3) {
- checkUnnamed3934(o.ancestor);
+ checkUnnamed3645(o.ancestor);
}
buildCounterGetAncestryResponse--;
}
@@ -231,14 +231,14 @@ checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
buildCounterGetIamPolicyRequest--;
}
-buildUnnamed3935() {
+buildUnnamed3646() {
var o = new core.List<api.Organization>();
o.add(buildOrganization());
o.add(buildOrganization());
return o;
}
-checkUnnamed3935(core.List<api.Organization> o) {
+checkUnnamed3646(core.List<api.Organization> o) {
unittest.expect(o, unittest.hasLength(2));
checkOrganization(o[0]);
checkOrganization(o[1]);
@@ -250,7 +250,7 @@ buildListOrganizationsResponse() {
buildCounterListOrganizationsResponse++;
if (buildCounterListOrganizationsResponse < 3) {
o.nextPageToken = "foo";
- o.organizations = buildUnnamed3935();
+ o.organizations = buildUnnamed3646();
}
buildCounterListOrganizationsResponse--;
return o;
@@ -260,19 +260,19 @@ checkListOrganizationsResponse(api.ListOrganizationsResponse o) {
buildCounterListOrganizationsResponse++;
if (buildCounterListOrganizationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3935(o.organizations);
+ checkUnnamed3646(o.organizations);
}
buildCounterListOrganizationsResponse--;
}
-buildUnnamed3936() {
+buildUnnamed3647() {
var o = new core.List<api.Project>();
o.add(buildProject());
o.add(buildProject());
return o;
}
-checkUnnamed3936(core.List<api.Project> o) {
+checkUnnamed3647(core.List<api.Project> o) {
unittest.expect(o, unittest.hasLength(2));
checkProject(o[0]);
checkProject(o[1]);
@@ -284,7 +284,7 @@ buildListProjectsResponse() {
buildCounterListProjectsResponse++;
if (buildCounterListProjectsResponse < 3) {
o.nextPageToken = "foo";
- o.projects = buildUnnamed3936();
+ o.projects = buildUnnamed3647();
}
buildCounterListProjectsResponse--;
return o;
@@ -294,7 +294,7 @@ checkListProjectsResponse(api.ListProjectsResponse o) {
buildCounterListProjectsResponse++;
if (buildCounterListProjectsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3936(o.projects);
+ checkUnnamed3647(o.projects);
}
buildCounterListProjectsResponse--;
}
@@ -347,14 +347,14 @@ checkOrganizationOwner(api.OrganizationOwner o) {
buildCounterOrganizationOwner--;
}
-buildUnnamed3937() {
+buildUnnamed3648() {
var o = new core.List<api.Binding>();
o.add(buildBinding());
o.add(buildBinding());
return o;
}
-checkUnnamed3937(core.List<api.Binding> o) {
+checkUnnamed3648(core.List<api.Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkBinding(o[0]);
checkBinding(o[1]);
@@ -365,7 +365,7 @@ buildPolicy() {
var o = new api.Policy();
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- o.bindings = buildUnnamed3937();
+ o.bindings = buildUnnamed3648();
o.etag = "foo";
o.version = 42;
}
@@ -376,21 +376,21 @@ buildPolicy() {
checkPolicy(api.Policy o) {
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- checkUnnamed3937(o.bindings);
+ checkUnnamed3648(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals(42));
}
buildCounterPolicy--;
}
-buildUnnamed3938() {
+buildUnnamed3649() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3938(core.Map<core.String, core.String> o) {
+checkUnnamed3649(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'));
@@ -402,7 +402,7 @@ buildProject() {
buildCounterProject++;
if (buildCounterProject < 3) {
o.createTime = "foo";
- o.labels = buildUnnamed3938();
+ o.labels = buildUnnamed3649();
o.lifecycleState = "foo";
o.name = "foo";
o.parent = buildResourceId();
@@ -417,7 +417,7 @@ checkProject(api.Project o) {
buildCounterProject++;
if (buildCounterProject < 3) {
unittest.expect(o.createTime, unittest.equals('foo'));
- checkUnnamed3938(o.labels);
+ checkUnnamed3649(o.labels);
unittest.expect(o.lifecycleState, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
checkResourceId(o.parent);
@@ -490,14 +490,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
buildCounterSetIamPolicyRequest--;
}
-buildUnnamed3939() {
+buildUnnamed3650() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3939(core.List<core.String> o) {
+checkUnnamed3650(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'));
@@ -508,7 +508,7 @@ buildTestIamPermissionsRequest() {
var o = new api.TestIamPermissionsRequest();
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed3939();
+ o.permissions = buildUnnamed3650();
}
buildCounterTestIamPermissionsRequest--;
return o;
@@ -517,19 +517,19 @@ buildTestIamPermissionsRequest() {
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- checkUnnamed3939(o.permissions);
+ checkUnnamed3650(o.permissions);
}
buildCounterTestIamPermissionsRequest--;
}
-buildUnnamed3940() {
+buildUnnamed3651() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3940(core.List<core.String> o) {
+checkUnnamed3651(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'));
@@ -540,7 +540,7 @@ buildTestIamPermissionsResponse() {
var o = new api.TestIamPermissionsResponse();
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed3940();
+ o.permissions = buildUnnamed3651();
}
buildCounterTestIamPermissionsResponse--;
return o;
@@ -549,7 +549,7 @@ buildTestIamPermissionsResponse() {
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- checkUnnamed3940(o.permissions);
+ checkUnnamed3651(o.permissions);
}
buildCounterTestIamPermissionsResponse--;
}
@@ -855,8 +855,8 @@ main() {
var mock = new HttpServerMock();
api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations;
var arg_pageSize = 42;
- var arg_pageToken = "foo";
var arg_filter = "foo";
+ var arg_pageToken = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -884,8 +884,8 @@ main() {
}
}
unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
var h = {
@@ -894,7 +894,7 @@ main() {
var resp = convert.JSON.encode(buildListOrganizationsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(pageSize: arg_pageSize, pageToken: arg_pageToken, filter: arg_filter).then(unittest.expectAsync(((api.ListOrganizationsResponse response) {
+ res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOrganizationsResponse response) {
checkListOrganizationsResponse(response);
})));
});
@@ -1307,9 +1307,9 @@ main() {
var mock = new HttpServerMock();
api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects;
- var arg_pageToken = "foo";
var arg_pageSize = 42;
var arg_filter = "foo";
+ var arg_pageToken = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -1336,9 +1336,9 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
var h = {
@@ -1347,7 +1347,7 @@ main() {
var resp = convert.JSON.encode(buildListProjectsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListProjectsResponse response) {
+ res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProjectsResponse response) {
checkListProjectsResponse(response);
})));
});

Powered by Google App Engine
This is Rietveld 408576698