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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis/test/cloudkms/v1_test.dart
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart
index 26fbfc08928c2fd3a189115a9fc9788e36655d3f..5342a920a9f93f6f30f19437249ebcf73f7d7776 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);
}
-buildUnnamed1370() {
+buildUnnamed1387() {
var o = new core.List<api.AuditLogConfig>();
o.add(buildAuditLogConfig());
o.add(buildAuditLogConfig());
return o;
}
-checkUnnamed1370(core.List<api.AuditLogConfig> o) {
+checkUnnamed1387(core.List<api.AuditLogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkAuditLogConfig(o[0]);
checkAuditLogConfig(o[1]);
}
-buildUnnamed1371() {
+buildUnnamed1388() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1371(core.List<core.String> o) {
+checkUnnamed1388(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 = buildUnnamed1370();
- o.exemptedMembers = buildUnnamed1371();
+ o.auditLogConfigs = buildUnnamed1387();
+ o.exemptedMembers = buildUnnamed1388();
o.service = "foo";
}
buildCounterAuditConfig--;
@@ -93,21 +93,21 @@ buildAuditConfig() {
checkAuditConfig(api.AuditConfig o) {
buildCounterAuditConfig++;
if (buildCounterAuditConfig < 3) {
- checkUnnamed1370(o.auditLogConfigs);
- checkUnnamed1371(o.exemptedMembers);
+ checkUnnamed1387(o.auditLogConfigs);
+ checkUnnamed1388(o.exemptedMembers);
unittest.expect(o.service, unittest.equals('foo'));
}
buildCounterAuditConfig--;
}
-buildUnnamed1372() {
+buildUnnamed1389() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1372(core.List<core.String> o) {
+checkUnnamed1389(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 = buildUnnamed1372();
+ o.exemptedMembers = buildUnnamed1389();
o.logType = "foo";
}
buildCounterAuditLogConfig--;
@@ -128,20 +128,20 @@ buildAuditLogConfig() {
checkAuditLogConfig(api.AuditLogConfig o) {
buildCounterAuditLogConfig++;
if (buildCounterAuditLogConfig < 3) {
- checkUnnamed1372(o.exemptedMembers);
+ checkUnnamed1389(o.exemptedMembers);
unittest.expect(o.logType, unittest.equals('foo'));
}
buildCounterAuditLogConfig--;
}
-buildUnnamed1373() {
+buildUnnamed1390() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1373(core.List<core.String> o) {
+checkUnnamed1390(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 = buildUnnamed1373();
+ o.members = buildUnnamed1390();
o.role = "foo";
}
buildCounterBinding--;
@@ -164,7 +164,7 @@ checkBinding(api.Binding o) {
buildCounterBinding++;
if (buildCounterBinding < 3) {
checkExpr(o.condition);
- checkUnnamed1373(o.members);
+ checkUnnamed1390(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterBinding--;
@@ -189,14 +189,14 @@ checkCloudAuditOptions(api.CloudAuditOptions o) {
buildCounterCloudAuditOptions--;
}
-buildUnnamed1374() {
+buildUnnamed1391() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1374(core.List<core.String> o) {
+checkUnnamed1391(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 = buildUnnamed1374();
+ o.values = buildUnnamed1391();
}
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'));
- checkUnnamed1374(o.values);
+ checkUnnamed1391(o.values);
}
buildCounterCondition--;
}
@@ -313,6 +313,7 @@ buildDataAccessOptions() {
var o = new api.DataAccessOptions();
buildCounterDataAccessOptions++;
if (buildCounterDataAccessOptions < 3) {
+ o.logMode = "foo";
}
buildCounterDataAccessOptions--;
return o;
@@ -321,6 +322,7 @@ buildDataAccessOptions() {
checkDataAccessOptions(api.DataAccessOptions o) {
buildCounterDataAccessOptions++;
if (buildCounterDataAccessOptions < 3) {
+ unittest.expect(o.logMode, unittest.equals('foo'));
}
buildCounterDataAccessOptions--;
}
@@ -470,14 +472,14 @@ checkKeyRing(api.KeyRing o) {
buildCounterKeyRing--;
}
-buildUnnamed1375() {
+buildUnnamed1392() {
var o = new core.List<api.CryptoKeyVersion>();
o.add(buildCryptoKeyVersion());
o.add(buildCryptoKeyVersion());
return o;
}
-checkUnnamed1375(core.List<api.CryptoKeyVersion> o) {
+checkUnnamed1392(core.List<api.CryptoKeyVersion> o) {
unittest.expect(o, unittest.hasLength(2));
checkCryptoKeyVersion(o[0]);
checkCryptoKeyVersion(o[1]);
@@ -488,7 +490,7 @@ buildListCryptoKeyVersionsResponse() {
var o = new api.ListCryptoKeyVersionsResponse();
buildCounterListCryptoKeyVersionsResponse++;
if (buildCounterListCryptoKeyVersionsResponse < 3) {
- o.cryptoKeyVersions = buildUnnamed1375();
+ o.cryptoKeyVersions = buildUnnamed1392();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -499,21 +501,21 @@ buildListCryptoKeyVersionsResponse() {
checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
buildCounterListCryptoKeyVersionsResponse++;
if (buildCounterListCryptoKeyVersionsResponse < 3) {
- checkUnnamed1375(o.cryptoKeyVersions);
+ checkUnnamed1392(o.cryptoKeyVersions);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListCryptoKeyVersionsResponse--;
}
-buildUnnamed1376() {
+buildUnnamed1393() {
var o = new core.List<api.CryptoKey>();
o.add(buildCryptoKey());
o.add(buildCryptoKey());
return o;
}
-checkUnnamed1376(core.List<api.CryptoKey> o) {
+checkUnnamed1393(core.List<api.CryptoKey> o) {
unittest.expect(o, unittest.hasLength(2));
checkCryptoKey(o[0]);
checkCryptoKey(o[1]);
@@ -524,7 +526,7 @@ buildListCryptoKeysResponse() {
var o = new api.ListCryptoKeysResponse();
buildCounterListCryptoKeysResponse++;
if (buildCounterListCryptoKeysResponse < 3) {
- o.cryptoKeys = buildUnnamed1376();
+ o.cryptoKeys = buildUnnamed1393();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -535,21 +537,21 @@ buildListCryptoKeysResponse() {
checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
buildCounterListCryptoKeysResponse++;
if (buildCounterListCryptoKeysResponse < 3) {
- checkUnnamed1376(o.cryptoKeys);
+ checkUnnamed1393(o.cryptoKeys);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListCryptoKeysResponse--;
}
-buildUnnamed1377() {
+buildUnnamed1394() {
var o = new core.List<api.KeyRing>();
o.add(buildKeyRing());
o.add(buildKeyRing());
return o;
}
-checkUnnamed1377(core.List<api.KeyRing> o) {
+checkUnnamed1394(core.List<api.KeyRing> o) {
unittest.expect(o, unittest.hasLength(2));
checkKeyRing(o[0]);
checkKeyRing(o[1]);
@@ -560,7 +562,7 @@ buildListKeyRingsResponse() {
var o = new api.ListKeyRingsResponse();
buildCounterListKeyRingsResponse++;
if (buildCounterListKeyRingsResponse < 3) {
- o.keyRings = buildUnnamed1377();
+ o.keyRings = buildUnnamed1394();
o.nextPageToken = "foo";
o.totalSize = 42;
}
@@ -571,21 +573,21 @@ buildListKeyRingsResponse() {
checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
buildCounterListKeyRingsResponse++;
if (buildCounterListKeyRingsResponse < 3) {
- checkUnnamed1377(o.keyRings);
+ checkUnnamed1394(o.keyRings);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalSize, unittest.equals(42));
}
buildCounterListKeyRingsResponse--;
}
-buildUnnamed1378() {
+buildUnnamed1395() {
var o = new core.List<api.Location>();
o.add(buildLocation());
o.add(buildLocation());
return o;
}
-checkUnnamed1378(core.List<api.Location> o) {
+checkUnnamed1395(core.List<api.Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkLocation(o[0]);
checkLocation(o[1]);
@@ -596,7 +598,7 @@ buildListLocationsResponse() {
var o = new api.ListLocationsResponse();
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- o.locations = buildUnnamed1378();
+ o.locations = buildUnnamed1395();
o.nextPageToken = "foo";
}
buildCounterListLocationsResponse--;
@@ -606,33 +608,33 @@ buildListLocationsResponse() {
checkListLocationsResponse(api.ListLocationsResponse o) {
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- checkUnnamed1378(o.locations);
+ checkUnnamed1395(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListLocationsResponse--;
}
-buildUnnamed1379() {
+buildUnnamed1396() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed1379(core.Map<core.String, core.String> o) {
+checkUnnamed1396(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'));
}
-buildUnnamed1380() {
+buildUnnamed1397() {
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;
}
-checkUnnamed1380(core.Map<core.String, core.Object> o) {
+checkUnnamed1397(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 +645,9 @@ buildLocation() {
var o = new api.Location();
buildCounterLocation++;
if (buildCounterLocation < 3) {
- o.labels = buildUnnamed1379();
+ o.labels = buildUnnamed1396();
o.locationId = "foo";
- o.metadata = buildUnnamed1380();
+ o.metadata = buildUnnamed1397();
o.name = "foo";
}
buildCounterLocation--;
@@ -655,9 +657,9 @@ buildLocation() {
checkLocation(api.Location o) {
buildCounterLocation++;
if (buildCounterLocation < 3) {
- checkUnnamed1379(o.labels);
+ checkUnnamed1396(o.labels);
unittest.expect(o.locationId, unittest.equals('foo'));
- checkUnnamed1380(o.metadata);
+ checkUnnamed1397(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterLocation--;
@@ -686,40 +688,40 @@ checkLogConfig(api.LogConfig o) {
buildCounterLogConfig--;
}
-buildUnnamed1381() {
+buildUnnamed1398() {
var o = new core.List<api.AuditConfig>();
o.add(buildAuditConfig());
o.add(buildAuditConfig());
return o;
}
-checkUnnamed1381(core.List<api.AuditConfig> o) {
+checkUnnamed1398(core.List<api.AuditConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkAuditConfig(o[0]);
checkAuditConfig(o[1]);
}
-buildUnnamed1382() {
+buildUnnamed1399() {
var o = new core.List<api.Binding>();
o.add(buildBinding());
o.add(buildBinding());
return o;
}
-checkUnnamed1382(core.List<api.Binding> o) {
+checkUnnamed1399(core.List<api.Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkBinding(o[0]);
checkBinding(o[1]);
}
-buildUnnamed1383() {
+buildUnnamed1400() {
var o = new core.List<api.Rule>();
o.add(buildRule());
o.add(buildRule());
return o;
}
-checkUnnamed1383(core.List<api.Rule> o) {
+checkUnnamed1400(core.List<api.Rule> o) {
unittest.expect(o, unittest.hasLength(2));
checkRule(o[0]);
checkRule(o[1]);
@@ -730,11 +732,11 @@ buildPolicy() {
var o = new api.Policy();
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- o.auditConfigs = buildUnnamed1381();
- o.bindings = buildUnnamed1382();
+ o.auditConfigs = buildUnnamed1398();
+ o.bindings = buildUnnamed1399();
o.etag = "foo";
o.iamOwned = true;
- o.rules = buildUnnamed1383();
+ o.rules = buildUnnamed1400();
o.version = 42;
}
buildCounterPolicy--;
@@ -744,11 +746,11 @@ buildPolicy() {
checkPolicy(api.Policy o) {
buildCounterPolicy++;
if (buildCounterPolicy < 3) {
- checkUnnamed1381(o.auditConfigs);
- checkUnnamed1382(o.bindings);
+ checkUnnamed1398(o.auditConfigs);
+ checkUnnamed1399(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.iamOwned, unittest.isTrue);
- checkUnnamed1383(o.rules);
+ checkUnnamed1400(o.rules);
unittest.expect(o.version, unittest.equals(42));
}
buildCounterPolicy--;
@@ -771,66 +773,66 @@ checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
buildCounterRestoreCryptoKeyVersionRequest--;
}
-buildUnnamed1384() {
+buildUnnamed1401() {
var o = new core.List<api.Condition>();
o.add(buildCondition());
o.add(buildCondition());
return o;
}
-checkUnnamed1384(core.List<api.Condition> o) {
+checkUnnamed1401(core.List<api.Condition> o) {
unittest.expect(o, unittest.hasLength(2));
checkCondition(o[0]);
checkCondition(o[1]);
}
-buildUnnamed1385() {
+buildUnnamed1402() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1385(core.List<core.String> o) {
+checkUnnamed1402(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'));
}
-buildUnnamed1386() {
+buildUnnamed1403() {
var o = new core.List<api.LogConfig>();
o.add(buildLogConfig());
o.add(buildLogConfig());
return o;
}
-checkUnnamed1386(core.List<api.LogConfig> o) {
+checkUnnamed1403(core.List<api.LogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkLogConfig(o[0]);
checkLogConfig(o[1]);
}
-buildUnnamed1387() {
+buildUnnamed1404() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1387(core.List<core.String> o) {
+checkUnnamed1404(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'));
}
-buildUnnamed1388() {
+buildUnnamed1405() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1388(core.List<core.String> o) {
+checkUnnamed1405(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 +844,12 @@ buildRule() {
buildCounterRule++;
if (buildCounterRule < 3) {
o.action = "foo";
- o.conditions = buildUnnamed1384();
+ o.conditions = buildUnnamed1401();
o.description = "foo";
- o.in_ = buildUnnamed1385();
- o.logConfig = buildUnnamed1386();
- o.notIn = buildUnnamed1387();
- o.permissions = buildUnnamed1388();
+ o.in_ = buildUnnamed1402();
+ o.logConfig = buildUnnamed1403();
+ o.notIn = buildUnnamed1404();
+ o.permissions = buildUnnamed1405();
}
buildCounterRule--;
return o;
@@ -857,12 +859,12 @@ checkRule(api.Rule o) {
buildCounterRule++;
if (buildCounterRule < 3) {
unittest.expect(o.action, unittest.equals('foo'));
- checkUnnamed1384(o.conditions);
+ checkUnnamed1401(o.conditions);
unittest.expect(o.description, unittest.equals('foo'));
- checkUnnamed1385(o.in_);
- checkUnnamed1386(o.logConfig);
- checkUnnamed1387(o.notIn);
- checkUnnamed1388(o.permissions);
+ checkUnnamed1402(o.in_);
+ checkUnnamed1403(o.logConfig);
+ checkUnnamed1404(o.notIn);
+ checkUnnamed1405(o.permissions);
}
buildCounterRule--;
}
@@ -888,14 +890,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
buildCounterSetIamPolicyRequest--;
}
-buildUnnamed1389() {
+buildUnnamed1406() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1389(core.List<core.String> o) {
+checkUnnamed1406(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 +908,7 @@ buildTestIamPermissionsRequest() {
var o = new api.TestIamPermissionsRequest();
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed1389();
+ o.permissions = buildUnnamed1406();
}
buildCounterTestIamPermissionsRequest--;
return o;
@@ -915,19 +917,19 @@ buildTestIamPermissionsRequest() {
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
buildCounterTestIamPermissionsRequest++;
if (buildCounterTestIamPermissionsRequest < 3) {
- checkUnnamed1389(o.permissions);
+ checkUnnamed1406(o.permissions);
}
buildCounterTestIamPermissionsRequest--;
}
-buildUnnamed1390() {
+buildUnnamed1407() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1390(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'));
@@ -938,7 +940,7 @@ buildTestIamPermissionsResponse() {
var o = new api.TestIamPermissionsResponse();
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed1390();
+ o.permissions = buildUnnamed1407();
}
buildCounterTestIamPermissionsResponse--;
return o;
@@ -947,7 +949,7 @@ buildTestIamPermissionsResponse() {
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
buildCounterTestIamPermissionsResponse++;
if (buildCounterTestIamPermissionsResponse < 3) {
- checkUnnamed1390(o.permissions);
+ checkUnnamed1407(o.permissions);
}
buildCounterTestIamPermissionsResponse--;
}
@@ -1285,9 +1287,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 +1317,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 +1328,7 @@ main() {
var resp = convert.JSON.encode(buildListLocationsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
+ res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
checkListLocationsResponse(response);
})));
});
@@ -1481,8 +1483,8 @@ main() {
var mock = new HttpServerMock();
api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings;
var arg_parent = "foo";
- var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_pageToken = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -1510,8 +1512,8 @@ 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["pageToken"].first, unittest.equals(arg_pageToken));
var h = {
@@ -1520,7 +1522,7 @@ main() {
var resp = convert.JSON.encode(buildListKeyRingsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListKeyRingsResponse response) {
+ res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListKeyRingsResponse response) {
checkListKeyRingsResponse(response);
})));
});
@@ -1871,8 +1873,8 @@ main() {
var mock = new HttpServerMock();
api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys;
var arg_parent = "foo";
- var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_pageToken = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -1900,8 +1902,8 @@ 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["pageToken"].first, unittest.equals(arg_pageToken));
var h = {
@@ -1910,7 +1912,7 @@ main() {
var resp = convert.JSON.encode(buildListCryptoKeysResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCryptoKeysResponse response) {
+ res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).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
This is Rietveld 408576698