Chromium Code Reviews

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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_beta/test/runtimeconfig/v1beta1_test.dart
diff --git a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
index fd793da855c24ffa592e4107481d056b54ed3e85..14e228567f00165e98e9d49aa0b80a48a809d0b4 100644
--- a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
+++ b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
@@ -108,14 +108,14 @@ checkEndCondition(api.EndCondition o) {
buildCounterEndCondition--;
}
-buildUnnamed4213() {
+buildUnnamed4048() {
var o = new core.List<api.RuntimeConfig>();
o.add(buildRuntimeConfig());
o.add(buildRuntimeConfig());
return o;
}
-checkUnnamed4213(core.List<api.RuntimeConfig> o) {
+checkUnnamed4048(core.List<api.RuntimeConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkRuntimeConfig(o[0]);
checkRuntimeConfig(o[1]);
@@ -126,7 +126,7 @@ buildListConfigsResponse() {
var o = new api.ListConfigsResponse();
buildCounterListConfigsResponse++;
if (buildCounterListConfigsResponse < 3) {
- o.configs = buildUnnamed4213();
+ o.configs = buildUnnamed4048();
o.nextPageToken = "foo";
}
buildCounterListConfigsResponse--;
@@ -136,20 +136,20 @@ buildListConfigsResponse() {
checkListConfigsResponse(api.ListConfigsResponse o) {
buildCounterListConfigsResponse++;
if (buildCounterListConfigsResponse < 3) {
- checkUnnamed4213(o.configs);
+ checkUnnamed4048(o.configs);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListConfigsResponse--;
}
-buildUnnamed4214() {
+buildUnnamed4049() {
var o = new core.List<api.Variable>();
o.add(buildVariable());
o.add(buildVariable());
return o;
}
-checkUnnamed4214(core.List<api.Variable> o) {
+checkUnnamed4049(core.List<api.Variable> o) {
unittest.expect(o, unittest.hasLength(2));
checkVariable(o[0]);
checkVariable(o[1]);
@@ -161,7 +161,7 @@ buildListVariablesResponse() {
buildCounterListVariablesResponse++;
if (buildCounterListVariablesResponse < 3) {
o.nextPageToken = "foo";
- o.variables = buildUnnamed4214();
+ o.variables = buildUnnamed4049();
}
buildCounterListVariablesResponse--;
return o;
@@ -171,19 +171,19 @@ checkListVariablesResponse(api.ListVariablesResponse o) {
buildCounterListVariablesResponse++;
if (buildCounterListVariablesResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed4214(o.variables);
+ checkUnnamed4049(o.variables);
}
buildCounterListVariablesResponse--;
}
-buildUnnamed4215() {
+buildUnnamed4050() {
var o = new core.List<api.Waiter>();
o.add(buildWaiter());
o.add(buildWaiter());
return o;
}
-checkUnnamed4215(core.List<api.Waiter> o) {
+checkUnnamed4050(core.List<api.Waiter> o) {
unittest.expect(o, unittest.hasLength(2));
checkWaiter(o[0]);
checkWaiter(o[1]);
@@ -195,7 +195,7 @@ buildListWaitersResponse() {
buildCounterListWaitersResponse++;
if (buildCounterListWaitersResponse < 3) {
o.nextPageToken = "foo";
- o.waiters = buildUnnamed4215();
+ o.waiters = buildUnnamed4050();
}
buildCounterListWaitersResponse--;
return o;
@@ -205,32 +205,32 @@ checkListWaitersResponse(api.ListWaitersResponse o) {
buildCounterListWaitersResponse++;
if (buildCounterListWaitersResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed4215(o.waiters);
+ checkUnnamed4050(o.waiters);
}
buildCounterListWaitersResponse--;
}
-buildUnnamed4216() {
+buildUnnamed4051() {
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;
}
-checkUnnamed4216(core.Map<core.String, core.Object> o) {
+checkUnnamed4051(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'));
}
-buildUnnamed4217() {
+buildUnnamed4052() {
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;
}
-checkUnnamed4217(core.Map<core.String, core.Object> o) {
+checkUnnamed4052(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
@@ -243,9 +243,9 @@ buildOperation() {
if (buildCounterOperation < 3) {
o.done = true;
o.error = buildStatus();
- o.metadata = buildUnnamed4216();
+ o.metadata = buildUnnamed4051();
o.name = "foo";
- o.response = buildUnnamed4217();
+ o.response = buildUnnamed4052();
}
buildCounterOperation--;
return o;
@@ -256,9 +256,9 @@ checkOperation(api.Operation o) {
if (buildCounterOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkStatus(o.error);
- checkUnnamed4216(o.metadata);
+ checkUnnamed4051(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed4217(o.response);
+ checkUnnamed4052(o.response);
}
buildCounterOperation--;
}
@@ -284,30 +284,30 @@ checkRuntimeConfig(api.RuntimeConfig o) {
buildCounterRuntimeConfig--;
}
-buildUnnamed4218() {
+buildUnnamed4053() {
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;
}
-checkUnnamed4218(core.Map<core.String, core.Object> o) {
+checkUnnamed4053(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
}
-buildUnnamed4219() {
+buildUnnamed4054() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed4218());
- o.add(buildUnnamed4218());
+ o.add(buildUnnamed4053());
+ o.add(buildUnnamed4053());
return o;
}
-checkUnnamed4219(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed4054(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed4218(o[0]);
- checkUnnamed4218(o[1]);
+ checkUnnamed4053(o[0]);
+ checkUnnamed4053(o[1]);
}
core.int buildCounterStatus = 0;
@@ -316,7 +316,7 @@ buildStatus() {
buildCounterStatus++;
if (buildCounterStatus < 3) {
o.code = 42;
- o.details = buildUnnamed4219();
+ o.details = buildUnnamed4054();
o.message = "foo";
}
buildCounterStatus--;
@@ -327,7 +327,7 @@ checkStatus(api.Status o) {
buildCounterStatus++;
if (buildCounterStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed4219(o.details);
+ checkUnnamed4054(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterStatus--;
@@ -527,6 +527,7 @@ main() {
api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs;
var arg_request = buildRuntimeConfig();
var arg_parent = "foo";
+ var arg_requestId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.RuntimeConfig.fromJson(json);
checkRuntimeConfig(obj);
@@ -557,6 +558,7 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId));
var h = {
@@ -565,7 +567,7 @@ main() {
var resp = convert.JSON.encode(buildRuntimeConfig());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.RuntimeConfig response) {
+ res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.RuntimeConfig response) {
checkRuntimeConfig(response);
})));
});
@@ -817,6 +819,7 @@ main() {
api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables;
var arg_request = buildVariable();
var arg_parent = "foo";
+ var arg_requestId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.Variable.fromJson(json);
checkVariable(obj);
@@ -847,6 +850,7 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId));
var h = {
@@ -855,7 +859,7 @@ main() {
var resp = convert.JSON.encode(buildVariable());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Variable response) {
+ res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Variable response) {
checkVariable(response);
})));
});
@@ -1111,6 +1115,7 @@ main() {
api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters;
var arg_request = buildWaiter();
var arg_parent = "foo";
+ var arg_requestId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.Waiter.fromJson(json);
checkWaiter(obj);
@@ -1141,6 +1146,7 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId));
var h = {
@@ -1149,7 +1155,7 @@ main() {
var resp = convert.JSON.encode(buildOperation());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Operation response) {
+ res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Operation response) {
checkOperation(response);
})));
});

Powered by Google App Engine