| Index: generated/googleapis/test/adexchangeseller/v2_0_test.dart
|
| diff --git a/generated/googleapis/test/adexchangeseller/v1_1_test.dart b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
|
| similarity index 74%
|
| copy from generated/googleapis/test/adexchangeseller/v1_1_test.dart
|
| copy to generated/googleapis/test/adexchangeseller/v2_0_test.dart
|
| index a3ba91c04e0eb626c9ec98415f3225e9d1b72ebb..d2cc322d5b01cb266bcdb517eae9c2c14ea1ae35 100644
|
| --- a/generated/googleapis/test/adexchangeseller/v1_1_test.dart
|
| +++ b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
|
| @@ -1,4 +1,4 @@
|
| -library googleapis.adexchangeseller.v1_1.test;
|
| +library googleapis.adexchangeseller.v2_0.test;
|
|
|
| import "dart:core" as core;
|
| import "dart:collection" as collection;
|
| @@ -12,7 +12,7 @@ import 'package:googleapis/common/common.dart' as common;
|
| import 'package:googleapis/src/common_internal.dart' as common_internal;
|
| import '../common/common_internal_test.dart' as common_test;
|
|
|
| -import 'package:googleapis/adexchangeseller/v1_1.dart' as api;
|
| +import 'package:googleapis/adexchangeseller/v2_0.dart' as api;
|
|
|
|
|
|
|
| @@ -39,6 +39,44 @@ checkAccount(api.Account o) {
|
| buildCounterAccount--;
|
| }
|
|
|
| +buildUnnamed90() {
|
| + var o = new core.List<api.Account>();
|
| + o.add(buildAccount());
|
| + o.add(buildAccount());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed90(core.List<api.Account> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkAccount(o[0]);
|
| + checkAccount(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterAccounts = 0;
|
| +buildAccounts() {
|
| + var o = new api.Accounts();
|
| + buildCounterAccounts++;
|
| + if (buildCounterAccounts < 3) {
|
| + o.etag = "foo";
|
| + o.items = buildUnnamed90();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterAccounts--;
|
| + return o;
|
| +}
|
| +
|
| +checkAccounts(api.Accounts o) {
|
| + buildCounterAccounts++;
|
| + if (buildCounterAccounts < 3) {
|
| + unittest.expect(o.etag, unittest.equals('foo'));
|
| + checkUnnamed90(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterAccounts--;
|
| +}
|
| +
|
| core.int buildCounterAdClient = 0;
|
| buildAdClient() {
|
| var o = new api.AdClient();
|
| @@ -66,14 +104,14 @@ checkAdClient(api.AdClient o) {
|
| buildCounterAdClient--;
|
| }
|
|
|
| -buildUnnamed268() {
|
| +buildUnnamed91() {
|
| var o = new core.List<api.AdClient>();
|
| o.add(buildAdClient());
|
| o.add(buildAdClient());
|
| return o;
|
| }
|
|
|
| -checkUnnamed268(core.List<api.AdClient> o) {
|
| +checkUnnamed91(core.List<api.AdClient> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAdClient(o[0]);
|
| checkAdClient(o[1]);
|
| @@ -85,7 +123,7 @@ buildAdClients() {
|
| buildCounterAdClients++;
|
| if (buildCounterAdClients < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed268();
|
| + o.items = buildUnnamed91();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -97,78 +135,13 @@ checkAdClients(api.AdClients o) {
|
| buildCounterAdClients++;
|
| if (buildCounterAdClients < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed268(o.items);
|
| + checkUnnamed91(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterAdClients--;
|
| }
|
|
|
| -core.int buildCounterAdUnit = 0;
|
| -buildAdUnit() {
|
| - var o = new api.AdUnit();
|
| - buildCounterAdUnit++;
|
| - if (buildCounterAdUnit < 3) {
|
| - o.code = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.status = "foo";
|
| - }
|
| - buildCounterAdUnit--;
|
| - return o;
|
| -}
|
| -
|
| -checkAdUnit(api.AdUnit o) {
|
| - buildCounterAdUnit++;
|
| - if (buildCounterAdUnit < 3) {
|
| - unittest.expect(o.code, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - }
|
| - buildCounterAdUnit--;
|
| -}
|
| -
|
| -buildUnnamed269() {
|
| - var o = new core.List<api.AdUnit>();
|
| - o.add(buildAdUnit());
|
| - o.add(buildAdUnit());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed269(core.List<api.AdUnit> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkAdUnit(o[0]);
|
| - checkAdUnit(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterAdUnits = 0;
|
| -buildAdUnits() {
|
| - var o = new api.AdUnits();
|
| - buildCounterAdUnits++;
|
| - if (buildCounterAdUnits < 3) {
|
| - o.etag = "foo";
|
| - o.items = buildUnnamed269();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterAdUnits--;
|
| - return o;
|
| -}
|
| -
|
| -checkAdUnits(api.AdUnits o) {
|
| - buildCounterAdUnits++;
|
| - if (buildCounterAdUnits < 3) {
|
| - unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed269(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterAdUnits--;
|
| -}
|
| -
|
| core.int buildCounterAlert = 0;
|
| buildAlert() {
|
| var o = new api.Alert();
|
| @@ -196,14 +169,14 @@ checkAlert(api.Alert o) {
|
| buildCounterAlert--;
|
| }
|
|
|
| -buildUnnamed270() {
|
| +buildUnnamed92() {
|
| var o = new core.List<api.Alert>();
|
| o.add(buildAlert());
|
| o.add(buildAlert());
|
| return o;
|
| }
|
|
|
| -checkUnnamed270(core.List<api.Alert> o) {
|
| +checkUnnamed92(core.List<api.Alert> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAlert(o[0]);
|
| checkAlert(o[1]);
|
| @@ -214,7 +187,7 @@ buildAlerts() {
|
| var o = new api.Alerts();
|
| buildCounterAlerts++;
|
| if (buildCounterAlerts < 3) {
|
| - o.items = buildUnnamed270();
|
| + o.items = buildUnnamed92();
|
| o.kind = "foo";
|
| }
|
| buildCounterAlerts--;
|
| @@ -224,7 +197,7 @@ buildAlerts() {
|
| checkAlerts(api.Alerts o) {
|
| buildCounterAlerts++;
|
| if (buildCounterAlerts < 3) {
|
| - checkUnnamed270(o.items);
|
| + checkUnnamed92(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterAlerts--;
|
| @@ -282,14 +255,14 @@ checkCustomChannel(api.CustomChannel o) {
|
| buildCounterCustomChannel--;
|
| }
|
|
|
| -buildUnnamed271() {
|
| +buildUnnamed93() {
|
| var o = new core.List<api.CustomChannel>();
|
| o.add(buildCustomChannel());
|
| o.add(buildCustomChannel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed271(core.List<api.CustomChannel> o) {
|
| +checkUnnamed93(core.List<api.CustomChannel> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomChannel(o[0]);
|
| checkCustomChannel(o[1]);
|
| @@ -301,7 +274,7 @@ buildCustomChannels() {
|
| buildCounterCustomChannels++;
|
| if (buildCounterCustomChannels < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed271();
|
| + o.items = buildUnnamed93();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -313,21 +286,21 @@ checkCustomChannels(api.CustomChannels o) {
|
| buildCounterCustomChannels++;
|
| if (buildCounterCustomChannels < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed271(o.items);
|
| + checkUnnamed93(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCustomChannels--;
|
| }
|
|
|
| -buildUnnamed272() {
|
| +buildUnnamed94() {
|
| var o = new core.List<api.ReportingMetadataEntry>();
|
| o.add(buildReportingMetadataEntry());
|
| o.add(buildReportingMetadataEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed272(core.List<api.ReportingMetadataEntry> o) {
|
| +checkUnnamed94(core.List<api.ReportingMetadataEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReportingMetadataEntry(o[0]);
|
| checkReportingMetadataEntry(o[1]);
|
| @@ -338,7 +311,7 @@ buildMetadata() {
|
| var o = new api.Metadata();
|
| buildCounterMetadata++;
|
| if (buildCounterMetadata < 3) {
|
| - o.items = buildUnnamed272();
|
| + o.items = buildUnnamed94();
|
| o.kind = "foo";
|
| }
|
| buildCounterMetadata--;
|
| @@ -348,7 +321,7 @@ buildMetadata() {
|
| checkMetadata(api.Metadata o) {
|
| buildCounterMetadata++;
|
| if (buildCounterMetadata < 3) {
|
| - checkUnnamed272(o.items);
|
| + checkUnnamed94(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterMetadata--;
|
| @@ -387,14 +360,14 @@ checkPreferredDeal(api.PreferredDeal o) {
|
| buildCounterPreferredDeal--;
|
| }
|
|
|
| -buildUnnamed273() {
|
| +buildUnnamed95() {
|
| var o = new core.List<api.PreferredDeal>();
|
| o.add(buildPreferredDeal());
|
| o.add(buildPreferredDeal());
|
| return o;
|
| }
|
|
|
| -checkUnnamed273(core.List<api.PreferredDeal> o) {
|
| +checkUnnamed95(core.List<api.PreferredDeal> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPreferredDeal(o[0]);
|
| checkPreferredDeal(o[1]);
|
| @@ -405,7 +378,7 @@ buildPreferredDeals() {
|
| var o = new api.PreferredDeals();
|
| buildCounterPreferredDeals++;
|
| if (buildCounterPreferredDeals < 3) {
|
| - o.items = buildUnnamed273();
|
| + o.items = buildUnnamed95();
|
| o.kind = "foo";
|
| }
|
| buildCounterPreferredDeals--;
|
| @@ -415,20 +388,20 @@ buildPreferredDeals() {
|
| checkPreferredDeals(api.PreferredDeals o) {
|
| buildCounterPreferredDeals++;
|
| if (buildCounterPreferredDeals < 3) {
|
| - checkUnnamed273(o.items);
|
| + checkUnnamed95(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterPreferredDeals--;
|
| }
|
|
|
| -buildUnnamed274() {
|
| +buildUnnamed96() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed274(core.List<core.String> o) {
|
| +checkUnnamed96(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'));
|
| @@ -457,66 +430,66 @@ checkReportHeaders(api.ReportHeaders o) {
|
| buildCounterReportHeaders--;
|
| }
|
|
|
| -buildUnnamed275() {
|
| +buildUnnamed97() {
|
| var o = new core.List<api.ReportHeaders>();
|
| o.add(buildReportHeaders());
|
| o.add(buildReportHeaders());
|
| return o;
|
| }
|
|
|
| -checkUnnamed275(core.List<api.ReportHeaders> o) {
|
| +checkUnnamed97(core.List<api.ReportHeaders> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReportHeaders(o[0]);
|
| checkReportHeaders(o[1]);
|
| }
|
|
|
| -buildUnnamed276() {
|
| +buildUnnamed98() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed276(core.List<core.String> o) {
|
| +checkUnnamed98(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'));
|
| }
|
|
|
| -buildUnnamed277() {
|
| +buildUnnamed99() {
|
| var o = new core.List<core.List<core.String>>();
|
| - o.add(buildUnnamed276());
|
| - o.add(buildUnnamed276());
|
| + o.add(buildUnnamed98());
|
| + o.add(buildUnnamed98());
|
| return o;
|
| }
|
|
|
| -checkUnnamed277(core.List<core.List<core.String>> o) {
|
| +checkUnnamed99(core.List<core.List<core.String>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed276(o[0]);
|
| - checkUnnamed276(o[1]);
|
| + checkUnnamed98(o[0]);
|
| + checkUnnamed98(o[1]);
|
| }
|
|
|
| -buildUnnamed278() {
|
| +buildUnnamed100() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed278(core.List<core.String> o) {
|
| +checkUnnamed100(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'));
|
| }
|
|
|
| -buildUnnamed279() {
|
| +buildUnnamed101() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed279(core.List<core.String> o) {
|
| +checkUnnamed101(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'));
|
| @@ -527,13 +500,13 @@ buildReport() {
|
| var o = new api.Report();
|
| buildCounterReport++;
|
| if (buildCounterReport < 3) {
|
| - o.averages = buildUnnamed274();
|
| - o.headers = buildUnnamed275();
|
| + o.averages = buildUnnamed96();
|
| + o.headers = buildUnnamed97();
|
| o.kind = "foo";
|
| - o.rows = buildUnnamed277();
|
| + o.rows = buildUnnamed99();
|
| o.totalMatchedRows = "foo";
|
| - o.totals = buildUnnamed278();
|
| - o.warnings = buildUnnamed279();
|
| + o.totals = buildUnnamed100();
|
| + o.warnings = buildUnnamed101();
|
| }
|
| buildCounterReport--;
|
| return o;
|
| @@ -542,77 +515,77 @@ buildReport() {
|
| checkReport(api.Report o) {
|
| buildCounterReport++;
|
| if (buildCounterReport < 3) {
|
| - checkUnnamed274(o.averages);
|
| - checkUnnamed275(o.headers);
|
| + checkUnnamed96(o.averages);
|
| + checkUnnamed97(o.headers);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed277(o.rows);
|
| + checkUnnamed99(o.rows);
|
| unittest.expect(o.totalMatchedRows, unittest.equals('foo'));
|
| - checkUnnamed278(o.totals);
|
| - checkUnnamed279(o.warnings);
|
| + checkUnnamed100(o.totals);
|
| + checkUnnamed101(o.warnings);
|
| }
|
| buildCounterReport--;
|
| }
|
|
|
| -buildUnnamed280() {
|
| +buildUnnamed102() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed280(core.List<core.String> o) {
|
| +checkUnnamed102(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'));
|
| }
|
|
|
| -buildUnnamed281() {
|
| +buildUnnamed103() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed281(core.List<core.String> o) {
|
| +checkUnnamed103(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'));
|
| }
|
|
|
| -buildUnnamed282() {
|
| +buildUnnamed104() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed282(core.List<core.String> o) {
|
| +checkUnnamed104(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'));
|
| }
|
|
|
| -buildUnnamed283() {
|
| +buildUnnamed105() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed283(core.List<core.String> o) {
|
| +checkUnnamed105(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'));
|
| }
|
|
|
| -buildUnnamed284() {
|
| +buildUnnamed106() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed284(core.List<core.String> o) {
|
| +checkUnnamed106(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'));
|
| @@ -623,13 +596,13 @@ buildReportingMetadataEntry() {
|
| var o = new api.ReportingMetadataEntry();
|
| buildCounterReportingMetadataEntry++;
|
| if (buildCounterReportingMetadataEntry < 3) {
|
| - o.compatibleDimensions = buildUnnamed280();
|
| - o.compatibleMetrics = buildUnnamed281();
|
| + o.compatibleDimensions = buildUnnamed102();
|
| + o.compatibleMetrics = buildUnnamed103();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.requiredDimensions = buildUnnamed282();
|
| - o.requiredMetrics = buildUnnamed283();
|
| - o.supportedProducts = buildUnnamed284();
|
| + o.requiredDimensions = buildUnnamed104();
|
| + o.requiredMetrics = buildUnnamed105();
|
| + o.supportedProducts = buildUnnamed106();
|
| }
|
| buildCounterReportingMetadataEntry--;
|
| return o;
|
| @@ -638,13 +611,13 @@ buildReportingMetadataEntry() {
|
| checkReportingMetadataEntry(api.ReportingMetadataEntry o) {
|
| buildCounterReportingMetadataEntry++;
|
| if (buildCounterReportingMetadataEntry < 3) {
|
| - checkUnnamed280(o.compatibleDimensions);
|
| - checkUnnamed281(o.compatibleMetrics);
|
| + checkUnnamed102(o.compatibleDimensions);
|
| + checkUnnamed103(o.compatibleMetrics);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed282(o.requiredDimensions);
|
| - checkUnnamed283(o.requiredMetrics);
|
| - checkUnnamed284(o.supportedProducts);
|
| + checkUnnamed104(o.requiredDimensions);
|
| + checkUnnamed105(o.requiredMetrics);
|
| + checkUnnamed106(o.supportedProducts);
|
| }
|
| buildCounterReportingMetadataEntry--;
|
| }
|
| @@ -672,14 +645,14 @@ checkSavedReport(api.SavedReport o) {
|
| buildCounterSavedReport--;
|
| }
|
|
|
| -buildUnnamed285() {
|
| +buildUnnamed107() {
|
| var o = new core.List<api.SavedReport>();
|
| o.add(buildSavedReport());
|
| o.add(buildSavedReport());
|
| return o;
|
| }
|
|
|
| -checkUnnamed285(core.List<api.SavedReport> o) {
|
| +checkUnnamed107(core.List<api.SavedReport> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSavedReport(o[0]);
|
| checkSavedReport(o[1]);
|
| @@ -691,7 +664,7 @@ buildSavedReports() {
|
| buildCounterSavedReports++;
|
| if (buildCounterSavedReports < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed285();
|
| + o.items = buildUnnamed107();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -703,7 +676,7 @@ checkSavedReports(api.SavedReports o) {
|
| buildCounterSavedReports++;
|
| if (buildCounterSavedReports < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed285(o.items);
|
| + checkUnnamed107(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -733,14 +706,14 @@ checkUrlChannel(api.UrlChannel o) {
|
| buildCounterUrlChannel--;
|
| }
|
|
|
| -buildUnnamed286() {
|
| +buildUnnamed108() {
|
| var o = new core.List<api.UrlChannel>();
|
| o.add(buildUrlChannel());
|
| o.add(buildUrlChannel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed286(core.List<api.UrlChannel> o) {
|
| +checkUnnamed108(core.List<api.UrlChannel> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlChannel(o[0]);
|
| checkUrlChannel(o[1]);
|
| @@ -752,7 +725,7 @@ buildUrlChannels() {
|
| buildCounterUrlChannels++;
|
| if (buildCounterUrlChannels < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed286();
|
| + o.items = buildUnnamed108();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -764,60 +737,60 @@ checkUrlChannels(api.UrlChannels o) {
|
| buildCounterUrlChannels++;
|
| if (buildCounterUrlChannels < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed286(o.items);
|
| + checkUnnamed108(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterUrlChannels--;
|
| }
|
|
|
| -buildUnnamed287() {
|
| +buildUnnamed109() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed287(core.List<core.String> o) {
|
| +checkUnnamed109(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'));
|
| }
|
|
|
| -buildUnnamed288() {
|
| +buildUnnamed110() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed288(core.List<core.String> o) {
|
| +checkUnnamed110(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'));
|
| }
|
|
|
| -buildUnnamed289() {
|
| +buildUnnamed111() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed289(core.List<core.String> o) {
|
| +checkUnnamed111(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'));
|
| }
|
|
|
| -buildUnnamed290() {
|
| +buildUnnamed112() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed290(core.List<core.String> o) {
|
| +checkUnnamed112(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'));
|
| @@ -834,6 +807,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Accounts", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAccounts();
|
| + var od = new api.Accounts.fromJson(o.toJson());
|
| + checkAccounts(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-AdClient", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildAdClient();
|
| @@ -852,24 +834,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AdUnit", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAdUnit();
|
| - var od = new api.AdUnit.fromJson(o.toJson());
|
| - checkAdUnit(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-AdUnits", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAdUnits();
|
| - var od = new api.AdUnits.fromJson(o.toJson());
|
| - checkAdUnits(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-Alert", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildAlert();
|
| @@ -1018,7 +982,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| pathOffset += 9;
|
| @@ -1055,14 +1019,10 @@ main() {
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AdclientsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.AdclientsResourceApi res = new api.AdexchangesellerApi(mock).adclients;
|
| + api.AccountsResourceApi res = new api.AdexchangesellerApi(mock).accounts;
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -1072,10 +1032,10 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("adclients"));
|
| - pathOffset += 9;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("accounts"));
|
| + pathOffset += 8;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1100,81 +1060,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAdClients());
|
| + var resp = convert.JSON.encode(buildAccounts());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AdClients response) {
|
| - checkAdClients(response);
|
| + res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Accounts response) {
|
| + checkAccounts(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-AdunitsResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.AdunitsResourceApi res = new api.AdexchangesellerApi(mock).adunits;
|
| - var arg_adClientId = "foo";
|
| - var arg_adUnitId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| - pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| - index = path.indexOf("/adunits/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_adClientId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/adunits/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_adUnitId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAdUnit());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_adClientId, arg_adUnitId).then(unittest.expectAsync(((api.AdUnit response) {
|
| - checkAdUnit(response);
|
| - })));
|
| - });
|
| -
|
| + unittest.group("resource-AccountsAdclientsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.AdunitsResourceApi res = new api.AdexchangesellerApi(mock).adunits;
|
| - var arg_adClientId = "foo";
|
| - var arg_includeInactive = true;
|
| + api.AccountsAdclientsResourceApi res = new api.AdexchangesellerApi(mock).accounts.adclients;
|
| + var arg_accountId = "foo";
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -1184,17 +1086,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| - index = path.indexOf("/adunits", pathOffset);
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/adclients", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_adClientId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/adunits"));
|
| - pathOffset += 8;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/adclients"));
|
| + pathOffset += 10;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1212,7 +1114,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive"));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
| @@ -1220,26 +1121,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAdUnits());
|
| + var resp = convert.JSON.encode(buildAdClients());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_adClientId, includeInactive: arg_includeInactive, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AdUnits response) {
|
| - checkAdUnits(response);
|
| + res.list(arg_accountId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AdClients response) {
|
| + checkAdClients(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-AdunitsCustomchannelsResourceApi", () {
|
| + unittest.group("resource-AccountsAlertsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.AdunitsCustomchannelsResourceApi res = new api.AdexchangesellerApi(mock).adunits.customchannels;
|
| - var arg_adClientId = "foo";
|
| - var arg_adUnitId = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_pageToken = "foo";
|
| + api.AccountsAlertsResourceApi res = new api.AdexchangesellerApi(mock).accounts.alerts;
|
| + var arg_accountId = "foo";
|
| + var arg_locale = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1247,76 +1146,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| - index = path.indexOf("/adunits/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_adClientId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/adunits/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| pathOffset += 9;
|
| - index = path.indexOf("/customchannels", pathOffset);
|
| + index = path.indexOf("/alerts", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_adUnitId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/customchannels"));
|
| - pathOffset += 15;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildCustomChannels());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_adClientId, arg_adUnitId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CustomChannels response) {
|
| - checkCustomChannels(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AlertsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.AlertsResourceApi res = new api.AdexchangesellerApi(mock).alerts;
|
| - var arg_locale = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| - pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("alerts"));
|
| - pathOffset += 6;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/alerts"));
|
| + pathOffset += 7;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1343,7 +1183,7 @@ main() {
|
| var resp = convert.JSON.encode(buildAlerts());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(locale: arg_locale).then(unittest.expectAsync(((api.Alerts response) {
|
| + res.list(arg_accountId, locale: arg_locale).then(unittest.expectAsync(((api.Alerts response) {
|
| checkAlerts(response);
|
| })));
|
| });
|
| @@ -1351,11 +1191,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-CustomchannelsResourceApi", () {
|
| + unittest.group("resource-AccountsCustomchannelsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.CustomchannelsResourceApi res = new api.AdexchangesellerApi(mock).customchannels;
|
| + api.AccountsCustomchannelsResourceApi res = new api.AdexchangesellerApi(mock).accounts.customchannels;
|
| + var arg_accountId = "foo";
|
| var arg_adClientId = "foo";
|
| var arg_customChannelId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -1365,10 +1206,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/adclients/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/adclients/"));
|
| + pathOffset += 11;
|
| index = path.indexOf("/customchannels/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| @@ -1404,7 +1252,7 @@ main() {
|
| var resp = convert.JSON.encode(buildCustomChannel());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_adClientId, arg_customChannelId).then(unittest.expectAsync(((api.CustomChannel response) {
|
| + res.get(arg_accountId, arg_adClientId, arg_customChannelId).then(unittest.expectAsync(((api.CustomChannel response) {
|
| checkCustomChannel(response);
|
| })));
|
| });
|
| @@ -1412,7 +1260,8 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.CustomchannelsResourceApi res = new api.AdexchangesellerApi(mock).customchannels;
|
| + api.AccountsCustomchannelsResourceApi res = new api.AdexchangesellerApi(mock).accounts.customchannels;
|
| + var arg_accountId = "foo";
|
| var arg_adClientId = "foo";
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| @@ -1423,10 +1272,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/adclients/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/adclients/"));
|
| + pathOffset += 11;
|
| index = path.indexOf("/customchannels", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| @@ -1461,7 +1317,7 @@ main() {
|
| var resp = convert.JSON.encode(buildCustomChannels());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CustomChannels response) {
|
| + res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CustomChannels response) {
|
| checkCustomChannels(response);
|
| })));
|
| });
|
| @@ -1469,16 +1325,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-CustomchannelsAdunitsResourceApi", () {
|
| + unittest.group("resource-AccountsMetadataDimensionsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.CustomchannelsAdunitsResourceApi res = new api.AdexchangesellerApi(mock).customchannels.adunits;
|
| - var arg_adClientId = "foo";
|
| - var arg_customChannelId = "foo";
|
| - var arg_includeInactive = true;
|
| - var arg_maxResults = 42;
|
| - var arg_pageToken = "foo";
|
| + api.AccountsMetadataDimensionsResourceApi res = new api.AdexchangesellerApi(mock).accounts.metadata.dimensions;
|
| + var arg_accountId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1486,76 +1338,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| - index = path.indexOf("/customchannels/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_adClientId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/customchannels/"));
|
| - pathOffset += 16;
|
| - index = path.indexOf("/adunits", pathOffset);
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/metadata/dimensions", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_customChannelId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/adunits"));
|
| - pathOffset += 8;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive"));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAdUnits());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_adClientId, arg_customChannelId, includeInactive: arg_includeInactive, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AdUnits response) {
|
| - checkAdUnits(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-MetadataDimensionsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.MetadataDimensionsResourceApi res = new api.AdexchangesellerApi(mock).metadata.dimensions;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| - pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("metadata/dimensions"));
|
| - pathOffset += 19;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/metadata/dimensions"));
|
| + pathOffset += 20;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1581,7 +1374,7 @@ main() {
|
| var resp = convert.JSON.encode(buildMetadata());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list().then(unittest.expectAsync(((api.Metadata response) {
|
| + res.list(arg_accountId).then(unittest.expectAsync(((api.Metadata response) {
|
| checkMetadata(response);
|
| })));
|
| });
|
| @@ -1589,11 +1382,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-MetadataMetricsResourceApi", () {
|
| + unittest.group("resource-AccountsMetadataMetricsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.MetadataMetricsResourceApi res = new api.AdexchangesellerApi(mock).metadata.metrics;
|
| + api.AccountsMetadataMetricsResourceApi res = new api.AdexchangesellerApi(mock).accounts.metadata.metrics;
|
| + var arg_accountId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1601,10 +1395,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("metadata/metrics"));
|
| - pathOffset += 16;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/metadata/metrics", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/metadata/metrics"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1630,7 +1431,7 @@ main() {
|
| var resp = convert.JSON.encode(buildMetadata());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list().then(unittest.expectAsync(((api.Metadata response) {
|
| + res.list(arg_accountId).then(unittest.expectAsync(((api.Metadata response) {
|
| checkMetadata(response);
|
| })));
|
| });
|
| @@ -1638,11 +1439,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-PreferreddealsResourceApi", () {
|
| + unittest.group("resource-AccountsPreferreddealsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.PreferreddealsResourceApi res = new api.AdexchangesellerApi(mock).preferreddeals;
|
| + api.AccountsPreferreddealsResourceApi res = new api.AdexchangesellerApi(mock).accounts.preferreddeals;
|
| + var arg_accountId = "foo";
|
| var arg_dealId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -1651,10 +1453,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("preferreddeals/"));
|
| - pathOffset += 15;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/preferreddeals/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/preferreddeals/"));
|
| + pathOffset += 16;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| unittest.expect(subPart, unittest.equals("$arg_dealId"));
|
| @@ -1683,7 +1492,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPreferredDeal());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_dealId).then(unittest.expectAsync(((api.PreferredDeal response) {
|
| + res.get(arg_accountId, arg_dealId).then(unittest.expectAsync(((api.PreferredDeal response) {
|
| checkPreferredDeal(response);
|
| })));
|
| });
|
| @@ -1691,7 +1500,8 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.PreferreddealsResourceApi res = new api.AdexchangesellerApi(mock).preferreddeals;
|
| + api.AccountsPreferreddealsResourceApi res = new api.AdexchangesellerApi(mock).accounts.preferreddeals;
|
| + var arg_accountId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1699,10 +1509,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("preferreddeals"));
|
| - pathOffset += 14;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/preferreddeals", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/preferreddeals"));
|
| + pathOffset += 15;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1728,7 +1545,7 @@ main() {
|
| var resp = convert.JSON.encode(buildPreferredDeals());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list().then(unittest.expectAsync(((api.PreferredDeals response) {
|
| + res.list(arg_accountId).then(unittest.expectAsync(((api.PreferredDeals response) {
|
| checkPreferredDeals(response);
|
| })));
|
| });
|
| @@ -1736,21 +1553,22 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-ReportsResourceApi", () {
|
| + unittest.group("resource-AccountsReportsResourceApi", () {
|
| unittest.test("method--generate", () {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports;
|
| + api.AccountsReportsResourceApi res = new api.AdexchangesellerApi(mock).accounts.reports;
|
| + var arg_accountId = "foo";
|
| var arg_startDate = "foo";
|
| var arg_endDate = "foo";
|
| - var arg_dimension = buildUnnamed287();
|
| - var arg_filter = buildUnnamed288();
|
| + var arg_dimension = buildUnnamed109();
|
| + var arg_filter = buildUnnamed110();
|
| var arg_locale = "foo";
|
| var arg_maxResults = 42;
|
| - var arg_metric = buildUnnamed289();
|
| - var arg_sort = buildUnnamed290();
|
| + var arg_metric = buildUnnamed111();
|
| + var arg_sort = buildUnnamed112();
|
| var arg_startIndex = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -1759,10 +1577,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("reports"));
|
| - pathOffset += 7;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/reports", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/reports"));
|
| + pathOffset += 8;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1797,7 +1622,7 @@ main() {
|
| var resp = convert.JSON.encode(buildReport());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.generate(arg_startDate, arg_endDate, dimension: arg_dimension, filter: arg_filter, locale: arg_locale, maxResults: arg_maxResults, metric: arg_metric, sort: arg_sort, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Report response) {
|
| + res.generate(arg_accountId, arg_startDate, arg_endDate, dimension: arg_dimension, filter: arg_filter, locale: arg_locale, maxResults: arg_maxResults, metric: arg_metric, sort: arg_sort, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Report response) {
|
| checkReport(response);
|
| })));
|
| });
|
| @@ -1805,11 +1630,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-ReportsSavedResourceApi", () {
|
| + unittest.group("resource-AccountsReportsSavedResourceApi", () {
|
| unittest.test("method--generate", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.ReportsSavedResourceApi res = new api.AdexchangesellerApi(mock).reports.saved;
|
| + api.AccountsReportsSavedResourceApi res = new api.AdexchangesellerApi(mock).accounts.reports.saved;
|
| + var arg_accountId = "foo";
|
| var arg_savedReportId = "foo";
|
| var arg_locale = "foo";
|
| var arg_maxResults = 42;
|
| @@ -1821,10 +1647,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/"));
|
| - pathOffset += 8;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/reports/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/"));
|
| + pathOffset += 9;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| unittest.expect(subPart, unittest.equals("$arg_savedReportId"));
|
| @@ -1856,7 +1689,7 @@ main() {
|
| var resp = convert.JSON.encode(buildReport());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.generate(arg_savedReportId, locale: arg_locale, maxResults: arg_maxResults, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Report response) {
|
| + res.generate(arg_accountId, arg_savedReportId, locale: arg_locale, maxResults: arg_maxResults, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Report response) {
|
| checkReport(response);
|
| })));
|
| });
|
| @@ -1864,7 +1697,8 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.ReportsSavedResourceApi res = new api.AdexchangesellerApi(mock).reports.saved;
|
| + api.AccountsReportsSavedResourceApi res = new api.AdexchangesellerApi(mock).accounts.reports.saved;
|
| + var arg_accountId = "foo";
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -1874,10 +1708,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("reports/saved"));
|
| - pathOffset += 13;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/reports/saved", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/reports/saved"));
|
| + pathOffset += 14;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -1905,7 +1746,7 @@ main() {
|
| var resp = convert.JSON.encode(buildSavedReports());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SavedReports response) {
|
| + res.list(arg_accountId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SavedReports response) {
|
| checkSavedReports(response);
|
| })));
|
| });
|
| @@ -1913,11 +1754,12 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-UrlchannelsResourceApi", () {
|
| + unittest.group("resource-AccountsUrlchannelsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new common_test.HttpServerMock();
|
| - api.UrlchannelsResourceApi res = new api.AdexchangesellerApi(mock).urlchannels;
|
| + api.AccountsUrlchannelsResourceApi res = new api.AdexchangesellerApi(mock).accounts.urlchannels;
|
| + var arg_accountId = "foo";
|
| var arg_adClientId = "foo";
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| @@ -1928,10 +1770,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v1.1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("adexchangeseller/v2.0/"));
|
| pathOffset += 22;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("adclients/"));
|
| - pathOffset += 10;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/adclients/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/adclients/"));
|
| + pathOffset += 11;
|
| index = path.indexOf("/urlchannels", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| @@ -1966,7 +1815,7 @@ main() {
|
| var resp = convert.JSON.encode(buildUrlChannels());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) {
|
| + res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) {
|
| checkUrlChannels(response);
|
| })));
|
| });
|
|
|