| Index: generated/googleapis/test/analytics/v3_test.dart
|
| diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart
|
| index 849d6351217d9800e4cc2be23507ff0228b95c2b..e85546a4c2850d37ac6028beeff3f7ad0f427e92 100644
|
| --- a/generated/googleapis/test/analytics/v3_test.dart
|
| +++ b/generated/googleapis/test/analytics/v3_test.dart
|
| @@ -8,13 +8,48 @@ 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: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/analytics/v3.dart' as api;
|
|
|
| +class HttpServerMock extends http.BaseClient {
|
| + core.Function _callback;
|
| + core.bool _expectJson;
|
|
|
| + void register(core.Function callback, core.bool expectJson) {
|
| + _callback = callback;
|
| + _expectJson = expectJson;
|
| + }
|
| +
|
| + async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| + if (_expectJson) {
|
| + return request.finalize()
|
| + .transform(convert.UTF8.decoder)
|
| + .join('')
|
| + .then((core.String jsonString) {
|
| + if (jsonString.isEmpty) {
|
| + return _callback(request, null);
|
| + } else {
|
| + return _callback(request, convert.JSON.decode(jsonString));
|
| + }
|
| + });
|
| + } else {
|
| + var stream = request.finalize();
|
| + if (stream == null) {
|
| + return _callback(request, []);
|
| + } else {
|
| + return stream.toBytes().then((data) {
|
| + return _callback(request, data);
|
| + });
|
| + }
|
| + }
|
| + }
|
| +}
|
| +
|
| +http.StreamedResponse stringResponse(
|
| + core.int status, core.Map headers, core.String body) {
|
| + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| + return new http.StreamedResponse(stream, status, headers: headers);
|
| +}
|
|
|
| core.int buildCounterAccountChildLink = 0;
|
| buildAccountChildLink() {
|
| @@ -37,14 +72,14 @@ checkAccountChildLink(api.AccountChildLink o) {
|
| buildCounterAccountChildLink--;
|
| }
|
|
|
| -buildUnnamed893() {
|
| +buildUnnamed187() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed893(core.List<core.String> o) {
|
| +checkUnnamed187(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'));
|
| @@ -55,7 +90,7 @@ buildAccountPermissions() {
|
| var o = new api.AccountPermissions();
|
| buildCounterAccountPermissions++;
|
| if (buildCounterAccountPermissions < 3) {
|
| - o.effective = buildUnnamed893();
|
| + o.effective = buildUnnamed187();
|
| }
|
| buildCounterAccountPermissions--;
|
| return o;
|
| @@ -64,7 +99,7 @@ buildAccountPermissions() {
|
| checkAccountPermissions(api.AccountPermissions o) {
|
| buildCounterAccountPermissions++;
|
| if (buildCounterAccountPermissions < 3) {
|
| - checkUnnamed893(o.effective);
|
| + checkUnnamed187(o.effective);
|
| }
|
| buildCounterAccountPermissions--;
|
| }
|
| @@ -127,14 +162,14 @@ checkAccountRef(api.AccountRef o) {
|
| buildCounterAccountRef--;
|
| }
|
|
|
| -buildUnnamed894() {
|
| +buildUnnamed188() {
|
| var o = new core.List<api.AccountSummary>();
|
| o.add(buildAccountSummary());
|
| o.add(buildAccountSummary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed894(core.List<api.AccountSummary> o) {
|
| +checkUnnamed188(core.List<api.AccountSummary> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccountSummary(o[0]);
|
| checkAccountSummary(o[1]);
|
| @@ -145,7 +180,7 @@ buildAccountSummaries() {
|
| var o = new api.AccountSummaries();
|
| buildCounterAccountSummaries++;
|
| if (buildCounterAccountSummaries < 3) {
|
| - o.items = buildUnnamed894();
|
| + o.items = buildUnnamed188();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -161,7 +196,7 @@ buildAccountSummaries() {
|
| checkAccountSummaries(api.AccountSummaries o) {
|
| buildCounterAccountSummaries++;
|
| if (buildCounterAccountSummaries < 3) {
|
| - checkUnnamed894(o.items);
|
| + checkUnnamed188(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -173,14 +208,14 @@ checkAccountSummaries(api.AccountSummaries o) {
|
| buildCounterAccountSummaries--;
|
| }
|
|
|
| -buildUnnamed895() {
|
| +buildUnnamed189() {
|
| var o = new core.List<api.WebPropertySummary>();
|
| o.add(buildWebPropertySummary());
|
| o.add(buildWebPropertySummary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed895(core.List<api.WebPropertySummary> o) {
|
| +checkUnnamed189(core.List<api.WebPropertySummary> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkWebPropertySummary(o[0]);
|
| checkWebPropertySummary(o[1]);
|
| @@ -194,7 +229,7 @@ buildAccountSummary() {
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.webProperties = buildUnnamed895();
|
| + o.webProperties = buildUnnamed189();
|
| }
|
| buildCounterAccountSummary--;
|
| return o;
|
| @@ -206,7 +241,7 @@ checkAccountSummary(api.AccountSummary o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed895(o.webProperties);
|
| + checkUnnamed189(o.webProperties);
|
| }
|
| buildCounterAccountSummary--;
|
| }
|
| @@ -240,14 +275,14 @@ checkAccountTicket(api.AccountTicket o) {
|
| buildCounterAccountTicket--;
|
| }
|
|
|
| -buildUnnamed896() {
|
| +buildUnnamed190() {
|
| var o = new core.List<api.Account>();
|
| o.add(buildAccount());
|
| o.add(buildAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed896(core.List<api.Account> o) {
|
| +checkUnnamed190(core.List<api.Account> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccount(o[0]);
|
| checkAccount(o[1]);
|
| @@ -258,7 +293,7 @@ buildAccounts() {
|
| var o = new api.Accounts();
|
| buildCounterAccounts++;
|
| if (buildCounterAccounts < 3) {
|
| - o.items = buildUnnamed896();
|
| + o.items = buildUnnamed190();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -274,7 +309,7 @@ buildAccounts() {
|
| checkAccounts(api.Accounts o) {
|
| buildCounterAccounts++;
|
| if (buildCounterAccounts < 3) {
|
| - checkUnnamed896(o.items);
|
| + checkUnnamed190(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -309,14 +344,14 @@ checkAdWordsAccount(api.AdWordsAccount o) {
|
| buildCounterAdWordsAccount--;
|
| }
|
|
|
| -buildUnnamed897() {
|
| +buildUnnamed191() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed897(core.List<core.String> o) {
|
| +checkUnnamed191(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'));
|
| @@ -327,7 +362,7 @@ buildAnalyticsDataimportDeleteUploadDataRequest() {
|
| var o = new api.AnalyticsDataimportDeleteUploadDataRequest();
|
| buildCounterAnalyticsDataimportDeleteUploadDataRequest++;
|
| if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) {
|
| - o.customDataImportUids = buildUnnamed897();
|
| + o.customDataImportUids = buildUnnamed191();
|
| }
|
| buildCounterAnalyticsDataimportDeleteUploadDataRequest--;
|
| return o;
|
| @@ -336,19 +371,19 @@ buildAnalyticsDataimportDeleteUploadDataRequest() {
|
| checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) {
|
| buildCounterAnalyticsDataimportDeleteUploadDataRequest++;
|
| if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) {
|
| - checkUnnamed897(o.customDataImportUids);
|
| + checkUnnamed191(o.customDataImportUids);
|
| }
|
| buildCounterAnalyticsDataimportDeleteUploadDataRequest--;
|
| }
|
|
|
| -buildUnnamed898() {
|
| +buildUnnamed192() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed898(core.Map<core.String, core.String> o) {
|
| +checkUnnamed192(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -359,7 +394,7 @@ buildColumn() {
|
| var o = new api.Column();
|
| buildCounterColumn++;
|
| if (buildCounterColumn < 3) {
|
| - o.attributes = buildUnnamed898();
|
| + o.attributes = buildUnnamed192();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| }
|
| @@ -370,34 +405,34 @@ buildColumn() {
|
| checkColumn(api.Column o) {
|
| buildCounterColumn++;
|
| if (buildCounterColumn < 3) {
|
| - checkUnnamed898(o.attributes);
|
| + checkUnnamed192(o.attributes);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterColumn--;
|
| }
|
|
|
| -buildUnnamed899() {
|
| +buildUnnamed193() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed899(core.List<core.String> o) {
|
| +checkUnnamed193(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'));
|
| }
|
|
|
| -buildUnnamed900() {
|
| +buildUnnamed194() {
|
| var o = new core.List<api.Column>();
|
| o.add(buildColumn());
|
| o.add(buildColumn());
|
| return o;
|
| }
|
|
|
| -checkUnnamed900(core.List<api.Column> o) {
|
| +checkUnnamed194(core.List<api.Column> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkColumn(o[0]);
|
| checkColumn(o[1]);
|
| @@ -408,9 +443,9 @@ buildColumns() {
|
| var o = new api.Columns();
|
| buildCounterColumns++;
|
| if (buildCounterColumns < 3) {
|
| - o.attributeNames = buildUnnamed899();
|
| + o.attributeNames = buildUnnamed193();
|
| o.etag = "foo";
|
| - o.items = buildUnnamed900();
|
| + o.items = buildUnnamed194();
|
| o.kind = "foo";
|
| o.totalResults = 42;
|
| }
|
| @@ -421,9 +456,9 @@ buildColumns() {
|
| checkColumns(api.Columns o) {
|
| buildCounterColumns++;
|
| if (buildCounterColumns < 3) {
|
| - checkUnnamed899(o.attributeNames);
|
| + checkUnnamed193(o.attributeNames);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed900(o.items);
|
| + checkUnnamed194(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.totalResults, unittest.equals(42));
|
| }
|
| @@ -472,14 +507,14 @@ checkCustomDataSourceParentLink(api.CustomDataSourceParentLink o) {
|
| buildCounterCustomDataSourceParentLink--;
|
| }
|
|
|
| -buildUnnamed901() {
|
| +buildUnnamed195() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed901(core.List<core.String> o) {
|
| +checkUnnamed195(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'));
|
| @@ -499,7 +534,7 @@ buildCustomDataSource() {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.parentLink = buildCustomDataSourceParentLink();
|
| - o.profilesLinked = buildUnnamed901();
|
| + o.profilesLinked = buildUnnamed195();
|
| o.selfLink = "foo";
|
| o.type = "foo";
|
| o.updated = core.DateTime.parse("2002-02-27T14:01:02");
|
| @@ -522,7 +557,7 @@ checkCustomDataSource(api.CustomDataSource o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkCustomDataSourceParentLink(o.parentLink);
|
| - checkUnnamed901(o.profilesLinked);
|
| + checkUnnamed195(o.profilesLinked);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| @@ -532,14 +567,14 @@ checkCustomDataSource(api.CustomDataSource o) {
|
| buildCounterCustomDataSource--;
|
| }
|
|
|
| -buildUnnamed902() {
|
| +buildUnnamed196() {
|
| var o = new core.List<api.CustomDataSource>();
|
| o.add(buildCustomDataSource());
|
| o.add(buildCustomDataSource());
|
| return o;
|
| }
|
|
|
| -checkUnnamed902(core.List<api.CustomDataSource> o) {
|
| +checkUnnamed196(core.List<api.CustomDataSource> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomDataSource(o[0]);
|
| checkCustomDataSource(o[1]);
|
| @@ -550,7 +585,7 @@ buildCustomDataSources() {
|
| var o = new api.CustomDataSources();
|
| buildCounterCustomDataSources++;
|
| if (buildCounterCustomDataSources < 3) {
|
| - o.items = buildUnnamed902();
|
| + o.items = buildUnnamed196();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -566,7 +601,7 @@ buildCustomDataSources() {
|
| checkCustomDataSources(api.CustomDataSources o) {
|
| buildCounterCustomDataSources++;
|
| if (buildCounterCustomDataSources < 3) {
|
| - checkUnnamed902(o.items);
|
| + checkUnnamed196(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -640,14 +675,14 @@ checkCustomDimension(api.CustomDimension o) {
|
| buildCounterCustomDimension--;
|
| }
|
|
|
| -buildUnnamed903() {
|
| +buildUnnamed197() {
|
| var o = new core.List<api.CustomDimension>();
|
| o.add(buildCustomDimension());
|
| o.add(buildCustomDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed903(core.List<api.CustomDimension> o) {
|
| +checkUnnamed197(core.List<api.CustomDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomDimension(o[0]);
|
| checkCustomDimension(o[1]);
|
| @@ -658,7 +693,7 @@ buildCustomDimensions() {
|
| var o = new api.CustomDimensions();
|
| buildCounterCustomDimensions++;
|
| if (buildCounterCustomDimensions < 3) {
|
| - o.items = buildUnnamed903();
|
| + o.items = buildUnnamed197();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -674,7 +709,7 @@ buildCustomDimensions() {
|
| checkCustomDimensions(api.CustomDimensions o) {
|
| buildCounterCustomDimensions++;
|
| if (buildCounterCustomDimensions < 3) {
|
| - checkUnnamed903(o.items);
|
| + checkUnnamed197(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -754,14 +789,14 @@ checkCustomMetric(api.CustomMetric o) {
|
| buildCounterCustomMetric--;
|
| }
|
|
|
| -buildUnnamed904() {
|
| +buildUnnamed198() {
|
| var o = new core.List<api.CustomMetric>();
|
| o.add(buildCustomMetric());
|
| o.add(buildCustomMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed904(core.List<api.CustomMetric> o) {
|
| +checkUnnamed198(core.List<api.CustomMetric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomMetric(o[0]);
|
| checkCustomMetric(o[1]);
|
| @@ -772,7 +807,7 @@ buildCustomMetrics() {
|
| var o = new api.CustomMetrics();
|
| buildCounterCustomMetrics++;
|
| if (buildCounterCustomMetrics < 3) {
|
| - o.items = buildUnnamed904();
|
| + o.items = buildUnnamed198();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -788,7 +823,7 @@ buildCustomMetrics() {
|
| checkCustomMetrics(api.CustomMetrics o) {
|
| buildCounterCustomMetrics++;
|
| if (buildCounterCustomMetrics < 3) {
|
| - checkUnnamed904(o.items);
|
| + checkUnnamed198(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -800,185 +835,14 @@ checkCustomMetrics(api.CustomMetrics o) {
|
| buildCounterCustomMetrics--;
|
| }
|
|
|
| -core.int buildCounterDailyUploadParentLink = 0;
|
| -buildDailyUploadParentLink() {
|
| - var o = new api.DailyUploadParentLink();
|
| - buildCounterDailyUploadParentLink++;
|
| - if (buildCounterDailyUploadParentLink < 3) {
|
| - o.href = "foo";
|
| - o.type = "foo";
|
| - }
|
| - buildCounterDailyUploadParentLink--;
|
| - return o;
|
| -}
|
| -
|
| -checkDailyUploadParentLink(api.DailyUploadParentLink o) {
|
| - buildCounterDailyUploadParentLink++;
|
| - if (buildCounterDailyUploadParentLink < 3) {
|
| - unittest.expect(o.href, unittest.equals('foo'));
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - }
|
| - buildCounterDailyUploadParentLink--;
|
| -}
|
| -
|
| -core.int buildCounterDailyUploadRecentChanges = 0;
|
| -buildDailyUploadRecentChanges() {
|
| - var o = new api.DailyUploadRecentChanges();
|
| - buildCounterDailyUploadRecentChanges++;
|
| - if (buildCounterDailyUploadRecentChanges < 3) {
|
| - o.change = "foo";
|
| - o.time = core.DateTime.parse("2002-02-27T14:01:02");
|
| - }
|
| - buildCounterDailyUploadRecentChanges--;
|
| - return o;
|
| -}
|
| -
|
| -checkDailyUploadRecentChanges(api.DailyUploadRecentChanges o) {
|
| - buildCounterDailyUploadRecentChanges++;
|
| - if (buildCounterDailyUploadRecentChanges < 3) {
|
| - unittest.expect(o.change, unittest.equals('foo'));
|
| - unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - }
|
| - buildCounterDailyUploadRecentChanges--;
|
| -}
|
| -
|
| -buildUnnamed905() {
|
| - var o = new core.List<api.DailyUploadRecentChanges>();
|
| - o.add(buildDailyUploadRecentChanges());
|
| - o.add(buildDailyUploadRecentChanges());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed905(core.List<api.DailyUploadRecentChanges> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkDailyUploadRecentChanges(o[0]);
|
| - checkDailyUploadRecentChanges(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterDailyUpload = 0;
|
| -buildDailyUpload() {
|
| - var o = new api.DailyUpload();
|
| - buildCounterDailyUpload++;
|
| - if (buildCounterDailyUpload < 3) {
|
| - o.accountId = "foo";
|
| - o.appendCount = 42;
|
| - o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.customDataSourceId = "foo";
|
| - o.date = "foo";
|
| - o.kind = "foo";
|
| - o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.parentLink = buildDailyUploadParentLink();
|
| - o.recentChanges = buildUnnamed905();
|
| - o.selfLink = "foo";
|
| - o.webPropertyId = "foo";
|
| - }
|
| - buildCounterDailyUpload--;
|
| - return o;
|
| -}
|
| -
|
| -checkDailyUpload(api.DailyUpload o) {
|
| - buildCounterDailyUpload++;
|
| - if (buildCounterDailyUpload < 3) {
|
| - unittest.expect(o.accountId, unittest.equals('foo'));
|
| - unittest.expect(o.appendCount, unittest.equals(42));
|
| - unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - unittest.expect(o.customDataSourceId, unittest.equals('foo'));
|
| - unittest.expect(o.date, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkDailyUploadParentLink(o.parentLink);
|
| - checkUnnamed905(o.recentChanges);
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.webPropertyId, unittest.equals('foo'));
|
| - }
|
| - buildCounterDailyUpload--;
|
| -}
|
| -
|
| -core.int buildCounterDailyUploadAppend = 0;
|
| -buildDailyUploadAppend() {
|
| - var o = new api.DailyUploadAppend();
|
| - buildCounterDailyUploadAppend++;
|
| - if (buildCounterDailyUploadAppend < 3) {
|
| - o.accountId = "foo";
|
| - o.appendNumber = 42;
|
| - o.customDataSourceId = "foo";
|
| - o.date = "foo";
|
| - o.kind = "foo";
|
| - o.nextAppendLink = "foo";
|
| - o.webPropertyId = "foo";
|
| - }
|
| - buildCounterDailyUploadAppend--;
|
| - return o;
|
| -}
|
| -
|
| -checkDailyUploadAppend(api.DailyUploadAppend o) {
|
| - buildCounterDailyUploadAppend++;
|
| - if (buildCounterDailyUploadAppend < 3) {
|
| - unittest.expect(o.accountId, unittest.equals('foo'));
|
| - unittest.expect(o.appendNumber, unittest.equals(42));
|
| - unittest.expect(o.customDataSourceId, unittest.equals('foo'));
|
| - unittest.expect(o.date, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextAppendLink, unittest.equals('foo'));
|
| - unittest.expect(o.webPropertyId, unittest.equals('foo'));
|
| - }
|
| - buildCounterDailyUploadAppend--;
|
| -}
|
| -
|
| -buildUnnamed906() {
|
| - var o = new core.List<api.DailyUpload>();
|
| - o.add(buildDailyUpload());
|
| - o.add(buildDailyUpload());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed906(core.List<api.DailyUpload> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkDailyUpload(o[0]);
|
| - checkDailyUpload(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterDailyUploads = 0;
|
| -buildDailyUploads() {
|
| - var o = new api.DailyUploads();
|
| - buildCounterDailyUploads++;
|
| - if (buildCounterDailyUploads < 3) {
|
| - o.items = buildUnnamed906();
|
| - o.itemsPerPage = 42;
|
| - o.kind = "foo";
|
| - o.nextLink = "foo";
|
| - o.previousLink = "foo";
|
| - o.startIndex = 42;
|
| - o.totalResults = 42;
|
| - o.username = "foo";
|
| - }
|
| - buildCounterDailyUploads--;
|
| - return o;
|
| -}
|
| -
|
| -checkDailyUploads(api.DailyUploads o) {
|
| - buildCounterDailyUploads++;
|
| - if (buildCounterDailyUploads < 3) {
|
| - checkUnnamed906(o.items);
|
| - unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextLink, unittest.equals('foo'));
|
| - unittest.expect(o.previousLink, unittest.equals('foo'));
|
| - unittest.expect(o.startIndex, unittest.equals(42));
|
| - unittest.expect(o.totalResults, unittest.equals(42));
|
| - unittest.expect(o.username, unittest.equals('foo'));
|
| - }
|
| - buildCounterDailyUploads--;
|
| -}
|
| -
|
| -buildUnnamed907() {
|
| +buildUnnamed199() {
|
| var o = new core.List<api.AdWordsAccount>();
|
| o.add(buildAdWordsAccount());
|
| o.add(buildAdWordsAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed907(core.List<api.AdWordsAccount> o) {
|
| +checkUnnamed199(core.List<api.AdWordsAccount> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAdWordsAccount(o[0]);
|
| checkAdWordsAccount(o[1]);
|
| @@ -1003,14 +867,14 @@ checkEntityAdWordsLinkEntity(api.EntityAdWordsLinkEntity o) {
|
| buildCounterEntityAdWordsLinkEntity--;
|
| }
|
|
|
| -buildUnnamed908() {
|
| +buildUnnamed200() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed908(core.List<core.String> o) {
|
| +checkUnnamed200(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'));
|
| @@ -1021,12 +885,12 @@ buildEntityAdWordsLink() {
|
| var o = new api.EntityAdWordsLink();
|
| buildCounterEntityAdWordsLink++;
|
| if (buildCounterEntityAdWordsLink < 3) {
|
| - o.adWordsAccounts = buildUnnamed907();
|
| + o.adWordsAccounts = buildUnnamed199();
|
| o.entity = buildEntityAdWordsLinkEntity();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.profileIds = buildUnnamed908();
|
| + o.profileIds = buildUnnamed200();
|
| o.selfLink = "foo";
|
| }
|
| buildCounterEntityAdWordsLink--;
|
| @@ -1036,25 +900,25 @@ buildEntityAdWordsLink() {
|
| checkEntityAdWordsLink(api.EntityAdWordsLink o) {
|
| buildCounterEntityAdWordsLink++;
|
| if (buildCounterEntityAdWordsLink < 3) {
|
| - checkUnnamed907(o.adWordsAccounts);
|
| + checkUnnamed199(o.adWordsAccounts);
|
| checkEntityAdWordsLinkEntity(o.entity);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed908(o.profileIds);
|
| + checkUnnamed200(o.profileIds);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| buildCounterEntityAdWordsLink--;
|
| }
|
|
|
| -buildUnnamed909() {
|
| +buildUnnamed201() {
|
| var o = new core.List<api.EntityAdWordsLink>();
|
| o.add(buildEntityAdWordsLink());
|
| o.add(buildEntityAdWordsLink());
|
| return o;
|
| }
|
|
|
| -checkUnnamed909(core.List<api.EntityAdWordsLink> o) {
|
| +checkUnnamed201(core.List<api.EntityAdWordsLink> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAdWordsLink(o[0]);
|
| checkEntityAdWordsLink(o[1]);
|
| @@ -1065,7 +929,7 @@ buildEntityAdWordsLinks() {
|
| var o = new api.EntityAdWordsLinks();
|
| buildCounterEntityAdWordsLinks++;
|
| if (buildCounterEntityAdWordsLinks < 3) {
|
| - o.items = buildUnnamed909();
|
| + o.items = buildUnnamed201();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -1080,7 +944,7 @@ buildEntityAdWordsLinks() {
|
| checkEntityAdWordsLinks(api.EntityAdWordsLinks o) {
|
| buildCounterEntityAdWordsLinks++;
|
| if (buildCounterEntityAdWordsLinks < 3) {
|
| - checkUnnamed909(o.items);
|
| + checkUnnamed201(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -1114,27 +978,27 @@ checkEntityUserLinkEntity(api.EntityUserLinkEntity o) {
|
| buildCounterEntityUserLinkEntity--;
|
| }
|
|
|
| -buildUnnamed910() {
|
| +buildUnnamed202() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed910(core.List<core.String> o) {
|
| +checkUnnamed202(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'));
|
| }
|
|
|
| -buildUnnamed911() {
|
| +buildUnnamed203() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed911(core.List<core.String> o) {
|
| +checkUnnamed203(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'));
|
| @@ -1145,8 +1009,8 @@ buildEntityUserLinkPermissions() {
|
| var o = new api.EntityUserLinkPermissions();
|
| buildCounterEntityUserLinkPermissions++;
|
| if (buildCounterEntityUserLinkPermissions < 3) {
|
| - o.effective = buildUnnamed910();
|
| - o.local = buildUnnamed911();
|
| + o.effective = buildUnnamed202();
|
| + o.local = buildUnnamed203();
|
| }
|
| buildCounterEntityUserLinkPermissions--;
|
| return o;
|
| @@ -1155,8 +1019,8 @@ buildEntityUserLinkPermissions() {
|
| checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) {
|
| buildCounterEntityUserLinkPermissions++;
|
| if (buildCounterEntityUserLinkPermissions < 3) {
|
| - checkUnnamed910(o.effective);
|
| - checkUnnamed911(o.local);
|
| + checkUnnamed202(o.effective);
|
| + checkUnnamed203(o.local);
|
| }
|
| buildCounterEntityUserLinkPermissions--;
|
| }
|
| @@ -1190,14 +1054,14 @@ checkEntityUserLink(api.EntityUserLink o) {
|
| buildCounterEntityUserLink--;
|
| }
|
|
|
| -buildUnnamed912() {
|
| +buildUnnamed204() {
|
| var o = new core.List<api.EntityUserLink>();
|
| o.add(buildEntityUserLink());
|
| o.add(buildEntityUserLink());
|
| return o;
|
| }
|
|
|
| -checkUnnamed912(core.List<api.EntityUserLink> o) {
|
| +checkUnnamed204(core.List<api.EntityUserLink> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityUserLink(o[0]);
|
| checkEntityUserLink(o[1]);
|
| @@ -1208,7 +1072,7 @@ buildEntityUserLinks() {
|
| var o = new api.EntityUserLinks();
|
| buildCounterEntityUserLinks++;
|
| if (buildCounterEntityUserLinks < 3) {
|
| - o.items = buildUnnamed912();
|
| + o.items = buildUnnamed204();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -1223,7 +1087,7 @@ buildEntityUserLinks() {
|
| checkEntityUserLinks(api.EntityUserLinks o) {
|
| buildCounterEntityUserLinks++;
|
| if (buildCounterEntityUserLinks < 3) {
|
| - checkUnnamed912(o.items);
|
| + checkUnnamed204(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -1282,14 +1146,14 @@ checkExperimentVariations(api.ExperimentVariations o) {
|
| buildCounterExperimentVariations--;
|
| }
|
|
|
| -buildUnnamed913() {
|
| +buildUnnamed205() {
|
| var o = new core.List<api.ExperimentVariations>();
|
| o.add(buildExperimentVariations());
|
| o.add(buildExperimentVariations());
|
| return o;
|
| }
|
|
|
| -checkUnnamed913(core.List<api.ExperimentVariations> o) {
|
| +checkUnnamed205(core.List<api.ExperimentVariations> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExperimentVariations(o[0]);
|
| checkExperimentVariations(o[1]);
|
| @@ -1324,7 +1188,7 @@ buildExperiment() {
|
| o.status = "foo";
|
| o.trafficCoverage = 42.0;
|
| o.updated = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.variations = buildUnnamed913();
|
| + o.variations = buildUnnamed205();
|
| o.webPropertyId = "foo";
|
| o.winnerConfidenceLevel = 42.0;
|
| o.winnerFound = true;
|
| @@ -1360,7 +1224,7 @@ checkExperiment(api.Experiment o) {
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.trafficCoverage, unittest.equals(42.0));
|
| unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed913(o.variations);
|
| + checkUnnamed205(o.variations);
|
| unittest.expect(o.webPropertyId, unittest.equals('foo'));
|
| unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0));
|
| unittest.expect(o.winnerFound, unittest.isTrue);
|
| @@ -1368,14 +1232,14 @@ checkExperiment(api.Experiment o) {
|
| buildCounterExperiment--;
|
| }
|
|
|
| -buildUnnamed914() {
|
| +buildUnnamed206() {
|
| var o = new core.List<api.Experiment>();
|
| o.add(buildExperiment());
|
| o.add(buildExperiment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed914(core.List<api.Experiment> o) {
|
| +checkUnnamed206(core.List<api.Experiment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExperiment(o[0]);
|
| checkExperiment(o[1]);
|
| @@ -1386,7 +1250,7 @@ buildExperiments() {
|
| var o = new api.Experiments();
|
| buildCounterExperiments++;
|
| if (buildCounterExperiments < 3) {
|
| - o.items = buildUnnamed914();
|
| + o.items = buildUnnamed206();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -1402,7 +1266,7 @@ buildExperiments() {
|
| checkExperiments(api.Experiments o) {
|
| buildCounterExperiments++;
|
| if (buildCounterExperiments < 3) {
|
| - checkUnnamed914(o.items);
|
| + checkUnnamed206(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -1636,14 +1500,14 @@ checkFilterRef(api.FilterRef o) {
|
| buildCounterFilterRef--;
|
| }
|
|
|
| -buildUnnamed915() {
|
| +buildUnnamed207() {
|
| var o = new core.List<api.Filter>();
|
| o.add(buildFilter());
|
| o.add(buildFilter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed915(core.List<api.Filter> o) {
|
| +checkUnnamed207(core.List<api.Filter> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFilter(o[0]);
|
| checkFilter(o[1]);
|
| @@ -1654,7 +1518,7 @@ buildFilters() {
|
| var o = new api.Filters();
|
| buildCounterFilters++;
|
| if (buildCounterFilters < 3) {
|
| - o.items = buildUnnamed915();
|
| + o.items = buildUnnamed207();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -1670,7 +1534,7 @@ buildFilters() {
|
| checkFilters(api.Filters o) {
|
| buildCounterFilters++;
|
| if (buildCounterFilters < 3) {
|
| - checkUnnamed915(o.items);
|
| + checkUnnamed207(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -1705,14 +1569,14 @@ checkGaDataColumnHeaders(api.GaDataColumnHeaders o) {
|
| buildCounterGaDataColumnHeaders--;
|
| }
|
|
|
| -buildUnnamed916() {
|
| +buildUnnamed208() {
|
| var o = new core.List<api.GaDataColumnHeaders>();
|
| o.add(buildGaDataColumnHeaders());
|
| o.add(buildGaDataColumnHeaders());
|
| return o;
|
| }
|
|
|
| -checkUnnamed916(core.List<api.GaDataColumnHeaders> o) {
|
| +checkUnnamed208(core.List<api.GaDataColumnHeaders> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGaDataColumnHeaders(o[0]);
|
| checkGaDataColumnHeaders(o[1]);
|
| @@ -1741,14 +1605,14 @@ checkGaDataDataTableCols(api.GaDataDataTableCols o) {
|
| buildCounterGaDataDataTableCols--;
|
| }
|
|
|
| -buildUnnamed917() {
|
| +buildUnnamed209() {
|
| var o = new core.List<api.GaDataDataTableCols>();
|
| o.add(buildGaDataDataTableCols());
|
| o.add(buildGaDataDataTableCols());
|
| return o;
|
| }
|
|
|
| -checkUnnamed917(core.List<api.GaDataDataTableCols> o) {
|
| +checkUnnamed209(core.List<api.GaDataDataTableCols> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGaDataDataTableCols(o[0]);
|
| checkGaDataDataTableCols(o[1]);
|
| @@ -1773,14 +1637,14 @@ checkGaDataDataTableRowsC(api.GaDataDataTableRowsC o) {
|
| buildCounterGaDataDataTableRowsC--;
|
| }
|
|
|
| -buildUnnamed918() {
|
| +buildUnnamed210() {
|
| var o = new core.List<api.GaDataDataTableRowsC>();
|
| o.add(buildGaDataDataTableRowsC());
|
| o.add(buildGaDataDataTableRowsC());
|
| return o;
|
| }
|
|
|
| -checkUnnamed918(core.List<api.GaDataDataTableRowsC> o) {
|
| +checkUnnamed210(core.List<api.GaDataDataTableRowsC> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGaDataDataTableRowsC(o[0]);
|
| checkGaDataDataTableRowsC(o[1]);
|
| @@ -1791,7 +1655,7 @@ buildGaDataDataTableRows() {
|
| var o = new api.GaDataDataTableRows();
|
| buildCounterGaDataDataTableRows++;
|
| if (buildCounterGaDataDataTableRows < 3) {
|
| - o.c = buildUnnamed918();
|
| + o.c = buildUnnamed210();
|
| }
|
| buildCounterGaDataDataTableRows--;
|
| return o;
|
| @@ -1800,19 +1664,19 @@ buildGaDataDataTableRows() {
|
| checkGaDataDataTableRows(api.GaDataDataTableRows o) {
|
| buildCounterGaDataDataTableRows++;
|
| if (buildCounterGaDataDataTableRows < 3) {
|
| - checkUnnamed918(o.c);
|
| + checkUnnamed210(o.c);
|
| }
|
| buildCounterGaDataDataTableRows--;
|
| }
|
|
|
| -buildUnnamed919() {
|
| +buildUnnamed211() {
|
| var o = new core.List<api.GaDataDataTableRows>();
|
| o.add(buildGaDataDataTableRows());
|
| o.add(buildGaDataDataTableRows());
|
| return o;
|
| }
|
|
|
| -checkUnnamed919(core.List<api.GaDataDataTableRows> o) {
|
| +checkUnnamed211(core.List<api.GaDataDataTableRows> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGaDataDataTableRows(o[0]);
|
| checkGaDataDataTableRows(o[1]);
|
| @@ -1823,8 +1687,8 @@ buildGaDataDataTable() {
|
| var o = new api.GaDataDataTable();
|
| buildCounterGaDataDataTable++;
|
| if (buildCounterGaDataDataTable < 3) {
|
| - o.cols = buildUnnamed917();
|
| - o.rows = buildUnnamed919();
|
| + o.cols = buildUnnamed209();
|
| + o.rows = buildUnnamed211();
|
| }
|
| buildCounterGaDataDataTable--;
|
| return o;
|
| @@ -1833,8 +1697,8 @@ buildGaDataDataTable() {
|
| checkGaDataDataTable(api.GaDataDataTable o) {
|
| buildCounterGaDataDataTable++;
|
| if (buildCounterGaDataDataTable < 3) {
|
| - checkUnnamed917(o.cols);
|
| - checkUnnamed919(o.rows);
|
| + checkUnnamed209(o.cols);
|
| + checkUnnamed211(o.rows);
|
| }
|
| buildCounterGaDataDataTable--;
|
| }
|
| @@ -1868,27 +1732,27 @@ checkGaDataProfileInfo(api.GaDataProfileInfo o) {
|
| buildCounterGaDataProfileInfo--;
|
| }
|
|
|
| -buildUnnamed920() {
|
| +buildUnnamed212() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed920(core.List<core.String> o) {
|
| +checkUnnamed212(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'));
|
| }
|
|
|
| -buildUnnamed921() {
|
| +buildUnnamed213() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed921(core.List<core.String> o) {
|
| +checkUnnamed213(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'));
|
| @@ -1904,10 +1768,10 @@ buildGaDataQuery() {
|
| o.filters = "foo";
|
| o.ids = "foo";
|
| o.max_results = 42;
|
| - o.metrics = buildUnnamed920();
|
| + o.metrics = buildUnnamed212();
|
| o.samplingLevel = "foo";
|
| o.segment = "foo";
|
| - o.sort = buildUnnamed921();
|
| + o.sort = buildUnnamed213();
|
| o.start_date = "foo";
|
| o.start_index = 42;
|
| }
|
| @@ -1923,50 +1787,50 @@ checkGaDataQuery(api.GaDataQuery o) {
|
| unittest.expect(o.filters, unittest.equals('foo'));
|
| unittest.expect(o.ids, unittest.equals('foo'));
|
| unittest.expect(o.max_results, unittest.equals(42));
|
| - checkUnnamed920(o.metrics);
|
| + checkUnnamed212(o.metrics);
|
| unittest.expect(o.samplingLevel, unittest.equals('foo'));
|
| unittest.expect(o.segment, unittest.equals('foo'));
|
| - checkUnnamed921(o.sort);
|
| + checkUnnamed213(o.sort);
|
| unittest.expect(o.start_date, unittest.equals('foo'));
|
| unittest.expect(o.start_index, unittest.equals(42));
|
| }
|
| buildCounterGaDataQuery--;
|
| }
|
|
|
| -buildUnnamed922() {
|
| +buildUnnamed214() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed922(core.List<core.String> o) {
|
| +checkUnnamed214(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'));
|
| }
|
|
|
| -buildUnnamed923() {
|
| +buildUnnamed215() {
|
| var o = new core.List<core.List<core.String>>();
|
| - o.add(buildUnnamed922());
|
| - o.add(buildUnnamed922());
|
| + o.add(buildUnnamed214());
|
| + o.add(buildUnnamed214());
|
| return o;
|
| }
|
|
|
| -checkUnnamed923(core.List<core.List<core.String>> o) {
|
| +checkUnnamed215(core.List<core.List<core.String>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed922(o[0]);
|
| - checkUnnamed922(o[1]);
|
| + checkUnnamed214(o[0]);
|
| + checkUnnamed214(o[1]);
|
| }
|
|
|
| -buildUnnamed924() {
|
| +buildUnnamed216() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed924(core.Map<core.String, core.String> o) {
|
| +checkUnnamed216(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -1977,7 +1841,7 @@ buildGaData() {
|
| var o = new api.GaData();
|
| buildCounterGaData++;
|
| if (buildCounterGaData < 3) {
|
| - o.columnHeaders = buildUnnamed916();
|
| + o.columnHeaders = buildUnnamed208();
|
| o.containsSampledData = true;
|
| o.dataTable = buildGaDataDataTable();
|
| o.id = "foo";
|
| @@ -1987,12 +1851,12 @@ buildGaData() {
|
| o.previousLink = "foo";
|
| o.profileInfo = buildGaDataProfileInfo();
|
| o.query = buildGaDataQuery();
|
| - o.rows = buildUnnamed923();
|
| + o.rows = buildUnnamed215();
|
| o.sampleSize = "foo";
|
| o.sampleSpace = "foo";
|
| o.selfLink = "foo";
|
| o.totalResults = 42;
|
| - o.totalsForAllResults = buildUnnamed924();
|
| + o.totalsForAllResults = buildUnnamed216();
|
| }
|
| buildCounterGaData--;
|
| return o;
|
| @@ -2001,7 +1865,7 @@ buildGaData() {
|
| checkGaData(api.GaData o) {
|
| buildCounterGaData++;
|
| if (buildCounterGaData < 3) {
|
| - checkUnnamed916(o.columnHeaders);
|
| + checkUnnamed208(o.columnHeaders);
|
| unittest.expect(o.containsSampledData, unittest.isTrue);
|
| checkGaDataDataTable(o.dataTable);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -2011,12 +1875,12 @@ checkGaData(api.GaData o) {
|
| unittest.expect(o.previousLink, unittest.equals('foo'));
|
| checkGaDataProfileInfo(o.profileInfo);
|
| checkGaDataQuery(o.query);
|
| - checkUnnamed923(o.rows);
|
| + checkUnnamed215(o.rows);
|
| unittest.expect(o.sampleSize, unittest.equals('foo'));
|
| unittest.expect(o.sampleSpace, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.totalResults, unittest.equals(42));
|
| - checkUnnamed924(o.totalsForAllResults);
|
| + checkUnnamed216(o.totalsForAllResults);
|
| }
|
| buildCounterGaData--;
|
| }
|
| @@ -2048,14 +1912,14 @@ checkGoalEventDetailsEventConditions(api.GoalEventDetailsEventConditions o) {
|
| buildCounterGoalEventDetailsEventConditions--;
|
| }
|
|
|
| -buildUnnamed925() {
|
| +buildUnnamed217() {
|
| var o = new core.List<api.GoalEventDetailsEventConditions>();
|
| o.add(buildGoalEventDetailsEventConditions());
|
| o.add(buildGoalEventDetailsEventConditions());
|
| return o;
|
| }
|
|
|
| -checkUnnamed925(core.List<api.GoalEventDetailsEventConditions> o) {
|
| +checkUnnamed217(core.List<api.GoalEventDetailsEventConditions> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGoalEventDetailsEventConditions(o[0]);
|
| checkGoalEventDetailsEventConditions(o[1]);
|
| @@ -2066,7 +1930,7 @@ buildGoalEventDetails() {
|
| var o = new api.GoalEventDetails();
|
| buildCounterGoalEventDetails++;
|
| if (buildCounterGoalEventDetails < 3) {
|
| - o.eventConditions = buildUnnamed925();
|
| + o.eventConditions = buildUnnamed217();
|
| o.useEventValue = true;
|
| }
|
| buildCounterGoalEventDetails--;
|
| @@ -2076,7 +1940,7 @@ buildGoalEventDetails() {
|
| checkGoalEventDetails(api.GoalEventDetails o) {
|
| buildCounterGoalEventDetails++;
|
| if (buildCounterGoalEventDetails < 3) {
|
| - checkUnnamed925(o.eventConditions);
|
| + checkUnnamed217(o.eventConditions);
|
| unittest.expect(o.useEventValue, unittest.isTrue);
|
| }
|
| buildCounterGoalEventDetails--;
|
| @@ -2126,14 +1990,14 @@ checkGoalUrlDestinationDetailsSteps(api.GoalUrlDestinationDetailsSteps o) {
|
| buildCounterGoalUrlDestinationDetailsSteps--;
|
| }
|
|
|
| -buildUnnamed926() {
|
| +buildUnnamed218() {
|
| var o = new core.List<api.GoalUrlDestinationDetailsSteps>();
|
| o.add(buildGoalUrlDestinationDetailsSteps());
|
| o.add(buildGoalUrlDestinationDetailsSteps());
|
| return o;
|
| }
|
|
|
| -checkUnnamed926(core.List<api.GoalUrlDestinationDetailsSteps> o) {
|
| +checkUnnamed218(core.List<api.GoalUrlDestinationDetailsSteps> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGoalUrlDestinationDetailsSteps(o[0]);
|
| checkGoalUrlDestinationDetailsSteps(o[1]);
|
| @@ -2147,7 +2011,7 @@ buildGoalUrlDestinationDetails() {
|
| o.caseSensitive = true;
|
| o.firstStepRequired = true;
|
| o.matchType = "foo";
|
| - o.steps = buildUnnamed926();
|
| + o.steps = buildUnnamed218();
|
| o.url = "foo";
|
| }
|
| buildCounterGoalUrlDestinationDetails--;
|
| @@ -2160,7 +2024,7 @@ checkGoalUrlDestinationDetails(api.GoalUrlDestinationDetails o) {
|
| unittest.expect(o.caseSensitive, unittest.isTrue);
|
| unittest.expect(o.firstStepRequired, unittest.isTrue);
|
| unittest.expect(o.matchType, unittest.equals('foo'));
|
| - checkUnnamed926(o.steps);
|
| + checkUnnamed218(o.steps);
|
| unittest.expect(o.url, unittest.equals('foo'));
|
| }
|
| buildCounterGoalUrlDestinationDetails--;
|
| @@ -2261,14 +2125,14 @@ checkGoal(api.Goal o) {
|
| buildCounterGoal--;
|
| }
|
|
|
| -buildUnnamed927() {
|
| +buildUnnamed219() {
|
| var o = new core.List<api.Goal>();
|
| o.add(buildGoal());
|
| o.add(buildGoal());
|
| return o;
|
| }
|
|
|
| -checkUnnamed927(core.List<api.Goal> o) {
|
| +checkUnnamed219(core.List<api.Goal> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGoal(o[0]);
|
| checkGoal(o[1]);
|
| @@ -2279,7 +2143,7 @@ buildGoals() {
|
| var o = new api.Goals();
|
| buildCounterGoals++;
|
| if (buildCounterGoals < 3) {
|
| - o.items = buildUnnamed927();
|
| + o.items = buildUnnamed219();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -2295,7 +2159,7 @@ buildGoals() {
|
| checkGoals(api.Goals o) {
|
| buildCounterGoals++;
|
| if (buildCounterGoals < 3) {
|
| - checkUnnamed927(o.items);
|
| + checkUnnamed219(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -2330,14 +2194,14 @@ checkMcfDataColumnHeaders(api.McfDataColumnHeaders o) {
|
| buildCounterMcfDataColumnHeaders--;
|
| }
|
|
|
| -buildUnnamed928() {
|
| +buildUnnamed220() {
|
| var o = new core.List<api.McfDataColumnHeaders>();
|
| o.add(buildMcfDataColumnHeaders());
|
| o.add(buildMcfDataColumnHeaders());
|
| return o;
|
| }
|
|
|
| -checkUnnamed928(core.List<api.McfDataColumnHeaders> o) {
|
| +checkUnnamed220(core.List<api.McfDataColumnHeaders> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMcfDataColumnHeaders(o[0]);
|
| checkMcfDataColumnHeaders(o[1]);
|
| @@ -2372,27 +2236,27 @@ checkMcfDataProfileInfo(api.McfDataProfileInfo o) {
|
| buildCounterMcfDataProfileInfo--;
|
| }
|
|
|
| -buildUnnamed929() {
|
| +buildUnnamed221() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed929(core.List<core.String> o) {
|
| +checkUnnamed221(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'));
|
| }
|
|
|
| -buildUnnamed930() {
|
| +buildUnnamed222() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed930(core.List<core.String> o) {
|
| +checkUnnamed222(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'));
|
| @@ -2408,10 +2272,10 @@ buildMcfDataQuery() {
|
| o.filters = "foo";
|
| o.ids = "foo";
|
| o.max_results = 42;
|
| - o.metrics = buildUnnamed929();
|
| + o.metrics = buildUnnamed221();
|
| o.samplingLevel = "foo";
|
| o.segment = "foo";
|
| - o.sort = buildUnnamed930();
|
| + o.sort = buildUnnamed222();
|
| o.start_date = "foo";
|
| o.start_index = 42;
|
| }
|
| @@ -2427,10 +2291,10 @@ checkMcfDataQuery(api.McfDataQuery o) {
|
| unittest.expect(o.filters, unittest.equals('foo'));
|
| unittest.expect(o.ids, unittest.equals('foo'));
|
| unittest.expect(o.max_results, unittest.equals(42));
|
| - checkUnnamed929(o.metrics);
|
| + checkUnnamed221(o.metrics);
|
| unittest.expect(o.samplingLevel, unittest.equals('foo'));
|
| unittest.expect(o.segment, unittest.equals('foo'));
|
| - checkUnnamed930(o.sort);
|
| + checkUnnamed222(o.sort);
|
| unittest.expect(o.start_date, unittest.equals('foo'));
|
| unittest.expect(o.start_index, unittest.equals(42));
|
| }
|
| @@ -2458,14 +2322,14 @@ checkMcfDataRowsConversionPathValue(api.McfDataRowsConversionPathValue o) {
|
| buildCounterMcfDataRowsConversionPathValue--;
|
| }
|
|
|
| -buildUnnamed931() {
|
| +buildUnnamed223() {
|
| var o = new core.List<api.McfDataRowsConversionPathValue>();
|
| o.add(buildMcfDataRowsConversionPathValue());
|
| o.add(buildMcfDataRowsConversionPathValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed931(core.List<api.McfDataRowsConversionPathValue> o) {
|
| +checkUnnamed223(core.List<api.McfDataRowsConversionPathValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMcfDataRowsConversionPathValue(o[0]);
|
| checkMcfDataRowsConversionPathValue(o[1]);
|
| @@ -2476,7 +2340,7 @@ buildMcfDataRows() {
|
| var o = new api.McfDataRows();
|
| buildCounterMcfDataRows++;
|
| if (buildCounterMcfDataRows < 3) {
|
| - o.conversionPathValue = buildUnnamed931();
|
| + o.conversionPathValue = buildUnnamed223();
|
| o.primitiveValue = "foo";
|
| }
|
| buildCounterMcfDataRows--;
|
| @@ -2486,46 +2350,46 @@ buildMcfDataRows() {
|
| checkMcfDataRows(api.McfDataRows o) {
|
| buildCounterMcfDataRows++;
|
| if (buildCounterMcfDataRows < 3) {
|
| - checkUnnamed931(o.conversionPathValue);
|
| + checkUnnamed223(o.conversionPathValue);
|
| unittest.expect(o.primitiveValue, unittest.equals('foo'));
|
| }
|
| buildCounterMcfDataRows--;
|
| }
|
|
|
| -buildUnnamed932() {
|
| +buildUnnamed224() {
|
| var o = new core.List<api.McfDataRows>();
|
| o.add(buildMcfDataRows());
|
| o.add(buildMcfDataRows());
|
| return o;
|
| }
|
|
|
| -checkUnnamed932(core.List<api.McfDataRows> o) {
|
| +checkUnnamed224(core.List<api.McfDataRows> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMcfDataRows(o[0]);
|
| checkMcfDataRows(o[1]);
|
| }
|
|
|
| -buildUnnamed933() {
|
| +buildUnnamed225() {
|
| var o = new core.List<core.List<api.McfDataRows>>();
|
| - o.add(buildUnnamed932());
|
| - o.add(buildUnnamed932());
|
| + o.add(buildUnnamed224());
|
| + o.add(buildUnnamed224());
|
| return o;
|
| }
|
|
|
| -checkUnnamed933(core.List<core.List<api.McfDataRows>> o) {
|
| +checkUnnamed225(core.List<core.List<api.McfDataRows>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed932(o[0]);
|
| - checkUnnamed932(o[1]);
|
| + checkUnnamed224(o[0]);
|
| + checkUnnamed224(o[1]);
|
| }
|
|
|
| -buildUnnamed934() {
|
| +buildUnnamed226() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed934(core.Map<core.String, core.String> o) {
|
| +checkUnnamed226(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -2536,7 +2400,7 @@ buildMcfData() {
|
| var o = new api.McfData();
|
| buildCounterMcfData++;
|
| if (buildCounterMcfData < 3) {
|
| - o.columnHeaders = buildUnnamed928();
|
| + o.columnHeaders = buildUnnamed220();
|
| o.containsSampledData = true;
|
| o.id = "foo";
|
| o.itemsPerPage = 42;
|
| @@ -2545,12 +2409,12 @@ buildMcfData() {
|
| o.previousLink = "foo";
|
| o.profileInfo = buildMcfDataProfileInfo();
|
| o.query = buildMcfDataQuery();
|
| - o.rows = buildUnnamed933();
|
| + o.rows = buildUnnamed225();
|
| o.sampleSize = "foo";
|
| o.sampleSpace = "foo";
|
| o.selfLink = "foo";
|
| o.totalResults = 42;
|
| - o.totalsForAllResults = buildUnnamed934();
|
| + o.totalsForAllResults = buildUnnamed226();
|
| }
|
| buildCounterMcfData--;
|
| return o;
|
| @@ -2559,7 +2423,7 @@ buildMcfData() {
|
| checkMcfData(api.McfData o) {
|
| buildCounterMcfData++;
|
| if (buildCounterMcfData < 3) {
|
| - checkUnnamed928(o.columnHeaders);
|
| + checkUnnamed220(o.columnHeaders);
|
| unittest.expect(o.containsSampledData, unittest.isTrue);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| @@ -2568,12 +2432,12 @@ checkMcfData(api.McfData o) {
|
| unittest.expect(o.previousLink, unittest.equals('foo'));
|
| checkMcfDataProfileInfo(o.profileInfo);
|
| checkMcfDataQuery(o.query);
|
| - checkUnnamed933(o.rows);
|
| + checkUnnamed225(o.rows);
|
| unittest.expect(o.sampleSize, unittest.equals('foo'));
|
| unittest.expect(o.sampleSpace, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.totalResults, unittest.equals(42));
|
| - checkUnnamed934(o.totalsForAllResults);
|
| + checkUnnamed226(o.totalsForAllResults);
|
| }
|
| buildCounterMcfData--;
|
| }
|
| @@ -2620,14 +2484,14 @@ checkProfileParentLink(api.ProfileParentLink o) {
|
| buildCounterProfileParentLink--;
|
| }
|
|
|
| -buildUnnamed935() {
|
| +buildUnnamed227() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed935(core.List<core.String> o) {
|
| +checkUnnamed227(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'));
|
| @@ -2638,7 +2502,7 @@ buildProfilePermissions() {
|
| var o = new api.ProfilePermissions();
|
| buildCounterProfilePermissions++;
|
| if (buildCounterProfilePermissions < 3) {
|
| - o.effective = buildUnnamed935();
|
| + o.effective = buildUnnamed227();
|
| }
|
| buildCounterProfilePermissions--;
|
| return o;
|
| @@ -2647,7 +2511,7 @@ buildProfilePermissions() {
|
| checkProfilePermissions(api.ProfilePermissions o) {
|
| buildCounterProfilePermissions++;
|
| if (buildCounterProfilePermissions < 3) {
|
| - checkUnnamed935(o.effective);
|
| + checkUnnamed227(o.effective);
|
| }
|
| buildCounterProfilePermissions--;
|
| }
|
| @@ -2746,14 +2610,14 @@ checkProfileFilterLink(api.ProfileFilterLink o) {
|
| buildCounterProfileFilterLink--;
|
| }
|
|
|
| -buildUnnamed936() {
|
| +buildUnnamed228() {
|
| var o = new core.List<api.ProfileFilterLink>();
|
| o.add(buildProfileFilterLink());
|
| o.add(buildProfileFilterLink());
|
| return o;
|
| }
|
|
|
| -checkUnnamed936(core.List<api.ProfileFilterLink> o) {
|
| +checkUnnamed228(core.List<api.ProfileFilterLink> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProfileFilterLink(o[0]);
|
| checkProfileFilterLink(o[1]);
|
| @@ -2764,7 +2628,7 @@ buildProfileFilterLinks() {
|
| var o = new api.ProfileFilterLinks();
|
| buildCounterProfileFilterLinks++;
|
| if (buildCounterProfileFilterLinks < 3) {
|
| - o.items = buildUnnamed936();
|
| + o.items = buildUnnamed228();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -2780,7 +2644,7 @@ buildProfileFilterLinks() {
|
| checkProfileFilterLinks(api.ProfileFilterLinks o) {
|
| buildCounterProfileFilterLinks++;
|
| if (buildCounterProfileFilterLinks < 3) {
|
| - checkUnnamed936(o.items);
|
| + checkUnnamed228(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -2848,14 +2712,14 @@ checkProfileSummary(api.ProfileSummary o) {
|
| buildCounterProfileSummary--;
|
| }
|
|
|
| -buildUnnamed937() {
|
| +buildUnnamed229() {
|
| var o = new core.List<api.Profile>();
|
| o.add(buildProfile());
|
| o.add(buildProfile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed937(core.List<api.Profile> o) {
|
| +checkUnnamed229(core.List<api.Profile> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProfile(o[0]);
|
| checkProfile(o[1]);
|
| @@ -2866,7 +2730,7 @@ buildProfiles() {
|
| var o = new api.Profiles();
|
| buildCounterProfiles++;
|
| if (buildCounterProfiles < 3) {
|
| - o.items = buildUnnamed937();
|
| + o.items = buildUnnamed229();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -2882,7 +2746,7 @@ buildProfiles() {
|
| checkProfiles(api.Profiles o) {
|
| buildCounterProfiles++;
|
| if (buildCounterProfiles < 3) {
|
| - checkUnnamed937(o.items);
|
| + checkUnnamed229(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -2917,14 +2781,14 @@ checkRealtimeDataColumnHeaders(api.RealtimeDataColumnHeaders o) {
|
| buildCounterRealtimeDataColumnHeaders--;
|
| }
|
|
|
| -buildUnnamed938() {
|
| +buildUnnamed230() {
|
| var o = new core.List<api.RealtimeDataColumnHeaders>();
|
| o.add(buildRealtimeDataColumnHeaders());
|
| o.add(buildRealtimeDataColumnHeaders());
|
| return o;
|
| }
|
|
|
| -checkUnnamed938(core.List<api.RealtimeDataColumnHeaders> o) {
|
| +checkUnnamed230(core.List<api.RealtimeDataColumnHeaders> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRealtimeDataColumnHeaders(o[0]);
|
| checkRealtimeDataColumnHeaders(o[1]);
|
| @@ -2959,27 +2823,27 @@ checkRealtimeDataProfileInfo(api.RealtimeDataProfileInfo o) {
|
| buildCounterRealtimeDataProfileInfo--;
|
| }
|
|
|
| -buildUnnamed939() {
|
| +buildUnnamed231() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed939(core.List<core.String> o) {
|
| +checkUnnamed231(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'));
|
| }
|
|
|
| -buildUnnamed940() {
|
| +buildUnnamed232() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed940(core.List<core.String> o) {
|
| +checkUnnamed232(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'));
|
| @@ -2994,8 +2858,8 @@ buildRealtimeDataQuery() {
|
| o.filters = "foo";
|
| o.ids = "foo";
|
| o.max_results = 42;
|
| - o.metrics = buildUnnamed939();
|
| - o.sort = buildUnnamed940();
|
| + o.metrics = buildUnnamed231();
|
| + o.sort = buildUnnamed232();
|
| }
|
| buildCounterRealtimeDataQuery--;
|
| return o;
|
| @@ -3008,46 +2872,46 @@ checkRealtimeDataQuery(api.RealtimeDataQuery o) {
|
| unittest.expect(o.filters, unittest.equals('foo'));
|
| unittest.expect(o.ids, unittest.equals('foo'));
|
| unittest.expect(o.max_results, unittest.equals(42));
|
| - checkUnnamed939(o.metrics);
|
| - checkUnnamed940(o.sort);
|
| + checkUnnamed231(o.metrics);
|
| + checkUnnamed232(o.sort);
|
| }
|
| buildCounterRealtimeDataQuery--;
|
| }
|
|
|
| -buildUnnamed941() {
|
| +buildUnnamed233() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed941(core.List<core.String> o) {
|
| +checkUnnamed233(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'));
|
| }
|
|
|
| -buildUnnamed942() {
|
| +buildUnnamed234() {
|
| var o = new core.List<core.List<core.String>>();
|
| - o.add(buildUnnamed941());
|
| - o.add(buildUnnamed941());
|
| + o.add(buildUnnamed233());
|
| + o.add(buildUnnamed233());
|
| return o;
|
| }
|
|
|
| -checkUnnamed942(core.List<core.List<core.String>> o) {
|
| +checkUnnamed234(core.List<core.List<core.String>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed941(o[0]);
|
| - checkUnnamed941(o[1]);
|
| + checkUnnamed233(o[0]);
|
| + checkUnnamed233(o[1]);
|
| }
|
|
|
| -buildUnnamed943() {
|
| +buildUnnamed235() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed943(core.Map<core.String, core.String> o) {
|
| +checkUnnamed235(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -3058,15 +2922,15 @@ buildRealtimeData() {
|
| var o = new api.RealtimeData();
|
| buildCounterRealtimeData++;
|
| if (buildCounterRealtimeData < 3) {
|
| - o.columnHeaders = buildUnnamed938();
|
| + o.columnHeaders = buildUnnamed230();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.profileInfo = buildRealtimeDataProfileInfo();
|
| o.query = buildRealtimeDataQuery();
|
| - o.rows = buildUnnamed942();
|
| + o.rows = buildUnnamed234();
|
| o.selfLink = "foo";
|
| o.totalResults = 42;
|
| - o.totalsForAllResults = buildUnnamed943();
|
| + o.totalsForAllResults = buildUnnamed235();
|
| }
|
| buildCounterRealtimeData--;
|
| return o;
|
| @@ -3075,15 +2939,15 @@ buildRealtimeData() {
|
| checkRealtimeData(api.RealtimeData o) {
|
| buildCounterRealtimeData++;
|
| if (buildCounterRealtimeData < 3) {
|
| - checkUnnamed938(o.columnHeaders);
|
| + checkUnnamed230(o.columnHeaders);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkRealtimeDataProfileInfo(o.profileInfo);
|
| checkRealtimeDataQuery(o.query);
|
| - checkUnnamed942(o.rows);
|
| + checkUnnamed234(o.rows);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.totalResults, unittest.equals(42));
|
| - checkUnnamed943(o.totalsForAllResults);
|
| + checkUnnamed235(o.totalsForAllResults);
|
| }
|
| buildCounterRealtimeData--;
|
| }
|
| @@ -3123,14 +2987,14 @@ checkSegment(api.Segment o) {
|
| buildCounterSegment--;
|
| }
|
|
|
| -buildUnnamed944() {
|
| +buildUnnamed236() {
|
| var o = new core.List<api.Segment>();
|
| o.add(buildSegment());
|
| o.add(buildSegment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed944(core.List<api.Segment> o) {
|
| +checkUnnamed236(core.List<api.Segment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSegment(o[0]);
|
| checkSegment(o[1]);
|
| @@ -3141,7 +3005,7 @@ buildSegments() {
|
| var o = new api.Segments();
|
| buildCounterSegments++;
|
| if (buildCounterSegments < 3) {
|
| - o.items = buildUnnamed944();
|
| + o.items = buildUnnamed236();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -3157,7 +3021,7 @@ buildSegments() {
|
| checkSegments(api.Segments o) {
|
| buildCounterSegments++;
|
| if (buildCounterSegments < 3) {
|
| - checkUnnamed944(o.items);
|
| + checkUnnamed236(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -3264,14 +3128,14 @@ checkUnsampledReport(api.UnsampledReport o) {
|
| buildCounterUnsampledReport--;
|
| }
|
|
|
| -buildUnnamed945() {
|
| +buildUnnamed237() {
|
| var o = new core.List<api.UnsampledReport>();
|
| o.add(buildUnsampledReport());
|
| o.add(buildUnsampledReport());
|
| return o;
|
| }
|
|
|
| -checkUnnamed945(core.List<api.UnsampledReport> o) {
|
| +checkUnnamed237(core.List<api.UnsampledReport> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUnsampledReport(o[0]);
|
| checkUnsampledReport(o[1]);
|
| @@ -3282,7 +3146,7 @@ buildUnsampledReports() {
|
| var o = new api.UnsampledReports();
|
| buildCounterUnsampledReports++;
|
| if (buildCounterUnsampledReports < 3) {
|
| - o.items = buildUnnamed945();
|
| + o.items = buildUnnamed237();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -3298,7 +3162,7 @@ buildUnsampledReports() {
|
| checkUnsampledReports(api.UnsampledReports o) {
|
| buildCounterUnsampledReports++;
|
| if (buildCounterUnsampledReports < 3) {
|
| - checkUnnamed945(o.items);
|
| + checkUnnamed237(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -3310,14 +3174,14 @@ checkUnsampledReports(api.UnsampledReports o) {
|
| buildCounterUnsampledReports--;
|
| }
|
|
|
| -buildUnnamed946() {
|
| +buildUnnamed238() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed946(core.List<core.String> o) {
|
| +checkUnnamed238(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'));
|
| @@ -3330,7 +3194,7 @@ buildUpload() {
|
| if (buildCounterUpload < 3) {
|
| o.accountId = "foo";
|
| o.customDataSourceId = "foo";
|
| - o.errors = buildUnnamed946();
|
| + o.errors = buildUnnamed238();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.status = "foo";
|
| @@ -3344,7 +3208,7 @@ checkUpload(api.Upload o) {
|
| if (buildCounterUpload < 3) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| unittest.expect(o.customDataSourceId, unittest.equals('foo'));
|
| - checkUnnamed946(o.errors);
|
| + checkUnnamed238(o.errors);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| @@ -3352,14 +3216,14 @@ checkUpload(api.Upload o) {
|
| buildCounterUpload--;
|
| }
|
|
|
| -buildUnnamed947() {
|
| +buildUnnamed239() {
|
| var o = new core.List<api.Upload>();
|
| o.add(buildUpload());
|
| o.add(buildUpload());
|
| return o;
|
| }
|
|
|
| -checkUnnamed947(core.List<api.Upload> o) {
|
| +checkUnnamed239(core.List<api.Upload> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUpload(o[0]);
|
| checkUpload(o[1]);
|
| @@ -3370,7 +3234,7 @@ buildUploads() {
|
| var o = new api.Uploads();
|
| buildCounterUploads++;
|
| if (buildCounterUploads < 3) {
|
| - o.items = buildUnnamed947();
|
| + o.items = buildUnnamed239();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -3385,7 +3249,7 @@ buildUploads() {
|
| checkUploads(api.Uploads o) {
|
| buildCounterUploads++;
|
| if (buildCounterUploads < 3) {
|
| - checkUnnamed947(o.items);
|
| + checkUnnamed239(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -3448,14 +3312,14 @@ checkWebPropertyRef(api.WebPropertyRef o) {
|
| buildCounterWebPropertyRef--;
|
| }
|
|
|
| -buildUnnamed948() {
|
| +buildUnnamed240() {
|
| var o = new core.List<api.ProfileSummary>();
|
| o.add(buildProfileSummary());
|
| o.add(buildProfileSummary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed948(core.List<api.ProfileSummary> o) {
|
| +checkUnnamed240(core.List<api.ProfileSummary> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProfileSummary(o[0]);
|
| checkProfileSummary(o[1]);
|
| @@ -3471,7 +3335,7 @@ buildWebPropertySummary() {
|
| o.kind = "foo";
|
| o.level = "foo";
|
| o.name = "foo";
|
| - o.profiles = buildUnnamed948();
|
| + o.profiles = buildUnnamed240();
|
| o.websiteUrl = "foo";
|
| }
|
| buildCounterWebPropertySummary--;
|
| @@ -3486,20 +3350,20 @@ checkWebPropertySummary(api.WebPropertySummary o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.level, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed948(o.profiles);
|
| + checkUnnamed240(o.profiles);
|
| unittest.expect(o.websiteUrl, unittest.equals('foo'));
|
| }
|
| buildCounterWebPropertySummary--;
|
| }
|
|
|
| -buildUnnamed949() {
|
| +buildUnnamed241() {
|
| var o = new core.List<api.Webproperty>();
|
| o.add(buildWebproperty());
|
| o.add(buildWebproperty());
|
| return o;
|
| }
|
|
|
| -checkUnnamed949(core.List<api.Webproperty> o) {
|
| +checkUnnamed241(core.List<api.Webproperty> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkWebproperty(o[0]);
|
| checkWebproperty(o[1]);
|
| @@ -3510,7 +3374,7 @@ buildWebproperties() {
|
| var o = new api.Webproperties();
|
| buildCounterWebproperties++;
|
| if (buildCounterWebproperties < 3) {
|
| - o.items = buildUnnamed949();
|
| + o.items = buildUnnamed241();
|
| o.itemsPerPage = 42;
|
| o.kind = "foo";
|
| o.nextLink = "foo";
|
| @@ -3526,7 +3390,7 @@ buildWebproperties() {
|
| checkWebproperties(api.Webproperties o) {
|
| buildCounterWebproperties++;
|
| if (buildCounterWebproperties < 3) {
|
| - checkUnnamed949(o.items);
|
| + checkUnnamed241(o.items);
|
| unittest.expect(o.itemsPerPage, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextLink, unittest.equals('foo'));
|
| @@ -3580,14 +3444,14 @@ checkWebpropertyParentLink(api.WebpropertyParentLink o) {
|
| buildCounterWebpropertyParentLink--;
|
| }
|
|
|
| -buildUnnamed950() {
|
| +buildUnnamed242() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed950(core.List<core.String> o) {
|
| +checkUnnamed242(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'));
|
| @@ -3598,7 +3462,7 @@ buildWebpropertyPermissions() {
|
| var o = new api.WebpropertyPermissions();
|
| buildCounterWebpropertyPermissions++;
|
| if (buildCounterWebpropertyPermissions < 3) {
|
| - o.effective = buildUnnamed950();
|
| + o.effective = buildUnnamed242();
|
| }
|
| buildCounterWebpropertyPermissions--;
|
| return o;
|
| @@ -3607,7 +3471,7 @@ buildWebpropertyPermissions() {
|
| checkWebpropertyPermissions(api.WebpropertyPermissions o) {
|
| buildCounterWebpropertyPermissions++;
|
| if (buildCounterWebpropertyPermissions < 3) {
|
| - checkUnnamed950(o.effective);
|
| + checkUnnamed242(o.effective);
|
| }
|
| buildCounterWebpropertyPermissions--;
|
| }
|
| @@ -3861,51 +3725,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DailyUploadParentLink", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDailyUploadParentLink();
|
| - var od = new api.DailyUploadParentLink.fromJson(o.toJson());
|
| - checkDailyUploadParentLink(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-DailyUploadRecentChanges", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDailyUploadRecentChanges();
|
| - var od = new api.DailyUploadRecentChanges.fromJson(o.toJson());
|
| - checkDailyUploadRecentChanges(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-DailyUpload", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDailyUpload();
|
| - var od = new api.DailyUpload.fromJson(o.toJson());
|
| - checkDailyUpload(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-DailyUploadAppend", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDailyUploadAppend();
|
| - var od = new api.DailyUploadAppend.fromJson(o.toJson());
|
| - checkDailyUploadAppend(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-DailyUploads", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDailyUploads();
|
| - var od = new api.DailyUploads.fromJson(o.toJson());
|
| - checkDailyUploads(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-EntityAdWordsLinkEntity", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildEntityAdWordsLinkEntity();
|
| @@ -4557,7 +4376,7 @@ main() {
|
| unittest.group("resource-DataGaResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.DataGaResourceApi res = new api.AnalyticsApi(mock).data.ga;
|
| var arg_ids = "foo";
|
| var arg_start_date = "foo";
|
| @@ -4617,7 +4436,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGaData());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, output: arg_output, samplingLevel: arg_samplingLevel, segment: arg_segment, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync(((api.GaData response) {
|
| checkGaData(response);
|
| @@ -4630,7 +4449,7 @@ main() {
|
| unittest.group("resource-DataMcfResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.DataMcfResourceApi res = new api.AnalyticsApi(mock).data.mcf;
|
| var arg_ids = "foo";
|
| var arg_start_date = "foo";
|
| @@ -4686,7 +4505,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildMcfData());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel: arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAsync(((api.McfData response) {
|
| checkMcfData(response);
|
| @@ -4699,7 +4518,7 @@ main() {
|
| unittest.group("resource-DataRealtimeResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.DataRealtimeResourceApi res = new api.AnalyticsApi(mock).data.realtime;
|
| var arg_ids = "foo";
|
| var arg_metrics = "foo";
|
| @@ -4747,7 +4566,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildRealtimeData());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync(((api.RealtimeData response) {
|
| checkRealtimeData(response);
|
| @@ -4760,7 +4579,7 @@ main() {
|
| unittest.group("resource-ManagementAccountSummariesResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock).management.accountSummaries;
|
| var arg_max_results = 42;
|
| var arg_start_index = 42;
|
| @@ -4800,7 +4619,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildAccountSummaries());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.AccountSummaries response) {
|
| checkAccountSummaries(response);
|
| @@ -4813,7 +4632,7 @@ main() {
|
| unittest.group("resource-ManagementAccountUserLinksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_linkId = "foo";
|
| @@ -4861,14 +4680,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -4916,7 +4735,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -4925,7 +4744,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_max_results = 42;
|
| @@ -4973,7 +4792,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLinks());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) {
|
| checkEntityUserLinks(response);
|
| @@ -4982,7 +4801,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock).management.accountUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -5034,7 +4853,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -5047,7 +4866,7 @@ main() {
|
| unittest.group("resource-ManagementAccountsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).management.accounts;
|
| var arg_max_results = 42;
|
| var arg_start_index = 42;
|
| @@ -5087,7 +4906,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildAccounts());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Accounts response) {
|
| checkAccounts(response);
|
| @@ -5100,7 +4919,7 @@ main() {
|
| unittest.group("resource-ManagementCustomDataSourcesResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDataSourcesResourceApi res = new api.AnalyticsApi(mock).management.customDataSources;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -5156,7 +4975,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDataSources());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomDataSources response) {
|
| checkCustomDataSources(response);
|
| @@ -5169,7 +4988,7 @@ main() {
|
| unittest.group("resource-ManagementCustomDimensionsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock).management.customDimensions;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -5225,7 +5044,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDimension());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unittest.expectAsync(((api.CustomDimension response) {
|
| checkCustomDimension(response);
|
| @@ -5234,7 +5053,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock).management.customDimensions;
|
| var arg_request = buildCustomDimension();
|
| var arg_accountId = "foo";
|
| @@ -5290,7 +5109,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDimension());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.CustomDimension response) {
|
| checkCustomDimension(response);
|
| @@ -5299,7 +5118,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock).management.customDimensions;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -5355,7 +5174,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDimensions());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomDimensions response) {
|
| checkCustomDimensions(response);
|
| @@ -5364,7 +5183,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock).management.customDimensions;
|
| var arg_request = buildCustomDimension();
|
| var arg_accountId = "foo";
|
| @@ -5426,7 +5245,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDimension());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomDimension response) {
|
| checkCustomDimension(response);
|
| @@ -5435,7 +5254,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock).management.customDimensions;
|
| var arg_request = buildCustomDimension();
|
| var arg_accountId = "foo";
|
| @@ -5497,7 +5316,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomDimension());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomDimension response) {
|
| checkCustomDimension(response);
|
| @@ -5510,7 +5329,7 @@ main() {
|
| unittest.group("resource-ManagementCustomMetricsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).management.customMetrics;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -5566,7 +5385,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomMetric());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittest.expectAsync(((api.CustomMetric response) {
|
| checkCustomMetric(response);
|
| @@ -5575,7 +5394,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).management.customMetrics;
|
| var arg_request = buildCustomMetric();
|
| var arg_accountId = "foo";
|
| @@ -5631,7 +5450,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomMetric());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.CustomMetric response) {
|
| checkCustomMetric(response);
|
| @@ -5640,7 +5459,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).management.customMetrics;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -5696,7 +5515,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomMetrics());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.CustomMetrics response) {
|
| checkCustomMetrics(response);
|
| @@ -5705,7 +5524,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).management.customMetrics;
|
| var arg_request = buildCustomMetric();
|
| var arg_accountId = "foo";
|
| @@ -5767,7 +5586,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomMetric());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomMetric response) {
|
| checkCustomMetric(response);
|
| @@ -5776,7 +5595,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).management.customMetrics;
|
| var arg_request = buildCustomMetric();
|
| var arg_accountId = "foo";
|
| @@ -5838,7 +5657,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCustomMetric());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.expectAsync(((api.CustomMetric response) {
|
| checkCustomMetric(response);
|
| @@ -5848,249 +5667,10 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-ManagementDailyUploadsResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).management.dailyUploads;
|
| - var arg_accountId = "foo";
|
| - var arg_webPropertyId = "foo";
|
| - var arg_customDataSourceId = "foo";
|
| - var arg_date = "foo";
|
| - var arg_type = "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 + 13), unittest.equals("analytics/v3/"));
|
| - pathOffset += 13;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("management/accounts/"));
|
| - pathOffset += 20;
|
| - index = path.indexOf("/webproperties/", 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("/webproperties/"));
|
| - pathOffset += 15;
|
| - index = path.indexOf("/customDataSources/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/customDataSources/"));
|
| - pathOffset += 19;
|
| - index = path.indexOf("/dailyUploads/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/dailyUploads/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_date"));
|
| -
|
| - 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["type"].first, unittest.equals(arg_type));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_date, arg_type).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).management.dailyUploads;
|
| - var arg_accountId = "foo";
|
| - var arg_webPropertyId = "foo";
|
| - var arg_customDataSourceId = "foo";
|
| - var arg_start_date = "foo";
|
| - var arg_end_date = "foo";
|
| - var arg_max_results = 42;
|
| - var arg_start_index = 42;
|
| - 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 + 13), unittest.equals("analytics/v3/"));
|
| - pathOffset += 13;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("management/accounts/"));
|
| - pathOffset += 20;
|
| - index = path.indexOf("/webproperties/", 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("/webproperties/"));
|
| - pathOffset += 15;
|
| - index = path.indexOf("/customDataSources/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/customDataSources/"));
|
| - pathOffset += 19;
|
| - index = path.indexOf("/dailyUploads", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/dailyUploads"));
|
| - pathOffset += 13;
|
| -
|
| - 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["start-date"].first, unittest.equals(arg_start_date));
|
| - unittest.expect(queryMap["end-date"].first, unittest.equals(arg_end_date));
|
| - unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results));
|
| - unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDailyUploads());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_start_date, arg_end_date, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.DailyUploads response) {
|
| - checkDailyUploads(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--upload", () {
|
| - // TODO: Implement tests for media upload;
|
| - // TODO: Implement tests for media download;
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).management.dailyUploads;
|
| - var arg_accountId = "foo";
|
| - var arg_webPropertyId = "foo";
|
| - var arg_customDataSourceId = "foo";
|
| - var arg_date = "foo";
|
| - var arg_appendNumber = 42;
|
| - var arg_type = "foo";
|
| - var arg_reset = true;
|
| - 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 + 13), unittest.equals("analytics/v3/"));
|
| - pathOffset += 13;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("management/accounts/"));
|
| - pathOffset += 20;
|
| - index = path.indexOf("/webproperties/", 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("/webproperties/"));
|
| - pathOffset += 15;
|
| - index = path.indexOf("/customDataSources/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/customDataSources/"));
|
| - pathOffset += 19;
|
| - index = path.indexOf("/dailyUploads/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/dailyUploads/"));
|
| - pathOffset += 14;
|
| - index = path.indexOf("/uploads", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_date"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/uploads"));
|
| - 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(core.int.parse(queryMap["appendNumber"].first), unittest.equals(arg_appendNumber));
|
| - unittest.expect(queryMap["type"].first, unittest.equals(arg_type));
|
| - unittest.expect(queryMap["reset"].first, unittest.equals("$arg_reset"));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDailyUploadAppend());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.upload(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_date, arg_appendNumber, arg_type, reset: arg_reset).then(unittest.expectAsync(((api.DailyUploadAppend response) {
|
| - checkDailyUploadAppend(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| unittest.group("resource-ManagementExperimentsResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -6154,14 +5734,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -6225,7 +5805,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildExperiment());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) {
|
| checkExperiment(response);
|
| @@ -6234,7 +5814,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_request = buildExperiment();
|
| var arg_accountId = "foo";
|
| @@ -6298,7 +5878,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildExperiment());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Experiment response) {
|
| checkExperiment(response);
|
| @@ -6307,7 +5887,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -6371,7 +5951,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildExperiments());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Experiments response) {
|
| checkExperiments(response);
|
| @@ -6380,7 +5960,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_request = buildExperiment();
|
| var arg_accountId = "foo";
|
| @@ -6448,7 +6028,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildExperiment());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) {
|
| checkExperiment(response);
|
| @@ -6457,7 +6037,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).management.experiments;
|
| var arg_request = buildExperiment();
|
| var arg_accountId = "foo";
|
| @@ -6525,7 +6105,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildExperiment());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId).then(unittest.expectAsync(((api.Experiment response) {
|
| checkExperiment(response);
|
| @@ -6538,7 +6118,7 @@ main() {
|
| unittest.group("resource-ManagementFiltersResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_accountId = "foo";
|
| var arg_filterId = "foo";
|
| @@ -6586,7 +6166,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilter());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) {
|
| checkFilter(response);
|
| @@ -6595,7 +6175,7 @@ main() {
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_accountId = "foo";
|
| var arg_filterId = "foo";
|
| @@ -6643,7 +6223,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilter());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) {
|
| checkFilter(response);
|
| @@ -6652,7 +6232,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_request = buildFilter();
|
| var arg_accountId = "foo";
|
| @@ -6700,7 +6280,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilter());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Filter response) {
|
| checkFilter(response);
|
| @@ -6709,7 +6289,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_accountId = "foo";
|
| var arg_max_results = 42;
|
| @@ -6757,7 +6337,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilters());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Filters response) {
|
| checkFilters(response);
|
| @@ -6766,7 +6346,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_request = buildFilter();
|
| var arg_accountId = "foo";
|
| @@ -6818,7 +6398,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilter());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) {
|
| checkFilter(response);
|
| @@ -6827,7 +6407,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).management.filters;
|
| var arg_request = buildFilter();
|
| var arg_accountId = "foo";
|
| @@ -6879,7 +6459,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildFilter());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filter response) {
|
| checkFilter(response);
|
| @@ -6892,7 +6472,7 @@ main() {
|
| unittest.group("resource-ManagementGoalsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management.goals;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -6956,7 +6536,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoal());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) {
|
| checkGoal(response);
|
| @@ -6965,7 +6545,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management.goals;
|
| var arg_request = buildGoal();
|
| var arg_accountId = "foo";
|
| @@ -7029,7 +6609,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoal());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Goal response) {
|
| checkGoal(response);
|
| @@ -7038,7 +6618,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management.goals;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7102,7 +6682,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoals());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Goals response) {
|
| checkGoals(response);
|
| @@ -7111,7 +6691,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management.goals;
|
| var arg_request = buildGoal();
|
| var arg_accountId = "foo";
|
| @@ -7179,7 +6759,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoal());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) {
|
| checkGoal(response);
|
| @@ -7188,7 +6768,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management.goals;
|
| var arg_request = buildGoal();
|
| var arg_accountId = "foo";
|
| @@ -7256,7 +6836,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoal());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(unittest.expectAsync(((api.Goal response) {
|
| checkGoal(response);
|
| @@ -7269,7 +6849,7 @@ main() {
|
| unittest.group("resource-ManagementProfileFilterLinksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7333,14 +6913,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7404,7 +6984,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfileFilterLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
|
| checkProfileFilterLink(response);
|
| @@ -7413,7 +6993,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_request = buildProfileFilterLink();
|
| var arg_accountId = "foo";
|
| @@ -7477,7 +7057,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfileFilterLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
|
| checkProfileFilterLink(response);
|
| @@ -7486,7 +7066,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7550,7 +7130,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfileFilterLinks());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.ProfileFilterLinks response) {
|
| checkProfileFilterLinks(response);
|
| @@ -7559,7 +7139,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_request = buildProfileFilterLink();
|
| var arg_accountId = "foo";
|
| @@ -7627,7 +7207,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfileFilterLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
|
| checkProfileFilterLink(response);
|
| @@ -7636,7 +7216,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(mock).management.profileFilterLinks;
|
| var arg_request = buildProfileFilterLink();
|
| var arg_accountId = "foo";
|
| @@ -7704,7 +7284,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfileFilterLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
|
| checkProfileFilterLink(response);
|
| @@ -7717,7 +7297,7 @@ main() {
|
| unittest.group("resource-ManagementProfileUserLinksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock).management.profileUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7781,14 +7361,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock).management.profileUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -7852,7 +7432,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -7861,7 +7441,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock).management.profileUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -7925,7 +7505,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLinks());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) {
|
| checkEntityUserLinks(response);
|
| @@ -7934,7 +7514,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock).management.profileUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -8002,7 +7582,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -8015,7 +7595,7 @@ main() {
|
| unittest.group("resource-ManagementProfilesResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8071,14 +7651,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8134,7 +7714,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfile());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) {
|
| checkProfile(response);
|
| @@ -8143,7 +7723,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_request = buildProfile();
|
| var arg_accountId = "foo";
|
| @@ -8199,7 +7779,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfile());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Profile response) {
|
| checkProfile(response);
|
| @@ -8208,7 +7788,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8264,7 +7844,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfiles());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Profiles response) {
|
| checkProfiles(response);
|
| @@ -8273,7 +7853,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_request = buildProfile();
|
| var arg_accountId = "foo";
|
| @@ -8333,7 +7913,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfile());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) {
|
| checkProfile(response);
|
| @@ -8342,7 +7922,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).management.profiles;
|
| var arg_request = buildProfile();
|
| var arg_accountId = "foo";
|
| @@ -8402,7 +7982,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildProfile());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.Profile response) {
|
| checkProfile(response);
|
| @@ -8415,7 +7995,7 @@ main() {
|
| unittest.group("resource-ManagementSegmentsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).management.segments;
|
| var arg_max_results = 42;
|
| var arg_start_index = 42;
|
| @@ -8455,7 +8035,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSegments());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Segments response) {
|
| checkSegments(response);
|
| @@ -8468,7 +8048,7 @@ main() {
|
| unittest.group("resource-ManagementUnsampledReportsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock).management.unsampledReports;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8532,7 +8112,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUnsampledReport());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledReportId).then(unittest.expectAsync(((api.UnsampledReport response) {
|
| checkUnsampledReport(response);
|
| @@ -8541,7 +8121,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock).management.unsampledReports;
|
| var arg_request = buildUnsampledReport();
|
| var arg_accountId = "foo";
|
| @@ -8605,7 +8185,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUnsampledReport());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.expectAsync(((api.UnsampledReport response) {
|
| checkUnsampledReport(response);
|
| @@ -8614,7 +8194,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock).management.unsampledReports;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8678,7 +8258,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUnsampledReports());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.UnsampledReports response) {
|
| checkUnsampledReports(response);
|
| @@ -8691,7 +8271,7 @@ main() {
|
| unittest.group("resource-ManagementUploadsResourceApi", () {
|
| unittest.test("method--deleteUploadData", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).management.uploads;
|
| var arg_request = buildAnalyticsDataimportDeleteUploadDataRequest();
|
| var arg_accountId = "foo";
|
| @@ -8755,14 +8335,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).management.uploads;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8826,7 +8406,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUpload());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uploadId).then(unittest.expectAsync(((api.Upload response) {
|
| checkUpload(response);
|
| @@ -8835,7 +8415,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).management.uploads;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -8899,85 +8479,18 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUploads());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Uploads response) {
|
| checkUploads(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--migrateDataImport", () {
|
| -
|
| - var mock = new common_test.HttpServerMock();
|
| - api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).management.uploads;
|
| - var arg_accountId = "foo";
|
| - var arg_webPropertyId = "foo";
|
| - var arg_customDataSourceId = "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 + 13), unittest.equals("analytics/v3/"));
|
| - pathOffset += 13;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("management/accounts/"));
|
| - pathOffset += 20;
|
| - index = path.indexOf("/webproperties/", 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("/webproperties/"));
|
| - pathOffset += 15;
|
| - index = path.indexOf("/customDataSources/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/customDataSources/"));
|
| - pathOffset += 19;
|
| - index = path.indexOf("/migrateDataImport", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/migrateDataImport"));
|
| - pathOffset += 18;
|
| -
|
| - 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 = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| - }), true);
|
| - res.migrateDataImport(arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| unittest.test("method--uploadData", () {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).management.uploads;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9037,7 +8550,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildUpload());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).then(unittest.expectAsync(((api.Upload response) {
|
| checkUpload(response);
|
| @@ -9050,7 +8563,7 @@ main() {
|
| unittest.group("resource-ManagementWebPropertyAdWordsLinksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9106,14 +8619,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9169,7 +8682,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityAdWordsLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
|
| checkEntityAdWordsLink(response);
|
| @@ -9178,7 +8691,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_request = buildEntityAdWordsLink();
|
| var arg_accountId = "foo";
|
| @@ -9234,7 +8747,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityAdWordsLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
|
| checkEntityAdWordsLink(response);
|
| @@ -9243,7 +8756,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9299,7 +8812,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityAdWordsLinks());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityAdWordsLinks response) {
|
| checkEntityAdWordsLinks(response);
|
| @@ -9308,7 +8821,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_request = buildEntityAdWordsLink();
|
| var arg_accountId = "foo";
|
| @@ -9368,7 +8881,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityAdWordsLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
|
| checkEntityAdWordsLink(response);
|
| @@ -9377,7 +8890,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks;
|
| var arg_request = buildEntityAdWordsLink();
|
| var arg_accountId = "foo";
|
| @@ -9437,7 +8950,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityAdWordsLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
|
| checkEntityAdWordsLink(response);
|
| @@ -9450,7 +8963,7 @@ main() {
|
| unittest.group("resource-ManagementWebpropertiesResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9498,7 +9011,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildWebproperty());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) {
|
| checkWebproperty(response);
|
| @@ -9507,7 +9020,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties;
|
| var arg_request = buildWebproperty();
|
| var arg_accountId = "foo";
|
| @@ -9555,7 +9068,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildWebproperty());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Webproperty response) {
|
| checkWebproperty(response);
|
| @@ -9564,7 +9077,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties;
|
| var arg_accountId = "foo";
|
| var arg_max_results = 42;
|
| @@ -9612,7 +9125,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildWebproperties());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Webproperties response) {
|
| checkWebproperties(response);
|
| @@ -9621,7 +9134,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties;
|
| var arg_request = buildWebproperty();
|
| var arg_accountId = "foo";
|
| @@ -9673,7 +9186,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildWebproperty());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) {
|
| checkWebproperty(response);
|
| @@ -9682,7 +9195,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).management.webproperties;
|
| var arg_request = buildWebproperty();
|
| var arg_accountId = "foo";
|
| @@ -9734,7 +9247,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildWebproperty());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.Webproperty response) {
|
| checkWebproperty(response);
|
| @@ -9747,7 +9260,7 @@ main() {
|
| unittest.group("resource-ManagementWebpropertyUserLinksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(mock).management.webpropertyUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9803,14 +9316,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(mock).management.webpropertyUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -9866,7 +9379,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -9875,7 +9388,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(mock).management.webpropertyUserLinks;
|
| var arg_accountId = "foo";
|
| var arg_webPropertyId = "foo";
|
| @@ -9931,7 +9444,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLinks());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks response) {
|
| checkEntityUserLinks(response);
|
| @@ -9940,7 +9453,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(mock).management.webpropertyUserLinks;
|
| var arg_request = buildEntityUserLink();
|
| var arg_accountId = "foo";
|
| @@ -10000,7 +9513,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEntityUserLink());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) {
|
| checkEntityUserLink(response);
|
| @@ -10013,7 +9526,7 @@ main() {
|
| unittest.group("resource-MetadataColumnsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.columns;
|
| var arg_reportType = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -10057,7 +9570,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumns());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_reportType).then(unittest.expectAsync(((api.Columns response) {
|
| checkColumns(response);
|
| @@ -10070,7 +9583,7 @@ main() {
|
| unittest.group("resource-ProvisioningResourceApi", () {
|
| unittest.test("method--createAccountTicket", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning;
|
| var arg_request = buildAccountTicket();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -10110,7 +9623,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildAccountTicket());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.createAccountTicket(arg_request).then(unittest.expectAsync(((api.AccountTicket response) {
|
| checkAccountTicket(response);
|
|
|