Chromium Code Reviews

Unified Diff: generated/googleapis/test/cloudkms/v1_test.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: generated/googleapis/test/cloudkms/v1_test.dart
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart
index 7345ce76567c6300276324eebb8d43f50e40ba70..f50b74b664e4ab7cf5c22b076f50ee4d4d8821f0 100644
--- a/generated/googleapis/test/cloudkms/v1_test.dart
+++ b/generated/googleapis/test/cloudkms/v1_test.dart
@@ -51,27 +51,27 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed1308() {
+buildUnnamed1392() {
var o = new core.List<api.AuditLogConfig>();
o.add(buildAuditLogConfig());
o.add(buildAuditLogConfig());
return o;
}
-checkUnnamed1308(core.List<api.AuditLogConfig> o) {
+checkUnnamed1392(core.List<api.AuditLogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkAuditLogConfig(o[0]);
checkAuditLogConfig(o[1]);
}
-buildUnnamed1309() {
+buildUnnamed1393() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1309(core.List<core.String> o) {
+checkUnnamed1393(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'));
@@ -82,8 +82,8 @@ buildAuditConfig() {
var o = new api.AuditConfig();
buildCounterAuditConfig++;
if (buildCounterAuditConfig < 3) {
- o.auditLogConfigs = buildUnnamed1308();
- o.exemptedMembers = buildUnnamed1309();
+ o.auditLogConfigs = buildUnnamed1392();
+ o.exemptedMembers = buildUnnamed1393();
o.service = "foo";
}
buildCounterAuditConfig--;
@@ -93,21 +93,21 @@ buildAuditConfig() {
checkAuditConfig(api.AuditConfig o) {
buildCounterAuditConfig++;
if (buildCounterAuditConfig < 3) {
- checkUnnamed1308(o.auditLogConfigs);
- checkUnnamed1309(o.exemptedMembers);
+ checkUnnamed1392(o.auditLogConfigs);
+ checkUnnamed1393(o.exemptedMembers);
unittest.expect(o.service, unittest.equals('foo'));
}
buildCounterAuditConfig--;
}
-buildUnnamed1310() {
+buildUnnamed1394() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1310(core.List<core.String> o) {
+checkUnnamed1394(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'));
@@ -118,7 +118,7 @@ buildAuditLogConfig() {
var o = new api.AuditLogConfig();
buildCounterAuditLogConfig++;
if (buildCounterAuditLogConfig < 3) {
- o.exemptedMembers = buildUnnamed1310();
+ o.exemptedMembers = buildUnnamed1394();
o.logType = "foo";
}
buildCounterAuditLogConfig--;
@@ -128,20 +128,20 @@ buildAuditLogConfig() {
checkAuditLogConfig(api.AuditLogConfig o) {
buildCounterAuditLogConfig++;
if (buildCounterAuditLogConfig < 3) {
- checkUnnamed1310(o.exemptedMembers);
+ checkUnnamed1394(o.exemptedMembers);
unittest.expect(o.logType, unittest.equals('foo'));
}
buildCounterAuditLogConfig--;
}
-buildUnnamed1311() {
+buildUnnamed1395() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1311(core.List<core.String> o) {
+checkUnnamed1395(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'));
@@ -153,7 +153,7 @@ buildBinding() {
buildCounterBinding++;
if (buildCounterBinding < 3) {
o.condition = buildExpr();
- o.members = buildUnnamed1311();
+ o.members = buildUnnamed1395();
o.role = "foo";
}
buildCounterBinding--;
@@ -164,7 +164,7 @@ checkBinding(api.Binding o) {
buildCounterBinding++;
if (buildCounterBinding < 3) {
checkExpr(o.condition);
- checkUnnamed1311(o.members);
+ checkUnnamed1395(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterBinding--;
@@ -189,14 +189,14 @@ checkCloudAuditOptions(api.CloudAuditOptions o) {
buildCounterCloudAuditOptions--;
}
-buildUnnamed1312() {
+buildUnnamed1396() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1312(core.List<core.String> o) {
+checkUnnamed1396(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'));
@@ -212,7 +212,7 @@ buildCondition() {
o.svc = "foo";
o.sys = "foo";
o.value = "foo";
- o.values = buildUnnamed1312();
+ o.values = buildUnnamed1396();
}
buildCounterCondition--;
return o;
@@ -226,7 +226,7 @@ checkCondition(api.Condition o) {
unittest.expect(o.svc, unittest.equals('foo'));
unittest.expect(o.sys, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
- checkUnnamed1312(o.values);
+ checkUnnamed1396(o.values);
}
buildCounterCondition--;
}
@@ -470,14 +470,14 @@ checkKeyRing(api.KeyRing o) {
buildCounterKeyRing--;
}
-buildUnnamed1313() {
+buildUnnamed1397() {
var o = new core.List<api.CryptoKeyVersion>();
o.add(buildCryptoKeyVersion());
o.add(buildCryptoKeyVersion());
return o;
}
-checkUnnamed1313(core.List<api.CryptoKeyVersion> o) {
+checkUnnamed1397(core.List<api.CryptoKeyVersion> o) {
unittest.expect(o, unittest.hasLength(2));
checkCryptoKeyVersion(o[0]);
checkCryptoKeyVersion(o[1]);
@@ -488,7 +488,7 @@ buildListCryptoKeyVersionsResponse() {
var o = new api.ListCryptoKeyVersionsResponse();
buildCounterListCryptoKeyVersionsResponse++;
if (buildCounterListCryptoKeyVersionsResponse < 3) {
- o.cryptoKeyVersions = buildUnnamed1313();
+ o.cryptoKeyVersions = buildUnnamed1397();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -499,21 +499,21 @@ buildListCryptoKeyVersionsResponse() {
checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
buildCounterListCryptoKeyVersionsResponse++;
if (buildCounterListCryptoKeyVersionsResponse < 3) {
- checkUnnamed1313(o.cryptoKeyVersions);
+ checkUnnamed1397(o.cryptoKeyVersions);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListCryptoKeyVersionsResponse--;
}
-buildUnnamed1314() {
+buildUnnamed1398() {
var o = new core.List<api.CryptoKey>();
o.add(buildCryptoKey());
o.add(buildCryptoKey());
return o;
}
-checkUnnamed1314(core.List<api.CryptoKey> o) {
+checkUnnamed1398(core.List<api.CryptoKey> o) {
unittest.expect(o, unittest.hasLength(2));
checkCryptoKey(o[0]);
checkCryptoKey(o[1]);
@@ -524,7 +524,7 @@ buildListCryptoKeysResponse() {
var o = new api.ListCryptoKeysResponse();
buildCounterListCryptoKeysResponse++;
if (buildCounterListCryptoKeysResponse < 3) {
- o.cryptoKeys = buildUnnamed1314();
+ o.cryptoKeys = buildUnnamed1398();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -535,21 +535,21 @@ buildListCryptoKeysResponse() {
checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
buildCounterListCryptoKeysResponse++;
if (buildCounterListCryptoKeysResponse < 3) {
- checkUnnamed1314(o.cryptoKeys);
+ checkUnnamed1398(o.cryptoKeys);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListCryptoKeysResponse--;
}
-buildUnnamed1315() {
+buildUnnamed1399() {
var o = new core.List<api.KeyRing>();
o.add(buildKeyRing());
o.add(buildKeyRing());
return o;
}
-checkUnnamed1315(core.List<api.KeyRing> o) {
+checkUnnamed1399(core.List<api.KeyRing> o) {
unittest.expect(o, unittest.hasLength(2));
checkKeyRing(o[0]);
checkKeyRing(o[1]);
@@ -560,7 +560,7 @@ buildListKeyRingsResponse() {
var o = new api.ListKeyRingsResponse();
buildCounterListKeyRingsResponse++;
if (buildCounterListKeyRingsResponse < 3) {
- o.keyRings = buildUnnamed1315();
+ o.keyRings = buildUnnamed1399();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -571,21 +571,21 @@ buildListKeyRingsResponse() {
checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
buildCounterListKeyRingsResponse++;
if (buildCounterListKeyRingsResponse < 3) {
- checkUnnamed1315(o.keyRings);
+ checkUnnamed1399(o.keyRings);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListKeyRingsResponse--;
}
-buildUnnamed1316() {
+buildUnnamed1400() {
var o = new core.List<api.Location>();
o.add(buildLocation());
o.add(buildLocation());
return o;
}
-checkUnnamed1316(core.List<api.Location> o) {
+checkUnnamed1400(core.List<api.Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkLocation(o[0]);
checkLocation(o[1]);
@@ -596,7 +596,7 @@ buildListLocationsResponse() {
var o = new api.ListLocationsResponse();
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- o.locations = buildUnnamed1316();
+ o.locations = buildUnnamed1400();
o.nextPageToken = "foo";
}
buildCounterListLocationsResponse--;
@@ -606,33 +606,33 @@ buildListLocationsResponse() {
checkListLocationsResponse(api.ListLocationsResponse o) {
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- checkUnnamed1316(o.locations);
+ checkUnnamed1400(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListLocationsResponse--;
}
-buildUnnamed1317() {
+buildUnnamed1401() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1317(core.Map<core.String, core.String> o) {
+checkUnnamed1401(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'));
}
-buildUnnamed1318() {
+buildUnnamed1402() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
return o;
}
-checkUnnamed1318(core.Map<core.String, core.Object> o) {
+checkUnnamed1402(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
@@ -643,9 +643,9 @@ buildLocation() {
var o = new api.Location();
buildCounterLocation++;
if (buildCounterLocation < 3) {
- o.labels = buildUnnamed1317();
+ o.labels = buildUnnamed1401();
o.locationId = "foo";
- o.metadata = buildUnnamed1318();
+ o.metadata = buildUnnamed1402();
o.name = "foo";
}
buildCounterLocation--;
@@ -655,9 +655,9 @@ buildLocation() {
checkLocation(api.Location o) {
buildCounterLocation++;
if (buildCounterLocation < 3) {
- checkUnnamed1317(o.labels);
+ checkUnnamed1401(o.labels);
unittest.expect(o.locationId, unittest.equals('foo'));
- checkUnnamed1318(o.metadata);
+ checkUnnamed1402(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterLocation--;
@@ -686,40 +686,40 @@ checkLogConfig(api.LogConfig o) {
buildCounterLogConfig--;
}
-buildUnnamed1319() {
+buildUnnamed1403() {
var o = new core.List<api.AuditConfig>();
o.add(buildAuditConfig());
o.add(buildAuditConfig());
return o;
}
-checkUnnamed1319(core.List<api.AuditConfig> o) {
+checkUnnamed1403(core.List<api.AuditConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkAuditConfig(o[0]);
checkAuditConfig(o[1]);
}
-buildUnnamed1320() {
+buildUnnamed1404() {
var o = new core.List<api.Binding>();
o.add(buildBinding());
o.add(buildBinding());
return o;
}
-checkUnnamed1320(core.List<api.Binding> o) {
+checkUnnamed1404(core.List<api.Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkBinding(o[0]);
checkBinding(o[1]);
}
-buildUnnamed1321() {
+buildUnnamed1405() {
var o = new core.List<api.Rule>();
o.add(buildRule());
o.add(buildRule());
return o;
}
-checkUnnamed1321(core.List<api.Rule> o) {
+checkUnnamed1405(core.List<api.Rule> o) {
unittest.expect(o, unittest.hasLength(2));
checkRule(o[0]);
checkRule(o[1]);
@@ -730,11 +730,11 @@ buildPolicy() {
var o = new api.Policy();
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- o.auditConfigs = buildUnnamed1319();
- o.bindings = buildUnnamed1320();
+ o.auditConfigs = buildUnnamed1403();
+ o.bindings = buildUnnamed1404();
o.etag = "foo";
o.iamOwned = true;
- o.rules = buildUnnamed1321();
+ o.rules = buildUnnamed1405();
o.version = 42;
}
buildCounterPolicy--;
@@ -744,11 +744,11 @@ buildPolicy() {
checkPolicy(api.Policy o) {
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- checkUnnamed1319(o.auditConfigs);
- checkUnnamed1320(o.bindings);
+ checkUnnamed1403(o.auditConfigs);
+ checkUnnamed1404(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.iamOwned, unittest.isTrue);
- checkUnnamed1321(o.rules);
+ checkUnnamed1405(o.rules);
unittest.expect(o.version, unittest.equals(42));
}
buildCounterPolicy--;
@@ -771,66 +771,66 @@ checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
buildCounterRestoreCryptoKeyVersionRequest--;
}
-buildUnnamed1322() {
+buildUnnamed1406() {
var o = new core.List<api.Condition>();
o.add(buildCondition());
o.add(buildCondition());
return o;
}
-checkUnnamed1322(core.List<api.Condition> o) {
+checkUnnamed1406(core.List<api.Condition> o) {
unittest.expect(o, unittest.hasLength(2));
checkCondition(o[0]);
checkCondition(o[1]);
}
-buildUnnamed1323() {
+buildUnnamed1407() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1323(core.List<core.String> o) {
+checkUnnamed1407(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'));
}
-buildUnnamed1324() {
+buildUnnamed1408() {
var o = new core.List<api.LogConfig>();
o.add(buildLogConfig());
o.add(buildLogConfig());
return o;
}
-checkUnnamed1324(core.List<api.LogConfig> o) {
+checkUnnamed1408(core.List<api.LogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkLogConfig(o[0]);
checkLogConfig(o[1]);
}
-buildUnnamed1325() {
+buildUnnamed1409() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1325(core.List<core.String> o) {
+checkUnnamed1409(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'));
}
-buildUnnamed1326() {
+buildUnnamed1410() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1326(core.List<core.String> o) {
+checkUnnamed1410(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'));
@@ -842,12 +842,12 @@ buildRule() {
buildCounterRule++;
if (buildCounterRule < 3) {
o.action = "foo";
- o.conditions = buildUnnamed1322();
+ o.conditions = buildUnnamed1406();
o.description = "foo";
- o.in_ = buildUnnamed1323();
- o.logConfig = buildUnnamed1324();
- o.notIn = buildUnnamed1325();
- o.permissions = buildUnnamed1326();
+ o.in_ = buildUnnamed1407();
+ o.logConfig = buildUnnamed1408();
+ o.notIn = buildUnnamed1409();
+ o.permissions = buildUnnamed1410();
}
buildCounterRule--;
return o;
@@ -857,12 +857,12 @@ checkRule(api.Rule o) {
buildCounterRule++;
if (buildCounterRule < 3) {
unittest.expect(o.action, unittest.equals('foo'));
- checkUnnamed1322(o.conditions);
+ checkUnnamed1406(o.conditions);
unittest.expect(o.description, unittest.equals('foo'));
- checkUnnamed1323(o.in_);
- checkUnnamed1324(o.logConfig);
- checkUnnamed1325(o.notIn);
- checkUnnamed1326(o.permissions);
+ checkUnnamed1407(o.in_);
+ checkUnnamed1408(o.logConfig);
+ checkUnnamed1409(o.notIn);
+ checkUnnamed1410(o.permissions);
}
buildCounterRule--;
}
@@ -888,14 +888,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
buildCounterSetIamPolicyRequest--;
}
-buildUnnamed1327() {
+buildUnnamed1411() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1327(core.List<core.String> o) {
+checkUnnamed1411(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'));
@@ -906,7 +906,7 @@ buildTestIamPermissionsRequest() {
var o = new api.TestIamPermissionsRequest();
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed1327();
+ o.permissions = buildUnnamed1411();
}
buildCounterTestIamPermissionsRequest--;
return o;
@@ -915,19 +915,19 @@ buildTestIamPermissionsRequest() {
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- checkUnnamed1327(o.permissions);
+ checkUnnamed1411(o.permissions);
}
buildCounterTestIamPermissionsRequest--;
}
-buildUnnamed1328() {
+buildUnnamed1412() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1328(core.List<core.String> o) {
+checkUnnamed1412(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'));
@@ -938,7 +938,7 @@ buildTestIamPermissionsResponse() {
var o = new api.TestIamPermissionsResponse();
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed1328();
+ o.permissions = buildUnnamed1412();
}
buildCounterTestIamPermissionsResponse--;
return o;
@@ -947,7 +947,7 @@ buildTestIamPermissionsResponse() {
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- checkUnnamed1328(o.permissions);
+ checkUnnamed1412(o.permissions);
}
buildCounterTestIamPermissionsResponse--;
}
@@ -1285,9 +1285,9 @@ main() {
var mock = new HttpServerMock();
api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects.locations;
var arg_name = "foo";
- var arg_pageSize = 42;
var arg_filter = "foo";
var arg_pageToken = "foo";
+ var arg_pageSize = 42;
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -1315,9 +1315,9 @@ 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["filter"].first, unittest.equals(arg_filter));
unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
var h = {
@@ -1326,7 +1326,7 @@ main() {
var resp = convert.JSON.encode(buildListLocationsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
+ res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
checkListLocationsResponse(response);
})));
});
@@ -1871,8 +1871,8 @@ main() {
var mock = new HttpServerMock();
api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys;
var arg_parent = "foo";
- var arg_pageSize = 42;
var arg_pageToken = "foo";
+ var arg_pageSize = 42;
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -1900,8 +1900,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));
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
var h = {
@@ -1910,7 +1910,7 @@ main() {
var resp = convert.JSON.encode(buildListCryptoKeysResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListCryptoKeysResponse response) {
+ res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCryptoKeysResponse response) {
checkListCryptoKeysResponse(response);
})));
});
« no previous file with comments | « generated/googleapis/test/cloudfunctions/v1_test.dart ('k') | generated/googleapis/test/cloudresourcemanager/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine