| Index: generated/googleapis_beta/test/dns/v2beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/dns/v2beta1_test.dart b/generated/googleapis_beta/test/dns/v2beta1_test.dart
|
| index ffae6d46f372be1d4df4624d3471fe1c5d3f1c88..3b507bd039d8f3a6a0efccadd0c9989f7fa340b5 100644
|
| --- a/generated/googleapis_beta/test/dns/v2beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/dns/v2beta1_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_beta/dns/v2beta1.dart' as api;
|
|
|
| @@ -46,32 +46,32 @@ 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);
|
| }
|
|
|
| -buildUnnamed3838() {
|
| +buildUnnamed3312() {
|
| var o = new core.List<api.ResourceRecordSet>();
|
| o.add(buildResourceRecordSet());
|
| o.add(buildResourceRecordSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3838(core.List<api.ResourceRecordSet> o) {
|
| +checkUnnamed3312(core.List<api.ResourceRecordSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResourceRecordSet(o[0]);
|
| checkResourceRecordSet(o[1]);
|
| }
|
|
|
| -buildUnnamed3839() {
|
| +buildUnnamed3313() {
|
| var o = new core.List<api.ResourceRecordSet>();
|
| o.add(buildResourceRecordSet());
|
| o.add(buildResourceRecordSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3839(core.List<api.ResourceRecordSet> o) {
|
| +checkUnnamed3313(core.List<api.ResourceRecordSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResourceRecordSet(o[0]);
|
| checkResourceRecordSet(o[1]);
|
| @@ -82,8 +82,8 @@ buildChange() {
|
| var o = new api.Change();
|
| buildCounterChange++;
|
| if (buildCounterChange < 3) {
|
| - o.additions = buildUnnamed3838();
|
| - o.deletions = buildUnnamed3839();
|
| + o.additions = buildUnnamed3312();
|
| + o.deletions = buildUnnamed3313();
|
| o.id = "foo";
|
| o.isServing = true;
|
| o.kind = "foo";
|
| @@ -97,8 +97,8 @@ buildChange() {
|
| checkChange(api.Change o) {
|
| buildCounterChange++;
|
| if (buildCounterChange < 3) {
|
| - checkUnnamed3838(o.additions);
|
| - checkUnnamed3839(o.deletions);
|
| + checkUnnamed3312(o.additions);
|
| + checkUnnamed3313(o.deletions);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.isServing, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -108,14 +108,14 @@ checkChange(api.Change o) {
|
| buildCounterChange--;
|
| }
|
|
|
| -buildUnnamed3840() {
|
| +buildUnnamed3314() {
|
| var o = new core.List<api.Change>();
|
| o.add(buildChange());
|
| o.add(buildChange());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3840(core.List<api.Change> o) {
|
| +checkUnnamed3314(core.List<api.Change> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChange(o[0]);
|
| checkChange(o[1]);
|
| @@ -126,7 +126,7 @@ buildChangesListResponse() {
|
| var o = new api.ChangesListResponse();
|
| buildCounterChangesListResponse++;
|
| if (buildCounterChangesListResponse < 3) {
|
| - o.changes = buildUnnamed3840();
|
| + o.changes = buildUnnamed3314();
|
| o.header = buildResponseHeader();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -138,7 +138,7 @@ buildChangesListResponse() {
|
| checkChangesListResponse(api.ChangesListResponse o) {
|
| buildCounterChangesListResponse++;
|
| if (buildCounterChangesListResponse < 3) {
|
| - checkUnnamed3840(o.changes);
|
| + checkUnnamed3314(o.changes);
|
| checkResponseHeader(o.header);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -146,14 +146,14 @@ checkChangesListResponse(api.ChangesListResponse o) {
|
| buildCounterChangesListResponse--;
|
| }
|
|
|
| -buildUnnamed3841() {
|
| +buildUnnamed3315() {
|
| var o = new core.List<api.DnsKeyDigest>();
|
| o.add(buildDnsKeyDigest());
|
| o.add(buildDnsKeyDigest());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3841(core.List<api.DnsKeyDigest> o) {
|
| +checkUnnamed3315(core.List<api.DnsKeyDigest> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDnsKeyDigest(o[0]);
|
| checkDnsKeyDigest(o[1]);
|
| @@ -167,7 +167,7 @@ buildDnsKey() {
|
| o.algorithm = "foo";
|
| o.creationTime = "foo";
|
| o.description = "foo";
|
| - o.digests = buildUnnamed3841();
|
| + o.digests = buildUnnamed3315();
|
| o.id = "foo";
|
| o.isActive = true;
|
| o.keyLength = 42;
|
| @@ -186,7 +186,7 @@ checkDnsKey(api.DnsKey o) {
|
| unittest.expect(o.algorithm, unittest.equals('foo'));
|
| unittest.expect(o.creationTime, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed3841(o.digests);
|
| + checkUnnamed3315(o.digests);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.isActive, unittest.isTrue);
|
| unittest.expect(o.keyLength, unittest.equals(42));
|
| @@ -244,14 +244,14 @@ checkDnsKeySpec(api.DnsKeySpec o) {
|
| buildCounterDnsKeySpec--;
|
| }
|
|
|
| -buildUnnamed3842() {
|
| +buildUnnamed3316() {
|
| var o = new core.List<api.DnsKey>();
|
| o.add(buildDnsKey());
|
| o.add(buildDnsKey());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3842(core.List<api.DnsKey> o) {
|
| +checkUnnamed3316(core.List<api.DnsKey> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDnsKey(o[0]);
|
| checkDnsKey(o[1]);
|
| @@ -262,7 +262,7 @@ buildDnsKeysListResponse() {
|
| var o = new api.DnsKeysListResponse();
|
| buildCounterDnsKeysListResponse++;
|
| if (buildCounterDnsKeysListResponse < 3) {
|
| - o.dnsKeys = buildUnnamed3842();
|
| + o.dnsKeys = buildUnnamed3316();
|
| o.header = buildResponseHeader();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| @@ -274,7 +274,7 @@ buildDnsKeysListResponse() {
|
| checkDnsKeysListResponse(api.DnsKeysListResponse o) {
|
| buildCounterDnsKeysListResponse++;
|
| if (buildCounterDnsKeysListResponse < 3) {
|
| - checkUnnamed3842(o.dnsKeys);
|
| + checkUnnamed3316(o.dnsKeys);
|
| checkResponseHeader(o.header);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -282,14 +282,14 @@ checkDnsKeysListResponse(api.DnsKeysListResponse o) {
|
| buildCounterDnsKeysListResponse--;
|
| }
|
|
|
| -buildUnnamed3843() {
|
| +buildUnnamed3317() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3843(core.List<core.String> o) {
|
| +checkUnnamed3317(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'));
|
| @@ -308,7 +308,7 @@ buildManagedZone() {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.nameServerSet = "foo";
|
| - o.nameServers = buildUnnamed3843();
|
| + o.nameServers = buildUnnamed3317();
|
| }
|
| buildCounterManagedZone--;
|
| return o;
|
| @@ -325,19 +325,19 @@ checkManagedZone(api.ManagedZone o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.nameServerSet, unittest.equals('foo'));
|
| - checkUnnamed3843(o.nameServers);
|
| + checkUnnamed3317(o.nameServers);
|
| }
|
| buildCounterManagedZone--;
|
| }
|
|
|
| -buildUnnamed3844() {
|
| +buildUnnamed3318() {
|
| var o = new core.List<api.DnsKeySpec>();
|
| o.add(buildDnsKeySpec());
|
| o.add(buildDnsKeySpec());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3844(core.List<api.DnsKeySpec> o) {
|
| +checkUnnamed3318(core.List<api.DnsKeySpec> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDnsKeySpec(o[0]);
|
| checkDnsKeySpec(o[1]);
|
| @@ -348,7 +348,7 @@ buildManagedZoneDnsSecConfig() {
|
| var o = new api.ManagedZoneDnsSecConfig();
|
| buildCounterManagedZoneDnsSecConfig++;
|
| if (buildCounterManagedZoneDnsSecConfig < 3) {
|
| - o.defaultKeySpecs = buildUnnamed3844();
|
| + o.defaultKeySpecs = buildUnnamed3318();
|
| o.kind = "foo";
|
| o.nonExistence = "foo";
|
| o.state = "foo";
|
| @@ -360,7 +360,7 @@ buildManagedZoneDnsSecConfig() {
|
| checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) {
|
| buildCounterManagedZoneDnsSecConfig++;
|
| if (buildCounterManagedZoneDnsSecConfig < 3) {
|
| - checkUnnamed3844(o.defaultKeySpecs);
|
| + checkUnnamed3318(o.defaultKeySpecs);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nonExistence, unittest.equals('foo'));
|
| unittest.expect(o.state, unittest.equals('foo'));
|
| @@ -368,14 +368,14 @@ checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) {
|
| buildCounterManagedZoneDnsSecConfig--;
|
| }
|
|
|
| -buildUnnamed3845() {
|
| +buildUnnamed3319() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3845(core.List<api.Operation> o) {
|
| +checkUnnamed3319(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -389,7 +389,7 @@ buildManagedZoneOperationsListResponse() {
|
| o.header = buildResponseHeader();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed3845();
|
| + o.operations = buildUnnamed3319();
|
| }
|
| buildCounterManagedZoneOperationsListResponse--;
|
| return o;
|
| @@ -401,7 +401,7 @@ checkManagedZoneOperationsListResponse(api.ManagedZoneOperationsListResponse o)
|
| checkResponseHeader(o.header);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3845(o.operations);
|
| + checkUnnamed3319(o.operations);
|
| }
|
| buildCounterManagedZoneOperationsListResponse--;
|
| }
|
| @@ -425,14 +425,14 @@ checkManagedZonesDeleteResponse(api.ManagedZonesDeleteResponse o) {
|
| buildCounterManagedZonesDeleteResponse--;
|
| }
|
|
|
| -buildUnnamed3846() {
|
| +buildUnnamed3320() {
|
| var o = new core.List<api.ManagedZone>();
|
| o.add(buildManagedZone());
|
| o.add(buildManagedZone());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3846(core.List<api.ManagedZone> o) {
|
| +checkUnnamed3320(core.List<api.ManagedZone> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkManagedZone(o[0]);
|
| checkManagedZone(o[1]);
|
| @@ -445,7 +445,7 @@ buildManagedZonesListResponse() {
|
| if (buildCounterManagedZonesListResponse < 3) {
|
| o.header = buildResponseHeader();
|
| o.kind = "foo";
|
| - o.managedZones = buildUnnamed3846();
|
| + o.managedZones = buildUnnamed3320();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterManagedZonesListResponse--;
|
| @@ -457,7 +457,7 @@ checkManagedZonesListResponse(api.ManagedZonesListResponse o) {
|
| if (buildCounterManagedZonesListResponse < 3) {
|
| checkResponseHeader(o.header);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed3846(o.managedZones);
|
| + checkUnnamed3320(o.managedZones);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterManagedZonesListResponse--;
|
| @@ -563,14 +563,14 @@ checkProject(api.Project o) {
|
| buildCounterProject--;
|
| }
|
|
|
| -buildUnnamed3847() {
|
| +buildUnnamed3321() {
|
| var o = new core.List<api.DnsKeySpec>();
|
| o.add(buildDnsKeySpec());
|
| o.add(buildDnsKeySpec());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3847(core.List<api.DnsKeySpec> o) {
|
| +checkUnnamed3321(core.List<api.DnsKeySpec> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDnsKeySpec(o[0]);
|
| checkDnsKeySpec(o[1]);
|
| @@ -589,7 +589,7 @@ buildQuota() {
|
| o.rrsetDeletionsPerChange = 42;
|
| o.rrsetsPerManagedZone = 42;
|
| o.totalRrdataSizePerChange = 42;
|
| - o.whitelistedKeySpecs = buildUnnamed3847();
|
| + o.whitelistedKeySpecs = buildUnnamed3321();
|
| }
|
| buildCounterQuota--;
|
| return o;
|
| @@ -606,32 +606,32 @@ checkQuota(api.Quota o) {
|
| unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42));
|
| unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42));
|
| unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42));
|
| - checkUnnamed3847(o.whitelistedKeySpecs);
|
| + checkUnnamed3321(o.whitelistedKeySpecs);
|
| }
|
| buildCounterQuota--;
|
| }
|
|
|
| -buildUnnamed3848() {
|
| +buildUnnamed3322() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3848(core.List<core.String> o) {
|
| +checkUnnamed3322(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'));
|
| }
|
|
|
| -buildUnnamed3849() {
|
| +buildUnnamed3323() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3849(core.List<core.String> o) {
|
| +checkUnnamed3323(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'));
|
| @@ -644,8 +644,8 @@ buildResourceRecordSet() {
|
| if (buildCounterResourceRecordSet < 3) {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.rrdatas = buildUnnamed3848();
|
| - o.signatureRrdatas = buildUnnamed3849();
|
| + o.rrdatas = buildUnnamed3322();
|
| + o.signatureRrdatas = buildUnnamed3323();
|
| o.ttl = 42;
|
| o.type = "foo";
|
| }
|
| @@ -658,22 +658,22 @@ checkResourceRecordSet(api.ResourceRecordSet o) {
|
| if (buildCounterResourceRecordSet < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3848(o.rrdatas);
|
| - checkUnnamed3849(o.signatureRrdatas);
|
| + checkUnnamed3322(o.rrdatas);
|
| + checkUnnamed3323(o.signatureRrdatas);
|
| unittest.expect(o.ttl, unittest.equals(42));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterResourceRecordSet--;
|
| }
|
|
|
| -buildUnnamed3850() {
|
| +buildUnnamed3324() {
|
| var o = new core.List<api.ResourceRecordSet>();
|
| o.add(buildResourceRecordSet());
|
| o.add(buildResourceRecordSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3850(core.List<api.ResourceRecordSet> o) {
|
| +checkUnnamed3324(core.List<api.ResourceRecordSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResourceRecordSet(o[0]);
|
| checkResourceRecordSet(o[1]);
|
| @@ -687,7 +687,7 @@ buildResourceRecordSetsListResponse() {
|
| o.header = buildResponseHeader();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.rrsets = buildUnnamed3850();
|
| + o.rrsets = buildUnnamed3324();
|
| }
|
| buildCounterResourceRecordSetsListResponse--;
|
| return o;
|
| @@ -699,7 +699,7 @@ checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) {
|
| checkResponseHeader(o.header);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3850(o.rrsets);
|
| + checkUnnamed3324(o.rrsets);
|
| }
|
| buildCounterResourceRecordSetsListResponse--;
|
| }
|
| @@ -905,7 +905,7 @@ main() {
|
| var arg_project = "foo";
|
| var arg_managedZone = "foo";
|
| var arg_clientOperationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Change.fromJson(json);
|
| checkChange(obj);
|
|
|
| @@ -941,7 +941,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChange());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Change response) {
|
| + res.create(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Change response) {
|
| checkChange(response);
|
| })));
|
| });
|
| @@ -954,7 +954,7 @@ main() {
|
| var arg_managedZone = "foo";
|
| var arg_changeId = "foo";
|
| var arg_clientOperationId = "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;
|
| @@ -987,7 +987,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChange());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Change response) {
|
| + res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Change response) {
|
| checkChange(response);
|
| })));
|
| });
|
| @@ -1002,7 +1002,7 @@ main() {
|
| var arg_pageToken = "foo";
|
| var arg_sortBy = "foo";
|
| var arg_sortOrder = "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;
|
| @@ -1038,7 +1038,7 @@ main() {
|
| var resp = convert.JSON.encode(buildChangesListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ChangesListResponse response) {
|
| + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.expectAsync1(((api.ChangesListResponse response) {
|
| checkChangesListResponse(response);
|
| })));
|
| });
|
| @@ -1056,7 +1056,7 @@ main() {
|
| var arg_dnsKeyId = "foo";
|
| var arg_clientOperationId = "foo";
|
| var arg_digestType = "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;
|
| @@ -1090,7 +1090,7 @@ main() {
|
| var resp = convert.JSON.encode(buildDnsKey());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync(((api.DnsKey response) {
|
| + res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync1(((api.DnsKey response) {
|
| checkDnsKey(response);
|
| })));
|
| });
|
| @@ -1104,7 +1104,7 @@ main() {
|
| var arg_digestType = "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;
|
| @@ -1139,7 +1139,7 @@ main() {
|
| var resp = convert.JSON.encode(buildDnsKeysListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DnsKeysListResponse response) {
|
| + res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.DnsKeysListResponse response) {
|
| checkDnsKeysListResponse(response);
|
| })));
|
| });
|
| @@ -1156,7 +1156,7 @@ main() {
|
| var arg_managedZone = "foo";
|
| var arg_operation = "foo";
|
| var arg_clientOperationId = "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;
|
| @@ -1189,7 +1189,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -1203,7 +1203,7 @@ main() {
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_sortBy = "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;
|
| @@ -1238,7 +1238,7 @@ main() {
|
| var resp = convert.JSON.encode(buildManagedZoneOperationsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync(((api.ManagedZoneOperationsListResponse response) {
|
| + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync1(((api.ManagedZoneOperationsListResponse response) {
|
| checkManagedZoneOperationsListResponse(response);
|
| })));
|
| });
|
| @@ -1254,7 +1254,7 @@ main() {
|
| var arg_request = buildManagedZone();
|
| var arg_project = "foo";
|
| var arg_clientOperationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ManagedZone.fromJson(json);
|
| checkManagedZone(obj);
|
|
|
| @@ -1290,7 +1290,7 @@ main() {
|
| var resp = convert.JSON.encode(buildManagedZone());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request, arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZone response) {
|
| + res.create(arg_request, arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZone response) {
|
| checkManagedZone(response);
|
| })));
|
| });
|
| @@ -1302,7 +1302,7 @@ main() {
|
| var arg_project = "foo";
|
| var arg_managedZone = "foo";
|
| var arg_clientOperationId = "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;
|
| @@ -1335,7 +1335,7 @@ main() {
|
| var resp = convert.JSON.encode(buildManagedZonesDeleteResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZonesDeleteResponse response) {
|
| + res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZonesDeleteResponse response) {
|
| checkManagedZonesDeleteResponse(response);
|
| })));
|
| });
|
| @@ -1347,7 +1347,7 @@ main() {
|
| var arg_project = "foo";
|
| var arg_managedZone = "foo";
|
| var arg_clientOperationId = "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;
|
| @@ -1380,7 +1380,7 @@ main() {
|
| var resp = convert.JSON.encode(buildManagedZone());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.ManagedZone response) {
|
| + res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.ManagedZone response) {
|
| checkManagedZone(response);
|
| })));
|
| });
|
| @@ -1393,7 +1393,7 @@ main() {
|
| var arg_dnsName = "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;
|
| @@ -1428,7 +1428,7 @@ main() {
|
| var resp = convert.JSON.encode(buildManagedZonesListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManagedZonesListResponse response) {
|
| + res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ManagedZonesListResponse response) {
|
| checkManagedZonesListResponse(response);
|
| })));
|
| });
|
| @@ -1441,7 +1441,7 @@ main() {
|
| var arg_project = "foo";
|
| var arg_managedZone = "foo";
|
| var arg_clientOperationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ManagedZone.fromJson(json);
|
| checkManagedZone(obj);
|
|
|
| @@ -1477,7 +1477,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -1490,7 +1490,7 @@ main() {
|
| var arg_project = "foo";
|
| var arg_managedZone = "foo";
|
| var arg_clientOperationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ManagedZone.fromJson(json);
|
| checkManagedZone(obj);
|
|
|
| @@ -1526,7 +1526,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.update(arg_request, arg_project, arg_managedZone, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -1541,7 +1541,7 @@ main() {
|
| api.ProjectsResourceApi res = new api.DnsApi(mock).projects;
|
| var arg_project = "foo";
|
| var arg_clientOperationId = "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;
|
| @@ -1574,7 +1574,7 @@ main() {
|
| var resp = convert.JSON.encode(buildProject());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync(((api.Project response) {
|
| + res.get(arg_project, clientOperationId: arg_clientOperationId).then(unittest.expectAsync1(((api.Project response) {
|
| checkProject(response);
|
| })));
|
| });
|
| @@ -1593,7 +1593,7 @@ main() {
|
| var arg_name = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_type = "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;
|
| @@ -1629,7 +1629,7 @@ main() {
|
| var resp = convert.JSON.encode(buildResourceRecordSetsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((api.ResourceRecordSetsListResponse response) {
|
| + res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync1(((api.ResourceRecordSetsListResponse response) {
|
| checkResourceRecordSetsListResponse(response);
|
| })));
|
| });
|
|
|