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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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/cloudfunctions/v1_test.dart
diff --git a/generated/googleapis/test/cloudfunctions/v1_test.dart b/generated/googleapis/test/cloudfunctions/v1_test.dart
index 2c2edc0e40af5713cbf8fbd519ebd3521f3edd89..886cd22fccfa968ffcf7b565e0d81e82858c5a36 100644
--- a/generated/googleapis/test/cloudfunctions/v1_test.dart
+++ b/generated/googleapis/test/cloudfunctions/v1_test.dart
@@ -7,7 +7,7 @@ import "dart:convert" as convert;
import 'package:http/http.dart' as http;
import 'package:http/testing.dart' as http_testing;
-import 'package:unittest/unittest.dart' as unittest;
+import 'package:test/test.dart' as unittest;
import 'package:googleapis/cloudfunctions/v1.dart' as api;
@@ -46,19 +46,19 @@ class HttpServerMock extends http.BaseClient {
}
http.StreamedResponse stringResponse(
- core.int status, core.Map headers, core.String body) {
+ core.int status, core.Map<core.String, core.String> headers, core.String body) {
var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed97() {
+buildUnnamed99() {
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;
}
-checkUnnamed97(core.Map<core.String, core.Object> o) {
+checkUnnamed99(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'));
@@ -69,7 +69,7 @@ buildOperationMetadataV1Beta2() {
var o = new api.OperationMetadataV1Beta2();
buildCounterOperationMetadataV1Beta2++;
if (buildCounterOperationMetadataV1Beta2 < 3) {
- o.request = buildUnnamed97();
+ o.request = buildUnnamed99();
o.target = "foo";
o.type = "foo";
}
@@ -80,7 +80,7 @@ buildOperationMetadataV1Beta2() {
checkOperationMetadataV1Beta2(api.OperationMetadataV1Beta2 o) {
buildCounterOperationMetadataV1Beta2++;
if (buildCounterOperationMetadataV1Beta2 < 3) {
- checkUnnamed97(o.request);
+ checkUnnamed99(o.request);
unittest.expect(o.target, unittest.equals('foo'));
unittest.expect(o.type, unittest.equals('foo'));
}
« no previous file with comments | « generated/googleapis/test/clouddebugger/v2_test.dart ('k') | generated/googleapis/test/cloudkms/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698