Index: generated/googleapis/test/storagetransfer/v1_test.dart |
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart |
index 35d3159710b9bf85d745b41fd26362ab706ecddb..70c45011b609deb8fdb3b760e6e650ca464a0c42 100644 |
--- a/generated/googleapis/test/storagetransfer/v1_test.dart |
+++ b/generated/googleapis/test/storagetransfer/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/storagetransfer/v1.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); |
} |
@@ -133,14 +133,14 @@ checkEmpty(api.Empty o) { |
buildCounterEmpty--; |
} |
-buildUnnamed1322() { |
+buildUnnamed1329() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1322(core.List<core.String> o) { |
+checkUnnamed1329(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -151,7 +151,7 @@ buildErrorLogEntry() { |
var o = new api.ErrorLogEntry(); |
buildCounterErrorLogEntry++; |
if (buildCounterErrorLogEntry < 3) { |
- o.errorDetails = buildUnnamed1322(); |
+ o.errorDetails = buildUnnamed1329(); |
o.url = "foo"; |
} |
buildCounterErrorLogEntry--; |
@@ -161,20 +161,20 @@ buildErrorLogEntry() { |
checkErrorLogEntry(api.ErrorLogEntry o) { |
buildCounterErrorLogEntry++; |
if (buildCounterErrorLogEntry < 3) { |
- checkUnnamed1322(o.errorDetails); |
+ checkUnnamed1329(o.errorDetails); |
unittest.expect(o.url, unittest.equals('foo')); |
} |
buildCounterErrorLogEntry--; |
} |
-buildUnnamed1323() { |
+buildUnnamed1330() { |
var o = new core.List<api.ErrorLogEntry>(); |
o.add(buildErrorLogEntry()); |
o.add(buildErrorLogEntry()); |
return o; |
} |
-checkUnnamed1323(core.List<api.ErrorLogEntry> o) { |
+checkUnnamed1330(core.List<api.ErrorLogEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorLogEntry(o[0]); |
checkErrorLogEntry(o[1]); |
@@ -187,7 +187,7 @@ buildErrorSummary() { |
if (buildCounterErrorSummary < 3) { |
o.errorCode = "foo"; |
o.errorCount = "foo"; |
- o.errorLogEntries = buildUnnamed1323(); |
+ o.errorLogEntries = buildUnnamed1330(); |
} |
buildCounterErrorSummary--; |
return o; |
@@ -198,7 +198,7 @@ checkErrorSummary(api.ErrorSummary o) { |
if (buildCounterErrorSummary < 3) { |
unittest.expect(o.errorCode, unittest.equals('foo')); |
unittest.expect(o.errorCount, unittest.equals('foo')); |
- checkUnnamed1323(o.errorLogEntries); |
+ checkUnnamed1330(o.errorLogEntries); |
} |
buildCounterErrorSummary--; |
} |
@@ -260,14 +260,14 @@ checkHttpData(api.HttpData o) { |
buildCounterHttpData--; |
} |
-buildUnnamed1324() { |
+buildUnnamed1331() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed1324(core.List<api.Operation> o) { |
+checkUnnamed1331(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -279,7 +279,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed1324(); |
+ o.operations = buildUnnamed1331(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -289,19 +289,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1324(o.operations); |
+ checkUnnamed1331(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-buildUnnamed1325() { |
+buildUnnamed1332() { |
var o = new core.List<api.TransferJob>(); |
o.add(buildTransferJob()); |
o.add(buildTransferJob()); |
return o; |
} |
-checkUnnamed1325(core.List<api.TransferJob> o) { |
+checkUnnamed1332(core.List<api.TransferJob> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkTransferJob(o[0]); |
checkTransferJob(o[1]); |
@@ -313,7 +313,7 @@ buildListTransferJobsResponse() { |
buildCounterListTransferJobsResponse++; |
if (buildCounterListTransferJobsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.transferJobs = buildUnnamed1325(); |
+ o.transferJobs = buildUnnamed1332(); |
} |
buildCounterListTransferJobsResponse--; |
return o; |
@@ -323,32 +323,32 @@ checkListTransferJobsResponse(api.ListTransferJobsResponse o) { |
buildCounterListTransferJobsResponse++; |
if (buildCounterListTransferJobsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1325(o.transferJobs); |
+ checkUnnamed1332(o.transferJobs); |
} |
buildCounterListTransferJobsResponse--; |
} |
-buildUnnamed1326() { |
+buildUnnamed1333() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1326(core.List<core.String> o) { |
+checkUnnamed1333(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed1327() { |
+buildUnnamed1334() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1327(core.List<core.String> o) { |
+checkUnnamed1334(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -359,8 +359,8 @@ buildObjectConditions() { |
var o = new api.ObjectConditions(); |
buildCounterObjectConditions++; |
if (buildCounterObjectConditions < 3) { |
- o.excludePrefixes = buildUnnamed1326(); |
- o.includePrefixes = buildUnnamed1327(); |
+ o.excludePrefixes = buildUnnamed1333(); |
+ o.includePrefixes = buildUnnamed1334(); |
o.maxTimeElapsedSinceLastModification = "foo"; |
o.minTimeElapsedSinceLastModification = "foo"; |
} |
@@ -371,35 +371,35 @@ buildObjectConditions() { |
checkObjectConditions(api.ObjectConditions o) { |
buildCounterObjectConditions++; |
if (buildCounterObjectConditions < 3) { |
- checkUnnamed1326(o.excludePrefixes); |
- checkUnnamed1327(o.includePrefixes); |
+ checkUnnamed1333(o.excludePrefixes); |
+ checkUnnamed1334(o.includePrefixes); |
unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); |
unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); |
} |
buildCounterObjectConditions--; |
} |
-buildUnnamed1328() { |
+buildUnnamed1335() { |
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; |
} |
-checkUnnamed1328(core.Map<core.String, core.Object> o) { |
+checkUnnamed1335(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')); |
} |
-buildUnnamed1329() { |
+buildUnnamed1336() { |
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; |
} |
-checkUnnamed1329(core.Map<core.String, core.Object> o) { |
+checkUnnamed1336(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')); |
@@ -412,9 +412,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed1328(); |
+ o.metadata = buildUnnamed1335(); |
o.name = "foo"; |
- o.response = buildUnnamed1329(); |
+ o.response = buildUnnamed1336(); |
} |
buildCounterOperation--; |
return o; |
@@ -425,9 +425,9 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed1328(o.metadata); |
+ checkUnnamed1335(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1329(o.response); |
+ checkUnnamed1336(o.response); |
} |
buildCounterOperation--; |
} |
@@ -489,30 +489,30 @@ checkSchedule(api.Schedule o) { |
buildCounterSchedule--; |
} |
-buildUnnamed1330() { |
+buildUnnamed1337() { |
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; |
} |
-checkUnnamed1330(core.Map<core.String, core.Object> o) { |
+checkUnnamed1337(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')); |
} |
-buildUnnamed1331() { |
+buildUnnamed1338() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed1330()); |
- o.add(buildUnnamed1330()); |
+ o.add(buildUnnamed1337()); |
+ o.add(buildUnnamed1337()); |
return o; |
} |
-checkUnnamed1331(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed1338(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1330(o[0]); |
- checkUnnamed1330(o[1]); |
+ checkUnnamed1337(o[0]); |
+ checkUnnamed1337(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -521,7 +521,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed1331(); |
+ o.details = buildUnnamed1338(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -532,7 +532,7 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed1331(o.details); |
+ checkUnnamed1338(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
@@ -647,14 +647,14 @@ checkTransferJob(api.TransferJob o) { |
buildCounterTransferJob--; |
} |
-buildUnnamed1332() { |
+buildUnnamed1339() { |
var o = new core.List<api.ErrorSummary>(); |
o.add(buildErrorSummary()); |
o.add(buildErrorSummary()); |
return o; |
} |
-checkUnnamed1332(core.List<api.ErrorSummary> o) { |
+checkUnnamed1339(core.List<api.ErrorSummary> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorSummary(o[0]); |
checkErrorSummary(o[1]); |
@@ -667,7 +667,7 @@ buildTransferOperation() { |
if (buildCounterTransferOperation < 3) { |
o.counters = buildTransferCounters(); |
o.endTime = "foo"; |
- o.errorBreakdowns = buildUnnamed1332(); |
+ o.errorBreakdowns = buildUnnamed1339(); |
o.name = "foo"; |
o.projectId = "foo"; |
o.startTime = "foo"; |
@@ -684,7 +684,7 @@ checkTransferOperation(api.TransferOperation o) { |
if (buildCounterTransferOperation < 3) { |
checkTransferCounters(o.counters); |
unittest.expect(o.endTime, unittest.equals('foo')); |
- checkUnnamed1332(o.errorBreakdowns); |
+ checkUnnamed1339(o.errorBreakdowns); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.projectId, unittest.equals('foo')); |
unittest.expect(o.startTime, unittest.equals('foo')); |
@@ -994,7 +994,7 @@ main() { |
var mock = new HttpServerMock(); |
api.GoogleServiceAccountsResourceApi res = new api.StoragetransferApi(mock).googleServiceAccounts; |
var arg_projectId = "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; |
@@ -1031,7 +1031,7 @@ main() { |
var resp = convert.JSON.encode(buildGoogleServiceAccount()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_projectId).then(unittest.expectAsync(((api.GoogleServiceAccount response) { |
+ res.get(arg_projectId).then(unittest.expectAsync1(((api.GoogleServiceAccount response) { |
checkGoogleServiceAccount(response); |
}))); |
}); |
@@ -1045,7 +1045,7 @@ main() { |
var mock = new HttpServerMock(); |
api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
var arg_request = buildTransferJob(); |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.TransferJob.fromJson(json); |
checkTransferJob(obj); |
@@ -1082,7 +1082,7 @@ main() { |
var resp = convert.JSON.encode(buildTransferJob()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request).then(unittest.expectAsync(((api.TransferJob response) { |
+ res.create(arg_request).then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
@@ -1093,7 +1093,7 @@ main() { |
api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
var arg_jobName = "foo"; |
var arg_projectId = "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; |
@@ -1129,7 +1129,7 @@ main() { |
var resp = convert.JSON.encode(buildTransferJob()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_jobName, projectId: arg_projectId).then(unittest.expectAsync(((api.TransferJob response) { |
+ res.get(arg_jobName, projectId: arg_projectId).then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
@@ -1141,7 +1141,7 @@ main() { |
var arg_pageSize = 42; |
var arg_filter = "foo"; |
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; |
@@ -1178,7 +1178,7 @@ main() { |
var resp = convert.JSON.encode(buildListTransferJobsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTransferJobsResponse response) { |
+ res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { |
checkListTransferJobsResponse(response); |
}))); |
}); |
@@ -1189,7 +1189,7 @@ main() { |
api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
var arg_request = buildUpdateTransferJobRequest(); |
var arg_jobName = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.UpdateTransferJobRequest.fromJson(json); |
checkUpdateTransferJobRequest(obj); |
@@ -1227,7 +1227,7 @@ main() { |
var resp = convert.JSON.encode(buildTransferJob()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.patch(arg_request, arg_jobName).then(unittest.expectAsync(((api.TransferJob response) { |
+ res.patch(arg_request, arg_jobName).then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
@@ -1241,7 +1241,7 @@ main() { |
var mock = new HttpServerMock(); |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "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; |
@@ -1276,7 +1276,7 @@ main() { |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
@@ -1286,7 +1286,7 @@ main() { |
var mock = new HttpServerMock(); |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "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; |
@@ -1321,7 +1321,7 @@ main() { |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
@@ -1331,7 +1331,7 @@ main() { |
var mock = new HttpServerMock(); |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "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; |
@@ -1366,7 +1366,7 @@ main() { |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
+ res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
@@ -1376,10 +1376,10 @@ main() { |
var mock = new HttpServerMock(); |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "foo"; |
+ var arg_pageSize = 42; |
var arg_filter = "foo"; |
var arg_pageToken = "foo"; |
- var arg_pageSize = 42; |
- 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; |
@@ -1406,9 +1406,9 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
var h = { |
@@ -1417,7 +1417,7 @@ main() { |
var resp = convert.JSON.encode(buildListOperationsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) { |
+ res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
checkListOperationsResponse(response); |
}))); |
}); |
@@ -1428,7 +1428,7 @@ main() { |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_request = buildPauseTransferOperationRequest(); |
var arg_name = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.PauseTransferOperationRequest.fromJson(json); |
checkPauseTransferOperationRequest(obj); |
@@ -1466,7 +1466,7 @@ main() { |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.pause(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ res.pause(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
@@ -1477,7 +1477,7 @@ main() { |
api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
var arg_request = buildResumeTransferOperationRequest(); |
var arg_name = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.ResumeTransferOperationRequest.fromJson(json); |
checkResumeTransferOperationRequest(obj); |
@@ -1515,7 +1515,7 @@ main() { |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.resume(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ res.resume(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |