| Index: generated/googleapis/test/androidpublisher/v2_test.dart
|
| diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart
|
| index 2d977464c8bfedb57c797616294aca6bb4817105..fa4c91a7c6e55c31c05a6da08da8e194d3d5752b 100644
|
| --- a/generated/googleapis/test/androidpublisher/v2_test.dart
|
| +++ b/generated/googleapis/test/androidpublisher/v2_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/androidpublisher/v2.dart' as api;
|
|
|
| @@ -46,7 +46,7 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
|
|
| http.StreamedResponse stringResponse(
|
| - core.int status, core.Map headers, core.String body) {
|
| + core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
| @@ -112,14 +112,14 @@ checkApkListing(api.ApkListing o) {
|
| buildCounterApkListing--;
|
| }
|
|
|
| -buildUnnamed2899() {
|
| +buildUnnamed2369() {
|
| var o = new core.List<api.ApkListing>();
|
| o.add(buildApkListing());
|
| o.add(buildApkListing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2899(core.List<api.ApkListing> o) {
|
| +checkUnnamed2369(core.List<api.ApkListing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkApkListing(o[0]);
|
| checkApkListing(o[1]);
|
| @@ -131,7 +131,7 @@ buildApkListingsListResponse() {
|
| buildCounterApkListingsListResponse++;
|
| if (buildCounterApkListingsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.listings = buildUnnamed2899();
|
| + o.listings = buildUnnamed2369();
|
| }
|
| buildCounterApkListingsListResponse--;
|
| return o;
|
| @@ -141,7 +141,7 @@ checkApkListingsListResponse(api.ApkListingsListResponse o) {
|
| buildCounterApkListingsListResponse++;
|
| if (buildCounterApkListingsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2899(o.listings);
|
| + checkUnnamed2369(o.listings);
|
| }
|
| buildCounterApkListingsListResponse--;
|
| }
|
| @@ -184,14 +184,14 @@ checkApksAddExternallyHostedResponse(api.ApksAddExternallyHostedResponse o) {
|
| buildCounterApksAddExternallyHostedResponse--;
|
| }
|
|
|
| -buildUnnamed2900() {
|
| +buildUnnamed2370() {
|
| var o = new core.List<api.Apk>();
|
| o.add(buildApk());
|
| o.add(buildApk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2900(core.List<api.Apk> o) {
|
| +checkUnnamed2370(core.List<api.Apk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkApk(o[0]);
|
| checkApk(o[1]);
|
| @@ -202,7 +202,7 @@ buildApksListResponse() {
|
| var o = new api.ApksListResponse();
|
| buildCounterApksListResponse++;
|
| if (buildCounterApksListResponse < 3) {
|
| - o.apks = buildUnnamed2900();
|
| + o.apks = buildUnnamed2370();
|
| o.kind = "foo";
|
| }
|
| buildCounterApksListResponse--;
|
| @@ -212,7 +212,7 @@ buildApksListResponse() {
|
| checkApksListResponse(api.ApksListResponse o) {
|
| buildCounterApksListResponse++;
|
| if (buildCounterApksListResponse < 3) {
|
| - checkUnnamed2900(o.apks);
|
| + checkUnnamed2370(o.apks);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterApksListResponse--;
|
| @@ -408,14 +408,14 @@ checkEntitlement(api.Entitlement o) {
|
| buildCounterEntitlement--;
|
| }
|
|
|
| -buildUnnamed2901() {
|
| +buildUnnamed2371() {
|
| var o = new core.List<api.Entitlement>();
|
| o.add(buildEntitlement());
|
| o.add(buildEntitlement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2901(core.List<api.Entitlement> o) {
|
| +checkUnnamed2371(core.List<api.Entitlement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntitlement(o[0]);
|
| checkEntitlement(o[1]);
|
| @@ -427,7 +427,7 @@ buildEntitlementsListResponse() {
|
| buildCounterEntitlementsListResponse++;
|
| if (buildCounterEntitlementsListResponse < 3) {
|
| o.pageInfo = buildPageInfo();
|
| - o.resources = buildUnnamed2901();
|
| + o.resources = buildUnnamed2371();
|
| o.tokenPagination = buildTokenPagination();
|
| }
|
| buildCounterEntitlementsListResponse--;
|
| @@ -438,7 +438,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) {
|
| buildCounterEntitlementsListResponse++;
|
| if (buildCounterEntitlementsListResponse < 3) {
|
| checkPageInfo(o.pageInfo);
|
| - checkUnnamed2901(o.resources);
|
| + checkUnnamed2371(o.resources);
|
| checkTokenPagination(o.tokenPagination);
|
| }
|
| buildCounterEntitlementsListResponse--;
|
| @@ -484,53 +484,53 @@ checkExpansionFilesUploadResponse(api.ExpansionFilesUploadResponse o) {
|
| buildCounterExpansionFilesUploadResponse--;
|
| }
|
|
|
| -buildUnnamed2902() {
|
| +buildUnnamed2372() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2902(core.List<core.String> o) {
|
| +checkUnnamed2372(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'));
|
| }
|
|
|
| -buildUnnamed2903() {
|
| +buildUnnamed2373() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2903(core.List<core.String> o) {
|
| +checkUnnamed2373(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'));
|
| }
|
|
|
| -buildUnnamed2904() {
|
| +buildUnnamed2374() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2904(core.List<core.String> o) {
|
| +checkUnnamed2374(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'));
|
| }
|
|
|
| -buildUnnamed2905() {
|
| +buildUnnamed2375() {
|
| var o = new core.List<api.ExternallyHostedApkUsesPermission>();
|
| o.add(buildExternallyHostedApkUsesPermission());
|
| o.add(buildExternallyHostedApkUsesPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2905(core.List<api.ExternallyHostedApkUsesPermission> o) {
|
| +checkUnnamed2375(core.List<api.ExternallyHostedApkUsesPermission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExternallyHostedApkUsesPermission(o[0]);
|
| checkExternallyHostedApkUsesPermission(o[1]);
|
| @@ -542,7 +542,7 @@ buildExternallyHostedApk() {
|
| buildCounterExternallyHostedApk++;
|
| if (buildCounterExternallyHostedApk < 3) {
|
| o.applicationLabel = "foo";
|
| - o.certificateBase64s = buildUnnamed2902();
|
| + o.certificateBase64s = buildUnnamed2372();
|
| o.externallyHostedUrl = "foo";
|
| o.fileSha1Base64 = "foo";
|
| o.fileSha256Base64 = "foo";
|
| @@ -550,10 +550,10 @@ buildExternallyHostedApk() {
|
| o.iconBase64 = "foo";
|
| o.maximumSdk = 42;
|
| o.minimumSdk = 42;
|
| - o.nativeCodes = buildUnnamed2903();
|
| + o.nativeCodes = buildUnnamed2373();
|
| o.packageName = "foo";
|
| - o.usesFeatures = buildUnnamed2904();
|
| - o.usesPermissions = buildUnnamed2905();
|
| + o.usesFeatures = buildUnnamed2374();
|
| + o.usesPermissions = buildUnnamed2375();
|
| o.versionCode = 42;
|
| o.versionName = "foo";
|
| }
|
| @@ -565,7 +565,7 @@ checkExternallyHostedApk(api.ExternallyHostedApk o) {
|
| buildCounterExternallyHostedApk++;
|
| if (buildCounterExternallyHostedApk < 3) {
|
| unittest.expect(o.applicationLabel, unittest.equals('foo'));
|
| - checkUnnamed2902(o.certificateBase64s);
|
| + checkUnnamed2372(o.certificateBase64s);
|
| unittest.expect(o.externallyHostedUrl, unittest.equals('foo'));
|
| unittest.expect(o.fileSha1Base64, unittest.equals('foo'));
|
| unittest.expect(o.fileSha256Base64, unittest.equals('foo'));
|
| @@ -573,10 +573,10 @@ checkExternallyHostedApk(api.ExternallyHostedApk o) {
|
| unittest.expect(o.iconBase64, unittest.equals('foo'));
|
| unittest.expect(o.maximumSdk, unittest.equals(42));
|
| unittest.expect(o.minimumSdk, unittest.equals(42));
|
| - checkUnnamed2903(o.nativeCodes);
|
| + checkUnnamed2373(o.nativeCodes);
|
| unittest.expect(o.packageName, unittest.equals('foo'));
|
| - checkUnnamed2904(o.usesFeatures);
|
| - checkUnnamed2905(o.usesPermissions);
|
| + checkUnnamed2374(o.usesFeatures);
|
| + checkUnnamed2375(o.usesPermissions);
|
| unittest.expect(o.versionCode, unittest.equals(42));
|
| unittest.expect(o.versionName, unittest.equals('foo'));
|
| }
|
| @@ -627,14 +627,14 @@ checkImage(api.Image o) {
|
| buildCounterImage--;
|
| }
|
|
|
| -buildUnnamed2906() {
|
| +buildUnnamed2376() {
|
| var o = new core.List<api.Image>();
|
| o.add(buildImage());
|
| o.add(buildImage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2906(core.List<api.Image> o) {
|
| +checkUnnamed2376(core.List<api.Image> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkImage(o[0]);
|
| checkImage(o[1]);
|
| @@ -645,7 +645,7 @@ buildImagesDeleteAllResponse() {
|
| var o = new api.ImagesDeleteAllResponse();
|
| buildCounterImagesDeleteAllResponse++;
|
| if (buildCounterImagesDeleteAllResponse < 3) {
|
| - o.deleted = buildUnnamed2906();
|
| + o.deleted = buildUnnamed2376();
|
| }
|
| buildCounterImagesDeleteAllResponse--;
|
| return o;
|
| @@ -654,19 +654,19 @@ buildImagesDeleteAllResponse() {
|
| checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) {
|
| buildCounterImagesDeleteAllResponse++;
|
| if (buildCounterImagesDeleteAllResponse < 3) {
|
| - checkUnnamed2906(o.deleted);
|
| + checkUnnamed2376(o.deleted);
|
| }
|
| buildCounterImagesDeleteAllResponse--;
|
| }
|
|
|
| -buildUnnamed2907() {
|
| +buildUnnamed2377() {
|
| var o = new core.List<api.Image>();
|
| o.add(buildImage());
|
| o.add(buildImage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2907(core.List<api.Image> o) {
|
| +checkUnnamed2377(core.List<api.Image> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkImage(o[0]);
|
| checkImage(o[1]);
|
| @@ -677,7 +677,7 @@ buildImagesListResponse() {
|
| var o = new api.ImagesListResponse();
|
| buildCounterImagesListResponse++;
|
| if (buildCounterImagesListResponse < 3) {
|
| - o.images = buildUnnamed2907();
|
| + o.images = buildUnnamed2377();
|
| }
|
| buildCounterImagesListResponse--;
|
| return o;
|
| @@ -686,7 +686,7 @@ buildImagesListResponse() {
|
| checkImagesListResponse(api.ImagesListResponse o) {
|
| buildCounterImagesListResponse++;
|
| if (buildCounterImagesListResponse < 3) {
|
| - checkUnnamed2907(o.images);
|
| + checkUnnamed2377(o.images);
|
| }
|
| buildCounterImagesListResponse--;
|
| }
|
| @@ -710,27 +710,27 @@ checkImagesUploadResponse(api.ImagesUploadResponse o) {
|
| buildCounterImagesUploadResponse--;
|
| }
|
|
|
| -buildUnnamed2908() {
|
| +buildUnnamed2378() {
|
| var o = new core.Map<core.String, api.InAppProductListing>();
|
| o["x"] = buildInAppProductListing();
|
| o["y"] = buildInAppProductListing();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2908(core.Map<core.String, api.InAppProductListing> o) {
|
| +checkUnnamed2378(core.Map<core.String, api.InAppProductListing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInAppProductListing(o["x"]);
|
| checkInAppProductListing(o["y"]);
|
| }
|
|
|
| -buildUnnamed2909() {
|
| +buildUnnamed2379() {
|
| var o = new core.Map<core.String, api.Price>();
|
| o["x"] = buildPrice();
|
| o["y"] = buildPrice();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2909(core.Map<core.String, api.Price> o) {
|
| +checkUnnamed2379(core.Map<core.String, api.Price> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPrice(o["x"]);
|
| checkPrice(o["y"]);
|
| @@ -743,9 +743,9 @@ buildInAppProduct() {
|
| if (buildCounterInAppProduct < 3) {
|
| o.defaultLanguage = "foo";
|
| o.defaultPrice = buildPrice();
|
| - o.listings = buildUnnamed2908();
|
| + o.listings = buildUnnamed2378();
|
| o.packageName = "foo";
|
| - o.prices = buildUnnamed2909();
|
| + o.prices = buildUnnamed2379();
|
| o.purchaseType = "foo";
|
| o.season = buildSeason();
|
| o.sku = "foo";
|
| @@ -762,9 +762,9 @@ checkInAppProduct(api.InAppProduct o) {
|
| if (buildCounterInAppProduct < 3) {
|
| unittest.expect(o.defaultLanguage, unittest.equals('foo'));
|
| checkPrice(o.defaultPrice);
|
| - checkUnnamed2908(o.listings);
|
| + checkUnnamed2378(o.listings);
|
| unittest.expect(o.packageName, unittest.equals('foo'));
|
| - checkUnnamed2909(o.prices);
|
| + checkUnnamed2379(o.prices);
|
| unittest.expect(o.purchaseType, unittest.equals('foo'));
|
| checkSeason(o.season);
|
| unittest.expect(o.sku, unittest.equals('foo'));
|
| @@ -796,14 +796,14 @@ checkInAppProductListing(api.InAppProductListing o) {
|
| buildCounterInAppProductListing--;
|
| }
|
|
|
| -buildUnnamed2910() {
|
| +buildUnnamed2380() {
|
| var o = new core.List<api.InappproductsBatchRequestEntry>();
|
| o.add(buildInappproductsBatchRequestEntry());
|
| o.add(buildInappproductsBatchRequestEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2910(core.List<api.InappproductsBatchRequestEntry> o) {
|
| +checkUnnamed2380(core.List<api.InappproductsBatchRequestEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInappproductsBatchRequestEntry(o[0]);
|
| checkInappproductsBatchRequestEntry(o[1]);
|
| @@ -814,7 +814,7 @@ buildInappproductsBatchRequest() {
|
| var o = new api.InappproductsBatchRequest();
|
| buildCounterInappproductsBatchRequest++;
|
| if (buildCounterInappproductsBatchRequest < 3) {
|
| - o.entrys = buildUnnamed2910();
|
| + o.entrys = buildUnnamed2380();
|
| }
|
| buildCounterInappproductsBatchRequest--;
|
| return o;
|
| @@ -823,7 +823,7 @@ buildInappproductsBatchRequest() {
|
| checkInappproductsBatchRequest(api.InappproductsBatchRequest o) {
|
| buildCounterInappproductsBatchRequest++;
|
| if (buildCounterInappproductsBatchRequest < 3) {
|
| - checkUnnamed2910(o.entrys);
|
| + checkUnnamed2380(o.entrys);
|
| }
|
| buildCounterInappproductsBatchRequest--;
|
| }
|
| @@ -853,14 +853,14 @@ checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) {
|
| buildCounterInappproductsBatchRequestEntry--;
|
| }
|
|
|
| -buildUnnamed2911() {
|
| +buildUnnamed2381() {
|
| var o = new core.List<api.InappproductsBatchResponseEntry>();
|
| o.add(buildInappproductsBatchResponseEntry());
|
| o.add(buildInappproductsBatchResponseEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2911(core.List<api.InappproductsBatchResponseEntry> o) {
|
| +checkUnnamed2381(core.List<api.InappproductsBatchResponseEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInappproductsBatchResponseEntry(o[0]);
|
| checkInappproductsBatchResponseEntry(o[1]);
|
| @@ -871,7 +871,7 @@ buildInappproductsBatchResponse() {
|
| var o = new api.InappproductsBatchResponse();
|
| buildCounterInappproductsBatchResponse++;
|
| if (buildCounterInappproductsBatchResponse < 3) {
|
| - o.entrys = buildUnnamed2911();
|
| + o.entrys = buildUnnamed2381();
|
| o.kind = "foo";
|
| }
|
| buildCounterInappproductsBatchResponse--;
|
| @@ -881,7 +881,7 @@ buildInappproductsBatchResponse() {
|
| checkInappproductsBatchResponse(api.InappproductsBatchResponse o) {
|
| buildCounterInappproductsBatchResponse++;
|
| if (buildCounterInappproductsBatchResponse < 3) {
|
| - checkUnnamed2911(o.entrys);
|
| + checkUnnamed2381(o.entrys);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterInappproductsBatchResponse--;
|
| @@ -948,14 +948,14 @@ checkInappproductsInsertResponse(api.InappproductsInsertResponse o) {
|
| buildCounterInappproductsInsertResponse--;
|
| }
|
|
|
| -buildUnnamed2912() {
|
| +buildUnnamed2382() {
|
| var o = new core.List<api.InAppProduct>();
|
| o.add(buildInAppProduct());
|
| o.add(buildInAppProduct());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2912(core.List<api.InAppProduct> o) {
|
| +checkUnnamed2382(core.List<api.InAppProduct> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInAppProduct(o[0]);
|
| checkInAppProduct(o[1]);
|
| @@ -966,7 +966,7 @@ buildInappproductsListResponse() {
|
| var o = new api.InappproductsListResponse();
|
| buildCounterInappproductsListResponse++;
|
| if (buildCounterInappproductsListResponse < 3) {
|
| - o.inappproduct = buildUnnamed2912();
|
| + o.inappproduct = buildUnnamed2382();
|
| o.kind = "foo";
|
| o.pageInfo = buildPageInfo();
|
| o.tokenPagination = buildTokenPagination();
|
| @@ -978,7 +978,7 @@ buildInappproductsListResponse() {
|
| checkInappproductsListResponse(api.InappproductsListResponse o) {
|
| buildCounterInappproductsListResponse++;
|
| if (buildCounterInappproductsListResponse < 3) {
|
| - checkUnnamed2912(o.inappproduct);
|
| + checkUnnamed2382(o.inappproduct);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkPageInfo(o.pageInfo);
|
| checkTokenPagination(o.tokenPagination);
|
| @@ -1051,14 +1051,14 @@ checkListing(api.Listing o) {
|
| buildCounterListing--;
|
| }
|
|
|
| -buildUnnamed2913() {
|
| +buildUnnamed2383() {
|
| var o = new core.List<api.Listing>();
|
| o.add(buildListing());
|
| o.add(buildListing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2913(core.List<api.Listing> o) {
|
| +checkUnnamed2383(core.List<api.Listing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkListing(o[0]);
|
| checkListing(o[1]);
|
| @@ -1070,7 +1070,7 @@ buildListingsListResponse() {
|
| buildCounterListingsListResponse++;
|
| if (buildCounterListingsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.listings = buildUnnamed2913();
|
| + o.listings = buildUnnamed2383();
|
| }
|
| buildCounterListingsListResponse--;
|
| return o;
|
| @@ -1080,7 +1080,7 @@ checkListingsListResponse(api.ListingsListResponse o) {
|
| buildCounterListingsListResponse++;
|
| if (buildCounterListingsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2913(o.listings);
|
| + checkUnnamed2383(o.listings);
|
| }
|
| buildCounterListingsListResponse--;
|
| }
|
| @@ -1198,14 +1198,14 @@ checkProrate(api.Prorate o) {
|
| buildCounterProrate--;
|
| }
|
|
|
| -buildUnnamed2914() {
|
| +buildUnnamed2384() {
|
| var o = new core.List<api.Comment>();
|
| o.add(buildComment());
|
| o.add(buildComment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2914(core.List<api.Comment> o) {
|
| +checkUnnamed2384(core.List<api.Comment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkComment(o[0]);
|
| checkComment(o[1]);
|
| @@ -1217,7 +1217,7 @@ buildReview() {
|
| buildCounterReview++;
|
| if (buildCounterReview < 3) {
|
| o.authorName = "foo";
|
| - o.comments = buildUnnamed2914();
|
| + o.comments = buildUnnamed2384();
|
| o.reviewId = "foo";
|
| }
|
| buildCounterReview--;
|
| @@ -1228,7 +1228,7 @@ checkReview(api.Review o) {
|
| buildCounterReview++;
|
| if (buildCounterReview < 3) {
|
| unittest.expect(o.authorName, unittest.equals('foo'));
|
| - checkUnnamed2914(o.comments);
|
| + checkUnnamed2384(o.comments);
|
| unittest.expect(o.reviewId, unittest.equals('foo'));
|
| }
|
| buildCounterReview--;
|
| @@ -1255,14 +1255,14 @@ checkReviewReplyResult(api.ReviewReplyResult o) {
|
| buildCounterReviewReplyResult--;
|
| }
|
|
|
| -buildUnnamed2915() {
|
| +buildUnnamed2385() {
|
| var o = new core.List<api.Review>();
|
| o.add(buildReview());
|
| o.add(buildReview());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2915(core.List<api.Review> o) {
|
| +checkUnnamed2385(core.List<api.Review> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReview(o[0]);
|
| checkReview(o[1]);
|
| @@ -1274,7 +1274,7 @@ buildReviewsListResponse() {
|
| buildCounterReviewsListResponse++;
|
| if (buildCounterReviewsListResponse < 3) {
|
| o.pageInfo = buildPageInfo();
|
| - o.reviews = buildUnnamed2915();
|
| + o.reviews = buildUnnamed2385();
|
| o.tokenPagination = buildTokenPagination();
|
| }
|
| buildCounterReviewsListResponse--;
|
| @@ -1285,7 +1285,7 @@ checkReviewsListResponse(api.ReviewsListResponse o) {
|
| buildCounterReviewsListResponse++;
|
| if (buildCounterReviewsListResponse < 3) {
|
| checkPageInfo(o.pageInfo);
|
| - checkUnnamed2915(o.reviews);
|
| + checkUnnamed2385(o.reviews);
|
| checkTokenPagination(o.tokenPagination);
|
| }
|
| buildCounterReviewsListResponse--;
|
| @@ -1329,14 +1329,14 @@ checkReviewsReplyResponse(api.ReviewsReplyResponse o) {
|
| buildCounterReviewsReplyResponse--;
|
| }
|
|
|
| -buildUnnamed2916() {
|
| +buildUnnamed2386() {
|
| var o = new core.List<api.Prorate>();
|
| o.add(buildProrate());
|
| o.add(buildProrate());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2916(core.List<api.Prorate> o) {
|
| +checkUnnamed2386(core.List<api.Prorate> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProrate(o[0]);
|
| checkProrate(o[1]);
|
| @@ -1348,7 +1348,7 @@ buildSeason() {
|
| buildCounterSeason++;
|
| if (buildCounterSeason < 3) {
|
| o.end = buildMonthDay();
|
| - o.prorations = buildUnnamed2916();
|
| + o.prorations = buildUnnamed2386();
|
| o.start = buildMonthDay();
|
| }
|
| buildCounterSeason--;
|
| @@ -1359,7 +1359,7 @@ checkSeason(api.Season o) {
|
| buildCounterSeason++;
|
| if (buildCounterSeason < 3) {
|
| checkMonthDay(o.end);
|
| - checkUnnamed2916(o.prorations);
|
| + checkUnnamed2386(o.prorations);
|
| checkMonthDay(o.start);
|
| }
|
| buildCounterSeason--;
|
| @@ -1463,27 +1463,27 @@ checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o
|
| buildCounterSubscriptionPurchasesDeferResponse--;
|
| }
|
|
|
| -buildUnnamed2917() {
|
| +buildUnnamed2387() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2917(core.List<core.String> o) {
|
| +checkUnnamed2387(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'));
|
| }
|
|
|
| -buildUnnamed2918() {
|
| +buildUnnamed2388() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2918(core.List<core.String> o) {
|
| +checkUnnamed2388(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'));
|
| @@ -1494,8 +1494,8 @@ buildTesters() {
|
| var o = new api.Testers();
|
| buildCounterTesters++;
|
| if (buildCounterTesters < 3) {
|
| - o.googleGroups = buildUnnamed2917();
|
| - o.googlePlusCommunities = buildUnnamed2918();
|
| + o.googleGroups = buildUnnamed2387();
|
| + o.googlePlusCommunities = buildUnnamed2388();
|
| }
|
| buildCounterTesters--;
|
| return o;
|
| @@ -1504,8 +1504,8 @@ buildTesters() {
|
| checkTesters(api.Testers o) {
|
| buildCounterTesters++;
|
| if (buildCounterTesters < 3) {
|
| - checkUnnamed2917(o.googleGroups);
|
| - checkUnnamed2918(o.googlePlusCommunities);
|
| + checkUnnamed2387(o.googleGroups);
|
| + checkUnnamed2388(o.googlePlusCommunities);
|
| }
|
| buildCounterTesters--;
|
| }
|
| @@ -1552,14 +1552,14 @@ checkTokenPagination(api.TokenPagination o) {
|
| buildCounterTokenPagination--;
|
| }
|
|
|
| -buildUnnamed2919() {
|
| +buildUnnamed2389() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2919(core.List<core.int> o) {
|
| +checkUnnamed2389(core.List<core.int> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42));
|
| unittest.expect(o[1], unittest.equals(42));
|
| @@ -1572,7 +1572,7 @@ buildTrack() {
|
| if (buildCounterTrack < 3) {
|
| o.track = "foo";
|
| o.userFraction = 42.0;
|
| - o.versionCodes = buildUnnamed2919();
|
| + o.versionCodes = buildUnnamed2389();
|
| }
|
| buildCounterTrack--;
|
| return o;
|
| @@ -1583,19 +1583,19 @@ checkTrack(api.Track o) {
|
| if (buildCounterTrack < 3) {
|
| unittest.expect(o.track, unittest.equals('foo'));
|
| unittest.expect(o.userFraction, unittest.equals(42.0));
|
| - checkUnnamed2919(o.versionCodes);
|
| + checkUnnamed2389(o.versionCodes);
|
| }
|
| buildCounterTrack--;
|
| }
|
|
|
| -buildUnnamed2920() {
|
| +buildUnnamed2390() {
|
| var o = new core.List<api.Track>();
|
| o.add(buildTrack());
|
| o.add(buildTrack());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2920(core.List<api.Track> o) {
|
| +checkUnnamed2390(core.List<api.Track> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTrack(o[0]);
|
| checkTrack(o[1]);
|
| @@ -1607,7 +1607,7 @@ buildTracksListResponse() {
|
| buildCounterTracksListResponse++;
|
| if (buildCounterTracksListResponse < 3) {
|
| o.kind = "foo";
|
| - o.tracks = buildUnnamed2920();
|
| + o.tracks = buildUnnamed2390();
|
| }
|
| buildCounterTracksListResponse--;
|
| return o;
|
| @@ -1617,7 +1617,7 @@ checkTracksListResponse(api.TracksListResponse o) {
|
| buildCounterTracksListResponse++;
|
| if (buildCounterTracksListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2920(o.tracks);
|
| + checkUnnamed2390(o.tracks);
|
| }
|
| buildCounterTracksListResponse--;
|
| }
|
| @@ -1688,14 +1688,14 @@ checkVoidedPurchase(api.VoidedPurchase o) {
|
| buildCounterVoidedPurchase--;
|
| }
|
|
|
| -buildUnnamed2921() {
|
| +buildUnnamed2391() {
|
| var o = new core.List<api.VoidedPurchase>();
|
| o.add(buildVoidedPurchase());
|
| o.add(buildVoidedPurchase());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2921(core.List<api.VoidedPurchase> o) {
|
| +checkUnnamed2391(core.List<api.VoidedPurchase> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVoidedPurchase(o[0]);
|
| checkVoidedPurchase(o[1]);
|
| @@ -1708,7 +1708,7 @@ buildVoidedPurchasesListResponse() {
|
| if (buildCounterVoidedPurchasesListResponse < 3) {
|
| o.pageInfo = buildPageInfo();
|
| o.tokenPagination = buildTokenPagination();
|
| - o.voidedPurchases = buildUnnamed2921();
|
| + o.voidedPurchases = buildUnnamed2391();
|
| }
|
| buildCounterVoidedPurchasesListResponse--;
|
| return o;
|
| @@ -1719,7 +1719,7 @@ checkVoidedPurchasesListResponse(api.VoidedPurchasesListResponse o) {
|
| if (buildCounterVoidedPurchasesListResponse < 3) {
|
| checkPageInfo(o.pageInfo);
|
| checkTokenPagination(o.tokenPagination);
|
| - checkUnnamed2921(o.voidedPurchases);
|
| + checkUnnamed2391(o.voidedPurchases);
|
| }
|
| buildCounterVoidedPurchasesListResponse--;
|
| }
|
| @@ -2273,7 +2273,7 @@ main() {
|
| api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2305,7 +2305,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppEdit());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.commit(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) {
|
| + res.commit(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) {
|
| checkAppEdit(response);
|
| })));
|
| });
|
| @@ -2316,7 +2316,7 @@ main() {
|
| api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2348,7 +2348,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_packageName, arg_editId).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_packageName, arg_editId).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| @@ -2357,7 +2357,7 @@ main() {
|
| api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2389,7 +2389,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppEdit());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) {
|
| + res.get(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) {
|
| checkAppEdit(response);
|
| })));
|
| });
|
| @@ -2400,7 +2400,7 @@ main() {
|
| api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
|
| var arg_request = buildAppEdit();
|
| var arg_packageName = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.AppEdit.fromJson(json);
|
| checkAppEdit(obj);
|
|
|
| @@ -2435,7 +2435,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppEdit());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_packageName).then(unittest.expectAsync(((api.AppEdit response) {
|
| + res.insert(arg_request, arg_packageName).then(unittest.expectAsync1(((api.AppEdit response) {
|
| checkAppEdit(response);
|
| })));
|
| });
|
| @@ -2446,7 +2446,7 @@ main() {
|
| api.EditsResourceApi res = new api.AndroidpublisherApi(mock).edits;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2478,7 +2478,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppEdit());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.validate(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppEdit response) {
|
| + res.validate(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppEdit response) {
|
| checkAppEdit(response);
|
| })));
|
| });
|
| @@ -2495,7 +2495,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_language = "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;
|
| @@ -2527,7 +2527,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--deleteall", () {
|
| @@ -2537,7 +2537,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2569,7 +2569,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deleteall(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync((_) {}));
|
| + res.deleteall(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| @@ -2580,7 +2580,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_language = "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;
|
| @@ -2612,7 +2612,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApkListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) {
|
| + res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) {
|
| checkApkListing(response);
|
| })));
|
| });
|
| @@ -2624,7 +2624,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2656,7 +2656,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApkListingsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync(((api.ApkListingsListResponse response) {
|
| + res.list(arg_packageName, arg_editId, arg_apkVersionCode).then(unittest.expectAsync1(((api.ApkListingsListResponse response) {
|
| checkApkListingsListResponse(response);
|
| })));
|
| });
|
| @@ -2670,7 +2670,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_language = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ApkListing.fromJson(json);
|
| checkApkListing(obj);
|
|
|
| @@ -2705,7 +2705,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApkListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) {
|
| checkApkListing(response);
|
| })));
|
| });
|
| @@ -2719,7 +2719,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_language = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ApkListing.fromJson(json);
|
| checkApkListing(obj);
|
|
|
| @@ -2754,7 +2754,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApkListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync(((api.ApkListing response) {
|
| + res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_language).then(unittest.expectAsync1(((api.ApkListing response) {
|
| checkApkListing(response);
|
| })));
|
| });
|
| @@ -2770,7 +2770,7 @@ main() {
|
| var arg_request = buildApksAddExternallyHostedRequest();
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ApksAddExternallyHostedRequest.fromJson(json);
|
| checkApksAddExternallyHostedRequest(obj);
|
|
|
| @@ -2805,7 +2805,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApksAddExternallyHostedResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.addexternallyhosted(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.ApksAddExternallyHostedResponse response) {
|
| + res.addexternallyhosted(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ApksAddExternallyHostedResponse response) {
|
| checkApksAddExternallyHostedResponse(response);
|
| })));
|
| });
|
| @@ -2816,7 +2816,7 @@ main() {
|
| api.EditsApksResourceApi res = new api.AndroidpublisherApi(mock).edits.apks;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2848,7 +2848,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApksListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.ApksListResponse response) {
|
| + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ApksListResponse response) {
|
| checkApksListResponse(response);
|
| })));
|
| });
|
| @@ -2861,7 +2861,7 @@ main() {
|
| api.EditsApksResourceApi res = new api.AndroidpublisherApi(mock).edits.apks;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2893,7 +2893,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApk());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.upload(arg_packageName, arg_editId).then(unittest.expectAsync(((api.Apk response) {
|
| + res.upload(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.Apk response) {
|
| checkApk(response);
|
| })));
|
| });
|
| @@ -2912,7 +2912,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_deobfuscationFileType = "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;
|
| @@ -2944,7 +2944,7 @@ main() {
|
| var resp = convert.JSON.encode(buildDeobfuscationFilesUploadResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync(((api.DeobfuscationFilesUploadResponse response) {
|
| + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync1(((api.DeobfuscationFilesUploadResponse response) {
|
| checkDeobfuscationFilesUploadResponse(response);
|
| })));
|
| });
|
| @@ -2959,7 +2959,7 @@ main() {
|
| api.EditsDetailsResourceApi res = new api.AndroidpublisherApi(mock).edits.details;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -2991,7 +2991,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppDetails());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) {
|
| + res.get(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) {
|
| checkAppDetails(response);
|
| })));
|
| });
|
| @@ -3003,7 +3003,7 @@ main() {
|
| var arg_request = buildAppDetails();
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.AppDetails.fromJson(json);
|
| checkAppDetails(obj);
|
|
|
| @@ -3038,7 +3038,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppDetails());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) {
|
| checkAppDetails(response);
|
| })));
|
| });
|
| @@ -3050,7 +3050,7 @@ main() {
|
| var arg_request = buildAppDetails();
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.AppDetails.fromJson(json);
|
| checkAppDetails(obj);
|
|
|
| @@ -3085,7 +3085,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAppDetails());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync(((api.AppDetails response) {
|
| + res.update(arg_request, arg_packageName, arg_editId).then(unittest.expectAsync1(((api.AppDetails response) {
|
| checkAppDetails(response);
|
| })));
|
| });
|
| @@ -3102,7 +3102,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_expansionFileType = "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;
|
| @@ -3134,7 +3134,7 @@ main() {
|
| var resp = convert.JSON.encode(buildExpansionFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) {
|
| + res.get(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) {
|
| checkExpansionFile(response);
|
| })));
|
| });
|
| @@ -3148,7 +3148,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_expansionFileType = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ExpansionFile.fromJson(json);
|
| checkExpansionFile(obj);
|
|
|
| @@ -3183,7 +3183,7 @@ main() {
|
| var resp = convert.JSON.encode(buildExpansionFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) {
|
| checkExpansionFile(response);
|
| })));
|
| });
|
| @@ -3197,7 +3197,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_expansionFileType = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ExpansionFile.fromJson(json);
|
| checkExpansionFile(obj);
|
|
|
| @@ -3232,7 +3232,7 @@ main() {
|
| var resp = convert.JSON.encode(buildExpansionFile());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFile response) {
|
| + res.update(arg_request, arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFile response) {
|
| checkExpansionFile(response);
|
| })));
|
| });
|
| @@ -3247,7 +3247,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_apkVersionCode = 42;
|
| var arg_expansionFileType = "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;
|
| @@ -3279,7 +3279,7 @@ main() {
|
| var resp = convert.JSON.encode(buildExpansionFilesUploadResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync(((api.ExpansionFilesUploadResponse response) {
|
| + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_expansionFileType).then(unittest.expectAsync1(((api.ExpansionFilesUploadResponse response) {
|
| checkExpansionFilesUploadResponse(response);
|
| })));
|
| });
|
| @@ -3297,7 +3297,7 @@ main() {
|
| var arg_language = "foo";
|
| var arg_imageType = "foo";
|
| var arg_imageId = "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;
|
| @@ -3329,7 +3329,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_packageName, arg_editId, arg_language, arg_imageType, arg_imageId).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_packageName, arg_editId, arg_language, arg_imageType, arg_imageId).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--deleteall", () {
|
| @@ -3340,7 +3340,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_language = "foo";
|
| var arg_imageType = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3372,7 +3372,7 @@ main() {
|
| var resp = convert.JSON.encode(buildImagesDeleteAllResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deleteall(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesDeleteAllResponse response) {
|
| + res.deleteall(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesDeleteAllResponse response) {
|
| checkImagesDeleteAllResponse(response);
|
| })));
|
| });
|
| @@ -3385,7 +3385,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_language = "foo";
|
| var arg_imageType = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3417,7 +3417,7 @@ main() {
|
| var resp = convert.JSON.encode(buildImagesListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesListResponse response) {
|
| + res.list(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesListResponse response) {
|
| checkImagesListResponse(response);
|
| })));
|
| });
|
| @@ -3432,7 +3432,7 @@ main() {
|
| var arg_editId = "foo";
|
| var arg_language = "foo";
|
| var arg_imageType = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3464,7 +3464,7 @@ main() {
|
| var resp = convert.JSON.encode(buildImagesUploadResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.upload(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync(((api.ImagesUploadResponse response) {
|
| + res.upload(arg_packageName, arg_editId, arg_language, arg_imageType).then(unittest.expectAsync1(((api.ImagesUploadResponse response) {
|
| checkImagesUploadResponse(response);
|
| })));
|
| });
|
| @@ -3480,7 +3480,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_language = "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;
|
| @@ -3512,7 +3512,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--deleteall", () {
|
| @@ -3521,7 +3521,7 @@ main() {
|
| api.EditsListingsResourceApi res = new api.AndroidpublisherApi(mock).edits.listings;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -3553,7 +3553,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deleteall(arg_packageName, arg_editId).then(unittest.expectAsync((_) {}));
|
| + res.deleteall(arg_packageName, arg_editId).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| @@ -3563,7 +3563,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_language = "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;
|
| @@ -3595,7 +3595,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) {
|
| + res.get(arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) {
|
| checkListing(response);
|
| })));
|
| });
|
| @@ -3606,7 +3606,7 @@ main() {
|
| api.EditsListingsResourceApi res = new api.AndroidpublisherApi(mock).edits.listings;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -3638,7 +3638,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListingsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.ListingsListResponse response) {
|
| + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.ListingsListResponse response) {
|
| checkListingsListResponse(response);
|
| })));
|
| });
|
| @@ -3651,7 +3651,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_language = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Listing.fromJson(json);
|
| checkListing(obj);
|
|
|
| @@ -3686,7 +3686,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) {
|
| checkListing(response);
|
| })));
|
| });
|
| @@ -3699,7 +3699,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_language = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Listing.fromJson(json);
|
| checkListing(obj);
|
|
|
| @@ -3734,7 +3734,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListing());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync(((api.Listing response) {
|
| + res.update(arg_request, arg_packageName, arg_editId, arg_language).then(unittest.expectAsync1(((api.Listing response) {
|
| checkListing(response);
|
| })));
|
| });
|
| @@ -3750,7 +3750,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "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;
|
| @@ -3782,7 +3782,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTesters());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) {
|
| + res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) {
|
| checkTesters(response);
|
| })));
|
| });
|
| @@ -3795,7 +3795,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Testers.fromJson(json);
|
| checkTesters(obj);
|
|
|
| @@ -3830,7 +3830,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTesters());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) {
|
| checkTesters(response);
|
| })));
|
| });
|
| @@ -3843,7 +3843,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Testers.fromJson(json);
|
| checkTesters(obj);
|
|
|
| @@ -3878,7 +3878,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTesters());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Testers response) {
|
| + res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Testers response) {
|
| checkTesters(response);
|
| })));
|
| });
|
| @@ -3894,7 +3894,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "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;
|
| @@ -3926,7 +3926,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTrack());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) {
|
| + res.get(arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) {
|
| checkTrack(response);
|
| })));
|
| });
|
| @@ -3937,7 +3937,7 @@ main() {
|
| api.EditsTracksResourceApi res = new api.AndroidpublisherApi(mock).edits.tracks;
|
| var arg_packageName = "foo";
|
| var arg_editId = "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;
|
| @@ -3969,7 +3969,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTracksListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, arg_editId).then(unittest.expectAsync(((api.TracksListResponse response) {
|
| + res.list(arg_packageName, arg_editId).then(unittest.expectAsync1(((api.TracksListResponse response) {
|
| checkTracksListResponse(response);
|
| })));
|
| });
|
| @@ -3982,7 +3982,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Track.fromJson(json);
|
| checkTrack(obj);
|
|
|
| @@ -4017,7 +4017,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTrack());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) {
|
| + res.patch(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) {
|
| checkTrack(response);
|
| })));
|
| });
|
| @@ -4030,7 +4030,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_editId = "foo";
|
| var arg_track = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Track.fromJson(json);
|
| checkTrack(obj);
|
|
|
| @@ -4065,7 +4065,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTrack());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync(((api.Track response) {
|
| + res.update(arg_request, arg_packageName, arg_editId, arg_track).then(unittest.expectAsync1(((api.Track response) {
|
| checkTrack(response);
|
| })));
|
| });
|
| @@ -4083,7 +4083,7 @@ main() {
|
| var arg_productId = "foo";
|
| var arg_startIndex = 42;
|
| var arg_token = "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;
|
| @@ -4119,7 +4119,7 @@ main() {
|
| var resp = convert.JSON.encode(buildEntitlementsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, maxResults: arg_maxResults, productId: arg_productId, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.EntitlementsListResponse response) {
|
| + res.list(arg_packageName, maxResults: arg_maxResults, productId: arg_productId, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.EntitlementsListResponse response) {
|
| checkEntitlementsListResponse(response);
|
| })));
|
| });
|
| @@ -4133,7 +4133,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts;
|
| var arg_request = buildInappproductsBatchRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.InappproductsBatchRequest.fromJson(json);
|
| checkInappproductsBatchRequest(obj);
|
|
|
| @@ -4172,7 +4172,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInappproductsBatchResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.batch(arg_request).then(unittest.expectAsync(((api.InappproductsBatchResponse response) {
|
| + res.batch(arg_request).then(unittest.expectAsync1(((api.InappproductsBatchResponse response) {
|
| checkInappproductsBatchResponse(response);
|
| })));
|
| });
|
| @@ -4183,7 +4183,7 @@ main() {
|
| api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts;
|
| var arg_packageName = "foo";
|
| var arg_sku = "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;
|
| @@ -4215,7 +4215,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_packageName, arg_sku).then(unittest.expectAsync((_) {}));
|
| + res.delete(arg_packageName, arg_sku).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| @@ -4224,7 +4224,7 @@ main() {
|
| api.InappproductsResourceApi res = new api.AndroidpublisherApi(mock).inappproducts;
|
| var arg_packageName = "foo";
|
| var arg_sku = "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;
|
| @@ -4256,7 +4256,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInAppProduct());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_sku).then(unittest.expectAsync(((api.InAppProduct response) {
|
| + res.get(arg_packageName, arg_sku).then(unittest.expectAsync1(((api.InAppProduct response) {
|
| checkInAppProduct(response);
|
| })));
|
| });
|
| @@ -4268,7 +4268,7 @@ main() {
|
| var arg_request = buildInAppProduct();
|
| var arg_packageName = "foo";
|
| var arg_autoConvertMissingPrices = true;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.InAppProduct.fromJson(json);
|
| checkInAppProduct(obj);
|
|
|
| @@ -4304,7 +4304,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInAppProduct());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_packageName, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) {
|
| + res.insert(arg_request, arg_packageName, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) {
|
| checkInAppProduct(response);
|
| })));
|
| });
|
| @@ -4317,7 +4317,7 @@ main() {
|
| var arg_maxResults = 42;
|
| var arg_startIndex = 42;
|
| var arg_token = "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;
|
| @@ -4352,7 +4352,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInappproductsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.InappproductsListResponse response) {
|
| + res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync1(((api.InappproductsListResponse response) {
|
| checkInappproductsListResponse(response);
|
| })));
|
| });
|
| @@ -4365,7 +4365,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_sku = "foo";
|
| var arg_autoConvertMissingPrices = true;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.InAppProduct.fromJson(json);
|
| checkInAppProduct(obj);
|
|
|
| @@ -4401,7 +4401,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInAppProduct());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) {
|
| + res.patch(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) {
|
| checkInAppProduct(response);
|
| })));
|
| });
|
| @@ -4414,7 +4414,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_sku = "foo";
|
| var arg_autoConvertMissingPrices = true;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.InAppProduct.fromJson(json);
|
| checkInAppProduct(obj);
|
|
|
| @@ -4450,7 +4450,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInAppProduct());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync(((api.InAppProduct response) {
|
| + res.update(arg_request, arg_packageName, arg_sku, autoConvertMissingPrices: arg_autoConvertMissingPrices).then(unittest.expectAsync1(((api.InAppProduct response) {
|
| checkInAppProduct(response);
|
| })));
|
| });
|
| @@ -4466,7 +4466,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_productId = "foo";
|
| var arg_token = "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;
|
| @@ -4498,7 +4498,7 @@ main() {
|
| var resp = convert.JSON.encode(buildProductPurchase());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_productId, arg_token).then(unittest.expectAsync(((api.ProductPurchase response) {
|
| + res.get(arg_packageName, arg_productId, arg_token).then(unittest.expectAsync1(((api.ProductPurchase response) {
|
| checkProductPurchase(response);
|
| })));
|
| });
|
| @@ -4514,7 +4514,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_subscriptionId = "foo";
|
| var arg_token = "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;
|
| @@ -4546,7 +4546,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.cancel(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {}));
|
| + res.cancel(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--defer", () {
|
| @@ -4557,7 +4557,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_subscriptionId = "foo";
|
| var arg_token = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.SubscriptionPurchasesDeferRequest.fromJson(json);
|
| checkSubscriptionPurchasesDeferRequest(obj);
|
|
|
| @@ -4592,7 +4592,7 @@ main() {
|
| var resp = convert.JSON.encode(buildSubscriptionPurchasesDeferResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.defer(arg_request, arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync(((api.SubscriptionPurchasesDeferResponse response) {
|
| + res.defer(arg_request, arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1(((api.SubscriptionPurchasesDeferResponse response) {
|
| checkSubscriptionPurchasesDeferResponse(response);
|
| })));
|
| });
|
| @@ -4604,7 +4604,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_subscriptionId = "foo";
|
| var arg_token = "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;
|
| @@ -4636,7 +4636,7 @@ main() {
|
| var resp = convert.JSON.encode(buildSubscriptionPurchase());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync(((api.SubscriptionPurchase response) {
|
| + res.get(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1(((api.SubscriptionPurchase response) {
|
| checkSubscriptionPurchase(response);
|
| })));
|
| });
|
| @@ -4648,7 +4648,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_subscriptionId = "foo";
|
| var arg_token = "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;
|
| @@ -4680,7 +4680,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.refund(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {}));
|
| + res.refund(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| unittest.test("method--revoke", () {
|
| @@ -4690,7 +4690,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_subscriptionId = "foo";
|
| var arg_token = "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;
|
| @@ -4722,7 +4722,7 @@ main() {
|
| var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync((_) {}));
|
| + res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.expectAsync1((_) {}));
|
| });
|
|
|
| });
|
| @@ -4739,7 +4739,7 @@ main() {
|
| var arg_startIndex = 42;
|
| var arg_startTime = "foo";
|
| var arg_token = "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;
|
| @@ -4776,7 +4776,7 @@ main() {
|
| var resp = convert.JSON.encode(buildVoidedPurchasesListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, endTime: arg_endTime, maxResults: arg_maxResults, startIndex: arg_startIndex, startTime: arg_startTime, token: arg_token).then(unittest.expectAsync(((api.VoidedPurchasesListResponse response) {
|
| + res.list(arg_packageName, endTime: arg_endTime, maxResults: arg_maxResults, startIndex: arg_startIndex, startTime: arg_startTime, token: arg_token).then(unittest.expectAsync1(((api.VoidedPurchasesListResponse response) {
|
| checkVoidedPurchasesListResponse(response);
|
| })));
|
| });
|
| @@ -4792,7 +4792,7 @@ main() {
|
| var arg_packageName = "foo";
|
| var arg_reviewId = "foo";
|
| var arg_translationLanguage = "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;
|
| @@ -4825,7 +4825,7 @@ main() {
|
| var resp = convert.JSON.encode(buildReview());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_packageName, arg_reviewId, translationLanguage: arg_translationLanguage).then(unittest.expectAsync(((api.Review response) {
|
| + res.get(arg_packageName, arg_reviewId, translationLanguage: arg_translationLanguage).then(unittest.expectAsync1(((api.Review response) {
|
| checkReview(response);
|
| })));
|
| });
|
| @@ -4839,7 +4839,7 @@ main() {
|
| var arg_startIndex = 42;
|
| var arg_token = "foo";
|
| var arg_translationLanguage = "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;
|
| @@ -4875,7 +4875,7 @@ main() {
|
| var resp = convert.JSON.encode(buildReviewsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token, translationLanguage: arg_translationLanguage).then(unittest.expectAsync(((api.ReviewsListResponse response) {
|
| + res.list(arg_packageName, maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token, translationLanguage: arg_translationLanguage).then(unittest.expectAsync1(((api.ReviewsListResponse response) {
|
| checkReviewsListResponse(response);
|
| })));
|
| });
|
| @@ -4887,7 +4887,7 @@ main() {
|
| var arg_request = buildReviewsReplyRequest();
|
| var arg_packageName = "foo";
|
| var arg_reviewId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ReviewsReplyRequest.fromJson(json);
|
| checkReviewsReplyRequest(obj);
|
|
|
| @@ -4922,7 +4922,7 @@ main() {
|
| var resp = convert.JSON.encode(buildReviewsReplyResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expectAsync(((api.ReviewsReplyResponse response) {
|
| + res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expectAsync1(((api.ReviewsReplyResponse response) {
|
| checkReviewsReplyResponse(response);
|
| })));
|
| });
|
|
|