Index: generated/googleapis/test/gamesconfiguration/v1configuration_test.dart |
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart |
index 1a3c6fcc0aa2e2b205580e5ba99f5c1b1925c9e4..b2fbb59fface0c0542a0cfab735fc19847b353b0 100644 |
--- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart |
+++ b/generated/googleapis/test/gamesconfiguration/v1configuration_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/gamesconfiguration/v1configuration.dart' as api; |
@@ -46,7 +46,7 @@ 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); |
} |
@@ -113,14 +113,14 @@ checkAchievementConfigurationDetail(api.AchievementConfigurationDetail o) { |
buildCounterAchievementConfigurationDetail--; |
} |
-buildUnnamed683() { |
+buildUnnamed688() { |
var o = new core.List<api.AchievementConfiguration>(); |
o.add(buildAchievementConfiguration()); |
o.add(buildAchievementConfiguration()); |
return o; |
} |
-checkUnnamed683(core.List<api.AchievementConfiguration> o) { |
+checkUnnamed688(core.List<api.AchievementConfiguration> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAchievementConfiguration(o[0]); |
checkAchievementConfiguration(o[1]); |
@@ -131,7 +131,7 @@ buildAchievementConfigurationListResponse() { |
var o = new api.AchievementConfigurationListResponse(); |
buildCounterAchievementConfigurationListResponse++; |
if (buildCounterAchievementConfigurationListResponse < 3) { |
- o.items = buildUnnamed683(); |
+ o.items = buildUnnamed688(); |
o.kind = "foo"; |
o.nextPageToken = "foo"; |
} |
@@ -142,7 +142,7 @@ buildAchievementConfigurationListResponse() { |
checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { |
buildCounterAchievementConfigurationListResponse++; |
if (buildCounterAchievementConfigurationListResponse < 3) { |
- checkUnnamed683(o.items); |
+ checkUnnamed688(o.items); |
unittest.expect(o.kind, unittest.equals('foo')); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
@@ -288,14 +288,14 @@ checkLeaderboardConfigurationDetail(api.LeaderboardConfigurationDetail o) { |
buildCounterLeaderboardConfigurationDetail--; |
} |
-buildUnnamed684() { |
+buildUnnamed689() { |
var o = new core.List<api.LeaderboardConfiguration>(); |
o.add(buildLeaderboardConfiguration()); |
o.add(buildLeaderboardConfiguration()); |
return o; |
} |
-checkUnnamed684(core.List<api.LeaderboardConfiguration> o) { |
+checkUnnamed689(core.List<api.LeaderboardConfiguration> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLeaderboardConfiguration(o[0]); |
checkLeaderboardConfiguration(o[1]); |
@@ -306,7 +306,7 @@ buildLeaderboardConfigurationListResponse() { |
var o = new api.LeaderboardConfigurationListResponse(); |
buildCounterLeaderboardConfigurationListResponse++; |
if (buildCounterLeaderboardConfigurationListResponse < 3) { |
- o.items = buildUnnamed684(); |
+ o.items = buildUnnamed689(); |
o.kind = "foo"; |
o.nextPageToken = "foo"; |
} |
@@ -317,7 +317,7 @@ buildLeaderboardConfigurationListResponse() { |
checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { |
buildCounterLeaderboardConfigurationListResponse++; |
if (buildCounterLeaderboardConfigurationListResponse < 3) { |
- checkUnnamed684(o.items); |
+ checkUnnamed689(o.items); |
unittest.expect(o.kind, unittest.equals('foo')); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
@@ -347,14 +347,14 @@ checkLocalizedString(api.LocalizedString o) { |
buildCounterLocalizedString--; |
} |
-buildUnnamed685() { |
+buildUnnamed690() { |
var o = new core.List<api.LocalizedString>(); |
o.add(buildLocalizedString()); |
o.add(buildLocalizedString()); |
return o; |
} |
-checkUnnamed685(core.List<api.LocalizedString> o) { |
+checkUnnamed690(core.List<api.LocalizedString> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLocalizedString(o[0]); |
checkLocalizedString(o[1]); |
@@ -366,7 +366,7 @@ buildLocalizedStringBundle() { |
buildCounterLocalizedStringBundle++; |
if (buildCounterLocalizedStringBundle < 3) { |
o.kind = "foo"; |
- o.translations = buildUnnamed685(); |
+ o.translations = buildUnnamed690(); |
} |
buildCounterLocalizedStringBundle--; |
return o; |
@@ -376,7 +376,7 @@ checkLocalizedStringBundle(api.LocalizedStringBundle o) { |
buildCounterLocalizedStringBundle++; |
if (buildCounterLocalizedStringBundle < 3) { |
unittest.expect(o.kind, unittest.equals('foo')); |
- checkUnnamed685(o.translations); |
+ checkUnnamed690(o.translations); |
} |
buildCounterLocalizedStringBundle--; |
} |
@@ -488,7 +488,7 @@ main() { |
var mock = new HttpServerMock(); |
api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; |
var arg_achievementId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -527,7 +527,7 @@ main() { |
var resp = ""; |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_achievementId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_achievementId).then(unittest.expectAsync1((_) {})); |
}); |
unittest.test("method--get", () { |
@@ -535,7 +535,7 @@ main() { |
var mock = new HttpServerMock(); |
api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; |
var arg_achievementId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -574,7 +574,7 @@ main() { |
var resp = convert.JSON.encode(buildAchievementConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { |
+ res.get(arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { |
checkAchievementConfiguration(response); |
}))); |
}); |
@@ -585,7 +585,7 @@ main() { |
api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; |
var arg_request = buildAchievementConfiguration(); |
var arg_applicationId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.AchievementConfiguration.fromJson(json); |
checkAchievementConfiguration(obj); |
@@ -631,7 +631,7 @@ main() { |
var resp = convert.JSON.encode(buildAchievementConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.insert(arg_request, arg_applicationId).then(unittest.expectAsync(((api.AchievementConfiguration response) { |
+ res.insert(arg_request, arg_applicationId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { |
checkAchievementConfiguration(response); |
}))); |
}); |
@@ -643,7 +643,7 @@ main() { |
var arg_applicationId = "foo"; |
var arg_maxResults = 42; |
var arg_pageToken = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -688,7 +688,7 @@ main() { |
var resp = convert.JSON.encode(buildAchievementConfigurationListResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AchievementConfigurationListResponse response) { |
+ res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.AchievementConfigurationListResponse response) { |
checkAchievementConfigurationListResponse(response); |
}))); |
}); |
@@ -699,7 +699,7 @@ main() { |
api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; |
var arg_request = buildAchievementConfiguration(); |
var arg_achievementId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.AchievementConfiguration.fromJson(json); |
checkAchievementConfiguration(obj); |
@@ -741,7 +741,7 @@ main() { |
var resp = convert.JSON.encode(buildAchievementConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.patch(arg_request, arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { |
+ res.patch(arg_request, arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { |
checkAchievementConfiguration(response); |
}))); |
}); |
@@ -752,7 +752,7 @@ main() { |
api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; |
var arg_request = buildAchievementConfiguration(); |
var arg_achievementId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.AchievementConfiguration.fromJson(json); |
checkAchievementConfiguration(obj); |
@@ -794,7 +794,7 @@ main() { |
var resp = convert.JSON.encode(buildAchievementConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.update(arg_request, arg_achievementId).then(unittest.expectAsync(((api.AchievementConfiguration response) { |
+ res.update(arg_request, arg_achievementId).then(unittest.expectAsync1(((api.AchievementConfiguration response) { |
checkAchievementConfiguration(response); |
}))); |
}); |
@@ -811,7 +811,7 @@ main() { |
api.ImageConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).imageConfigurations; |
var arg_resourceId = "foo"; |
var arg_imageType = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -857,7 +857,7 @@ main() { |
var resp = convert.JSON.encode(buildImageConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.upload(arg_resourceId, arg_imageType).then(unittest.expectAsync(((api.ImageConfiguration response) { |
+ res.upload(arg_resourceId, arg_imageType).then(unittest.expectAsync1(((api.ImageConfiguration response) { |
checkImageConfiguration(response); |
}))); |
}); |
@@ -871,7 +871,7 @@ main() { |
var mock = new HttpServerMock(); |
api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; |
var arg_leaderboardId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -910,7 +910,7 @@ main() { |
var resp = ""; |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_leaderboardId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_leaderboardId).then(unittest.expectAsync1((_) {})); |
}); |
unittest.test("method--get", () { |
@@ -918,7 +918,7 @@ main() { |
var mock = new HttpServerMock(); |
api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; |
var arg_leaderboardId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -957,7 +957,7 @@ main() { |
var resp = convert.JSON.encode(buildLeaderboardConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { |
+ res.get(arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { |
checkLeaderboardConfiguration(response); |
}))); |
}); |
@@ -968,7 +968,7 @@ main() { |
api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; |
var arg_request = buildLeaderboardConfiguration(); |
var arg_applicationId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.LeaderboardConfiguration.fromJson(json); |
checkLeaderboardConfiguration(obj); |
@@ -1014,7 +1014,7 @@ main() { |
var resp = convert.JSON.encode(buildLeaderboardConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.insert(arg_request, arg_applicationId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { |
+ res.insert(arg_request, arg_applicationId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { |
checkLeaderboardConfiguration(response); |
}))); |
}); |
@@ -1026,7 +1026,7 @@ main() { |
var arg_applicationId = "foo"; |
var arg_maxResults = 42; |
var arg_pageToken = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -1071,7 +1071,7 @@ main() { |
var resp = convert.JSON.encode(buildLeaderboardConfigurationListResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.LeaderboardConfigurationListResponse response) { |
+ res.list(arg_applicationId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.LeaderboardConfigurationListResponse response) { |
checkLeaderboardConfigurationListResponse(response); |
}))); |
}); |
@@ -1082,7 +1082,7 @@ main() { |
api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; |
var arg_request = buildLeaderboardConfiguration(); |
var arg_leaderboardId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.LeaderboardConfiguration.fromJson(json); |
checkLeaderboardConfiguration(obj); |
@@ -1124,7 +1124,7 @@ main() { |
var resp = convert.JSON.encode(buildLeaderboardConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.patch(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { |
+ res.patch(arg_request, arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { |
checkLeaderboardConfiguration(response); |
}))); |
}); |
@@ -1135,7 +1135,7 @@ main() { |
api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; |
var arg_request = buildLeaderboardConfiguration(); |
var arg_leaderboardId = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.LeaderboardConfiguration.fromJson(json); |
checkLeaderboardConfiguration(obj); |
@@ -1177,7 +1177,7 @@ main() { |
var resp = convert.JSON.encode(buildLeaderboardConfiguration()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api.LeaderboardConfiguration response) { |
+ res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync1(((api.LeaderboardConfiguration response) { |
checkLeaderboardConfiguration(response); |
}))); |
}); |