Index: generated/googleapis/test/playcustomapp/v1_test.dart |
diff --git a/generated/googleapis/test/playcustomapp/v1_test.dart b/generated/googleapis/test/playcustomapp/v1_test.dart |
index fdbd3b39a18978cc56d3ecaae3da3e8b8589a6ba..24fefce099a80308ab41ceee783899319d2cf5c0 100644 |
--- a/generated/googleapis/test/playcustomapp/v1_test.dart |
+++ b/generated/googleapis/test/playcustomapp/v1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis.playcustomapp.v1.test; |
import "dart:core" as core; |
-import "dart:collection" as collection; |
import "dart:async" as async; |
import "dart:convert" as convert; |
import 'package:http/http.dart' as http; |
-import 'package:http/testing.dart' as http_testing; |
import 'package:test/test.dart' as unittest; |
import 'package:googleapis/playcustomapp/v1.dart' as api; |
@@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient { |
async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
if (_expectJson) { |
- return request.finalize() |
+ return request |
+ .finalize() |
.transform(convert.UTF8.decoder) |
.join('') |
.then((core.String jsonString) { |
@@ -45,8 +44,8 @@ class HttpServerMock extends http.BaseClient { |
} |
} |
-http.StreamedResponse stringResponse( |
- core.int status, core.Map<core.String, core.String> headers, core.String body) { |
+http.StreamedResponse stringResponse(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); |
} |
@@ -72,7 +71,6 @@ checkCustomApp(api.CustomApp o) { |
buildCounterCustomApp--; |
} |
- |
main() { |
unittest.group("obj-schema-CustomApp", () { |
unittest.test("to-json--from-json", () { |
@@ -82,14 +80,14 @@ main() { |
}); |
}); |
- |
unittest.group("resource-AccountsCustomAppsResourceApi", () { |
unittest.test("method--create", () { |
// TODO: Implement tests for media upload; |
// TODO: Implement tests for media download; |
var mock = new HttpServerMock(); |
- api.AccountsCustomAppsResourceApi res = new api.PlaycustomappApi(mock).accounts.customApps; |
+ api.AccountsCustomAppsResourceApi res = |
+ new api.PlaycustomappApi(mock).accounts.customApps; |
var arg_request = buildCustomApp(); |
var arg_account = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -100,7 +98,8 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
var query = (req.url).query; |
@@ -113,27 +112,26 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildCustomApp()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request, arg_account).then(unittest.expectAsync1(((api.CustomApp response) { |
+ res |
+ .create(arg_request, arg_account) |
+ .then(unittest.expectAsync1(((api.CustomApp response) { |
checkCustomApp(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |