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 4c9e178c3771e4612dc484e8d94b2c6d916d1ded..9c15194335bfd8b251c3af0bbee0aac484d41b5d 100644 |
--- a/generated/googleapis/test/storagetransfer/v1_test.dart |
+++ b/generated/googleapis/test/storagetransfer/v1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis.storagetransfer.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/storagetransfer/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); |
} |
@@ -120,27 +119,25 @@ core.int buildCounterEmpty = 0; |
buildEmpty() { |
var o = new api.Empty(); |
buildCounterEmpty++; |
- if (buildCounterEmpty < 3) { |
- } |
+ if (buildCounterEmpty < 3) {} |
buildCounterEmpty--; |
return o; |
} |
checkEmpty(api.Empty o) { |
buildCounterEmpty++; |
- if (buildCounterEmpty < 3) { |
- } |
+ if (buildCounterEmpty < 3) {} |
buildCounterEmpty--; |
} |
-buildUnnamed1408() { |
+buildUnnamed1398() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1408(core.List<core.String> o) { |
+checkUnnamed1398(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 +148,7 @@ buildErrorLogEntry() { |
var o = new api.ErrorLogEntry(); |
buildCounterErrorLogEntry++; |
if (buildCounterErrorLogEntry < 3) { |
- o.errorDetails = buildUnnamed1408(); |
+ o.errorDetails = buildUnnamed1398(); |
o.url = "foo"; |
} |
buildCounterErrorLogEntry--; |
@@ -161,20 +158,20 @@ buildErrorLogEntry() { |
checkErrorLogEntry(api.ErrorLogEntry o) { |
buildCounterErrorLogEntry++; |
if (buildCounterErrorLogEntry < 3) { |
- checkUnnamed1408(o.errorDetails); |
+ checkUnnamed1398(o.errorDetails); |
unittest.expect(o.url, unittest.equals('foo')); |
} |
buildCounterErrorLogEntry--; |
} |
-buildUnnamed1409() { |
+buildUnnamed1399() { |
var o = new core.List<api.ErrorLogEntry>(); |
o.add(buildErrorLogEntry()); |
o.add(buildErrorLogEntry()); |
return o; |
} |
-checkUnnamed1409(core.List<api.ErrorLogEntry> o) { |
+checkUnnamed1399(core.List<api.ErrorLogEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorLogEntry(o[0]); |
checkErrorLogEntry(o[1]); |
@@ -187,7 +184,7 @@ buildErrorSummary() { |
if (buildCounterErrorSummary < 3) { |
o.errorCode = "foo"; |
o.errorCount = "foo"; |
- o.errorLogEntries = buildUnnamed1409(); |
+ o.errorLogEntries = buildUnnamed1399(); |
} |
buildCounterErrorSummary--; |
return o; |
@@ -198,7 +195,7 @@ checkErrorSummary(api.ErrorSummary o) { |
if (buildCounterErrorSummary < 3) { |
unittest.expect(o.errorCode, unittest.equals('foo')); |
unittest.expect(o.errorCount, unittest.equals('foo')); |
- checkUnnamed1409(o.errorLogEntries); |
+ checkUnnamed1399(o.errorLogEntries); |
} |
buildCounterErrorSummary--; |
} |
@@ -260,14 +257,14 @@ checkHttpData(api.HttpData o) { |
buildCounterHttpData--; |
} |
-buildUnnamed1410() { |
+buildUnnamed1400() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed1410(core.List<api.Operation> o) { |
+checkUnnamed1400(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -279,7 +276,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed1410(); |
+ o.operations = buildUnnamed1400(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -289,19 +286,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1410(o.operations); |
+ checkUnnamed1400(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-buildUnnamed1411() { |
+buildUnnamed1401() { |
var o = new core.List<api.TransferJob>(); |
o.add(buildTransferJob()); |
o.add(buildTransferJob()); |
return o; |
} |
-checkUnnamed1411(core.List<api.TransferJob> o) { |
+checkUnnamed1401(core.List<api.TransferJob> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkTransferJob(o[0]); |
checkTransferJob(o[1]); |
@@ -313,7 +310,7 @@ buildListTransferJobsResponse() { |
buildCounterListTransferJobsResponse++; |
if (buildCounterListTransferJobsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.transferJobs = buildUnnamed1411(); |
+ o.transferJobs = buildUnnamed1401(); |
} |
buildCounterListTransferJobsResponse--; |
return o; |
@@ -323,32 +320,32 @@ checkListTransferJobsResponse(api.ListTransferJobsResponse o) { |
buildCounterListTransferJobsResponse++; |
if (buildCounterListTransferJobsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1411(o.transferJobs); |
+ checkUnnamed1401(o.transferJobs); |
} |
buildCounterListTransferJobsResponse--; |
} |
-buildUnnamed1412() { |
+buildUnnamed1402() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1412(core.List<core.String> o) { |
+checkUnnamed1402(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')); |
} |
-buildUnnamed1413() { |
+buildUnnamed1403() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1413(core.List<core.String> o) { |
+checkUnnamed1403(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 +356,8 @@ buildObjectConditions() { |
var o = new api.ObjectConditions(); |
buildCounterObjectConditions++; |
if (buildCounterObjectConditions < 3) { |
- o.excludePrefixes = buildUnnamed1412(); |
- o.includePrefixes = buildUnnamed1413(); |
+ o.excludePrefixes = buildUnnamed1402(); |
+ o.includePrefixes = buildUnnamed1403(); |
o.maxTimeElapsedSinceLastModification = "foo"; |
o.minTimeElapsedSinceLastModification = "foo"; |
} |
@@ -371,38 +368,72 @@ buildObjectConditions() { |
checkObjectConditions(api.ObjectConditions o) { |
buildCounterObjectConditions++; |
if (buildCounterObjectConditions < 3) { |
- checkUnnamed1412(o.excludePrefixes); |
- checkUnnamed1413(o.includePrefixes); |
- unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); |
- unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); |
+ checkUnnamed1402(o.excludePrefixes); |
+ checkUnnamed1403(o.includePrefixes); |
+ unittest.expect( |
+ o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); |
+ unittest.expect( |
+ o.minTimeElapsedSinceLastModification, unittest.equals('foo')); |
} |
buildCounterObjectConditions--; |
} |
-buildUnnamed1414() { |
+buildUnnamed1404() { |
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'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed1414(core.Map<core.String, core.Object> o) { |
+checkUnnamed1404(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')); |
-} |
- |
-buildUnnamed1415() { |
+ 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')); |
+} |
+ |
+buildUnnamed1405() { |
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'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed1415(core.Map<core.String, core.Object> o) { |
+checkUnnamed1405(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')); |
+ 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')); |
} |
core.int buildCounterOperation = 0; |
@@ -412,9 +443,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed1414(); |
+ o.metadata = buildUnnamed1404(); |
o.name = "foo"; |
- o.response = buildUnnamed1415(); |
+ o.response = buildUnnamed1405(); |
} |
buildCounterOperation--; |
return o; |
@@ -425,9 +456,9 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed1414(o.metadata); |
+ checkUnnamed1404(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1415(o.response); |
+ checkUnnamed1405(o.response); |
} |
buildCounterOperation--; |
} |
@@ -436,16 +467,14 @@ core.int buildCounterPauseTransferOperationRequest = 0; |
buildPauseTransferOperationRequest() { |
var o = new api.PauseTransferOperationRequest(); |
buildCounterPauseTransferOperationRequest++; |
- if (buildCounterPauseTransferOperationRequest < 3) { |
- } |
+ if (buildCounterPauseTransferOperationRequest < 3) {} |
buildCounterPauseTransferOperationRequest--; |
return o; |
} |
checkPauseTransferOperationRequest(api.PauseTransferOperationRequest o) { |
buildCounterPauseTransferOperationRequest++; |
- if (buildCounterPauseTransferOperationRequest < 3) { |
- } |
+ if (buildCounterPauseTransferOperationRequest < 3) {} |
buildCounterPauseTransferOperationRequest--; |
} |
@@ -453,16 +482,14 @@ core.int buildCounterResumeTransferOperationRequest = 0; |
buildResumeTransferOperationRequest() { |
var o = new api.ResumeTransferOperationRequest(); |
buildCounterResumeTransferOperationRequest++; |
- if (buildCounterResumeTransferOperationRequest < 3) { |
- } |
+ if (buildCounterResumeTransferOperationRequest < 3) {} |
buildCounterResumeTransferOperationRequest--; |
return o; |
} |
checkResumeTransferOperationRequest(api.ResumeTransferOperationRequest o) { |
buildCounterResumeTransferOperationRequest++; |
- if (buildCounterResumeTransferOperationRequest < 3) { |
- } |
+ if (buildCounterResumeTransferOperationRequest < 3) {} |
buildCounterResumeTransferOperationRequest--; |
} |
@@ -489,30 +516,46 @@ checkSchedule(api.Schedule o) { |
buildCounterSchedule--; |
} |
-buildUnnamed1416() { |
+buildUnnamed1406() { |
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'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed1416(core.Map<core.String, core.Object> o) { |
+checkUnnamed1406(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')); |
-} |
- |
-buildUnnamed1417() { |
+ 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')); |
+} |
+ |
+buildUnnamed1407() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed1416()); |
- o.add(buildUnnamed1416()); |
+ o.add(buildUnnamed1406()); |
+ o.add(buildUnnamed1406()); |
return o; |
} |
-checkUnnamed1417(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed1407(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1416(o[0]); |
- checkUnnamed1416(o[1]); |
+ checkUnnamed1406(o[0]); |
+ checkUnnamed1406(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -521,7 +564,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed1417(); |
+ o.details = buildUnnamed1407(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -532,7 +575,7 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed1417(o.details); |
+ checkUnnamed1407(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
@@ -647,14 +690,14 @@ checkTransferJob(api.TransferJob o) { |
buildCounterTransferJob--; |
} |
-buildUnnamed1418() { |
+buildUnnamed1408() { |
var o = new core.List<api.ErrorSummary>(); |
o.add(buildErrorSummary()); |
o.add(buildErrorSummary()); |
return o; |
} |
-checkUnnamed1418(core.List<api.ErrorSummary> o) { |
+checkUnnamed1408(core.List<api.ErrorSummary> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorSummary(o[0]); |
checkErrorSummary(o[1]); |
@@ -667,7 +710,7 @@ buildTransferOperation() { |
if (buildCounterTransferOperation < 3) { |
o.counters = buildTransferCounters(); |
o.endTime = "foo"; |
- o.errorBreakdowns = buildUnnamed1418(); |
+ o.errorBreakdowns = buildUnnamed1408(); |
o.name = "foo"; |
o.projectId = "foo"; |
o.startTime = "foo"; |
@@ -684,7 +727,7 @@ checkTransferOperation(api.TransferOperation o) { |
if (buildCounterTransferOperation < 3) { |
checkTransferCounters(o.counters); |
unittest.expect(o.endTime, unittest.equals('foo')); |
- checkUnnamed1418(o.errorBreakdowns); |
+ checkUnnamed1408(o.errorBreakdowns); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.projectId, unittest.equals('foo')); |
unittest.expect(o.startTime, unittest.equals('foo')); |
@@ -770,7 +813,6 @@ checkUpdateTransferJobRequest(api.UpdateTransferJobRequest o) { |
buildCounterUpdateTransferJobRequest--; |
} |
- |
main() { |
unittest.group("obj-schema-AwsAccessKey", () { |
unittest.test("to-json--from-json", () { |
@@ -780,7 +822,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AwsS3Data", () { |
unittest.test("to-json--from-json", () { |
var o = buildAwsS3Data(); |
@@ -789,7 +830,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Date", () { |
unittest.test("to-json--from-json", () { |
var o = buildDate(); |
@@ -798,7 +838,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Empty", () { |
unittest.test("to-json--from-json", () { |
var o = buildEmpty(); |
@@ -807,7 +846,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ErrorLogEntry", () { |
unittest.test("to-json--from-json", () { |
var o = buildErrorLogEntry(); |
@@ -816,7 +854,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ErrorSummary", () { |
unittest.test("to-json--from-json", () { |
var o = buildErrorSummary(); |
@@ -825,7 +862,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GcsData", () { |
unittest.test("to-json--from-json", () { |
var o = buildGcsData(); |
@@ -834,7 +870,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GoogleServiceAccount", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleServiceAccount(); |
@@ -843,7 +878,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-HttpData", () { |
unittest.test("to-json--from-json", () { |
var o = buildHttpData(); |
@@ -852,7 +886,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListOperationsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListOperationsResponse(); |
@@ -861,7 +894,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListTransferJobsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListTransferJobsResponse(); |
@@ -870,7 +902,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ObjectConditions", () { |
unittest.test("to-json--from-json", () { |
var o = buildObjectConditions(); |
@@ -879,7 +910,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Operation", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperation(); |
@@ -888,7 +918,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-PauseTransferOperationRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildPauseTransferOperationRequest(); |
@@ -897,7 +926,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ResumeTransferOperationRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildResumeTransferOperationRequest(); |
@@ -906,7 +934,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Schedule", () { |
unittest.test("to-json--from-json", () { |
var o = buildSchedule(); |
@@ -915,7 +942,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Status", () { |
unittest.test("to-json--from-json", () { |
var o = buildStatus(); |
@@ -924,7 +950,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TimeOfDay", () { |
unittest.test("to-json--from-json", () { |
var o = buildTimeOfDay(); |
@@ -933,7 +958,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransferCounters", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransferCounters(); |
@@ -942,7 +966,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransferJob", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransferJob(); |
@@ -951,7 +974,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransferOperation", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransferOperation(); |
@@ -960,7 +982,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransferOptions", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransferOptions(); |
@@ -969,7 +990,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransferSpec", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransferSpec(); |
@@ -978,7 +998,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UpdateTransferJobRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildUpdateTransferJobRequest(); |
@@ -987,21 +1006,22 @@ main() { |
}); |
}); |
- |
unittest.group("resource-GoogleServiceAccountsResourceApi", () { |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.GoogleServiceAccountsResourceApi res = new api.StoragetransferApi(mock).googleServiceAccounts; |
+ api.GoogleServiceAccountsResourceApi res = |
+ new api.StoragetransferApi(mock).googleServiceAccounts; |
var arg_projectId = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("v1/googleServiceAccounts/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 25), |
+ unittest.equals("v1/googleServiceAccounts/")); |
pathOffset += 25; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -1017,33 +1037,34 @@ 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(buildGoogleServiceAccount()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_projectId).then(unittest.expectAsync1(((api.GoogleServiceAccount response) { |
+ res |
+ .get(arg_projectId) |
+ .then(unittest.expectAsync1(((api.GoogleServiceAccount response) { |
checkGoogleServiceAccount(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-TransferJobsResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
+ api.TransferJobsResourceApi res = |
+ new api.StoragetransferApi(mock).transferJobs; |
var arg_request = buildTransferJob(); |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var obj = new api.TransferJob.fromJson(json); |
@@ -1053,9 +1074,11 @@ 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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/transferJobs")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), |
+ unittest.equals("v1/transferJobs")); |
pathOffset += 15; |
var query = (req.url).query; |
@@ -1068,29 +1091,32 @@ 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(buildTransferJob()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request).then(unittest.expectAsync1(((api.TransferJob response) { |
+ res |
+ .create(arg_request) |
+ .then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
+ api.TransferJobsResourceApi res = |
+ new api.StoragetransferApi(mock).transferJobs; |
var arg_jobName = "foo"; |
var arg_projectId = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -1098,9 +1124,11 @@ 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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1114,41 +1142,47 @@ 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])); |
} |
} |
- unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); |
- |
+ unittest.expect( |
+ queryMap["projectId"].first, unittest.equals(arg_projectId)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
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.expectAsync1(((api.TransferJob response) { |
+ res |
+ .get(arg_jobName, projectId: arg_projectId) |
+ .then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
+ api.TransferJobsResourceApi res = |
+ new api.StoragetransferApi(mock).transferJobs; |
+ var arg_pageSize = 42; |
var arg_filter = "foo"; |
var arg_pageToken = "foo"; |
- var arg_pageSize = 42; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/transferJobs")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), |
+ unittest.equals("v1/transferJobs")); |
pathOffset += 15; |
var query = (req.url).query; |
@@ -1161,32 +1195,40 @@ 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])); |
} |
} |
+ 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)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListTransferJobsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { |
+ res |
+ .list( |
+ pageSize: arg_pageSize, |
+ filter: arg_filter, |
+ pageToken: arg_pageToken) |
+ .then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { |
checkListTransferJobsResponse(response); |
}))); |
}); |
unittest.test("method--patch", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; |
+ api.TransferJobsResourceApi res = |
+ new api.StoragetransferApi(mock).transferJobs; |
var arg_request = buildUpdateTransferJobRequest(); |
var arg_jobName = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -1197,9 +1239,11 @@ 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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1213,42 +1257,45 @@ 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(buildTransferJob()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.patch(arg_request, arg_jobName).then(unittest.expectAsync1(((api.TransferJob response) { |
+ res |
+ .patch(arg_request, arg_jobName) |
+ .then(unittest.expectAsync1(((api.TransferJob response) { |
checkTransferJob(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-TransferOperationsResourceApi", () { |
unittest.test("method--cancel", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1262,16 +1309,17 @@ 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(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -1282,18 +1330,20 @@ main() { |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1307,16 +1357,17 @@ 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(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -1327,18 +1378,20 @@ main() { |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1352,16 +1405,17 @@ 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(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -1372,21 +1426,23 @@ main() { |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_name = "foo"; |
- var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
var arg_filter = "foo"; |
+ var arg_pageToken = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1400,32 +1456,40 @@ 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])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
+ 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)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListOperationsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
+ res |
+ .list(arg_name, |
+ pageSize: arg_pageSize, |
+ filter: arg_filter, |
+ pageToken: arg_pageToken) |
+ .then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
checkListOperationsResponse(response); |
}))); |
}); |
unittest.test("method--pause", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_request = buildPauseTransferOperationRequest(); |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -1436,9 +1500,11 @@ 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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1452,29 +1518,32 @@ 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(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.pause(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { |
+ res |
+ .pause(arg_request, arg_name) |
+ .then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
unittest.test("method--resume", () { |
- |
var mock = new HttpServerMock(); |
- api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; |
+ api.TransferOperationsResourceApi res = |
+ new api.StoragetransferApi(mock).transferOperations; |
var arg_request = buildResumeTransferOperationRequest(); |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -1485,9 +1554,11 @@ 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; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -1501,27 +1572,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(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.resume(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { |
+ res |
+ .resume(arg_request, arg_name) |
+ .then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |