Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: generated/googleapis/test/datastore/v1_test.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis/test/datastore/v1_test.dart
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart
index 7750291e8733aa429e1944ea400cdac184163b35..211ca7d91bd97ffdfc075616d88bf3cc6a34180d 100644
--- a/generated/googleapis/test/datastore/v1_test.dart
+++ b/generated/googleapis/test/datastore/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/datastore/v1.dart' as api;
@@ -46,19 +46,19 @@ 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);
}
-buildUnnamed573() {
+buildUnnamed575() {
var o = new core.List<api.Key>();
o.add(buildKey());
o.add(buildKey());
return o;
}
-checkUnnamed573(core.List<api.Key> o) {
+checkUnnamed575(core.List<api.Key> o) {
unittest.expect(o, unittest.hasLength(2));
checkKey(o[0]);
checkKey(o[1]);
@@ -69,7 +69,7 @@ buildAllocateIdsRequest() {
var o = new api.AllocateIdsRequest();
buildCounterAllocateIdsRequest++;
if (buildCounterAllocateIdsRequest < 3) {
- o.keys = buildUnnamed573();
+ o.keys = buildUnnamed575();
}
buildCounterAllocateIdsRequest--;
return o;
@@ -78,19 +78,19 @@ buildAllocateIdsRequest() {
checkAllocateIdsRequest(api.AllocateIdsRequest o) {
buildCounterAllocateIdsRequest++;
if (buildCounterAllocateIdsRequest < 3) {
- checkUnnamed573(o.keys);
+ checkUnnamed575(o.keys);
}
buildCounterAllocateIdsRequest--;
}
-buildUnnamed574() {
+buildUnnamed576() {
var o = new core.List<api.Key>();
o.add(buildKey());
o.add(buildKey());
return o;
}
-checkUnnamed574(core.List<api.Key> o) {
+checkUnnamed576(core.List<api.Key> o) {
unittest.expect(o, unittest.hasLength(2));
checkKey(o[0]);
checkKey(o[1]);
@@ -101,7 +101,7 @@ buildAllocateIdsResponse() {
var o = new api.AllocateIdsResponse();
buildCounterAllocateIdsResponse++;
if (buildCounterAllocateIdsResponse < 3) {
- o.keys = buildUnnamed574();
+ o.keys = buildUnnamed576();
}
buildCounterAllocateIdsResponse--;
return o;
@@ -110,19 +110,19 @@ buildAllocateIdsResponse() {
checkAllocateIdsResponse(api.AllocateIdsResponse o) {
buildCounterAllocateIdsResponse++;
if (buildCounterAllocateIdsResponse < 3) {
- checkUnnamed574(o.keys);
+ checkUnnamed576(o.keys);
}
buildCounterAllocateIdsResponse--;
}
-buildUnnamed575() {
+buildUnnamed577() {
var o = new core.List<api.Value>();
o.add(buildValue());
o.add(buildValue());
return o;
}
-checkUnnamed575(core.List<api.Value> o) {
+checkUnnamed577(core.List<api.Value> o) {
unittest.expect(o, unittest.hasLength(2));
checkValue(o[0]);
checkValue(o[1]);
@@ -133,7 +133,7 @@ buildArrayValue() {
var o = new api.ArrayValue();
buildCounterArrayValue++;
if (buildCounterArrayValue < 3) {
- o.values = buildUnnamed575();
+ o.values = buildUnnamed577();
}
buildCounterArrayValue--;
return o;
@@ -142,7 +142,7 @@ buildArrayValue() {
checkArrayValue(api.ArrayValue o) {
buildCounterArrayValue++;
if (buildCounterArrayValue < 3) {
- checkUnnamed575(o.values);
+ checkUnnamed577(o.values);
}
buildCounterArrayValue--;
}
@@ -183,14 +183,14 @@ checkBeginTransactionResponse(api.BeginTransactionResponse o) {
buildCounterBeginTransactionResponse--;
}
-buildUnnamed576() {
+buildUnnamed578() {
var o = new core.List<api.Mutation>();
o.add(buildMutation());
o.add(buildMutation());
return o;
}
-checkUnnamed576(core.List<api.Mutation> o) {
+checkUnnamed578(core.List<api.Mutation> o) {
unittest.expect(o, unittest.hasLength(2));
checkMutation(o[0]);
checkMutation(o[1]);
@@ -202,7 +202,7 @@ buildCommitRequest() {
buildCounterCommitRequest++;
if (buildCounterCommitRequest < 3) {
o.mode = "foo";
- o.mutations = buildUnnamed576();
+ o.mutations = buildUnnamed578();
o.transaction = "foo";
}
buildCounterCommitRequest--;
@@ -213,20 +213,20 @@ checkCommitRequest(api.CommitRequest o) {
buildCounterCommitRequest++;
if (buildCounterCommitRequest < 3) {
unittest.expect(o.mode, unittest.equals('foo'));
- checkUnnamed576(o.mutations);
+ checkUnnamed578(o.mutations);
unittest.expect(o.transaction, unittest.equals('foo'));
}
buildCounterCommitRequest--;
}
-buildUnnamed577() {
+buildUnnamed579() {
var o = new core.List<api.MutationResult>();
o.add(buildMutationResult());
o.add(buildMutationResult());
return o;
}
-checkUnnamed577(core.List<api.MutationResult> o) {
+checkUnnamed579(core.List<api.MutationResult> o) {
unittest.expect(o, unittest.hasLength(2));
checkMutationResult(o[0]);
checkMutationResult(o[1]);
@@ -238,7 +238,7 @@ buildCommitResponse() {
buildCounterCommitResponse++;
if (buildCounterCommitResponse < 3) {
o.indexUpdates = 42;
- o.mutationResults = buildUnnamed577();
+ o.mutationResults = buildUnnamed579();
}
buildCounterCommitResponse--;
return o;
@@ -248,19 +248,19 @@ checkCommitResponse(api.CommitResponse o) {
buildCounterCommitResponse++;
if (buildCounterCommitResponse < 3) {
unittest.expect(o.indexUpdates, unittest.equals(42));
- checkUnnamed577(o.mutationResults);
+ checkUnnamed579(o.mutationResults);
}
buildCounterCommitResponse--;
}
-buildUnnamed578() {
+buildUnnamed580() {
var o = new core.List<api.Filter>();
o.add(buildFilter());
o.add(buildFilter());
return o;
}
-checkUnnamed578(core.List<api.Filter> o) {
+checkUnnamed580(core.List<api.Filter> o) {
unittest.expect(o, unittest.hasLength(2));
checkFilter(o[0]);
checkFilter(o[1]);
@@ -271,7 +271,7 @@ buildCompositeFilter() {
var o = new api.CompositeFilter();
buildCounterCompositeFilter++;
if (buildCounterCompositeFilter < 3) {
- o.filters = buildUnnamed578();
+ o.filters = buildUnnamed580();
o.op = "foo";
}
buildCounterCompositeFilter--;
@@ -281,20 +281,20 @@ buildCompositeFilter() {
checkCompositeFilter(api.CompositeFilter o) {
buildCounterCompositeFilter++;
if (buildCounterCompositeFilter < 3) {
- checkUnnamed578(o.filters);
+ checkUnnamed580(o.filters);
unittest.expect(o.op, unittest.equals('foo'));
}
buildCounterCompositeFilter--;
}
-buildUnnamed579() {
+buildUnnamed581() {
var o = new core.Map<core.String, api.Value>();
o["x"] = buildValue();
o["y"] = buildValue();
return o;
}
-checkUnnamed579(core.Map<core.String, api.Value> o) {
+checkUnnamed581(core.Map<core.String, api.Value> o) {
unittest.expect(o, unittest.hasLength(2));
checkValue(o["x"]);
checkValue(o["y"]);
@@ -306,7 +306,7 @@ buildEntity() {
buildCounterEntity++;
if (buildCounterEntity < 3) {
o.key = buildKey();
- o.properties = buildUnnamed579();
+ o.properties = buildUnnamed581();
}
buildCounterEntity--;
return o;
@@ -316,7 +316,7 @@ checkEntity(api.Entity o) {
buildCounterEntity++;
if (buildCounterEntity < 3) {
checkKey(o.key);
- checkUnnamed579(o.properties);
+ checkUnnamed581(o.properties);
}
buildCounterEntity--;
}
@@ -365,27 +365,27 @@ checkFilter(api.Filter o) {
buildCounterFilter--;
}
-buildUnnamed580() {
+buildUnnamed582() {
var o = new core.Map<core.String, api.GqlQueryParameter>();
o["x"] = buildGqlQueryParameter();
o["y"] = buildGqlQueryParameter();
return o;
}
-checkUnnamed580(core.Map<core.String, api.GqlQueryParameter> o) {
+checkUnnamed582(core.Map<core.String, api.GqlQueryParameter> o) {
unittest.expect(o, unittest.hasLength(2));
checkGqlQueryParameter(o["x"]);
checkGqlQueryParameter(o["y"]);
}
-buildUnnamed581() {
+buildUnnamed583() {
var o = new core.List<api.GqlQueryParameter>();
o.add(buildGqlQueryParameter());
o.add(buildGqlQueryParameter());
return o;
}
-checkUnnamed581(core.List<api.GqlQueryParameter> o) {
+checkUnnamed583(core.List<api.GqlQueryParameter> o) {
unittest.expect(o, unittest.hasLength(2));
checkGqlQueryParameter(o[0]);
checkGqlQueryParameter(o[1]);
@@ -397,8 +397,8 @@ buildGqlQuery() {
buildCounterGqlQuery++;
if (buildCounterGqlQuery < 3) {
o.allowLiterals = true;
- o.namedBindings = buildUnnamed580();
- o.positionalBindings = buildUnnamed581();
+ o.namedBindings = buildUnnamed582();
+ o.positionalBindings = buildUnnamed583();
o.queryString = "foo";
}
buildCounterGqlQuery--;
@@ -409,8 +409,8 @@ checkGqlQuery(api.GqlQuery o) {
buildCounterGqlQuery++;
if (buildCounterGqlQuery < 3) {
unittest.expect(o.allowLiterals, unittest.isTrue);
- checkUnnamed580(o.namedBindings);
- checkUnnamed581(o.positionalBindings);
+ checkUnnamed582(o.namedBindings);
+ checkUnnamed583(o.positionalBindings);
unittest.expect(o.queryString, unittest.equals('foo'));
}
buildCounterGqlQuery--;
@@ -437,14 +437,14 @@ checkGqlQueryParameter(api.GqlQueryParameter o) {
buildCounterGqlQueryParameter--;
}
-buildUnnamed582() {
+buildUnnamed584() {
var o = new core.List<api.PathElement>();
o.add(buildPathElement());
o.add(buildPathElement());
return o;
}
-checkUnnamed582(core.List<api.PathElement> o) {
+checkUnnamed584(core.List<api.PathElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkPathElement(o[0]);
checkPathElement(o[1]);
@@ -456,7 +456,7 @@ buildKey() {
buildCounterKey++;
if (buildCounterKey < 3) {
o.partitionId = buildPartitionId();
- o.path = buildUnnamed582();
+ o.path = buildUnnamed584();
}
buildCounterKey--;
return o;
@@ -466,7 +466,7 @@ checkKey(api.Key o) {
buildCounterKey++;
if (buildCounterKey < 3) {
checkPartitionId(o.partitionId);
- checkUnnamed582(o.path);
+ checkUnnamed584(o.path);
}
buildCounterKey--;
}
@@ -511,14 +511,14 @@ checkLatLng(api.LatLng o) {
buildCounterLatLng--;
}
-buildUnnamed583() {
+buildUnnamed585() {
var o = new core.List<api.Key>();
o.add(buildKey());
o.add(buildKey());
return o;
}
-checkUnnamed583(core.List<api.Key> o) {
+checkUnnamed585(core.List<api.Key> o) {
unittest.expect(o, unittest.hasLength(2));
checkKey(o[0]);
checkKey(o[1]);
@@ -529,7 +529,7 @@ buildLookupRequest() {
var o = new api.LookupRequest();
buildCounterLookupRequest++;
if (buildCounterLookupRequest < 3) {
- o.keys = buildUnnamed583();
+ o.keys = buildUnnamed585();
o.readOptions = buildReadOptions();
}
buildCounterLookupRequest--;
@@ -539,46 +539,46 @@ buildLookupRequest() {
checkLookupRequest(api.LookupRequest o) {
buildCounterLookupRequest++;
if (buildCounterLookupRequest < 3) {
- checkUnnamed583(o.keys);
+ checkUnnamed585(o.keys);
checkReadOptions(o.readOptions);
}
buildCounterLookupRequest--;
}
-buildUnnamed584() {
+buildUnnamed586() {
var o = new core.List<api.Key>();
o.add(buildKey());
o.add(buildKey());
return o;
}
-checkUnnamed584(core.List<api.Key> o) {
+checkUnnamed586(core.List<api.Key> o) {
unittest.expect(o, unittest.hasLength(2));
checkKey(o[0]);
checkKey(o[1]);
}
-buildUnnamed585() {
+buildUnnamed587() {
var o = new core.List<api.EntityResult>();
o.add(buildEntityResult());
o.add(buildEntityResult());
return o;
}
-checkUnnamed585(core.List<api.EntityResult> o) {
+checkUnnamed587(core.List<api.EntityResult> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityResult(o[0]);
checkEntityResult(o[1]);
}
-buildUnnamed586() {
+buildUnnamed588() {
var o = new core.List<api.EntityResult>();
o.add(buildEntityResult());
o.add(buildEntityResult());
return o;
}
-checkUnnamed586(core.List<api.EntityResult> o) {
+checkUnnamed588(core.List<api.EntityResult> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityResult(o[0]);
checkEntityResult(o[1]);
@@ -589,9 +589,9 @@ buildLookupResponse() {
var o = new api.LookupResponse();
buildCounterLookupResponse++;
if (buildCounterLookupResponse < 3) {
- o.deferred = buildUnnamed584();
- o.found = buildUnnamed585();
- o.missing = buildUnnamed586();
+ o.deferred = buildUnnamed586();
+ o.found = buildUnnamed587();
+ o.missing = buildUnnamed588();
}
buildCounterLookupResponse--;
return o;
@@ -600,9 +600,9 @@ buildLookupResponse() {
checkLookupResponse(api.LookupResponse o) {
buildCounterLookupResponse++;
if (buildCounterLookupResponse < 3) {
- checkUnnamed584(o.deferred);
- checkUnnamed585(o.found);
- checkUnnamed586(o.missing);
+ checkUnnamed586(o.deferred);
+ checkUnnamed587(o.found);
+ checkUnnamed588(o.missing);
}
buildCounterLookupResponse--;
}
@@ -783,53 +783,53 @@ checkPropertyReference(api.PropertyReference o) {
buildCounterPropertyReference--;
}
-buildUnnamed587() {
+buildUnnamed589() {
var o = new core.List<api.PropertyReference>();
o.add(buildPropertyReference());
o.add(buildPropertyReference());
return o;
}
-checkUnnamed587(core.List<api.PropertyReference> o) {
+checkUnnamed589(core.List<api.PropertyReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkPropertyReference(o[0]);
checkPropertyReference(o[1]);
}
-buildUnnamed588() {
+buildUnnamed590() {
var o = new core.List<api.KindExpression>();
o.add(buildKindExpression());
o.add(buildKindExpression());
return o;
}
-checkUnnamed588(core.List<api.KindExpression> o) {
+checkUnnamed590(core.List<api.KindExpression> o) {
unittest.expect(o, unittest.hasLength(2));
checkKindExpression(o[0]);
checkKindExpression(o[1]);
}
-buildUnnamed589() {
+buildUnnamed591() {
var o = new core.List<api.PropertyOrder>();
o.add(buildPropertyOrder());
o.add(buildPropertyOrder());
return o;
}
-checkUnnamed589(core.List<api.PropertyOrder> o) {
+checkUnnamed591(core.List<api.PropertyOrder> o) {
unittest.expect(o, unittest.hasLength(2));
checkPropertyOrder(o[0]);
checkPropertyOrder(o[1]);
}
-buildUnnamed590() {
+buildUnnamed592() {
var o = new core.List<api.Projection>();
o.add(buildProjection());
o.add(buildProjection());
return o;
}
-checkUnnamed590(core.List<api.Projection> o) {
+checkUnnamed592(core.List<api.Projection> o) {
unittest.expect(o, unittest.hasLength(2));
checkProjection(o[0]);
checkProjection(o[1]);
@@ -840,14 +840,14 @@ buildQuery() {
var o = new api.Query();
buildCounterQuery++;
if (buildCounterQuery < 3) {
- o.distinctOn = buildUnnamed587();
+ o.distinctOn = buildUnnamed589();
o.endCursor = "foo";
o.filter = buildFilter();
- o.kind = buildUnnamed588();
+ o.kind = buildUnnamed590();
o.limit = 42;
o.offset = 42;
- o.order = buildUnnamed589();
- o.projection = buildUnnamed590();
+ o.order = buildUnnamed591();
+ o.projection = buildUnnamed592();
o.startCursor = "foo";
}
buildCounterQuery--;
@@ -857,27 +857,27 @@ buildQuery() {
checkQuery(api.Query o) {
buildCounterQuery++;
if (buildCounterQuery < 3) {
- checkUnnamed587(o.distinctOn);
+ checkUnnamed589(o.distinctOn);
unittest.expect(o.endCursor, unittest.equals('foo'));
checkFilter(o.filter);
- checkUnnamed588(o.kind);
+ checkUnnamed590(o.kind);
unittest.expect(o.limit, unittest.equals(42));
unittest.expect(o.offset, unittest.equals(42));
- checkUnnamed589(o.order);
- checkUnnamed590(o.projection);
+ checkUnnamed591(o.order);
+ checkUnnamed592(o.projection);
unittest.expect(o.startCursor, unittest.equals('foo'));
}
buildCounterQuery--;
}
-buildUnnamed591() {
+buildUnnamed593() {
var o = new core.List<api.EntityResult>();
o.add(buildEntityResult());
o.add(buildEntityResult());
return o;
}
-checkUnnamed591(core.List<api.EntityResult> o) {
+checkUnnamed593(core.List<api.EntityResult> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityResult(o[0]);
checkEntityResult(o[1]);
@@ -890,7 +890,7 @@ buildQueryResultBatch() {
if (buildCounterQueryResultBatch < 3) {
o.endCursor = "foo";
o.entityResultType = "foo";
- o.entityResults = buildUnnamed591();
+ o.entityResults = buildUnnamed593();
o.moreResults = "foo";
o.skippedCursor = "foo";
o.skippedResults = 42;
@@ -905,7 +905,7 @@ checkQueryResultBatch(api.QueryResultBatch o) {
if (buildCounterQueryResultBatch < 3) {
unittest.expect(o.endCursor, unittest.equals('foo'));
unittest.expect(o.entityResultType, unittest.equals('foo'));
- checkUnnamed591(o.entityResults);
+ checkUnnamed593(o.entityResults);
unittest.expect(o.moreResults, unittest.equals('foo'));
unittest.expect(o.skippedCursor, unittest.equals('foo'));
unittest.expect(o.skippedResults, unittest.equals(42));
@@ -1375,7 +1375,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildAllocateIdsRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.AllocateIdsRequest.fromJson(json);
checkAllocateIdsRequest(obj);
@@ -1419,7 +1419,7 @@ main() {
var resp = convert.JSON.encode(buildAllocateIdsResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.allocateIds(arg_request, arg_projectId).then(unittest.expectAsync(((api.AllocateIdsResponse response) {
+ res.allocateIds(arg_request, arg_projectId).then(unittest.expectAsync1(((api.AllocateIdsResponse response) {
checkAllocateIdsResponse(response);
})));
});
@@ -1430,7 +1430,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildBeginTransactionRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.BeginTransactionRequest.fromJson(json);
checkBeginTransactionRequest(obj);
@@ -1474,7 +1474,7 @@ main() {
var resp = convert.JSON.encode(buildBeginTransactionResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.beginTransaction(arg_request, arg_projectId).then(unittest.expectAsync(((api.BeginTransactionResponse response) {
+ res.beginTransaction(arg_request, arg_projectId).then(unittest.expectAsync1(((api.BeginTransactionResponse response) {
checkBeginTransactionResponse(response);
})));
});
@@ -1485,7 +1485,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildCommitRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.CommitRequest.fromJson(json);
checkCommitRequest(obj);
@@ -1529,7 +1529,7 @@ main() {
var resp = convert.JSON.encode(buildCommitResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.commit(arg_request, arg_projectId).then(unittest.expectAsync(((api.CommitResponse response) {
+ res.commit(arg_request, arg_projectId).then(unittest.expectAsync1(((api.CommitResponse response) {
checkCommitResponse(response);
})));
});
@@ -1540,7 +1540,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildLookupRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.LookupRequest.fromJson(json);
checkLookupRequest(obj);
@@ -1584,7 +1584,7 @@ main() {
var resp = convert.JSON.encode(buildLookupResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.lookup(arg_request, arg_projectId).then(unittest.expectAsync(((api.LookupResponse response) {
+ res.lookup(arg_request, arg_projectId).then(unittest.expectAsync1(((api.LookupResponse response) {
checkLookupResponse(response);
})));
});
@@ -1595,7 +1595,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildRollbackRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.RollbackRequest.fromJson(json);
checkRollbackRequest(obj);
@@ -1639,7 +1639,7 @@ main() {
var resp = convert.JSON.encode(buildRollbackResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.rollback(arg_request, arg_projectId).then(unittest.expectAsync(((api.RollbackResponse response) {
+ res.rollback(arg_request, arg_projectId).then(unittest.expectAsync1(((api.RollbackResponse response) {
checkRollbackResponse(response);
})));
});
@@ -1650,7 +1650,7 @@ main() {
api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects;
var arg_request = buildRunQueryRequest();
var arg_projectId = "foo";
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.RunQueryRequest.fromJson(json);
checkRunQueryRequest(obj);
@@ -1694,7 +1694,7 @@ main() {
var resp = convert.JSON.encode(buildRunQueryResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.RunQueryResponse response) {
+ res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync1(((api.RunQueryResponse response) {
checkRunQueryResponse(response);
})));
});
« no previous file with comments | « generated/googleapis/test/dataproc/v1_test.dart ('k') | generated/googleapis/test/deploymentmanager/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698