Index: generated/googleapis/test/groupsmigration/v1_test.dart |
diff --git a/generated/googleapis/test/groupsmigration/v1_test.dart b/generated/googleapis/test/groupsmigration/v1_test.dart |
index e26d3f05f969873178b11ffa6b5f16507975c02d..90b9d1fd0e5985aae281187bc777e064c817597e 100644 |
--- a/generated/googleapis/test/groupsmigration/v1_test.dart |
+++ b/generated/googleapis/test/groupsmigration/v1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis.groupsmigration.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/groupsmigration/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 @@ checkGroups(api.Groups o) { |
buildCounterGroups--; |
} |
- |
main() { |
unittest.group("obj-schema-Groups", () { |
unittest.test("to-json--from-json", () { |
@@ -82,7 +80,6 @@ main() { |
}); |
}); |
- |
unittest.group("resource-ArchiveResourceApi", () { |
unittest.test("method--insert", () { |
// TODO: Implement tests for media upload; |
@@ -96,7 +93,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; |
@@ -109,27 +107,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(buildGroups()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.insert(arg_groupId).then(unittest.expectAsync1(((api.Groups response) { |
+ res |
+ .insert(arg_groupId) |
+ .then(unittest.expectAsync1(((api.Groups response) { |
checkGroups(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |