| Index: generated/googleapis/test/dfareporting/v2_2_test.dart
|
| diff --git a/generated/googleapis/test/dfareporting/v2_0_test.dart b/generated/googleapis/test/dfareporting/v2_2_test.dart
|
| similarity index 81%
|
| copy from generated/googleapis/test/dfareporting/v2_0_test.dart
|
| copy to generated/googleapis/test/dfareporting/v2_2_test.dart
|
| index f196da1587798e0fa08db9c53097e71ca1241f96..78acdb6b6abcf1e233a3c9024e26a4a3345f9474 100644
|
| --- a/generated/googleapis/test/dfareporting/v2_0_test.dart
|
| +++ b/generated/googleapis/test/dfareporting/v2_2_test.dart
|
| @@ -1,4 +1,4 @@
|
| -library googleapis.dfareporting.v2_0.test;
|
| +library googleapis.dfareporting.v2_2.test;
|
|
|
| import "dart:core" as core;
|
| import "dart:collection" as collection;
|
| @@ -9,7 +9,7 @@ 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/dfareporting/v2_0.dart' as api;
|
| +import 'package:googleapis/dfareporting/v2_2.dart' as api;
|
|
|
| class HttpServerMock extends http.BaseClient {
|
| core.Function _callback;
|
| @@ -51,27 +51,27 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed258() {
|
| +buildUnnamed1304() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed258(core.List<core.String> o) {
|
| +checkUnnamed1304(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'));
|
| }
|
|
|
| -buildUnnamed259() {
|
| +buildUnnamed1305() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed259(core.List<core.String> o) {
|
| +checkUnnamed1305(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'));
|
| @@ -82,12 +82,12 @@ buildAccount() {
|
| var o = new api.Account();
|
| buildCounterAccount++;
|
| if (buildCounterAccount < 3) {
|
| - o.accountPermissionIds = buildUnnamed258();
|
| + o.accountPermissionIds = buildUnnamed1304();
|
| o.accountProfile = "foo";
|
| o.active = true;
|
| o.activeAdsLimitTier = "foo";
|
| o.activeViewOptOut = true;
|
| - o.availablePermissionIds = buildUnnamed259();
|
| + o.availablePermissionIds = buildUnnamed1305();
|
| o.comscoreVceEnabled = true;
|
| o.countryId = "foo";
|
| o.currencyId = "foo";
|
| @@ -109,12 +109,12 @@ buildAccount() {
|
| checkAccount(api.Account o) {
|
| buildCounterAccount++;
|
| if (buildCounterAccount < 3) {
|
| - checkUnnamed258(o.accountPermissionIds);
|
| + checkUnnamed1304(o.accountPermissionIds);
|
| unittest.expect(o.accountProfile, unittest.equals('foo'));
|
| unittest.expect(o.active, unittest.isTrue);
|
| unittest.expect(o.activeAdsLimitTier, unittest.equals('foo'));
|
| unittest.expect(o.activeViewOptOut, unittest.isTrue);
|
| - checkUnnamed259(o.availablePermissionIds);
|
| + checkUnnamed1305(o.availablePermissionIds);
|
| unittest.expect(o.comscoreVceEnabled, unittest.isTrue);
|
| unittest.expect(o.countryId, unittest.equals('foo'));
|
| unittest.expect(o.currencyId, unittest.equals('foo'));
|
| @@ -159,14 +159,14 @@ checkAccountActiveAdSummary(api.AccountActiveAdSummary o) {
|
| buildCounterAccountActiveAdSummary--;
|
| }
|
|
|
| -buildUnnamed260() {
|
| +buildUnnamed1306() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed260(core.List<core.String> o) {
|
| +checkUnnamed1306(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'));
|
| @@ -177,7 +177,7 @@ buildAccountPermission() {
|
| var o = new api.AccountPermission();
|
| buildCounterAccountPermission++;
|
| if (buildCounterAccountPermission < 3) {
|
| - o.accountProfiles = buildUnnamed260();
|
| + o.accountProfiles = buildUnnamed1306();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.level = "foo";
|
| @@ -191,7 +191,7 @@ buildAccountPermission() {
|
| checkAccountPermission(api.AccountPermission o) {
|
| buildCounterAccountPermission++;
|
| if (buildCounterAccountPermission < 3) {
|
| - checkUnnamed260(o.accountProfiles);
|
| + checkUnnamed1306(o.accountProfiles);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.level, unittest.equals('foo'));
|
| @@ -224,14 +224,14 @@ checkAccountPermissionGroup(api.AccountPermissionGroup o) {
|
| buildCounterAccountPermissionGroup--;
|
| }
|
|
|
| -buildUnnamed261() {
|
| +buildUnnamed1307() {
|
| var o = new core.List<api.AccountPermissionGroup>();
|
| o.add(buildAccountPermissionGroup());
|
| o.add(buildAccountPermissionGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed261(core.List<api.AccountPermissionGroup> o) {
|
| +checkUnnamed1307(core.List<api.AccountPermissionGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccountPermissionGroup(o[0]);
|
| checkAccountPermissionGroup(o[1]);
|
| @@ -242,7 +242,7 @@ buildAccountPermissionGroupsListResponse() {
|
| var o = new api.AccountPermissionGroupsListResponse();
|
| buildCounterAccountPermissionGroupsListResponse++;
|
| if (buildCounterAccountPermissionGroupsListResponse < 3) {
|
| - o.accountPermissionGroups = buildUnnamed261();
|
| + o.accountPermissionGroups = buildUnnamed1307();
|
| o.kind = "foo";
|
| }
|
| buildCounterAccountPermissionGroupsListResponse--;
|
| @@ -252,20 +252,20 @@ buildAccountPermissionGroupsListResponse() {
|
| checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) {
|
| buildCounterAccountPermissionGroupsListResponse++;
|
| if (buildCounterAccountPermissionGroupsListResponse < 3) {
|
| - checkUnnamed261(o.accountPermissionGroups);
|
| + checkUnnamed1307(o.accountPermissionGroups);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterAccountPermissionGroupsListResponse--;
|
| }
|
|
|
| -buildUnnamed262() {
|
| +buildUnnamed1308() {
|
| var o = new core.List<api.AccountPermission>();
|
| o.add(buildAccountPermission());
|
| o.add(buildAccountPermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed262(core.List<api.AccountPermission> o) {
|
| +checkUnnamed1308(core.List<api.AccountPermission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccountPermission(o[0]);
|
| checkAccountPermission(o[1]);
|
| @@ -276,7 +276,7 @@ buildAccountPermissionsListResponse() {
|
| var o = new api.AccountPermissionsListResponse();
|
| buildCounterAccountPermissionsListResponse++;
|
| if (buildCounterAccountPermissionsListResponse < 3) {
|
| - o.accountPermissions = buildUnnamed262();
|
| + o.accountPermissions = buildUnnamed1308();
|
| o.kind = "foo";
|
| }
|
| buildCounterAccountPermissionsListResponse--;
|
| @@ -286,7 +286,7 @@ buildAccountPermissionsListResponse() {
|
| checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) {
|
| buildCounterAccountPermissionsListResponse++;
|
| if (buildCounterAccountPermissionsListResponse < 3) {
|
| - checkUnnamed262(o.accountPermissions);
|
| + checkUnnamed1308(o.accountPermissions);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterAccountPermissionsListResponse--;
|
| @@ -341,14 +341,14 @@ checkAccountUserProfile(api.AccountUserProfile o) {
|
| buildCounterAccountUserProfile--;
|
| }
|
|
|
| -buildUnnamed263() {
|
| +buildUnnamed1309() {
|
| var o = new core.List<api.AccountUserProfile>();
|
| o.add(buildAccountUserProfile());
|
| o.add(buildAccountUserProfile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed263(core.List<api.AccountUserProfile> o) {
|
| +checkUnnamed1309(core.List<api.AccountUserProfile> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccountUserProfile(o[0]);
|
| checkAccountUserProfile(o[1]);
|
| @@ -359,7 +359,7 @@ buildAccountUserProfilesListResponse() {
|
| var o = new api.AccountUserProfilesListResponse();
|
| buildCounterAccountUserProfilesListResponse++;
|
| if (buildCounterAccountUserProfilesListResponse < 3) {
|
| - o.accountUserProfiles = buildUnnamed263();
|
| + o.accountUserProfiles = buildUnnamed1309();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -370,21 +370,21 @@ buildAccountUserProfilesListResponse() {
|
| checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) {
|
| buildCounterAccountUserProfilesListResponse++;
|
| if (buildCounterAccountUserProfilesListResponse < 3) {
|
| - checkUnnamed263(o.accountUserProfiles);
|
| + checkUnnamed1309(o.accountUserProfiles);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterAccountUserProfilesListResponse--;
|
| }
|
|
|
| -buildUnnamed264() {
|
| +buildUnnamed1310() {
|
| var o = new core.List<api.Account>();
|
| o.add(buildAccount());
|
| o.add(buildAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed264(core.List<api.Account> o) {
|
| +checkUnnamed1310(core.List<api.Account> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccount(o[0]);
|
| checkAccount(o[1]);
|
| @@ -395,7 +395,7 @@ buildAccountsListResponse() {
|
| var o = new api.AccountsListResponse();
|
| buildCounterAccountsListResponse++;
|
| if (buildCounterAccountsListResponse < 3) {
|
| - o.accounts = buildUnnamed264();
|
| + o.accounts = buildUnnamed1310();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -406,34 +406,34 @@ buildAccountsListResponse() {
|
| checkAccountsListResponse(api.AccountsListResponse o) {
|
| buildCounterAccountsListResponse++;
|
| if (buildCounterAccountsListResponse < 3) {
|
| - checkUnnamed264(o.accounts);
|
| + checkUnnamed1310(o.accounts);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterAccountsListResponse--;
|
| }
|
|
|
| -buildUnnamed265() {
|
| +buildUnnamed1311() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed265(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1311(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed266() {
|
| +buildUnnamed1312() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed266(core.List<core.String> o) {
|
| +checkUnnamed1312(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'));
|
| @@ -444,9 +444,9 @@ buildActivities() {
|
| var o = new api.Activities();
|
| buildCounterActivities++;
|
| if (buildCounterActivities < 3) {
|
| - o.filters = buildUnnamed265();
|
| + o.filters = buildUnnamed1311();
|
| o.kind = "foo";
|
| - o.metricNames = buildUnnamed266();
|
| + o.metricNames = buildUnnamed1312();
|
| }
|
| buildCounterActivities--;
|
| return o;
|
| @@ -455,47 +455,47 @@ buildActivities() {
|
| checkActivities(api.Activities o) {
|
| buildCounterActivities++;
|
| if (buildCounterActivities < 3) {
|
| - checkUnnamed265(o.filters);
|
| + checkUnnamed1311(o.filters);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed266(o.metricNames);
|
| + checkUnnamed1312(o.metricNames);
|
| }
|
| buildCounterActivities--;
|
| }
|
|
|
| -buildUnnamed267() {
|
| +buildUnnamed1313() {
|
| var o = new core.List<api.CreativeGroupAssignment>();
|
| o.add(buildCreativeGroupAssignment());
|
| o.add(buildCreativeGroupAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed267(core.List<api.CreativeGroupAssignment> o) {
|
| +checkUnnamed1313(core.List<api.CreativeGroupAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeGroupAssignment(o[0]);
|
| checkCreativeGroupAssignment(o[1]);
|
| }
|
|
|
| -buildUnnamed268() {
|
| +buildUnnamed1314() {
|
| var o = new core.List<api.EventTagOverride>();
|
| o.add(buildEventTagOverride());
|
| o.add(buildEventTagOverride());
|
| return o;
|
| }
|
|
|
| -checkUnnamed268(core.List<api.EventTagOverride> o) {
|
| +checkUnnamed1314(core.List<api.EventTagOverride> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEventTagOverride(o[0]);
|
| checkEventTagOverride(o[1]);
|
| }
|
|
|
| -buildUnnamed269() {
|
| +buildUnnamed1315() {
|
| var o = new core.List<api.PlacementAssignment>();
|
| o.add(buildPlacementAssignment());
|
| o.add(buildPlacementAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed269(core.List<api.PlacementAssignment> o) {
|
| +checkUnnamed1315(core.List<api.PlacementAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlacementAssignment(o[0]);
|
| checkPlacementAssignment(o[1]);
|
| @@ -519,14 +519,14 @@ buildAd() {
|
| o.comments = "foo";
|
| o.compatibility = "foo";
|
| o.createInfo = buildLastModifiedInfo();
|
| - o.creativeGroupAssignments = buildUnnamed267();
|
| + o.creativeGroupAssignments = buildUnnamed1313();
|
| o.creativeRotation = buildCreativeRotation();
|
| o.dayPartTargeting = buildDayPartTargeting();
|
| o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties();
|
| o.deliverySchedule = buildDeliverySchedule();
|
| o.dynamicClickTracker = true;
|
| o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.eventTagOverrides = buildUnnamed268();
|
| + o.eventTagOverrides = buildUnnamed1314();
|
| o.geoTargeting = buildGeoTargeting();
|
| o.id = "foo";
|
| o.idDimensionValue = buildDimensionValue();
|
| @@ -534,7 +534,7 @@ buildAd() {
|
| o.kind = "foo";
|
| o.lastModifiedInfo = buildLastModifiedInfo();
|
| o.name = "foo";
|
| - o.placementAssignments = buildUnnamed269();
|
| + o.placementAssignments = buildUnnamed1315();
|
| o.remarketingListExpression = buildListTargetingExpression();
|
| o.size = buildSize();
|
| o.sslCompliant = true;
|
| @@ -564,14 +564,14 @@ checkAd(api.Ad o) {
|
| unittest.expect(o.comments, unittest.equals('foo'));
|
| unittest.expect(o.compatibility, unittest.equals('foo'));
|
| checkLastModifiedInfo(o.createInfo);
|
| - checkUnnamed267(o.creativeGroupAssignments);
|
| + checkUnnamed1313(o.creativeGroupAssignments);
|
| checkCreativeRotation(o.creativeRotation);
|
| checkDayPartTargeting(o.dayPartTargeting);
|
| checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties);
|
| checkDeliverySchedule(o.deliverySchedule);
|
| unittest.expect(o.dynamicClickTracker, unittest.isTrue);
|
| unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed268(o.eventTagOverrides);
|
| + checkUnnamed1314(o.eventTagOverrides);
|
| checkGeoTargeting(o.geoTargeting);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkDimensionValue(o.idDimensionValue);
|
| @@ -579,7 +579,7 @@ checkAd(api.Ad o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkLastModifiedInfo(o.lastModifiedInfo);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed269(o.placementAssignments);
|
| + checkUnnamed1315(o.placementAssignments);
|
| checkListTargetingExpression(o.remarketingListExpression);
|
| checkSize(o.size);
|
| unittest.expect(o.sslCompliant, unittest.isTrue);
|
| @@ -592,14 +592,47 @@ checkAd(api.Ad o) {
|
| buildCounterAd--;
|
| }
|
|
|
| -buildUnnamed270() {
|
| +core.int buildCounterAdSlot = 0;
|
| +buildAdSlot() {
|
| + var o = new api.AdSlot();
|
| + buildCounterAdSlot++;
|
| + if (buildCounterAdSlot < 3) {
|
| + o.comment = "foo";
|
| + o.compatibility = "foo";
|
| + o.height = "foo";
|
| + o.linkedPlacementId = "foo";
|
| + o.name = "foo";
|
| + o.paymentSourceType = "foo";
|
| + o.primary = true;
|
| + o.width = "foo";
|
| + }
|
| + buildCounterAdSlot--;
|
| + return o;
|
| +}
|
| +
|
| +checkAdSlot(api.AdSlot o) {
|
| + buildCounterAdSlot++;
|
| + if (buildCounterAdSlot < 3) {
|
| + unittest.expect(o.comment, unittest.equals('foo'));
|
| + unittest.expect(o.compatibility, unittest.equals('foo'));
|
| + unittest.expect(o.height, unittest.equals('foo'));
|
| + unittest.expect(o.linkedPlacementId, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.paymentSourceType, unittest.equals('foo'));
|
| + unittest.expect(o.primary, unittest.isTrue);
|
| + unittest.expect(o.width, unittest.equals('foo'));
|
| + }
|
| + buildCounterAdSlot--;
|
| +}
|
| +
|
| +buildUnnamed1316() {
|
| var o = new core.List<api.Ad>();
|
| o.add(buildAd());
|
| o.add(buildAd());
|
| return o;
|
| }
|
|
|
| -checkUnnamed270(core.List<api.Ad> o) {
|
| +checkUnnamed1316(core.List<api.Ad> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAd(o[0]);
|
| checkAd(o[1]);
|
| @@ -610,7 +643,7 @@ buildAdsListResponse() {
|
| var o = new api.AdsListResponse();
|
| buildCounterAdsListResponse++;
|
| if (buildCounterAdsListResponse < 3) {
|
| - o.ads = buildUnnamed270();
|
| + o.ads = buildUnnamed1316();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -621,7 +654,7 @@ buildAdsListResponse() {
|
| checkAdsListResponse(api.AdsListResponse o) {
|
| buildCounterAdsListResponse++;
|
| if (buildCounterAdsListResponse < 3) {
|
| - checkUnnamed270(o.ads);
|
| + checkUnnamed1316(o.ads);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -644,8 +677,10 @@ buildAdvertiser() {
|
| o.idDimensionValue = buildDimensionValue();
|
| o.kind = "foo";
|
| o.name = "foo";
|
| + o.originalFloodlightConfigurationId = "foo";
|
| o.status = "foo";
|
| o.subaccountId = "foo";
|
| + o.suspended = true;
|
| }
|
| buildCounterAdvertiser--;
|
| return o;
|
| @@ -665,8 +700,10 @@ checkAdvertiser(api.Advertiser o) {
|
| checkDimensionValue(o.idDimensionValue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.originalFloodlightConfigurationId, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + unittest.expect(o.suspended, unittest.isTrue);
|
| }
|
| buildCounterAdvertiser--;
|
| }
|
| @@ -696,14 +733,14 @@ checkAdvertiserGroup(api.AdvertiserGroup o) {
|
| buildCounterAdvertiserGroup--;
|
| }
|
|
|
| -buildUnnamed271() {
|
| +buildUnnamed1317() {
|
| var o = new core.List<api.AdvertiserGroup>();
|
| o.add(buildAdvertiserGroup());
|
| o.add(buildAdvertiserGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed271(core.List<api.AdvertiserGroup> o) {
|
| +checkUnnamed1317(core.List<api.AdvertiserGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAdvertiserGroup(o[0]);
|
| checkAdvertiserGroup(o[1]);
|
| @@ -714,7 +751,7 @@ buildAdvertiserGroupsListResponse() {
|
| var o = new api.AdvertiserGroupsListResponse();
|
| buildCounterAdvertiserGroupsListResponse++;
|
| if (buildCounterAdvertiserGroupsListResponse < 3) {
|
| - o.advertiserGroups = buildUnnamed271();
|
| + o.advertiserGroups = buildUnnamed1317();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -725,21 +762,21 @@ buildAdvertiserGroupsListResponse() {
|
| checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) {
|
| buildCounterAdvertiserGroupsListResponse++;
|
| if (buildCounterAdvertiserGroupsListResponse < 3) {
|
| - checkUnnamed271(o.advertiserGroups);
|
| + checkUnnamed1317(o.advertiserGroups);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterAdvertiserGroupsListResponse--;
|
| }
|
|
|
| -buildUnnamed272() {
|
| +buildUnnamed1318() {
|
| var o = new core.List<api.Advertiser>();
|
| o.add(buildAdvertiser());
|
| o.add(buildAdvertiser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed272(core.List<api.Advertiser> o) {
|
| +checkUnnamed1318(core.List<api.Advertiser> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAdvertiser(o[0]);
|
| checkAdvertiser(o[1]);
|
| @@ -750,7 +787,7 @@ buildAdvertisersListResponse() {
|
| var o = new api.AdvertisersListResponse();
|
| buildCounterAdvertisersListResponse++;
|
| if (buildCounterAdvertisersListResponse < 3) {
|
| - o.advertisers = buildUnnamed272();
|
| + o.advertisers = buildUnnamed1318();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -761,7 +798,7 @@ buildAdvertisersListResponse() {
|
| checkAdvertisersListResponse(api.AdvertisersListResponse o) {
|
| buildCounterAdvertisersListResponse++;
|
| if (buildCounterAdvertisersListResponse < 3) {
|
| - checkUnnamed272(o.advertisers);
|
| + checkUnnamed1318(o.advertisers);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -791,14 +828,14 @@ checkAudienceSegment(api.AudienceSegment o) {
|
| buildCounterAudienceSegment--;
|
| }
|
|
|
| -buildUnnamed273() {
|
| +buildUnnamed1319() {
|
| var o = new core.List<api.AudienceSegment>();
|
| o.add(buildAudienceSegment());
|
| o.add(buildAudienceSegment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed273(core.List<api.AudienceSegment> o) {
|
| +checkUnnamed1319(core.List<api.AudienceSegment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAudienceSegment(o[0]);
|
| checkAudienceSegment(o[1]);
|
| @@ -809,7 +846,7 @@ buildAudienceSegmentGroup() {
|
| var o = new api.AudienceSegmentGroup();
|
| buildCounterAudienceSegmentGroup++;
|
| if (buildCounterAudienceSegmentGroup < 3) {
|
| - o.audienceSegments = buildUnnamed273();
|
| + o.audienceSegments = buildUnnamed1319();
|
| o.id = "foo";
|
| o.name = "foo";
|
| }
|
| @@ -820,7 +857,7 @@ buildAudienceSegmentGroup() {
|
| checkAudienceSegmentGroup(api.AudienceSegmentGroup o) {
|
| buildCounterAudienceSegmentGroup++;
|
| if (buildCounterAudienceSegmentGroup < 3) {
|
| - checkUnnamed273(o.audienceSegments);
|
| + checkUnnamed1319(o.audienceSegments);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| @@ -856,14 +893,14 @@ checkBrowser(api.Browser o) {
|
| buildCounterBrowser--;
|
| }
|
|
|
| -buildUnnamed274() {
|
| +buildUnnamed1320() {
|
| var o = new core.List<api.Browser>();
|
| o.add(buildBrowser());
|
| o.add(buildBrowser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed274(core.List<api.Browser> o) {
|
| +checkUnnamed1320(core.List<api.Browser> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBrowser(o[0]);
|
| checkBrowser(o[1]);
|
| @@ -874,7 +911,7 @@ buildBrowsersListResponse() {
|
| var o = new api.BrowsersListResponse();
|
| buildCounterBrowsersListResponse++;
|
| if (buildCounterBrowsersListResponse < 3) {
|
| - o.browsers = buildUnnamed274();
|
| + o.browsers = buildUnnamed1320();
|
| o.kind = "foo";
|
| }
|
| buildCounterBrowsersListResponse--;
|
| @@ -884,72 +921,72 @@ buildBrowsersListResponse() {
|
| checkBrowsersListResponse(api.BrowsersListResponse o) {
|
| buildCounterBrowsersListResponse++;
|
| if (buildCounterBrowsersListResponse < 3) {
|
| - checkUnnamed274(o.browsers);
|
| + checkUnnamed1320(o.browsers);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterBrowsersListResponse--;
|
| }
|
|
|
| -buildUnnamed275() {
|
| +buildUnnamed1321() {
|
| var o = new core.List<api.CreativeOptimizationConfiguration>();
|
| o.add(buildCreativeOptimizationConfiguration());
|
| o.add(buildCreativeOptimizationConfiguration());
|
| return o;
|
| }
|
|
|
| -checkUnnamed275(core.List<api.CreativeOptimizationConfiguration> o) {
|
| +checkUnnamed1321(core.List<api.CreativeOptimizationConfiguration> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeOptimizationConfiguration(o[0]);
|
| checkCreativeOptimizationConfiguration(o[1]);
|
| }
|
|
|
| -buildUnnamed276() {
|
| +buildUnnamed1322() {
|
| var o = new core.List<api.AudienceSegmentGroup>();
|
| o.add(buildAudienceSegmentGroup());
|
| o.add(buildAudienceSegmentGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed276(core.List<api.AudienceSegmentGroup> o) {
|
| +checkUnnamed1322(core.List<api.AudienceSegmentGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAudienceSegmentGroup(o[0]);
|
| checkAudienceSegmentGroup(o[1]);
|
| }
|
|
|
| -buildUnnamed277() {
|
| +buildUnnamed1323() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed277(core.List<core.String> o) {
|
| +checkUnnamed1323(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'));
|
| }
|
|
|
| -buildUnnamed278() {
|
| +buildUnnamed1324() {
|
| var o = new core.List<api.EventTagOverride>();
|
| o.add(buildEventTagOverride());
|
| o.add(buildEventTagOverride());
|
| return o;
|
| }
|
|
|
| -checkUnnamed278(core.List<api.EventTagOverride> o) {
|
| +checkUnnamed1324(core.List<api.EventTagOverride> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEventTagOverride(o[0]);
|
| checkEventTagOverride(o[1]);
|
| }
|
|
|
| -buildUnnamed279() {
|
| +buildUnnamed1325() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed279(core.List<core.String> o) {
|
| +checkUnnamed1325(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'));
|
| @@ -961,22 +998,22 @@ buildCampaign() {
|
| buildCounterCampaign++;
|
| if (buildCounterCampaign < 3) {
|
| o.accountId = "foo";
|
| - o.additionalCreativeOptimizationConfigurations = buildUnnamed275();
|
| + o.additionalCreativeOptimizationConfigurations = buildUnnamed1321();
|
| o.advertiserGroupId = "foo";
|
| o.advertiserId = "foo";
|
| o.advertiserIdDimensionValue = buildDimensionValue();
|
| o.archived = true;
|
| - o.audienceSegmentGroups = buildUnnamed276();
|
| + o.audienceSegmentGroups = buildUnnamed1322();
|
| o.billingInvoiceCode = "foo";
|
| o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties();
|
| o.comment = "foo";
|
| o.comscoreVceEnabled = true;
|
| o.createInfo = buildLastModifiedInfo();
|
| - o.creativeGroupIds = buildUnnamed277();
|
| + o.creativeGroupIds = buildUnnamed1323();
|
| o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration();
|
| o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties();
|
| o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| - o.eventTagOverrides = buildUnnamed278();
|
| + o.eventTagOverrides = buildUnnamed1324();
|
| o.externalId = "foo";
|
| o.id = "foo";
|
| o.idDimensionValue = buildDimensionValue();
|
| @@ -987,7 +1024,7 @@ buildCampaign() {
|
| o.nielsenOcrEnabled = true;
|
| o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| o.subaccountId = "foo";
|
| - o.traffickerEmails = buildUnnamed279();
|
| + o.traffickerEmails = buildUnnamed1325();
|
| }
|
| buildCounterCampaign--;
|
| return o;
|
| @@ -997,22 +1034,22 @@ checkCampaign(api.Campaign o) {
|
| buildCounterCampaign++;
|
| if (buildCounterCampaign < 3) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| - checkUnnamed275(o.additionalCreativeOptimizationConfigurations);
|
| + checkUnnamed1321(o.additionalCreativeOptimizationConfigurations);
|
| unittest.expect(o.advertiserGroupId, unittest.equals('foo'));
|
| unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| checkDimensionValue(o.advertiserIdDimensionValue);
|
| unittest.expect(o.archived, unittest.isTrue);
|
| - checkUnnamed276(o.audienceSegmentGroups);
|
| + checkUnnamed1322(o.audienceSegmentGroups);
|
| unittest.expect(o.billingInvoiceCode, unittest.equals('foo'));
|
| checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties);
|
| unittest.expect(o.comment, unittest.equals('foo'));
|
| unittest.expect(o.comscoreVceEnabled, unittest.isTrue);
|
| checkLastModifiedInfo(o.createInfo);
|
| - checkUnnamed277(o.creativeGroupIds);
|
| + checkUnnamed1323(o.creativeGroupIds);
|
| checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration);
|
| checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties);
|
| unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| - checkUnnamed278(o.eventTagOverrides);
|
| + checkUnnamed1324(o.eventTagOverrides);
|
| unittest.expect(o.externalId, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkDimensionValue(o.idDimensionValue);
|
| @@ -1023,7 +1060,7 @@ checkCampaign(api.Campaign o) {
|
| unittest.expect(o.nielsenOcrEnabled, unittest.isTrue);
|
| unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| - checkUnnamed279(o.traffickerEmails);
|
| + checkUnnamed1325(o.traffickerEmails);
|
| }
|
| buildCounterCampaign--;
|
| }
|
| @@ -1049,14 +1086,14 @@ checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) {
|
| buildCounterCampaignCreativeAssociation--;
|
| }
|
|
|
| -buildUnnamed280() {
|
| +buildUnnamed1326() {
|
| var o = new core.List<api.CampaignCreativeAssociation>();
|
| o.add(buildCampaignCreativeAssociation());
|
| o.add(buildCampaignCreativeAssociation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed280(core.List<api.CampaignCreativeAssociation> o) {
|
| +checkUnnamed1326(core.List<api.CampaignCreativeAssociation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCampaignCreativeAssociation(o[0]);
|
| checkCampaignCreativeAssociation(o[1]);
|
| @@ -1067,7 +1104,7 @@ buildCampaignCreativeAssociationsListResponse() {
|
| var o = new api.CampaignCreativeAssociationsListResponse();
|
| buildCounterCampaignCreativeAssociationsListResponse++;
|
| if (buildCounterCampaignCreativeAssociationsListResponse < 3) {
|
| - o.campaignCreativeAssociations = buildUnnamed280();
|
| + o.campaignCreativeAssociations = buildUnnamed1326();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1078,21 +1115,21 @@ buildCampaignCreativeAssociationsListResponse() {
|
| checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) {
|
| buildCounterCampaignCreativeAssociationsListResponse++;
|
| if (buildCounterCampaignCreativeAssociationsListResponse < 3) {
|
| - checkUnnamed280(o.campaignCreativeAssociations);
|
| + checkUnnamed1326(o.campaignCreativeAssociations);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCampaignCreativeAssociationsListResponse--;
|
| }
|
|
|
| -buildUnnamed281() {
|
| +buildUnnamed1327() {
|
| var o = new core.List<api.Campaign>();
|
| o.add(buildCampaign());
|
| o.add(buildCampaign());
|
| return o;
|
| }
|
|
|
| -checkUnnamed281(core.List<api.Campaign> o) {
|
| +checkUnnamed1327(core.List<api.Campaign> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCampaign(o[0]);
|
| checkCampaign(o[1]);
|
| @@ -1103,7 +1140,7 @@ buildCampaignsListResponse() {
|
| var o = new api.CampaignsListResponse();
|
| buildCounterCampaignsListResponse++;
|
| if (buildCounterCampaignsListResponse < 3) {
|
| - o.campaigns = buildUnnamed281();
|
| + o.campaigns = buildUnnamed1327();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1114,7 +1151,7 @@ buildCampaignsListResponse() {
|
| checkCampaignsListResponse(api.CampaignsListResponse o) {
|
| buildCounterCampaignsListResponse++;
|
| if (buildCounterCampaignsListResponse < 3) {
|
| - checkUnnamed281(o.campaigns);
|
| + checkUnnamed1327(o.campaigns);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1166,14 +1203,14 @@ checkChangeLog(api.ChangeLog o) {
|
| buildCounterChangeLog--;
|
| }
|
|
|
| -buildUnnamed282() {
|
| +buildUnnamed1328() {
|
| var o = new core.List<api.ChangeLog>();
|
| o.add(buildChangeLog());
|
| o.add(buildChangeLog());
|
| return o;
|
| }
|
|
|
| -checkUnnamed282(core.List<api.ChangeLog> o) {
|
| +checkUnnamed1328(core.List<api.ChangeLog> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChangeLog(o[0]);
|
| checkChangeLog(o[1]);
|
| @@ -1184,7 +1221,7 @@ buildChangeLogsListResponse() {
|
| var o = new api.ChangeLogsListResponse();
|
| buildCounterChangeLogsListResponse++;
|
| if (buildCounterChangeLogsListResponse < 3) {
|
| - o.changeLogs = buildUnnamed282();
|
| + o.changeLogs = buildUnnamed1328();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1195,21 +1232,21 @@ buildChangeLogsListResponse() {
|
| checkChangeLogsListResponse(api.ChangeLogsListResponse o) {
|
| buildCounterChangeLogsListResponse++;
|
| if (buildCounterChangeLogsListResponse < 3) {
|
| - checkUnnamed282(o.changeLogs);
|
| + checkUnnamed1328(o.changeLogs);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterChangeLogsListResponse--;
|
| }
|
|
|
| -buildUnnamed283() {
|
| +buildUnnamed1329() {
|
| var o = new core.List<api.City>();
|
| o.add(buildCity());
|
| o.add(buildCity());
|
| return o;
|
| }
|
|
|
| -checkUnnamed283(core.List<api.City> o) {
|
| +checkUnnamed1329(core.List<api.City> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCity(o[0]);
|
| checkCity(o[1]);
|
| @@ -1220,7 +1257,7 @@ buildCitiesListResponse() {
|
| var o = new api.CitiesListResponse();
|
| buildCounterCitiesListResponse++;
|
| if (buildCounterCitiesListResponse < 3) {
|
| - o.cities = buildUnnamed283();
|
| + o.cities = buildUnnamed1329();
|
| o.kind = "foo";
|
| }
|
| buildCounterCitiesListResponse--;
|
| @@ -1230,7 +1267,7 @@ buildCitiesListResponse() {
|
| checkCitiesListResponse(api.CitiesListResponse o) {
|
| buildCounterCitiesListResponse++;
|
| if (buildCounterCitiesListResponse < 3) {
|
| - checkUnnamed283(o.cities);
|
| + checkUnnamed1329(o.cities);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterCitiesListResponse--;
|
| @@ -1299,6 +1336,7 @@ buildClickThroughUrl() {
|
| var o = new api.ClickThroughUrl();
|
| buildCounterClickThroughUrl++;
|
| if (buildCounterClickThroughUrl < 3) {
|
| + o.computedClickThroughUrl = "foo";
|
| o.customClickThroughUrl = "foo";
|
| o.defaultLandingPage = true;
|
| o.landingPageId = "foo";
|
| @@ -1310,6 +1348,7 @@ buildClickThroughUrl() {
|
| checkClickThroughUrl(api.ClickThroughUrl o) {
|
| buildCounterClickThroughUrl++;
|
| if (buildCounterClickThroughUrl < 3) {
|
| + unittest.expect(o.computedClickThroughUrl, unittest.equals('foo'));
|
| unittest.expect(o.customClickThroughUrl, unittest.equals('foo'));
|
| unittest.expect(o.defaultLandingPage, unittest.isTrue);
|
| unittest.expect(o.landingPageId, unittest.equals('foo'));
|
| @@ -1411,14 +1450,14 @@ checkConnectionType(api.ConnectionType o) {
|
| buildCounterConnectionType--;
|
| }
|
|
|
| -buildUnnamed284() {
|
| +buildUnnamed1330() {
|
| var o = new core.List<api.ConnectionType>();
|
| o.add(buildConnectionType());
|
| o.add(buildConnectionType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed284(core.List<api.ConnectionType> o) {
|
| +checkUnnamed1330(core.List<api.ConnectionType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkConnectionType(o[0]);
|
| checkConnectionType(o[1]);
|
| @@ -1429,7 +1468,7 @@ buildConnectionTypesListResponse() {
|
| var o = new api.ConnectionTypesListResponse();
|
| buildCounterConnectionTypesListResponse++;
|
| if (buildCounterConnectionTypesListResponse < 3) {
|
| - o.connectionTypes = buildUnnamed284();
|
| + o.connectionTypes = buildUnnamed1330();
|
| o.kind = "foo";
|
| }
|
| buildCounterConnectionTypesListResponse--;
|
| @@ -1439,20 +1478,20 @@ buildConnectionTypesListResponse() {
|
| checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) {
|
| buildCounterConnectionTypesListResponse++;
|
| if (buildCounterConnectionTypesListResponse < 3) {
|
| - checkUnnamed284(o.connectionTypes);
|
| + checkUnnamed1330(o.connectionTypes);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterConnectionTypesListResponse--;
|
| }
|
|
|
| -buildUnnamed285() {
|
| +buildUnnamed1331() {
|
| var o = new core.List<api.ContentCategory>();
|
| o.add(buildContentCategory());
|
| o.add(buildContentCategory());
|
| return o;
|
| }
|
|
|
| -checkUnnamed285(core.List<api.ContentCategory> o) {
|
| +checkUnnamed1331(core.List<api.ContentCategory> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContentCategory(o[0]);
|
| checkContentCategory(o[1]);
|
| @@ -1463,7 +1502,7 @@ buildContentCategoriesListResponse() {
|
| var o = new api.ContentCategoriesListResponse();
|
| buildCounterContentCategoriesListResponse++;
|
| if (buildCounterContentCategoriesListResponse < 3) {
|
| - o.contentCategories = buildUnnamed285();
|
| + o.contentCategories = buildUnnamed1331();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1474,7 +1513,7 @@ buildContentCategoriesListResponse() {
|
| checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) {
|
| buildCounterContentCategoriesListResponse++;
|
| if (buildCounterContentCategoriesListResponse < 3) {
|
| - checkUnnamed285(o.contentCategories);
|
| + checkUnnamed1331(o.contentCategories);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1487,7 +1526,6 @@ buildContentCategory() {
|
| buildCounterContentCategory++;
|
| if (buildCounterContentCategory < 3) {
|
| o.accountId = "foo";
|
| - o.description = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| @@ -1500,7 +1538,6 @@ checkContentCategory(api.ContentCategory o) {
|
| buildCounterContentCategory++;
|
| if (buildCounterContentCategory < 3) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -1508,14 +1545,14 @@ checkContentCategory(api.ContentCategory o) {
|
| buildCounterContentCategory--;
|
| }
|
|
|
| -buildUnnamed286() {
|
| +buildUnnamed1332() {
|
| var o = new core.List<api.Country>();
|
| o.add(buildCountry());
|
| o.add(buildCountry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed286(core.List<api.Country> o) {
|
| +checkUnnamed1332(core.List<api.Country> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCountry(o[0]);
|
| checkCountry(o[1]);
|
| @@ -1526,7 +1563,7 @@ buildCountriesListResponse() {
|
| var o = new api.CountriesListResponse();
|
| buildCounterCountriesListResponse++;
|
| if (buildCounterCountriesListResponse < 3) {
|
| - o.countries = buildUnnamed286();
|
| + o.countries = buildUnnamed1332();
|
| o.kind = "foo";
|
| }
|
| buildCounterCountriesListResponse--;
|
| @@ -1536,7 +1573,7 @@ buildCountriesListResponse() {
|
| checkCountriesListResponse(api.CountriesListResponse o) {
|
| buildCounterCountriesListResponse++;
|
| if (buildCounterCountriesListResponse < 3) {
|
| - checkUnnamed286(o.countries);
|
| + checkUnnamed1332(o.countries);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterCountriesListResponse--;
|
| @@ -1569,157 +1606,157 @@ checkCountry(api.Country o) {
|
| buildCounterCountry--;
|
| }
|
|
|
| -buildUnnamed287() {
|
| +buildUnnamed1333() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed287(core.List<core.String> o) {
|
| +checkUnnamed1333(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed288() {
|
| +buildUnnamed1334() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed288(core.List<core.String> o) {
|
| +checkUnnamed1334(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed289() {
|
| +buildUnnamed1335() {
|
| var o = new core.List<api.ClickTag>();
|
| o.add(buildClickTag());
|
| o.add(buildClickTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed289(core.List<api.ClickTag> o) {
|
| +checkUnnamed1335(core.List<api.ClickTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkClickTag(o[0]);
|
| checkClickTag(o[1]);
|
| }
|
|
|
| -buildUnnamed290() {
|
| +buildUnnamed1336() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed290(core.List<core.String> o) {
|
| +checkUnnamed1336(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'));
|
| }
|
|
|
| -buildUnnamed291() {
|
| +buildUnnamed1337() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed291(core.List<core.String> o) {
|
| +checkUnnamed1337(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'));
|
| }
|
|
|
| -buildUnnamed292() {
|
| +buildUnnamed1338() {
|
| var o = new core.List<api.CreativeCustomEvent>();
|
| o.add(buildCreativeCustomEvent());
|
| o.add(buildCreativeCustomEvent());
|
| return o;
|
| }
|
|
|
| -checkUnnamed292(core.List<api.CreativeCustomEvent> o) {
|
| +checkUnnamed1338(core.List<api.CreativeCustomEvent> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeCustomEvent(o[0]);
|
| checkCreativeCustomEvent(o[1]);
|
| }
|
|
|
| -buildUnnamed293() {
|
| +buildUnnamed1339() {
|
| var o = new core.List<api.CreativeAsset>();
|
| o.add(buildCreativeAsset());
|
| o.add(buildCreativeAsset());
|
| return o;
|
| }
|
|
|
| -checkUnnamed293(core.List<api.CreativeAsset> o) {
|
| +checkUnnamed1339(core.List<api.CreativeAsset> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeAsset(o[0]);
|
| checkCreativeAsset(o[1]);
|
| }
|
|
|
| -buildUnnamed294() {
|
| +buildUnnamed1340() {
|
| var o = new core.List<api.CreativeFieldAssignment>();
|
| o.add(buildCreativeFieldAssignment());
|
| o.add(buildCreativeFieldAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed294(core.List<api.CreativeFieldAssignment> o) {
|
| +checkUnnamed1340(core.List<api.CreativeFieldAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeFieldAssignment(o[0]);
|
| checkCreativeFieldAssignment(o[1]);
|
| }
|
|
|
| -buildUnnamed295() {
|
| +buildUnnamed1341() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed295(core.List<core.String> o) {
|
| +checkUnnamed1341(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'));
|
| }
|
|
|
| -buildUnnamed296() {
|
| +buildUnnamed1342() {
|
| var o = new core.List<api.CreativeCustomEvent>();
|
| o.add(buildCreativeCustomEvent());
|
| o.add(buildCreativeCustomEvent());
|
| return o;
|
| }
|
|
|
| -checkUnnamed296(core.List<api.CreativeCustomEvent> o) {
|
| +checkUnnamed1342(core.List<api.CreativeCustomEvent> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeCustomEvent(o[0]);
|
| checkCreativeCustomEvent(o[1]);
|
| }
|
|
|
| -buildUnnamed297() {
|
| +buildUnnamed1343() {
|
| var o = new core.List<api.ThirdPartyTrackingUrl>();
|
| o.add(buildThirdPartyTrackingUrl());
|
| o.add(buildThirdPartyTrackingUrl());
|
| return o;
|
| }
|
|
|
| -checkUnnamed297(core.List<api.ThirdPartyTrackingUrl> o) {
|
| +checkUnnamed1343(core.List<api.ThirdPartyTrackingUrl> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkThirdPartyTrackingUrl(o[0]);
|
| checkThirdPartyTrackingUrl(o[1]);
|
| }
|
|
|
| -buildUnnamed298() {
|
| +buildUnnamed1344() {
|
| var o = new core.List<api.CreativeCustomEvent>();
|
| o.add(buildCreativeCustomEvent());
|
| o.add(buildCreativeCustomEvent());
|
| return o;
|
| }
|
|
|
| -checkUnnamed298(core.List<api.CreativeCustomEvent> o) {
|
| +checkUnnamed1344(core.List<api.CreativeCustomEvent> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeCustomEvent(o[0]);
|
| checkCreativeCustomEvent(o[1]);
|
| @@ -1733,7 +1770,7 @@ buildCreative() {
|
| o.accountId = "foo";
|
| o.active = true;
|
| o.adParameters = "foo";
|
| - o.adTagKeys = buildUnnamed287();
|
| + o.adTagKeys = buildUnnamed1333();
|
| o.advertiserId = "foo";
|
| o.allowScriptAccess = true;
|
| o.archived = true;
|
| @@ -1742,18 +1779,19 @@ buildCreative() {
|
| o.autoAdvanceImages = true;
|
| o.backgroundColor = "foo";
|
| o.backupImageClickThroughUrl = "foo";
|
| - o.backupImageFeatures = buildUnnamed288();
|
| + o.backupImageFeatures = buildUnnamed1334();
|
| o.backupImageReportingLabel = "foo";
|
| o.backupImageTargetWindow = buildTargetWindow();
|
| - o.clickTags = buildUnnamed289();
|
| + o.clickTags = buildUnnamed1335();
|
| o.commercialId = "foo";
|
| - o.companionCreatives = buildUnnamed290();
|
| - o.compatibility = buildUnnamed291();
|
| - o.counterCustomEvents = buildUnnamed292();
|
| - o.creativeAssets = buildUnnamed293();
|
| - o.creativeFieldAssignments = buildUnnamed294();
|
| - o.customKeyValues = buildUnnamed295();
|
| - o.exitCustomEvents = buildUnnamed296();
|
| + o.companionCreatives = buildUnnamed1336();
|
| + o.compatibility = buildUnnamed1337();
|
| + o.convertFlashToHtml5 = true;
|
| + o.counterCustomEvents = buildUnnamed1338();
|
| + o.creativeAssets = buildUnnamed1339();
|
| + o.creativeFieldAssignments = buildUnnamed1340();
|
| + o.customKeyValues = buildUnnamed1341();
|
| + o.exitCustomEvents = buildUnnamed1342();
|
| o.fsCommand = buildFsCommand();
|
| o.htmlCode = "foo";
|
| o.htmlCodeLocked = true;
|
| @@ -1772,14 +1810,15 @@ buildCreative() {
|
| o.size = buildSize();
|
| o.skippable = true;
|
| o.sslCompliant = true;
|
| + o.sslOverride = true;
|
| o.studioAdvertiserId = "foo";
|
| o.studioCreativeId = "foo";
|
| o.studioTraffickedCreativeId = "foo";
|
| o.subaccountId = "foo";
|
| o.thirdPartyBackupImageImpressionsUrl = "foo";
|
| o.thirdPartyRichMediaImpressionsUrl = "foo";
|
| - o.thirdPartyUrls = buildUnnamed297();
|
| - o.timerCustomEvents = buildUnnamed298();
|
| + o.thirdPartyUrls = buildUnnamed1343();
|
| + o.timerCustomEvents = buildUnnamed1344();
|
| o.totalFileSize = "foo";
|
| o.type = "foo";
|
| o.version = 42;
|
| @@ -1796,7 +1835,7 @@ checkCreative(api.Creative o) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| unittest.expect(o.active, unittest.isTrue);
|
| unittest.expect(o.adParameters, unittest.equals('foo'));
|
| - checkUnnamed287(o.adTagKeys);
|
| + checkUnnamed1333(o.adTagKeys);
|
| unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| unittest.expect(o.allowScriptAccess, unittest.isTrue);
|
| unittest.expect(o.archived, unittest.isTrue);
|
| @@ -1805,18 +1844,19 @@ checkCreative(api.Creative o) {
|
| unittest.expect(o.autoAdvanceImages, unittest.isTrue);
|
| unittest.expect(o.backgroundColor, unittest.equals('foo'));
|
| unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo'));
|
| - checkUnnamed288(o.backupImageFeatures);
|
| + checkUnnamed1334(o.backupImageFeatures);
|
| unittest.expect(o.backupImageReportingLabel, unittest.equals('foo'));
|
| checkTargetWindow(o.backupImageTargetWindow);
|
| - checkUnnamed289(o.clickTags);
|
| + checkUnnamed1335(o.clickTags);
|
| unittest.expect(o.commercialId, unittest.equals('foo'));
|
| - checkUnnamed290(o.companionCreatives);
|
| - checkUnnamed291(o.compatibility);
|
| - checkUnnamed292(o.counterCustomEvents);
|
| - checkUnnamed293(o.creativeAssets);
|
| - checkUnnamed294(o.creativeFieldAssignments);
|
| - checkUnnamed295(o.customKeyValues);
|
| - checkUnnamed296(o.exitCustomEvents);
|
| + checkUnnamed1336(o.companionCreatives);
|
| + checkUnnamed1337(o.compatibility);
|
| + unittest.expect(o.convertFlashToHtml5, unittest.isTrue);
|
| + checkUnnamed1338(o.counterCustomEvents);
|
| + checkUnnamed1339(o.creativeAssets);
|
| + checkUnnamed1340(o.creativeFieldAssignments);
|
| + checkUnnamed1341(o.customKeyValues);
|
| + checkUnnamed1342(o.exitCustomEvents);
|
| checkFsCommand(o.fsCommand);
|
| unittest.expect(o.htmlCode, unittest.equals('foo'));
|
| unittest.expect(o.htmlCodeLocked, unittest.isTrue);
|
| @@ -1835,14 +1875,15 @@ checkCreative(api.Creative o) {
|
| checkSize(o.size);
|
| unittest.expect(o.skippable, unittest.isTrue);
|
| unittest.expect(o.sslCompliant, unittest.isTrue);
|
| + unittest.expect(o.sslOverride, unittest.isTrue);
|
| unittest.expect(o.studioAdvertiserId, unittest.equals('foo'));
|
| unittest.expect(o.studioCreativeId, unittest.equals('foo'));
|
| unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo'));
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo'));
|
| unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo'));
|
| - checkUnnamed297(o.thirdPartyUrls);
|
| - checkUnnamed298(o.timerCustomEvents);
|
| + checkUnnamed1343(o.thirdPartyUrls);
|
| + checkUnnamed1344(o.timerCustomEvents);
|
| unittest.expect(o.totalFileSize, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals(42));
|
| @@ -1852,14 +1893,14 @@ checkCreative(api.Creative o) {
|
| buildCounterCreative--;
|
| }
|
|
|
| -buildUnnamed299() {
|
| +buildUnnamed1345() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed299(core.List<core.String> o) {
|
| +checkUnnamed1345(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'));
|
| @@ -1880,7 +1921,7 @@ buildCreativeAsset() {
|
| o.childAssetType = "foo";
|
| o.collapsedSize = buildSize();
|
| o.customStartTimeValue = 42;
|
| - o.detectedFeatures = buildUnnamed299();
|
| + o.detectedFeatures = buildUnnamed1345();
|
| o.displayType = "foo";
|
| o.duration = 42;
|
| o.durationType = "foo";
|
| @@ -1930,7 +1971,7 @@ checkCreativeAsset(api.CreativeAsset o) {
|
| unittest.expect(o.childAssetType, unittest.equals('foo'));
|
| checkSize(o.collapsedSize);
|
| unittest.expect(o.customStartTimeValue, unittest.equals(42));
|
| - checkUnnamed299(o.detectedFeatures);
|
| + checkUnnamed1345(o.detectedFeatures);
|
| unittest.expect(o.displayType, unittest.equals('foo'));
|
| unittest.expect(o.duration, unittest.equals(42));
|
| unittest.expect(o.durationType, unittest.equals('foo'));
|
| @@ -1987,40 +2028,40 @@ checkCreativeAssetId(api.CreativeAssetId o) {
|
| buildCounterCreativeAssetId--;
|
| }
|
|
|
| -buildUnnamed300() {
|
| +buildUnnamed1346() {
|
| var o = new core.List<api.ClickTag>();
|
| o.add(buildClickTag());
|
| o.add(buildClickTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed300(core.List<api.ClickTag> o) {
|
| +checkUnnamed1346(core.List<api.ClickTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkClickTag(o[0]);
|
| checkClickTag(o[1]);
|
| }
|
|
|
| -buildUnnamed301() {
|
| +buildUnnamed1347() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed301(core.List<core.String> o) {
|
| +checkUnnamed1347(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'));
|
| }
|
|
|
| -buildUnnamed302() {
|
| +buildUnnamed1348() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed302(core.List<core.String> o) {
|
| +checkUnnamed1348(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'));
|
| @@ -2032,10 +2073,10 @@ buildCreativeAssetMetadata() {
|
| buildCounterCreativeAssetMetadata++;
|
| if (buildCounterCreativeAssetMetadata < 3) {
|
| o.assetIdentifier = buildCreativeAssetId();
|
| - o.clickTags = buildUnnamed300();
|
| - o.detectedFeatures = buildUnnamed301();
|
| + o.clickTags = buildUnnamed1346();
|
| + o.detectedFeatures = buildUnnamed1347();
|
| o.kind = "foo";
|
| - o.warnedValidationRules = buildUnnamed302();
|
| + o.warnedValidationRules = buildUnnamed1348();
|
| }
|
| buildCounterCreativeAssetMetadata--;
|
| return o;
|
| @@ -2045,48 +2086,48 @@ checkCreativeAssetMetadata(api.CreativeAssetMetadata o) {
|
| buildCounterCreativeAssetMetadata++;
|
| if (buildCounterCreativeAssetMetadata < 3) {
|
| checkCreativeAssetId(o.assetIdentifier);
|
| - checkUnnamed300(o.clickTags);
|
| - checkUnnamed301(o.detectedFeatures);
|
| + checkUnnamed1346(o.clickTags);
|
| + checkUnnamed1347(o.detectedFeatures);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed302(o.warnedValidationRules);
|
| + checkUnnamed1348(o.warnedValidationRules);
|
| }
|
| buildCounterCreativeAssetMetadata--;
|
| }
|
|
|
| -buildUnnamed303() {
|
| +buildUnnamed1349() {
|
| var o = new core.List<api.CompanionClickThroughOverride>();
|
| o.add(buildCompanionClickThroughOverride());
|
| o.add(buildCompanionClickThroughOverride());
|
| return o;
|
| }
|
|
|
| -checkUnnamed303(core.List<api.CompanionClickThroughOverride> o) {
|
| +checkUnnamed1349(core.List<api.CompanionClickThroughOverride> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCompanionClickThroughOverride(o[0]);
|
| checkCompanionClickThroughOverride(o[1]);
|
| }
|
|
|
| -buildUnnamed304() {
|
| +buildUnnamed1350() {
|
| var o = new core.List<api.CreativeGroupAssignment>();
|
| o.add(buildCreativeGroupAssignment());
|
| o.add(buildCreativeGroupAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed304(core.List<api.CreativeGroupAssignment> o) {
|
| +checkUnnamed1350(core.List<api.CreativeGroupAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeGroupAssignment(o[0]);
|
| checkCreativeGroupAssignment(o[1]);
|
| }
|
|
|
| -buildUnnamed305() {
|
| +buildUnnamed1351() {
|
| var o = new core.List<api.RichMediaExitOverride>();
|
| o.add(buildRichMediaExitOverride());
|
| o.add(buildRichMediaExitOverride());
|
| return o;
|
| }
|
|
|
| -checkUnnamed305(core.List<api.RichMediaExitOverride> o) {
|
| +checkUnnamed1351(core.List<api.RichMediaExitOverride> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRichMediaExitOverride(o[0]);
|
| checkRichMediaExitOverride(o[1]);
|
| @@ -2100,12 +2141,12 @@ buildCreativeAssignment() {
|
| o.active = true;
|
| o.applyEventTags = true;
|
| o.clickThroughUrl = buildClickThroughUrl();
|
| - o.companionCreativeOverrides = buildUnnamed303();
|
| - o.creativeGroupAssignments = buildUnnamed304();
|
| + o.companionCreativeOverrides = buildUnnamed1349();
|
| + o.creativeGroupAssignments = buildUnnamed1350();
|
| o.creativeId = "foo";
|
| o.creativeIdDimensionValue = buildDimensionValue();
|
| o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.richMediaExitOverrides = buildUnnamed305();
|
| + o.richMediaExitOverrides = buildUnnamed1351();
|
| o.sequence = 42;
|
| o.sslCompliant = true;
|
| o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| @@ -2121,12 +2162,12 @@ checkCreativeAssignment(api.CreativeAssignment o) {
|
| unittest.expect(o.active, unittest.isTrue);
|
| unittest.expect(o.applyEventTags, unittest.isTrue);
|
| checkClickThroughUrl(o.clickThroughUrl);
|
| - checkUnnamed303(o.companionCreativeOverrides);
|
| - checkUnnamed304(o.creativeGroupAssignments);
|
| + checkUnnamed1349(o.companionCreativeOverrides);
|
| + checkUnnamed1350(o.creativeGroupAssignments);
|
| unittest.expect(o.creativeId, unittest.equals('foo'));
|
| checkDimensionValue(o.creativeIdDimensionValue);
|
| unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed305(o.richMediaExitOverrides);
|
| + checkUnnamed1351(o.richMediaExitOverrides);
|
| unittest.expect(o.sequence, unittest.equals(42));
|
| unittest.expect(o.sslCompliant, unittest.isTrue);
|
| unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| @@ -2140,7 +2181,6 @@ buildCreativeCustomEvent() {
|
| var o = new api.CreativeCustomEvent();
|
| buildCounterCreativeCustomEvent++;
|
| if (buildCounterCreativeCustomEvent < 3) {
|
| - o.active = true;
|
| o.advertiserCustomEventName = "foo";
|
| o.advertiserCustomEventType = "foo";
|
| o.artworkLabel = "foo";
|
| @@ -2158,7 +2198,6 @@ buildCreativeCustomEvent() {
|
| checkCreativeCustomEvent(api.CreativeCustomEvent o) {
|
| buildCounterCreativeCustomEvent++;
|
| if (buildCounterCreativeCustomEvent < 3) {
|
| - unittest.expect(o.active, unittest.isTrue);
|
| unittest.expect(o.advertiserCustomEventName, unittest.equals('foo'));
|
| unittest.expect(o.advertiserCustomEventType, unittest.equals('foo'));
|
| unittest.expect(o.artworkLabel, unittest.equals('foo'));
|
| @@ -2247,14 +2286,14 @@ checkCreativeFieldValue(api.CreativeFieldValue o) {
|
| buildCounterCreativeFieldValue--;
|
| }
|
|
|
| -buildUnnamed306() {
|
| +buildUnnamed1352() {
|
| var o = new core.List<api.CreativeFieldValue>();
|
| o.add(buildCreativeFieldValue());
|
| o.add(buildCreativeFieldValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed306(core.List<api.CreativeFieldValue> o) {
|
| +checkUnnamed1352(core.List<api.CreativeFieldValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeFieldValue(o[0]);
|
| checkCreativeFieldValue(o[1]);
|
| @@ -2265,7 +2304,7 @@ buildCreativeFieldValuesListResponse() {
|
| var o = new api.CreativeFieldValuesListResponse();
|
| buildCounterCreativeFieldValuesListResponse++;
|
| if (buildCounterCreativeFieldValuesListResponse < 3) {
|
| - o.creativeFieldValues = buildUnnamed306();
|
| + o.creativeFieldValues = buildUnnamed1352();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -2276,21 +2315,21 @@ buildCreativeFieldValuesListResponse() {
|
| checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) {
|
| buildCounterCreativeFieldValuesListResponse++;
|
| if (buildCounterCreativeFieldValuesListResponse < 3) {
|
| - checkUnnamed306(o.creativeFieldValues);
|
| + checkUnnamed1352(o.creativeFieldValues);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCreativeFieldValuesListResponse--;
|
| }
|
|
|
| -buildUnnamed307() {
|
| +buildUnnamed1353() {
|
| var o = new core.List<api.CreativeField>();
|
| o.add(buildCreativeField());
|
| o.add(buildCreativeField());
|
| return o;
|
| }
|
|
|
| -checkUnnamed307(core.List<api.CreativeField> o) {
|
| +checkUnnamed1353(core.List<api.CreativeField> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeField(o[0]);
|
| checkCreativeField(o[1]);
|
| @@ -2301,7 +2340,7 @@ buildCreativeFieldsListResponse() {
|
| var o = new api.CreativeFieldsListResponse();
|
| buildCounterCreativeFieldsListResponse++;
|
| if (buildCounterCreativeFieldsListResponse < 3) {
|
| - o.creativeFields = buildUnnamed307();
|
| + o.creativeFields = buildUnnamed1353();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -2312,7 +2351,7 @@ buildCreativeFieldsListResponse() {
|
| checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) {
|
| buildCounterCreativeFieldsListResponse++;
|
| if (buildCounterCreativeFieldsListResponse < 3) {
|
| - checkUnnamed307(o.creativeFields);
|
| + checkUnnamed1353(o.creativeFields);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -2373,14 +2412,14 @@ checkCreativeGroupAssignment(api.CreativeGroupAssignment o) {
|
| buildCounterCreativeGroupAssignment--;
|
| }
|
|
|
| -buildUnnamed308() {
|
| +buildUnnamed1354() {
|
| var o = new core.List<api.CreativeGroup>();
|
| o.add(buildCreativeGroup());
|
| o.add(buildCreativeGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed308(core.List<api.CreativeGroup> o) {
|
| +checkUnnamed1354(core.List<api.CreativeGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeGroup(o[0]);
|
| checkCreativeGroup(o[1]);
|
| @@ -2391,7 +2430,7 @@ buildCreativeGroupsListResponse() {
|
| var o = new api.CreativeGroupsListResponse();
|
| buildCounterCreativeGroupsListResponse++;
|
| if (buildCounterCreativeGroupsListResponse < 3) {
|
| - o.creativeGroups = buildUnnamed308();
|
| + o.creativeGroups = buildUnnamed1354();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -2402,21 +2441,21 @@ buildCreativeGroupsListResponse() {
|
| checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) {
|
| buildCounterCreativeGroupsListResponse++;
|
| if (buildCounterCreativeGroupsListResponse < 3) {
|
| - checkUnnamed308(o.creativeGroups);
|
| + checkUnnamed1354(o.creativeGroups);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCreativeGroupsListResponse--;
|
| }
|
|
|
| -buildUnnamed309() {
|
| +buildUnnamed1355() {
|
| var o = new core.List<api.OptimizationActivity>();
|
| o.add(buildOptimizationActivity());
|
| o.add(buildOptimizationActivity());
|
| return o;
|
| }
|
|
|
| -checkUnnamed309(core.List<api.OptimizationActivity> o) {
|
| +checkUnnamed1355(core.List<api.OptimizationActivity> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOptimizationActivity(o[0]);
|
| checkOptimizationActivity(o[1]);
|
| @@ -2429,7 +2468,7 @@ buildCreativeOptimizationConfiguration() {
|
| if (buildCounterCreativeOptimizationConfiguration < 3) {
|
| o.id = "foo";
|
| o.name = "foo";
|
| - o.optimizationActivitys = buildUnnamed309();
|
| + o.optimizationActivitys = buildUnnamed1355();
|
| o.optimizationModel = "foo";
|
| }
|
| buildCounterCreativeOptimizationConfiguration--;
|
| @@ -2441,20 +2480,20 @@ checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o)
|
| if (buildCounterCreativeOptimizationConfiguration < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed309(o.optimizationActivitys);
|
| + checkUnnamed1355(o.optimizationActivitys);
|
| unittest.expect(o.optimizationModel, unittest.equals('foo'));
|
| }
|
| buildCounterCreativeOptimizationConfiguration--;
|
| }
|
|
|
| -buildUnnamed310() {
|
| +buildUnnamed1356() {
|
| var o = new core.List<api.CreativeAssignment>();
|
| o.add(buildCreativeAssignment());
|
| o.add(buildCreativeAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed310(core.List<api.CreativeAssignment> o) {
|
| +checkUnnamed1356(core.List<api.CreativeAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeAssignment(o[0]);
|
| checkCreativeAssignment(o[1]);
|
| @@ -2465,7 +2504,7 @@ buildCreativeRotation() {
|
| var o = new api.CreativeRotation();
|
| buildCounterCreativeRotation++;
|
| if (buildCounterCreativeRotation < 3) {
|
| - o.creativeAssignments = buildUnnamed310();
|
| + o.creativeAssignments = buildUnnamed1356();
|
| o.creativeOptimizationConfigurationId = "foo";
|
| o.type = "foo";
|
| o.weightCalculationStrategy = "foo";
|
| @@ -2477,7 +2516,7 @@ buildCreativeRotation() {
|
| checkCreativeRotation(api.CreativeRotation o) {
|
| buildCounterCreativeRotation++;
|
| if (buildCounterCreativeRotation < 3) {
|
| - checkUnnamed310(o.creativeAssignments);
|
| + checkUnnamed1356(o.creativeAssignments);
|
| unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| unittest.expect(o.weightCalculationStrategy, unittest.equals('foo'));
|
| @@ -2506,14 +2545,14 @@ checkCreativeSettings(api.CreativeSettings o) {
|
| buildCounterCreativeSettings--;
|
| }
|
|
|
| -buildUnnamed311() {
|
| +buildUnnamed1357() {
|
| var o = new core.List<api.Creative>();
|
| o.add(buildCreative());
|
| o.add(buildCreative());
|
| return o;
|
| }
|
|
|
| -checkUnnamed311(core.List<api.Creative> o) {
|
| +checkUnnamed1357(core.List<api.Creative> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreative(o[0]);
|
| checkCreative(o[1]);
|
| @@ -2524,7 +2563,7 @@ buildCreativesListResponse() {
|
| var o = new api.CreativesListResponse();
|
| buildCounterCreativesListResponse++;
|
| if (buildCounterCreativesListResponse < 3) {
|
| - o.creatives = buildUnnamed311();
|
| + o.creatives = buildUnnamed1357();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -2535,60 +2574,60 @@ buildCreativesListResponse() {
|
| checkCreativesListResponse(api.CreativesListResponse o) {
|
| buildCounterCreativesListResponse++;
|
| if (buildCounterCreativesListResponse < 3) {
|
| - checkUnnamed311(o.creatives);
|
| + checkUnnamed1357(o.creatives);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCreativesListResponse--;
|
| }
|
|
|
| -buildUnnamed312() {
|
| +buildUnnamed1358() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed312(core.List<api.Dimension> o) {
|
| +checkUnnamed1358(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed313() {
|
| +buildUnnamed1359() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed313(core.List<api.Dimension> o) {
|
| +checkUnnamed1359(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed314() {
|
| +buildUnnamed1360() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed314(core.List<api.Metric> o) {
|
| +checkUnnamed1360(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| }
|
|
|
| -buildUnnamed315() {
|
| +buildUnnamed1361() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed315(core.List<api.Metric> o) {
|
| +checkUnnamed1361(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| @@ -2599,11 +2638,11 @@ buildCrossDimensionReachReportCompatibleFields() {
|
| var o = new api.CrossDimensionReachReportCompatibleFields();
|
| buildCounterCrossDimensionReachReportCompatibleFields++;
|
| if (buildCounterCrossDimensionReachReportCompatibleFields < 3) {
|
| - o.breakdown = buildUnnamed312();
|
| - o.dimensionFilters = buildUnnamed313();
|
| + o.breakdown = buildUnnamed1358();
|
| + o.dimensionFilters = buildUnnamed1359();
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed314();
|
| - o.overlapMetrics = buildUnnamed315();
|
| + o.metrics = buildUnnamed1360();
|
| + o.overlapMetrics = buildUnnamed1361();
|
| }
|
| buildCounterCrossDimensionReachReportCompatibleFields--;
|
| return o;
|
| @@ -2612,23 +2651,23 @@ buildCrossDimensionReachReportCompatibleFields() {
|
| checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) {
|
| buildCounterCrossDimensionReachReportCompatibleFields++;
|
| if (buildCounterCrossDimensionReachReportCompatibleFields < 3) {
|
| - checkUnnamed312(o.breakdown);
|
| - checkUnnamed313(o.dimensionFilters);
|
| + checkUnnamed1358(o.breakdown);
|
| + checkUnnamed1359(o.dimensionFilters);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed314(o.metrics);
|
| - checkUnnamed315(o.overlapMetrics);
|
| + checkUnnamed1360(o.metrics);
|
| + checkUnnamed1361(o.overlapMetrics);
|
| }
|
| buildCounterCrossDimensionReachReportCompatibleFields--;
|
| }
|
|
|
| -buildUnnamed316() {
|
| +buildUnnamed1362() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed316(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1362(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| @@ -2639,7 +2678,7 @@ buildCustomRichMediaEvents() {
|
| var o = new api.CustomRichMediaEvents();
|
| buildCounterCustomRichMediaEvents++;
|
| if (buildCounterCustomRichMediaEvents < 3) {
|
| - o.filteredEventIds = buildUnnamed316();
|
| + o.filteredEventIds = buildUnnamed1362();
|
| o.kind = "foo";
|
| }
|
| buildCounterCustomRichMediaEvents--;
|
| @@ -2649,7 +2688,7 @@ buildCustomRichMediaEvents() {
|
| checkCustomRichMediaEvents(api.CustomRichMediaEvents o) {
|
| buildCounterCustomRichMediaEvents++;
|
| if (buildCounterCustomRichMediaEvents < 3) {
|
| - checkUnnamed316(o.filteredEventIds);
|
| + checkUnnamed1362(o.filteredEventIds);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterCustomRichMediaEvents--;
|
| @@ -2680,27 +2719,27 @@ checkDateRange(api.DateRange o) {
|
| buildCounterDateRange--;
|
| }
|
|
|
| -buildUnnamed317() {
|
| +buildUnnamed1363() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed317(core.List<core.String> o) {
|
| +checkUnnamed1363(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'));
|
| }
|
|
|
| -buildUnnamed318() {
|
| +buildUnnamed1364() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed318(core.List<core.int> o) {
|
| +checkUnnamed1364(core.List<core.int> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42));
|
| unittest.expect(o[1], unittest.equals(42));
|
| @@ -2711,8 +2750,8 @@ buildDayPartTargeting() {
|
| var o = new api.DayPartTargeting();
|
| buildCounterDayPartTargeting++;
|
| if (buildCounterDayPartTargeting < 3) {
|
| - o.daysOfWeek = buildUnnamed317();
|
| - o.hoursOfDay = buildUnnamed318();
|
| + o.daysOfWeek = buildUnnamed1363();
|
| + o.hoursOfDay = buildUnnamed1364();
|
| o.userLocalTime = true;
|
| }
|
| buildCounterDayPartTargeting--;
|
| @@ -2722,8 +2761,8 @@ buildDayPartTargeting() {
|
| checkDayPartTargeting(api.DayPartTargeting o) {
|
| buildCounterDayPartTargeting++;
|
| if (buildCounterDayPartTargeting < 3) {
|
| - checkUnnamed317(o.daysOfWeek);
|
| - checkUnnamed318(o.hoursOfDay);
|
| + checkUnnamed1363(o.daysOfWeek);
|
| + checkUnnamed1364(o.hoursOfDay);
|
| unittest.expect(o.userLocalTime, unittest.isTrue);
|
| }
|
| buildCounterDayPartTargeting--;
|
| @@ -2875,14 +2914,14 @@ checkDimensionValue(api.DimensionValue o) {
|
| buildCounterDimensionValue--;
|
| }
|
|
|
| -buildUnnamed319() {
|
| +buildUnnamed1365() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed319(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1365(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| @@ -2894,7 +2933,7 @@ buildDimensionValueList() {
|
| buildCounterDimensionValueList++;
|
| if (buildCounterDimensionValueList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed319();
|
| + o.items = buildUnnamed1365();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -2906,21 +2945,21 @@ checkDimensionValueList(api.DimensionValueList o) {
|
| buildCounterDimensionValueList++;
|
| if (buildCounterDimensionValueList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed319(o.items);
|
| + checkUnnamed1365(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterDimensionValueList--;
|
| }
|
|
|
| -buildUnnamed320() {
|
| +buildUnnamed1366() {
|
| var o = new core.List<api.DimensionFilter>();
|
| o.add(buildDimensionFilter());
|
| o.add(buildDimensionFilter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed320(core.List<api.DimensionFilter> o) {
|
| +checkUnnamed1366(core.List<api.DimensionFilter> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionFilter(o[0]);
|
| checkDimensionFilter(o[1]);
|
| @@ -2933,7 +2972,7 @@ buildDimensionValueRequest() {
|
| if (buildCounterDimensionValueRequest < 3) {
|
| o.dimensionName = "foo";
|
| o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| - o.filters = buildUnnamed320();
|
| + o.filters = buildUnnamed1366();
|
| o.kind = "foo";
|
| o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| }
|
| @@ -2946,47 +2985,47 @@ checkDimensionValueRequest(api.DimensionValueRequest o) {
|
| if (buildCounterDimensionValueRequest < 3) {
|
| unittest.expect(o.dimensionName, unittest.equals('foo'));
|
| unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| - checkUnnamed320(o.filters);
|
| + checkUnnamed1366(o.filters);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| }
|
| buildCounterDimensionValueRequest--;
|
| }
|
|
|
| -buildUnnamed321() {
|
| +buildUnnamed1367() {
|
| var o = new core.List<api.DirectorySiteContactAssignment>();
|
| o.add(buildDirectorySiteContactAssignment());
|
| o.add(buildDirectorySiteContactAssignment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed321(core.List<api.DirectorySiteContactAssignment> o) {
|
| +checkUnnamed1367(core.List<api.DirectorySiteContactAssignment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDirectorySiteContactAssignment(o[0]);
|
| checkDirectorySiteContactAssignment(o[1]);
|
| }
|
|
|
| -buildUnnamed322() {
|
| +buildUnnamed1368() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed322(core.List<core.String> o) {
|
| +checkUnnamed1368(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'));
|
| }
|
|
|
| -buildUnnamed323() {
|
| +buildUnnamed1369() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed323(core.List<core.String> o) {
|
| +checkUnnamed1369(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'));
|
| @@ -2998,14 +3037,14 @@ buildDirectorySite() {
|
| buildCounterDirectorySite++;
|
| if (buildCounterDirectorySite < 3) {
|
| o.active = true;
|
| - o.contactAssignments = buildUnnamed321();
|
| + o.contactAssignments = buildUnnamed1367();
|
| o.countryId = "foo";
|
| o.currencyId = "foo";
|
| o.description = "foo";
|
| o.id = "foo";
|
| o.idDimensionValue = buildDimensionValue();
|
| - o.inpageTagFormats = buildUnnamed322();
|
| - o.interstitialTagFormats = buildUnnamed323();
|
| + o.inpageTagFormats = buildUnnamed1368();
|
| + o.interstitialTagFormats = buildUnnamed1369();
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.parentId = "foo";
|
| @@ -3020,14 +3059,14 @@ checkDirectorySite(api.DirectorySite o) {
|
| buildCounterDirectorySite++;
|
| if (buildCounterDirectorySite < 3) {
|
| unittest.expect(o.active, unittest.isTrue);
|
| - checkUnnamed321(o.contactAssignments);
|
| + checkUnnamed1367(o.contactAssignments);
|
| unittest.expect(o.countryId, unittest.equals('foo'));
|
| unittest.expect(o.currencyId, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkDimensionValue(o.idDimensionValue);
|
| - checkUnnamed322(o.inpageTagFormats);
|
| - checkUnnamed323(o.interstitialTagFormats);
|
| + checkUnnamed1368(o.inpageTagFormats);
|
| + checkUnnamed1369(o.interstitialTagFormats);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.parentId, unittest.equals('foo'));
|
| @@ -3042,12 +3081,15 @@ buildDirectorySiteContact() {
|
| var o = new api.DirectorySiteContact();
|
| buildCounterDirectorySiteContact++;
|
| if (buildCounterDirectorySiteContact < 3) {
|
| + o.address = "foo";
|
| o.email = "foo";
|
| o.firstName = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.lastName = "foo";
|
| + o.phone = "foo";
|
| o.role = "foo";
|
| + o.title = "foo";
|
| o.type = "foo";
|
| }
|
| buildCounterDirectorySiteContact--;
|
| @@ -3057,12 +3099,15 @@ buildDirectorySiteContact() {
|
| checkDirectorySiteContact(api.DirectorySiteContact o) {
|
| buildCounterDirectorySiteContact++;
|
| if (buildCounterDirectorySiteContact < 3) {
|
| + unittest.expect(o.address, unittest.equals('foo'));
|
| unittest.expect(o.email, unittest.equals('foo'));
|
| unittest.expect(o.firstName, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.lastName, unittest.equals('foo'));
|
| + unittest.expect(o.phone, unittest.equals('foo'));
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| + unittest.expect(o.title, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterDirectorySiteContact--;
|
| @@ -3089,14 +3134,14 @@ checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) {
|
| buildCounterDirectorySiteContactAssignment--;
|
| }
|
|
|
| -buildUnnamed324() {
|
| +buildUnnamed1370() {
|
| var o = new core.List<api.DirectorySiteContact>();
|
| o.add(buildDirectorySiteContact());
|
| o.add(buildDirectorySiteContact());
|
| return o;
|
| }
|
|
|
| -checkUnnamed324(core.List<api.DirectorySiteContact> o) {
|
| +checkUnnamed1370(core.List<api.DirectorySiteContact> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDirectorySiteContact(o[0]);
|
| checkDirectorySiteContact(o[1]);
|
| @@ -3107,7 +3152,7 @@ buildDirectorySiteContactsListResponse() {
|
| var o = new api.DirectorySiteContactsListResponse();
|
| buildCounterDirectorySiteContactsListResponse++;
|
| if (buildCounterDirectorySiteContactsListResponse < 3) {
|
| - o.directorySiteContacts = buildUnnamed324();
|
| + o.directorySiteContacts = buildUnnamed1370();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -3118,7 +3163,7 @@ buildDirectorySiteContactsListResponse() {
|
| checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) {
|
| buildCounterDirectorySiteContactsListResponse++;
|
| if (buildCounterDirectorySiteContactsListResponse < 3) {
|
| - checkUnnamed324(o.directorySiteContacts);
|
| + checkUnnamed1370(o.directorySiteContacts);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -3156,14 +3201,14 @@ checkDirectorySiteSettings(api.DirectorySiteSettings o) {
|
| buildCounterDirectorySiteSettings--;
|
| }
|
|
|
| -buildUnnamed325() {
|
| +buildUnnamed1371() {
|
| var o = new core.List<api.DirectorySite>();
|
| o.add(buildDirectorySite());
|
| o.add(buildDirectorySite());
|
| return o;
|
| }
|
|
|
| -checkUnnamed325(core.List<api.DirectorySite> o) {
|
| +checkUnnamed1371(core.List<api.DirectorySite> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDirectorySite(o[0]);
|
| checkDirectorySite(o[1]);
|
| @@ -3174,7 +3219,7 @@ buildDirectorySitesListResponse() {
|
| var o = new api.DirectorySitesListResponse();
|
| buildCounterDirectorySitesListResponse++;
|
| if (buildCounterDirectorySitesListResponse < 3) {
|
| - o.directorySites = buildUnnamed325();
|
| + o.directorySites = buildUnnamed1371();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -3185,21 +3230,21 @@ buildDirectorySitesListResponse() {
|
| checkDirectorySitesListResponse(api.DirectorySitesListResponse o) {
|
| buildCounterDirectorySitesListResponse++;
|
| if (buildCounterDirectorySitesListResponse < 3) {
|
| - checkUnnamed325(o.directorySites);
|
| + checkUnnamed1371(o.directorySites);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterDirectorySitesListResponse--;
|
| }
|
|
|
| -buildUnnamed326() {
|
| +buildUnnamed1372() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed326(core.List<core.String> o) {
|
| +checkUnnamed1372(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'));
|
| @@ -3216,11 +3261,12 @@ buildEventTag() {
|
| o.campaignId = "foo";
|
| o.campaignIdDimensionValue = buildDimensionValue();
|
| o.enabledByDefault = true;
|
| + o.excludeFromAdxRequests = true;
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.siteFilterType = "foo";
|
| - o.siteIds = buildUnnamed326();
|
| + o.siteIds = buildUnnamed1372();
|
| o.sslCompliant = true;
|
| o.status = "foo";
|
| o.subaccountId = "foo";
|
| @@ -3241,11 +3287,12 @@ checkEventTag(api.EventTag o) {
|
| unittest.expect(o.campaignId, unittest.equals('foo'));
|
| checkDimensionValue(o.campaignIdDimensionValue);
|
| unittest.expect(o.enabledByDefault, unittest.isTrue);
|
| + unittest.expect(o.excludeFromAdxRequests, unittest.isTrue);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.siteFilterType, unittest.equals('foo'));
|
| - checkUnnamed326(o.siteIds);
|
| + checkUnnamed1372(o.siteIds);
|
| unittest.expect(o.sslCompliant, unittest.isTrue);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| @@ -3277,14 +3324,14 @@ checkEventTagOverride(api.EventTagOverride o) {
|
| buildCounterEventTagOverride--;
|
| }
|
|
|
| -buildUnnamed327() {
|
| +buildUnnamed1373() {
|
| var o = new core.List<api.EventTag>();
|
| o.add(buildEventTag());
|
| o.add(buildEventTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed327(core.List<api.EventTag> o) {
|
| +checkUnnamed1373(core.List<api.EventTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEventTag(o[0]);
|
| checkEventTag(o[1]);
|
| @@ -3295,7 +3342,7 @@ buildEventTagsListResponse() {
|
| var o = new api.EventTagsListResponse();
|
| buildCounterEventTagsListResponse++;
|
| if (buildCounterEventTagsListResponse < 3) {
|
| - o.eventTags = buildUnnamed327();
|
| + o.eventTags = buildUnnamed1373();
|
| o.kind = "foo";
|
| }
|
| buildCounterEventTagsListResponse--;
|
| @@ -3305,7 +3352,7 @@ buildEventTagsListResponse() {
|
| checkEventTagsListResponse(api.EventTagsListResponse o) {
|
| buildCounterEventTagsListResponse++;
|
| if (buildCounterEventTagsListResponse < 3) {
|
| - checkUnnamed327(o.eventTags);
|
| + checkUnnamed1373(o.eventTags);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterEventTagsListResponse--;
|
| @@ -3369,14 +3416,14 @@ checkFile(api.File o) {
|
| buildCounterFile--;
|
| }
|
|
|
| -buildUnnamed328() {
|
| +buildUnnamed1374() {
|
| var o = new core.List<api.File>();
|
| o.add(buildFile());
|
| o.add(buildFile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed328(core.List<api.File> o) {
|
| +checkUnnamed1374(core.List<api.File> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFile(o[0]);
|
| checkFile(o[1]);
|
| @@ -3388,7 +3435,7 @@ buildFileList() {
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed328();
|
| + o.items = buildUnnamed1374();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -3400,13 +3447,38 @@ checkFileList(api.FileList o) {
|
| buildCounterFileList++;
|
| if (buildCounterFileList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed328(o.items);
|
| + checkUnnamed1374(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterFileList--;
|
| }
|
|
|
| +core.int buildCounterFlight = 0;
|
| +buildFlight() {
|
| + var o = new api.Flight();
|
| + buildCounterFlight++;
|
| + if (buildCounterFlight < 3) {
|
| + o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + o.rateOrCost = "foo";
|
| + o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + o.units = "foo";
|
| + }
|
| + buildCounterFlight--;
|
| + return o;
|
| +}
|
| +
|
| +checkFlight(api.Flight o) {
|
| + buildCounterFlight++;
|
| + if (buildCounterFlight < 3) {
|
| + unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + unittest.expect(o.rateOrCost, unittest.equals('foo'));
|
| + unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + unittest.expect(o.units, unittest.equals('foo'));
|
| + }
|
| + buildCounterFlight--;
|
| +}
|
| +
|
| core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0;
|
| buildFloodlightActivitiesGenerateTagResponse() {
|
| var o = new api.FloodlightActivitiesGenerateTagResponse();
|
| @@ -3428,14 +3500,14 @@ checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag
|
| buildCounterFloodlightActivitiesGenerateTagResponse--;
|
| }
|
|
|
| -buildUnnamed329() {
|
| +buildUnnamed1375() {
|
| var o = new core.List<api.FloodlightActivity>();
|
| o.add(buildFloodlightActivity());
|
| o.add(buildFloodlightActivity());
|
| return o;
|
| }
|
|
|
| -checkUnnamed329(core.List<api.FloodlightActivity> o) {
|
| +checkUnnamed1375(core.List<api.FloodlightActivity> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFloodlightActivity(o[0]);
|
| checkFloodlightActivity(o[1]);
|
| @@ -3446,7 +3518,7 @@ buildFloodlightActivitiesListResponse() {
|
| var o = new api.FloodlightActivitiesListResponse();
|
| buildCounterFloodlightActivitiesListResponse++;
|
| if (buildCounterFloodlightActivitiesListResponse < 3) {
|
| - o.floodlightActivities = buildUnnamed329();
|
| + o.floodlightActivities = buildUnnamed1375();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -3457,47 +3529,47 @@ buildFloodlightActivitiesListResponse() {
|
| checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) {
|
| buildCounterFloodlightActivitiesListResponse++;
|
| if (buildCounterFloodlightActivitiesListResponse < 3) {
|
| - checkUnnamed329(o.floodlightActivities);
|
| + checkUnnamed1375(o.floodlightActivities);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterFloodlightActivitiesListResponse--;
|
| }
|
|
|
| -buildUnnamed330() {
|
| +buildUnnamed1376() {
|
| var o = new core.List<api.FloodlightActivityDynamicTag>();
|
| o.add(buildFloodlightActivityDynamicTag());
|
| o.add(buildFloodlightActivityDynamicTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed330(core.List<api.FloodlightActivityDynamicTag> o) {
|
| +checkUnnamed1376(core.List<api.FloodlightActivityDynamicTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFloodlightActivityDynamicTag(o[0]);
|
| checkFloodlightActivityDynamicTag(o[1]);
|
| }
|
|
|
| -buildUnnamed331() {
|
| +buildUnnamed1377() {
|
| var o = new core.List<api.FloodlightActivityPublisherDynamicTag>();
|
| o.add(buildFloodlightActivityPublisherDynamicTag());
|
| o.add(buildFloodlightActivityPublisherDynamicTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed331(core.List<api.FloodlightActivityPublisherDynamicTag> o) {
|
| +checkUnnamed1377(core.List<api.FloodlightActivityPublisherDynamicTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFloodlightActivityPublisherDynamicTag(o[0]);
|
| checkFloodlightActivityPublisherDynamicTag(o[1]);
|
| }
|
|
|
| -buildUnnamed332() {
|
| +buildUnnamed1378() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed332(core.List<core.String> o) {
|
| +checkUnnamed1378(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'));
|
| @@ -3513,7 +3585,7 @@ buildFloodlightActivity() {
|
| o.advertiserIdDimensionValue = buildDimensionValue();
|
| o.cacheBustingType = "foo";
|
| o.countingMethod = "foo";
|
| - o.defaultTags = buildUnnamed330();
|
| + o.defaultTags = buildUnnamed1376();
|
| o.expectedUrl = "foo";
|
| o.floodlightActivityGroupId = "foo";
|
| o.floodlightActivityGroupName = "foo";
|
| @@ -3528,14 +3600,14 @@ buildFloodlightActivity() {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.notes = "foo";
|
| - o.publisherTags = buildUnnamed331();
|
| + o.publisherTags = buildUnnamed1377();
|
| o.secure = true;
|
| o.sslCompliant = true;
|
| o.sslRequired = true;
|
| o.subaccountId = "foo";
|
| o.tagFormat = "foo";
|
| o.tagString = "foo";
|
| - o.userDefinedVariableTypes = buildUnnamed332();
|
| + o.userDefinedVariableTypes = buildUnnamed1378();
|
| }
|
| buildCounterFloodlightActivity--;
|
| return o;
|
| @@ -3549,7 +3621,7 @@ checkFloodlightActivity(api.FloodlightActivity o) {
|
| checkDimensionValue(o.advertiserIdDimensionValue);
|
| unittest.expect(o.cacheBustingType, unittest.equals('foo'));
|
| unittest.expect(o.countingMethod, unittest.equals('foo'));
|
| - checkUnnamed330(o.defaultTags);
|
| + checkUnnamed1376(o.defaultTags);
|
| unittest.expect(o.expectedUrl, unittest.equals('foo'));
|
| unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo'));
|
| unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo'));
|
| @@ -3564,14 +3636,14 @@ checkFloodlightActivity(api.FloodlightActivity o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.notes, unittest.equals('foo'));
|
| - checkUnnamed331(o.publisherTags);
|
| + checkUnnamed1377(o.publisherTags);
|
| unittest.expect(o.secure, unittest.isTrue);
|
| unittest.expect(o.sslCompliant, unittest.isTrue);
|
| unittest.expect(o.sslRequired, unittest.isTrue);
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| unittest.expect(o.tagFormat, unittest.equals('foo'));
|
| unittest.expect(o.tagString, unittest.equals('foo'));
|
| - checkUnnamed332(o.userDefinedVariableTypes);
|
| + checkUnnamed1378(o.userDefinedVariableTypes);
|
| }
|
| buildCounterFloodlightActivity--;
|
| }
|
| @@ -3640,14 +3712,14 @@ checkFloodlightActivityGroup(api.FloodlightActivityGroup o) {
|
| buildCounterFloodlightActivityGroup--;
|
| }
|
|
|
| -buildUnnamed333() {
|
| +buildUnnamed1379() {
|
| var o = new core.List<api.FloodlightActivityGroup>();
|
| o.add(buildFloodlightActivityGroup());
|
| o.add(buildFloodlightActivityGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed333(core.List<api.FloodlightActivityGroup> o) {
|
| +checkUnnamed1379(core.List<api.FloodlightActivityGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFloodlightActivityGroup(o[0]);
|
| checkFloodlightActivityGroup(o[1]);
|
| @@ -3658,7 +3730,7 @@ buildFloodlightActivityGroupsListResponse() {
|
| var o = new api.FloodlightActivityGroupsListResponse();
|
| buildCounterFloodlightActivityGroupsListResponse++;
|
| if (buildCounterFloodlightActivityGroupsListResponse < 3) {
|
| - o.floodlightActivityGroups = buildUnnamed333();
|
| + o.floodlightActivityGroups = buildUnnamed1379();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -3669,7 +3741,7 @@ buildFloodlightActivityGroupsListResponse() {
|
| checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) {
|
| buildCounterFloodlightActivityGroupsListResponse++;
|
| if (buildCounterFloodlightActivityGroupsListResponse < 3) {
|
| - checkUnnamed333(o.floodlightActivityGroups);
|
| + checkUnnamed1379(o.floodlightActivityGroups);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -3705,27 +3777,40 @@ checkFloodlightActivityPublisherDynamicTag(api.FloodlightActivityPublisherDynami
|
| buildCounterFloodlightActivityPublisherDynamicTag--;
|
| }
|
|
|
| -buildUnnamed334() {
|
| +buildUnnamed1380() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed334(core.List<core.String> o) {
|
| +checkUnnamed1380(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'));
|
| }
|
|
|
| -buildUnnamed335() {
|
| +buildUnnamed1381() {
|
| + var o = new core.List<api.ThirdPartyAuthenticationToken>();
|
| + o.add(buildThirdPartyAuthenticationToken());
|
| + o.add(buildThirdPartyAuthenticationToken());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1381(core.List<api.ThirdPartyAuthenticationToken> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkThirdPartyAuthenticationToken(o[0]);
|
| + checkThirdPartyAuthenticationToken(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1382() {
|
| var o = new core.List<api.UserDefinedVariableConfiguration>();
|
| o.add(buildUserDefinedVariableConfiguration());
|
| o.add(buildUserDefinedVariableConfiguration());
|
| return o;
|
| }
|
|
|
| -checkUnnamed335(core.List<api.UserDefinedVariableConfiguration> o) {
|
| +checkUnnamed1382(core.List<api.UserDefinedVariableConfiguration> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserDefinedVariableConfiguration(o[0]);
|
| checkUserDefinedVariableConfiguration(o[1]);
|
| @@ -3744,15 +3829,17 @@ buildFloodlightConfiguration() {
|
| o.firstDayOfWeek = "foo";
|
| o.id = "foo";
|
| o.idDimensionValue = buildDimensionValue();
|
| + o.inAppAttributionTrackingEnabled = true;
|
| o.kind = "foo";
|
| o.lookbackConfiguration = buildLookbackConfiguration();
|
| o.naturalSearchConversionAttributionOption = "foo";
|
| o.omnitureSettings = buildOmnitureSettings();
|
| o.sslRequired = true;
|
| - o.standardVariableTypes = buildUnnamed334();
|
| + o.standardVariableTypes = buildUnnamed1380();
|
| o.subaccountId = "foo";
|
| o.tagSettings = buildTagSettings();
|
| - o.userDefinedVariableConfigurations = buildUnnamed335();
|
| + o.thirdPartyAuthenticationTokens = buildUnnamed1381();
|
| + o.userDefinedVariableConfigurations = buildUnnamed1382();
|
| }
|
| buildCounterFloodlightConfiguration--;
|
| return o;
|
| @@ -3769,27 +3856,29 @@ checkFloodlightConfiguration(api.FloodlightConfiguration o) {
|
| unittest.expect(o.firstDayOfWeek, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkDimensionValue(o.idDimensionValue);
|
| + unittest.expect(o.inAppAttributionTrackingEnabled, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkLookbackConfiguration(o.lookbackConfiguration);
|
| unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo'));
|
| checkOmnitureSettings(o.omnitureSettings);
|
| unittest.expect(o.sslRequired, unittest.isTrue);
|
| - checkUnnamed334(o.standardVariableTypes);
|
| + checkUnnamed1380(o.standardVariableTypes);
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| checkTagSettings(o.tagSettings);
|
| - checkUnnamed335(o.userDefinedVariableConfigurations);
|
| + checkUnnamed1381(o.thirdPartyAuthenticationTokens);
|
| + checkUnnamed1382(o.userDefinedVariableConfigurations);
|
| }
|
| buildCounterFloodlightConfiguration--;
|
| }
|
|
|
| -buildUnnamed336() {
|
| +buildUnnamed1383() {
|
| var o = new core.List<api.FloodlightConfiguration>();
|
| o.add(buildFloodlightConfiguration());
|
| o.add(buildFloodlightConfiguration());
|
| return o;
|
| }
|
|
|
| -checkUnnamed336(core.List<api.FloodlightConfiguration> o) {
|
| +checkUnnamed1383(core.List<api.FloodlightConfiguration> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFloodlightConfiguration(o[0]);
|
| checkFloodlightConfiguration(o[1]);
|
| @@ -3800,7 +3889,7 @@ buildFloodlightConfigurationsListResponse() {
|
| var o = new api.FloodlightConfigurationsListResponse();
|
| buildCounterFloodlightConfigurationsListResponse++;
|
| if (buildCounterFloodlightConfigurationsListResponse < 3) {
|
| - o.floodlightConfigurations = buildUnnamed336();
|
| + o.floodlightConfigurations = buildUnnamed1383();
|
| o.kind = "foo";
|
| }
|
| buildCounterFloodlightConfigurationsListResponse--;
|
| @@ -3810,46 +3899,46 @@ buildFloodlightConfigurationsListResponse() {
|
| checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) {
|
| buildCounterFloodlightConfigurationsListResponse++;
|
| if (buildCounterFloodlightConfigurationsListResponse < 3) {
|
| - checkUnnamed336(o.floodlightConfigurations);
|
| + checkUnnamed1383(o.floodlightConfigurations);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterFloodlightConfigurationsListResponse--;
|
| }
|
|
|
| -buildUnnamed337() {
|
| +buildUnnamed1384() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed337(core.List<api.Dimension> o) {
|
| +checkUnnamed1384(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed338() {
|
| +buildUnnamed1385() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed338(core.List<api.Dimension> o) {
|
| +checkUnnamed1385(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed339() {
|
| +buildUnnamed1386() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed339(core.List<api.Metric> o) {
|
| +checkUnnamed1386(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| @@ -3860,10 +3949,10 @@ buildFloodlightReportCompatibleFields() {
|
| var o = new api.FloodlightReportCompatibleFields();
|
| buildCounterFloodlightReportCompatibleFields++;
|
| if (buildCounterFloodlightReportCompatibleFields < 3) {
|
| - o.dimensionFilters = buildUnnamed337();
|
| - o.dimensions = buildUnnamed338();
|
| + o.dimensionFilters = buildUnnamed1384();
|
| + o.dimensions = buildUnnamed1385();
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed339();
|
| + o.metrics = buildUnnamed1386();
|
| }
|
| buildCounterFloodlightReportCompatibleFields--;
|
| return o;
|
| @@ -3872,10 +3961,10 @@ buildFloodlightReportCompatibleFields() {
|
| checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) {
|
| buildCounterFloodlightReportCompatibleFields++;
|
| if (buildCounterFloodlightReportCompatibleFields < 3) {
|
| - checkUnnamed337(o.dimensionFilters);
|
| - checkUnnamed338(o.dimensions);
|
| + checkUnnamed1384(o.dimensionFilters);
|
| + checkUnnamed1385(o.dimensions);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed339(o.metrics);
|
| + checkUnnamed1386(o.metrics);
|
| }
|
| buildCounterFloodlightReportCompatibleFields--;
|
| }
|
| @@ -3928,66 +4017,66 @@ checkFsCommand(api.FsCommand o) {
|
| buildCounterFsCommand--;
|
| }
|
|
|
| -buildUnnamed340() {
|
| +buildUnnamed1387() {
|
| var o = new core.List<api.City>();
|
| o.add(buildCity());
|
| o.add(buildCity());
|
| return o;
|
| }
|
|
|
| -checkUnnamed340(core.List<api.City> o) {
|
| +checkUnnamed1387(core.List<api.City> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCity(o[0]);
|
| checkCity(o[1]);
|
| }
|
|
|
| -buildUnnamed341() {
|
| +buildUnnamed1388() {
|
| var o = new core.List<api.Country>();
|
| o.add(buildCountry());
|
| o.add(buildCountry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed341(core.List<api.Country> o) {
|
| +checkUnnamed1388(core.List<api.Country> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCountry(o[0]);
|
| checkCountry(o[1]);
|
| }
|
|
|
| -buildUnnamed342() {
|
| +buildUnnamed1389() {
|
| var o = new core.List<api.Metro>();
|
| o.add(buildMetro());
|
| o.add(buildMetro());
|
| return o;
|
| }
|
|
|
| -checkUnnamed342(core.List<api.Metro> o) {
|
| +checkUnnamed1389(core.List<api.Metro> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetro(o[0]);
|
| checkMetro(o[1]);
|
| }
|
|
|
| -buildUnnamed343() {
|
| +buildUnnamed1390() {
|
| var o = new core.List<api.PostalCode>();
|
| o.add(buildPostalCode());
|
| o.add(buildPostalCode());
|
| return o;
|
| }
|
|
|
| -checkUnnamed343(core.List<api.PostalCode> o) {
|
| +checkUnnamed1390(core.List<api.PostalCode> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPostalCode(o[0]);
|
| checkPostalCode(o[1]);
|
| }
|
|
|
| -buildUnnamed344() {
|
| +buildUnnamed1391() {
|
| var o = new core.List<api.Region>();
|
| o.add(buildRegion());
|
| o.add(buildRegion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed344(core.List<api.Region> o) {
|
| +checkUnnamed1391(core.List<api.Region> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRegion(o[0]);
|
| checkRegion(o[1]);
|
| @@ -3998,12 +4087,12 @@ buildGeoTargeting() {
|
| var o = new api.GeoTargeting();
|
| buildCounterGeoTargeting++;
|
| if (buildCounterGeoTargeting < 3) {
|
| - o.cities = buildUnnamed340();
|
| - o.countries = buildUnnamed341();
|
| + o.cities = buildUnnamed1387();
|
| + o.countries = buildUnnamed1388();
|
| o.excludeCountries = true;
|
| - o.metros = buildUnnamed342();
|
| - o.postalCodes = buildUnnamed343();
|
| - o.regions = buildUnnamed344();
|
| + o.metros = buildUnnamed1389();
|
| + o.postalCodes = buildUnnamed1390();
|
| + o.regions = buildUnnamed1391();
|
| }
|
| buildCounterGeoTargeting--;
|
| return o;
|
| @@ -4012,16 +4101,120 @@ buildGeoTargeting() {
|
| checkGeoTargeting(api.GeoTargeting o) {
|
| buildCounterGeoTargeting++;
|
| if (buildCounterGeoTargeting < 3) {
|
| - checkUnnamed340(o.cities);
|
| - checkUnnamed341(o.countries);
|
| + checkUnnamed1387(o.cities);
|
| + checkUnnamed1388(o.countries);
|
| unittest.expect(o.excludeCountries, unittest.isTrue);
|
| - checkUnnamed342(o.metros);
|
| - checkUnnamed343(o.postalCodes);
|
| - checkUnnamed344(o.regions);
|
| + checkUnnamed1389(o.metros);
|
| + checkUnnamed1390(o.postalCodes);
|
| + checkUnnamed1391(o.regions);
|
| }
|
| buildCounterGeoTargeting--;
|
| }
|
|
|
| +buildUnnamed1392() {
|
| + var o = new core.List<api.AdSlot>();
|
| + o.add(buildAdSlot());
|
| + o.add(buildAdSlot());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1392(core.List<api.AdSlot> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkAdSlot(o[0]);
|
| + checkAdSlot(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterInventoryItem = 0;
|
| +buildInventoryItem() {
|
| + var o = new api.InventoryItem();
|
| + buildCounterInventoryItem++;
|
| + if (buildCounterInventoryItem < 3) {
|
| + o.accountId = "foo";
|
| + o.adSlots = buildUnnamed1392();
|
| + o.advertiserId = "foo";
|
| + o.contentCategoryId = "foo";
|
| + o.estimatedClickThroughRate = "foo";
|
| + o.estimatedConversionRate = "foo";
|
| + o.id = "foo";
|
| + o.inPlan = true;
|
| + o.kind = "foo";
|
| + o.lastModifiedInfo = buildLastModifiedInfo();
|
| + o.name = "foo";
|
| + o.negotiationChannelId = "foo";
|
| + o.orderId = "foo";
|
| + o.placementStrategyId = "foo";
|
| + o.pricing = buildPricing();
|
| + o.projectId = "foo";
|
| + o.rfpId = "foo";
|
| + o.siteId = "foo";
|
| + o.subaccountId = "foo";
|
| + }
|
| + buildCounterInventoryItem--;
|
| + return o;
|
| +}
|
| +
|
| +checkInventoryItem(api.InventoryItem o) {
|
| + buildCounterInventoryItem++;
|
| + if (buildCounterInventoryItem < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + checkUnnamed1392(o.adSlots);
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + unittest.expect(o.contentCategoryId, unittest.equals('foo'));
|
| + unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo'));
|
| + unittest.expect(o.estimatedConversionRate, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.inPlan, unittest.isTrue);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkLastModifiedInfo(o.lastModifiedInfo);
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.negotiationChannelId, unittest.equals('foo'));
|
| + unittest.expect(o.orderId, unittest.equals('foo'));
|
| + unittest.expect(o.placementStrategyId, unittest.equals('foo'));
|
| + checkPricing(o.pricing);
|
| + unittest.expect(o.projectId, unittest.equals('foo'));
|
| + unittest.expect(o.rfpId, unittest.equals('foo'));
|
| + unittest.expect(o.siteId, unittest.equals('foo'));
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + }
|
| + buildCounterInventoryItem--;
|
| +}
|
| +
|
| +buildUnnamed1393() {
|
| + var o = new core.List<api.InventoryItem>();
|
| + o.add(buildInventoryItem());
|
| + o.add(buildInventoryItem());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1393(core.List<api.InventoryItem> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkInventoryItem(o[0]);
|
| + checkInventoryItem(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterInventoryItemsListResponse = 0;
|
| +buildInventoryItemsListResponse() {
|
| + var o = new api.InventoryItemsListResponse();
|
| + buildCounterInventoryItemsListResponse++;
|
| + if (buildCounterInventoryItemsListResponse < 3) {
|
| + o.inventoryItems = buildUnnamed1393();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterInventoryItemsListResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkInventoryItemsListResponse(api.InventoryItemsListResponse o) {
|
| + buildCounterInventoryItemsListResponse++;
|
| + if (buildCounterInventoryItemsListResponse < 3) {
|
| + checkUnnamed1393(o.inventoryItems);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterInventoryItemsListResponse--;
|
| +}
|
| +
|
| core.int buildCounterKeyValueTargetingExpression = 0;
|
| buildKeyValueTargetingExpression() {
|
| var o = new api.KeyValueTargetingExpression();
|
| @@ -4068,14 +4261,14 @@ checkLandingPage(api.LandingPage o) {
|
| buildCounterLandingPage--;
|
| }
|
|
|
| -buildUnnamed345() {
|
| +buildUnnamed1394() {
|
| var o = new core.List<api.LandingPage>();
|
| o.add(buildLandingPage());
|
| o.add(buildLandingPage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed345(core.List<api.LandingPage> o) {
|
| +checkUnnamed1394(core.List<api.LandingPage> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLandingPage(o[0]);
|
| checkLandingPage(o[1]);
|
| @@ -4087,7 +4280,7 @@ buildLandingPagesListResponse() {
|
| buildCounterLandingPagesListResponse++;
|
| if (buildCounterLandingPagesListResponse < 3) {
|
| o.kind = "foo";
|
| - o.landingPages = buildUnnamed345();
|
| + o.landingPages = buildUnnamed1394();
|
| }
|
| buildCounterLandingPagesListResponse--;
|
| return o;
|
| @@ -4097,7 +4290,7 @@ checkLandingPagesListResponse(api.LandingPagesListResponse o) {
|
| buildCounterLandingPagesListResponse++;
|
| if (buildCounterLandingPagesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed345(o.landingPages);
|
| + checkUnnamed1394(o.landingPages);
|
| }
|
| buildCounterLandingPagesListResponse--;
|
| }
|
| @@ -4121,6 +4314,107 @@ checkLastModifiedInfo(api.LastModifiedInfo o) {
|
| buildCounterLastModifiedInfo--;
|
| }
|
|
|
| +buildUnnamed1395() {
|
| + var o = new core.List<api.ListPopulationTerm>();
|
| + o.add(buildListPopulationTerm());
|
| + o.add(buildListPopulationTerm());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1395(core.List<api.ListPopulationTerm> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkListPopulationTerm(o[0]);
|
| + checkListPopulationTerm(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterListPopulationClause = 0;
|
| +buildListPopulationClause() {
|
| + var o = new api.ListPopulationClause();
|
| + buildCounterListPopulationClause++;
|
| + if (buildCounterListPopulationClause < 3) {
|
| + o.terms = buildUnnamed1395();
|
| + }
|
| + buildCounterListPopulationClause--;
|
| + return o;
|
| +}
|
| +
|
| +checkListPopulationClause(api.ListPopulationClause o) {
|
| + buildCounterListPopulationClause++;
|
| + if (buildCounterListPopulationClause < 3) {
|
| + checkUnnamed1395(o.terms);
|
| + }
|
| + buildCounterListPopulationClause--;
|
| +}
|
| +
|
| +buildUnnamed1396() {
|
| + var o = new core.List<api.ListPopulationClause>();
|
| + o.add(buildListPopulationClause());
|
| + o.add(buildListPopulationClause());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1396(core.List<api.ListPopulationClause> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkListPopulationClause(o[0]);
|
| + checkListPopulationClause(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterListPopulationRule = 0;
|
| +buildListPopulationRule() {
|
| + var o = new api.ListPopulationRule();
|
| + buildCounterListPopulationRule++;
|
| + if (buildCounterListPopulationRule < 3) {
|
| + o.floodlightActivityId = "foo";
|
| + o.floodlightActivityName = "foo";
|
| + o.listPopulationClauses = buildUnnamed1396();
|
| + }
|
| + buildCounterListPopulationRule--;
|
| + return o;
|
| +}
|
| +
|
| +checkListPopulationRule(api.ListPopulationRule o) {
|
| + buildCounterListPopulationRule++;
|
| + if (buildCounterListPopulationRule < 3) {
|
| + unittest.expect(o.floodlightActivityId, unittest.equals('foo'));
|
| + unittest.expect(o.floodlightActivityName, unittest.equals('foo'));
|
| + checkUnnamed1396(o.listPopulationClauses);
|
| + }
|
| + buildCounterListPopulationRule--;
|
| +}
|
| +
|
| +core.int buildCounterListPopulationTerm = 0;
|
| +buildListPopulationTerm() {
|
| + var o = new api.ListPopulationTerm();
|
| + buildCounterListPopulationTerm++;
|
| + if (buildCounterListPopulationTerm < 3) {
|
| + o.contains = true;
|
| + o.negation = true;
|
| + o.operator = "foo";
|
| + o.remarketingListId = "foo";
|
| + o.type = "foo";
|
| + o.value = "foo";
|
| + o.variableFriendlyName = "foo";
|
| + o.variableName = "foo";
|
| + }
|
| + buildCounterListPopulationTerm--;
|
| + return o;
|
| +}
|
| +
|
| +checkListPopulationTerm(api.ListPopulationTerm o) {
|
| + buildCounterListPopulationTerm++;
|
| + if (buildCounterListPopulationTerm < 3) {
|
| + unittest.expect(o.contains, unittest.isTrue);
|
| + unittest.expect(o.negation, unittest.isTrue);
|
| + unittest.expect(o.operator, unittest.equals('foo'));
|
| + unittest.expect(o.remarketingListId, unittest.equals('foo'));
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + unittest.expect(o.variableFriendlyName, unittest.equals('foo'));
|
| + unittest.expect(o.variableName, unittest.equals('foo'));
|
| + }
|
| + buildCounterListPopulationTerm--;
|
| +}
|
| +
|
| core.int buildCounterListTargetingExpression = 0;
|
| buildListTargetingExpression() {
|
| var o = new api.ListTargetingExpression();
|
| @@ -4213,14 +4507,14 @@ checkMetro(api.Metro o) {
|
| buildCounterMetro--;
|
| }
|
|
|
| -buildUnnamed346() {
|
| +buildUnnamed1397() {
|
| var o = new core.List<api.Metro>();
|
| o.add(buildMetro());
|
| o.add(buildMetro());
|
| return o;
|
| }
|
|
|
| -checkUnnamed346(core.List<api.Metro> o) {
|
| +checkUnnamed1397(core.List<api.Metro> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetro(o[0]);
|
| checkMetro(o[1]);
|
| @@ -4232,7 +4526,7 @@ buildMetrosListResponse() {
|
| buildCounterMetrosListResponse++;
|
| if (buildCounterMetrosListResponse < 3) {
|
| o.kind = "foo";
|
| - o.metros = buildUnnamed346();
|
| + o.metros = buildUnnamed1397();
|
| }
|
| buildCounterMetrosListResponse--;
|
| return o;
|
| @@ -4242,7 +4536,7 @@ checkMetrosListResponse(api.MetrosListResponse o) {
|
| buildCounterMetrosListResponse++;
|
| if (buildCounterMetrosListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed346(o.metros);
|
| + checkUnnamed1397(o.metros);
|
| }
|
| buildCounterMetrosListResponse--;
|
| }
|
| @@ -4274,14 +4568,14 @@ checkMobileCarrier(api.MobileCarrier o) {
|
| buildCounterMobileCarrier--;
|
| }
|
|
|
| -buildUnnamed347() {
|
| +buildUnnamed1398() {
|
| var o = new core.List<api.MobileCarrier>();
|
| o.add(buildMobileCarrier());
|
| o.add(buildMobileCarrier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed347(core.List<api.MobileCarrier> o) {
|
| +checkUnnamed1398(core.List<api.MobileCarrier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMobileCarrier(o[0]);
|
| checkMobileCarrier(o[1]);
|
| @@ -4293,7 +4587,7 @@ buildMobileCarriersListResponse() {
|
| buildCounterMobileCarriersListResponse++;
|
| if (buildCounterMobileCarriersListResponse < 3) {
|
| o.kind = "foo";
|
| - o.mobileCarriers = buildUnnamed347();
|
| + o.mobileCarriers = buildUnnamed1398();
|
| }
|
| buildCounterMobileCarriersListResponse--;
|
| return o;
|
| @@ -4303,19 +4597,19 @@ checkMobileCarriersListResponse(api.MobileCarriersListResponse o) {
|
| buildCounterMobileCarriersListResponse++;
|
| if (buildCounterMobileCarriersListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed347(o.mobileCarriers);
|
| + checkUnnamed1398(o.mobileCarriers);
|
| }
|
| buildCounterMobileCarriersListResponse--;
|
| }
|
|
|
| -buildUnnamed348() {
|
| +buildUnnamed1399() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed348(core.List<core.String> o) {
|
| +checkUnnamed1399(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'));
|
| @@ -4327,7 +4621,7 @@ buildObjectFilter() {
|
| buildCounterObjectFilter++;
|
| if (buildCounterObjectFilter < 3) {
|
| o.kind = "foo";
|
| - o.objectIds = buildUnnamed348();
|
| + o.objectIds = buildUnnamed1399();
|
| o.status = "foo";
|
| }
|
| buildCounterObjectFilter--;
|
| @@ -4338,7 +4632,7 @@ checkObjectFilter(api.ObjectFilter o) {
|
| buildCounterObjectFilter++;
|
| if (buildCounterObjectFilter < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed348(o.objectIds);
|
| + checkUnnamed1399(o.objectIds);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| }
|
| buildCounterObjectFilter--;
|
| @@ -4442,14 +4736,14 @@ checkOperatingSystemVersion(api.OperatingSystemVersion o) {
|
| buildCounterOperatingSystemVersion--;
|
| }
|
|
|
| -buildUnnamed349() {
|
| +buildUnnamed1400() {
|
| var o = new core.List<api.OperatingSystemVersion>();
|
| o.add(buildOperatingSystemVersion());
|
| o.add(buildOperatingSystemVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed349(core.List<api.OperatingSystemVersion> o) {
|
| +checkUnnamed1400(core.List<api.OperatingSystemVersion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperatingSystemVersion(o[0]);
|
| checkOperatingSystemVersion(o[1]);
|
| @@ -4461,7 +4755,7 @@ buildOperatingSystemVersionsListResponse() {
|
| buildCounterOperatingSystemVersionsListResponse++;
|
| if (buildCounterOperatingSystemVersionsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.operatingSystemVersions = buildUnnamed349();
|
| + o.operatingSystemVersions = buildUnnamed1400();
|
| }
|
| buildCounterOperatingSystemVersionsListResponse--;
|
| return o;
|
| @@ -4471,19 +4765,19 @@ checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse
|
| buildCounterOperatingSystemVersionsListResponse++;
|
| if (buildCounterOperatingSystemVersionsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed349(o.operatingSystemVersions);
|
| + checkUnnamed1400(o.operatingSystemVersions);
|
| }
|
| buildCounterOperatingSystemVersionsListResponse--;
|
| }
|
|
|
| -buildUnnamed350() {
|
| +buildUnnamed1401() {
|
| var o = new core.List<api.OperatingSystem>();
|
| o.add(buildOperatingSystem());
|
| o.add(buildOperatingSystem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed350(core.List<api.OperatingSystem> o) {
|
| +checkUnnamed1401(core.List<api.OperatingSystem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperatingSystem(o[0]);
|
| checkOperatingSystem(o[1]);
|
| @@ -4495,7 +4789,7 @@ buildOperatingSystemsListResponse() {
|
| buildCounterOperatingSystemsListResponse++;
|
| if (buildCounterOperatingSystemsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.operatingSystems = buildUnnamed350();
|
| + o.operatingSystems = buildUnnamed1401();
|
| }
|
| buildCounterOperatingSystemsListResponse--;
|
| return o;
|
| @@ -4505,7 +4799,7 @@ checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) {
|
| buildCounterOperatingSystemsListResponse++;
|
| if (buildCounterOperatingSystemsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed350(o.operatingSystems);
|
| + checkUnnamed1401(o.operatingSystems);
|
| }
|
| buildCounterOperatingSystemsListResponse--;
|
| }
|
| @@ -4533,154 +4827,439 @@ checkOptimizationActivity(api.OptimizationActivity o) {
|
| buildCounterOptimizationActivity--;
|
| }
|
|
|
| -buildUnnamed351() {
|
| - var o = new core.List<api.Dimension>();
|
| - o.add(buildDimension());
|
| - o.add(buildDimension());
|
| +buildUnnamed1402() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed351(core.List<api.Dimension> o) {
|
| +checkUnnamed1402(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkDimension(o[0]);
|
| - checkDimension(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed352() {
|
| - var o = new core.List<api.Dimension>();
|
| - o.add(buildDimension());
|
| - o.add(buildDimension());
|
| +buildUnnamed1403() {
|
| + var o = new core.List<api.OrderContact>();
|
| + o.add(buildOrderContact());
|
| + o.add(buildOrderContact());
|
| return o;
|
| }
|
|
|
| -checkUnnamed352(core.List<api.Dimension> o) {
|
| +checkUnnamed1403(core.List<api.OrderContact> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkDimension(o[0]);
|
| - checkDimension(o[1]);
|
| + checkOrderContact(o[0]);
|
| + checkOrderContact(o[1]);
|
| }
|
|
|
| -buildUnnamed353() {
|
| - var o = new core.List<api.Metric>();
|
| - o.add(buildMetric());
|
| - o.add(buildMetric());
|
| +buildUnnamed1404() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed353(core.List<api.Metric> o) {
|
| +checkUnnamed1404(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkMetric(o[0]);
|
| - checkMetric(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed354() {
|
| - var o = new core.List<api.Dimension>();
|
| - o.add(buildDimension());
|
| - o.add(buildDimension());
|
| +buildUnnamed1405() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed354(core.List<api.Dimension> o) {
|
| +checkUnnamed1405(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkDimension(o[0]);
|
| - checkDimension(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterPathToConversionReportCompatibleFields = 0;
|
| -buildPathToConversionReportCompatibleFields() {
|
| - var o = new api.PathToConversionReportCompatibleFields();
|
| - buildCounterPathToConversionReportCompatibleFields++;
|
| - if (buildCounterPathToConversionReportCompatibleFields < 3) {
|
| - o.conversionDimensions = buildUnnamed351();
|
| - o.customFloodlightVariables = buildUnnamed352();
|
| +core.int buildCounterOrder = 0;
|
| +buildOrder() {
|
| + var o = new api.Order();
|
| + buildCounterOrder++;
|
| + if (buildCounterOrder < 3) {
|
| + o.accountId = "foo";
|
| + o.advertiserId = "foo";
|
| + o.approverUserProfileIds = buildUnnamed1402();
|
| + o.buyerInvoiceId = "foo";
|
| + o.buyerOrganizationName = "foo";
|
| + o.comments = "foo";
|
| + o.contacts = buildUnnamed1403();
|
| + o.id = "foo";
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed353();
|
| - o.perInteractionDimensions = buildUnnamed354();
|
| + o.lastModifiedInfo = buildLastModifiedInfo();
|
| + o.name = "foo";
|
| + o.notes = "foo";
|
| + o.planningTermId = "foo";
|
| + o.projectId = "foo";
|
| + o.sellerOrderId = "foo";
|
| + o.sellerOrganizationName = "foo";
|
| + o.siteId = buildUnnamed1404();
|
| + o.siteNames = buildUnnamed1405();
|
| + o.subaccountId = "foo";
|
| + o.termsAndConditions = "foo";
|
| }
|
| - buildCounterPathToConversionReportCompatibleFields--;
|
| + buildCounterOrder--;
|
| return o;
|
| }
|
|
|
| -checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) {
|
| - buildCounterPathToConversionReportCompatibleFields++;
|
| - if (buildCounterPathToConversionReportCompatibleFields < 3) {
|
| - checkUnnamed351(o.conversionDimensions);
|
| - checkUnnamed352(o.customFloodlightVariables);
|
| +checkOrder(api.Order o) {
|
| + buildCounterOrder++;
|
| + if (buildCounterOrder < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + checkUnnamed1402(o.approverUserProfileIds);
|
| + unittest.expect(o.buyerInvoiceId, unittest.equals('foo'));
|
| + unittest.expect(o.buyerOrganizationName, unittest.equals('foo'));
|
| + unittest.expect(o.comments, unittest.equals('foo'));
|
| + checkUnnamed1403(o.contacts);
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed353(o.metrics);
|
| - checkUnnamed354(o.perInteractionDimensions);
|
| + checkLastModifiedInfo(o.lastModifiedInfo);
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.notes, unittest.equals('foo'));
|
| + unittest.expect(o.planningTermId, unittest.equals('foo'));
|
| + unittest.expect(o.projectId, unittest.equals('foo'));
|
| + unittest.expect(o.sellerOrderId, unittest.equals('foo'));
|
| + unittest.expect(o.sellerOrganizationName, unittest.equals('foo'));
|
| + checkUnnamed1404(o.siteId);
|
| + checkUnnamed1405(o.siteNames);
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + unittest.expect(o.termsAndConditions, unittest.equals('foo'));
|
| }
|
| - buildCounterPathToConversionReportCompatibleFields--;
|
| + buildCounterOrder--;
|
| +}
|
| +
|
| +core.int buildCounterOrderContact = 0;
|
| +buildOrderContact() {
|
| + var o = new api.OrderContact();
|
| + buildCounterOrderContact++;
|
| + if (buildCounterOrderContact < 3) {
|
| + o.contactInfo = "foo";
|
| + o.contactName = "foo";
|
| + o.contactTitle = "foo";
|
| + o.contactType = "foo";
|
| + o.signatureUserProfileId = "foo";
|
| + }
|
| + buildCounterOrderContact--;
|
| + return o;
|
| +}
|
| +
|
| +checkOrderContact(api.OrderContact o) {
|
| + buildCounterOrderContact++;
|
| + if (buildCounterOrderContact < 3) {
|
| + unittest.expect(o.contactInfo, unittest.equals('foo'));
|
| + unittest.expect(o.contactName, unittest.equals('foo'));
|
| + unittest.expect(o.contactTitle, unittest.equals('foo'));
|
| + unittest.expect(o.contactType, unittest.equals('foo'));
|
| + unittest.expect(o.signatureUserProfileId, unittest.equals('foo'));
|
| + }
|
| + buildCounterOrderContact--;
|
| }
|
|
|
| -buildUnnamed355() {
|
| +buildUnnamed1406() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed355(core.List<core.String> o) {
|
| +checkUnnamed1406(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'));
|
| }
|
|
|
| -core.int buildCounterPlacement = 0;
|
| -buildPlacement() {
|
| - var o = new api.Placement();
|
| - buildCounterPlacement++;
|
| - if (buildCounterPlacement < 3) {
|
| +buildUnnamed1407() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1407(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'));
|
| +}
|
| +
|
| +core.int buildCounterOrderDocument = 0;
|
| +buildOrderDocument() {
|
| + var o = new api.OrderDocument();
|
| + buildCounterOrderDocument++;
|
| + if (buildCounterOrderDocument < 3) {
|
| o.accountId = "foo";
|
| o.advertiserId = "foo";
|
| - o.advertiserIdDimensionValue = buildDimensionValue();
|
| - o.archived = true;
|
| - o.campaignId = "foo";
|
| - o.campaignIdDimensionValue = buildDimensionValue();
|
| - o.comment = "foo";
|
| - o.compatibility = "foo";
|
| - o.contentCategoryId = "foo";
|
| - o.createInfo = buildLastModifiedInfo();
|
| - o.directorySiteId = "foo";
|
| - o.directorySiteIdDimensionValue = buildDimensionValue();
|
| - o.externalId = "foo";
|
| + o.amendedOrderDocumentId = "foo";
|
| + o.approvedByUserProfileIds = buildUnnamed1406();
|
| + o.cancelled = true;
|
| + o.createdInfo = buildLastModifiedInfo();
|
| + o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| o.id = "foo";
|
| - o.idDimensionValue = buildDimensionValue();
|
| - o.keyName = "foo";
|
| o.kind = "foo";
|
| - o.lastModifiedInfo = buildLastModifiedInfo();
|
| - o.lookbackConfiguration = buildLookbackConfiguration();
|
| - o.name = "foo";
|
| - o.paymentApproved = true;
|
| - o.paymentSource = "foo";
|
| - o.placementGroupId = "foo";
|
| - o.placementGroupIdDimensionValue = buildDimensionValue();
|
| - o.placementStrategyId = "foo";
|
| - o.pricingSchedule = buildPricingSchedule();
|
| - o.primary = true;
|
| - o.publisherUpdateInfo = buildLastModifiedInfo();
|
| - o.siteId = "foo";
|
| - o.siteIdDimensionValue = buildDimensionValue();
|
| - o.size = buildSize();
|
| - o.sslRequired = true;
|
| - o.status = "foo";
|
| + o.lastSentRecipients = buildUnnamed1407();
|
| + o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| + o.orderId = "foo";
|
| + o.projectId = "foo";
|
| + o.signed = true;
|
| o.subaccountId = "foo";
|
| - o.tagFormats = buildUnnamed355();
|
| - o.tagSetting = buildTagSetting();
|
| + o.title = "foo";
|
| + o.type = "foo";
|
| }
|
| - buildCounterPlacement--;
|
| + buildCounterOrderDocument--;
|
| return o;
|
| }
|
|
|
| -checkPlacement(api.Placement o) {
|
| - buildCounterPlacement++;
|
| - if (buildCounterPlacement < 3) {
|
| +checkOrderDocument(api.OrderDocument o) {
|
| + buildCounterOrderDocument++;
|
| + if (buildCounterOrderDocument < 3) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| - checkDimensionValue(o.advertiserIdDimensionValue);
|
| - unittest.expect(o.archived, unittest.isTrue);
|
| - unittest.expect(o.campaignId, unittest.equals('foo'));
|
| - checkDimensionValue(o.campaignIdDimensionValue);
|
| - unittest.expect(o.comment, unittest.equals('foo'));
|
| + unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo'));
|
| + checkUnnamed1406(o.approvedByUserProfileIds);
|
| + unittest.expect(o.cancelled, unittest.isTrue);
|
| + checkLastModifiedInfo(o.createdInfo);
|
| + unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed1407(o.lastSentRecipients);
|
| + unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| + unittest.expect(o.orderId, unittest.equals('foo'));
|
| + unittest.expect(o.projectId, unittest.equals('foo'));
|
| + unittest.expect(o.signed, unittest.isTrue);
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + unittest.expect(o.title, unittest.equals('foo'));
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| + }
|
| + buildCounterOrderDocument--;
|
| +}
|
| +
|
| +buildUnnamed1408() {
|
| + var o = new core.List<api.OrderDocument>();
|
| + o.add(buildOrderDocument());
|
| + o.add(buildOrderDocument());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1408(core.List<api.OrderDocument> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkOrderDocument(o[0]);
|
| + checkOrderDocument(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterOrderDocumentsListResponse = 0;
|
| +buildOrderDocumentsListResponse() {
|
| + var o = new api.OrderDocumentsListResponse();
|
| + buildCounterOrderDocumentsListResponse++;
|
| + if (buildCounterOrderDocumentsListResponse < 3) {
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.orderDocuments = buildUnnamed1408();
|
| + }
|
| + buildCounterOrderDocumentsListResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkOrderDocumentsListResponse(api.OrderDocumentsListResponse o) {
|
| + buildCounterOrderDocumentsListResponse++;
|
| + if (buildCounterOrderDocumentsListResponse < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1408(o.orderDocuments);
|
| + }
|
| + buildCounterOrderDocumentsListResponse--;
|
| +}
|
| +
|
| +buildUnnamed1409() {
|
| + var o = new core.List<api.Order>();
|
| + o.add(buildOrder());
|
| + o.add(buildOrder());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1409(core.List<api.Order> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkOrder(o[0]);
|
| + checkOrder(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterOrdersListResponse = 0;
|
| +buildOrdersListResponse() {
|
| + var o = new api.OrdersListResponse();
|
| + buildCounterOrdersListResponse++;
|
| + if (buildCounterOrdersListResponse < 3) {
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.orders = buildUnnamed1409();
|
| + }
|
| + buildCounterOrdersListResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkOrdersListResponse(api.OrdersListResponse o) {
|
| + buildCounterOrdersListResponse++;
|
| + if (buildCounterOrdersListResponse < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1409(o.orders);
|
| + }
|
| + buildCounterOrdersListResponse--;
|
| +}
|
| +
|
| +buildUnnamed1410() {
|
| + var o = new core.List<api.Dimension>();
|
| + o.add(buildDimension());
|
| + o.add(buildDimension());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1410(core.List<api.Dimension> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkDimension(o[0]);
|
| + checkDimension(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1411() {
|
| + var o = new core.List<api.Dimension>();
|
| + o.add(buildDimension());
|
| + o.add(buildDimension());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1411(core.List<api.Dimension> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkDimension(o[0]);
|
| + checkDimension(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1412() {
|
| + var o = new core.List<api.Metric>();
|
| + o.add(buildMetric());
|
| + o.add(buildMetric());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1412(core.List<api.Metric> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkMetric(o[0]);
|
| + checkMetric(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1413() {
|
| + var o = new core.List<api.Dimension>();
|
| + o.add(buildDimension());
|
| + o.add(buildDimension());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1413(core.List<api.Dimension> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkDimension(o[0]);
|
| + checkDimension(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterPathToConversionReportCompatibleFields = 0;
|
| +buildPathToConversionReportCompatibleFields() {
|
| + var o = new api.PathToConversionReportCompatibleFields();
|
| + buildCounterPathToConversionReportCompatibleFields++;
|
| + if (buildCounterPathToConversionReportCompatibleFields < 3) {
|
| + o.conversionDimensions = buildUnnamed1410();
|
| + o.customFloodlightVariables = buildUnnamed1411();
|
| + o.kind = "foo";
|
| + o.metrics = buildUnnamed1412();
|
| + o.perInteractionDimensions = buildUnnamed1413();
|
| + }
|
| + buildCounterPathToConversionReportCompatibleFields--;
|
| + return o;
|
| +}
|
| +
|
| +checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) {
|
| + buildCounterPathToConversionReportCompatibleFields++;
|
| + if (buildCounterPathToConversionReportCompatibleFields < 3) {
|
| + checkUnnamed1410(o.conversionDimensions);
|
| + checkUnnamed1411(o.customFloodlightVariables);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed1412(o.metrics);
|
| + checkUnnamed1413(o.perInteractionDimensions);
|
| + }
|
| + buildCounterPathToConversionReportCompatibleFields--;
|
| +}
|
| +
|
| +buildUnnamed1414() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1414(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'));
|
| +}
|
| +
|
| +core.int buildCounterPlacement = 0;
|
| +buildPlacement() {
|
| + var o = new api.Placement();
|
| + buildCounterPlacement++;
|
| + if (buildCounterPlacement < 3) {
|
| + o.accountId = "foo";
|
| + o.advertiserId = "foo";
|
| + o.advertiserIdDimensionValue = buildDimensionValue();
|
| + o.archived = true;
|
| + o.campaignId = "foo";
|
| + o.campaignIdDimensionValue = buildDimensionValue();
|
| + o.comment = "foo";
|
| + o.compatibility = "foo";
|
| + o.contentCategoryId = "foo";
|
| + o.createInfo = buildLastModifiedInfo();
|
| + o.directorySiteId = "foo";
|
| + o.directorySiteIdDimensionValue = buildDimensionValue();
|
| + o.externalId = "foo";
|
| + o.id = "foo";
|
| + o.idDimensionValue = buildDimensionValue();
|
| + o.keyName = "foo";
|
| + o.kind = "foo";
|
| + o.lastModifiedInfo = buildLastModifiedInfo();
|
| + o.lookbackConfiguration = buildLookbackConfiguration();
|
| + o.name = "foo";
|
| + o.paymentApproved = true;
|
| + o.paymentSource = "foo";
|
| + o.placementGroupId = "foo";
|
| + o.placementGroupIdDimensionValue = buildDimensionValue();
|
| + o.placementStrategyId = "foo";
|
| + o.pricingSchedule = buildPricingSchedule();
|
| + o.primary = true;
|
| + o.publisherUpdateInfo = buildLastModifiedInfo();
|
| + o.siteId = "foo";
|
| + o.siteIdDimensionValue = buildDimensionValue();
|
| + o.size = buildSize();
|
| + o.sslRequired = true;
|
| + o.status = "foo";
|
| + o.subaccountId = "foo";
|
| + o.tagFormats = buildUnnamed1414();
|
| + o.tagSetting = buildTagSetting();
|
| + }
|
| + buildCounterPlacement--;
|
| + return o;
|
| +}
|
| +
|
| +checkPlacement(api.Placement o) {
|
| + buildCounterPlacement++;
|
| + if (buildCounterPlacement < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + checkDimensionValue(o.advertiserIdDimensionValue);
|
| + unittest.expect(o.archived, unittest.isTrue);
|
| + unittest.expect(o.campaignId, unittest.equals('foo'));
|
| + checkDimensionValue(o.campaignIdDimensionValue);
|
| + unittest.expect(o.comment, unittest.equals('foo'));
|
| unittest.expect(o.compatibility, unittest.equals('foo'));
|
| unittest.expect(o.contentCategoryId, unittest.equals('foo'));
|
| checkLastModifiedInfo(o.createInfo);
|
| @@ -4708,7 +5287,7 @@ checkPlacement(api.Placement o) {
|
| unittest.expect(o.sslRequired, unittest.isTrue);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| - checkUnnamed355(o.tagFormats);
|
| + checkUnnamed1414(o.tagFormats);
|
| checkTagSetting(o.tagSetting);
|
| }
|
| buildCounterPlacement--;
|
| @@ -4739,14 +5318,14 @@ checkPlacementAssignment(api.PlacementAssignment o) {
|
| buildCounterPlacementAssignment--;
|
| }
|
|
|
| -buildUnnamed356() {
|
| +buildUnnamed1415() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed356(core.List<core.String> o) {
|
| +checkUnnamed1415(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'));
|
| @@ -4763,7 +5342,7 @@ buildPlacementGroup() {
|
| o.archived = true;
|
| o.campaignId = "foo";
|
| o.campaignIdDimensionValue = buildDimensionValue();
|
| - o.childPlacementIds = buildUnnamed356();
|
| + o.childPlacementIds = buildUnnamed1415();
|
| o.comment = "foo";
|
| o.contentCategoryId = "foo";
|
| o.createInfo = buildLastModifiedInfo();
|
| @@ -4780,7 +5359,6 @@ buildPlacementGroup() {
|
| o.pricingSchedule = buildPricingSchedule();
|
| o.primaryPlacementId = "foo";
|
| o.primaryPlacementIdDimensionValue = buildDimensionValue();
|
| - o.programmaticSetting = buildProgrammaticSetting();
|
| o.siteId = "foo";
|
| o.siteIdDimensionValue = buildDimensionValue();
|
| o.subaccountId = "foo";
|
| @@ -4798,7 +5376,7 @@ checkPlacementGroup(api.PlacementGroup o) {
|
| unittest.expect(o.archived, unittest.isTrue);
|
| unittest.expect(o.campaignId, unittest.equals('foo'));
|
| checkDimensionValue(o.campaignIdDimensionValue);
|
| - checkUnnamed356(o.childPlacementIds);
|
| + checkUnnamed1415(o.childPlacementIds);
|
| unittest.expect(o.comment, unittest.equals('foo'));
|
| unittest.expect(o.contentCategoryId, unittest.equals('foo'));
|
| checkLastModifiedInfo(o.createInfo);
|
| @@ -4815,7 +5393,6 @@ checkPlacementGroup(api.PlacementGroup o) {
|
| checkPricingSchedule(o.pricingSchedule);
|
| unittest.expect(o.primaryPlacementId, unittest.equals('foo'));
|
| checkDimensionValue(o.primaryPlacementIdDimensionValue);
|
| - checkProgrammaticSetting(o.programmaticSetting);
|
| unittest.expect(o.siteId, unittest.equals('foo'));
|
| checkDimensionValue(o.siteIdDimensionValue);
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| @@ -4823,14 +5400,14 @@ checkPlacementGroup(api.PlacementGroup o) {
|
| buildCounterPlacementGroup--;
|
| }
|
|
|
| -buildUnnamed357() {
|
| +buildUnnamed1416() {
|
| var o = new core.List<api.PlacementGroup>();
|
| o.add(buildPlacementGroup());
|
| o.add(buildPlacementGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed357(core.List<api.PlacementGroup> o) {
|
| +checkUnnamed1416(core.List<api.PlacementGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlacementGroup(o[0]);
|
| checkPlacementGroup(o[1]);
|
| @@ -4843,7 +5420,7 @@ buildPlacementGroupsListResponse() {
|
| if (buildCounterPlacementGroupsListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.placementGroups = buildUnnamed357();
|
| + o.placementGroups = buildUnnamed1416();
|
| }
|
| buildCounterPlacementGroupsListResponse--;
|
| return o;
|
| @@ -4854,19 +5431,19 @@ checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) {
|
| if (buildCounterPlacementGroupsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed357(o.placementGroups);
|
| + checkUnnamed1416(o.placementGroups);
|
| }
|
| buildCounterPlacementGroupsListResponse--;
|
| }
|
|
|
| -buildUnnamed358() {
|
| +buildUnnamed1417() {
|
| var o = new core.List<api.PlacementStrategy>();
|
| o.add(buildPlacementStrategy());
|
| o.add(buildPlacementStrategy());
|
| return o;
|
| }
|
|
|
| -checkUnnamed358(core.List<api.PlacementStrategy> o) {
|
| +checkUnnamed1417(core.List<api.PlacementStrategy> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlacementStrategy(o[0]);
|
| checkPlacementStrategy(o[1]);
|
| @@ -4879,7 +5456,7 @@ buildPlacementStrategiesListResponse() {
|
| if (buildCounterPlacementStrategiesListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.placementStrategies = buildUnnamed358();
|
| + o.placementStrategies = buildUnnamed1417();
|
| }
|
| buildCounterPlacementStrategiesListResponse--;
|
| return o;
|
| @@ -4890,7 +5467,7 @@ checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) {
|
| if (buildCounterPlacementStrategiesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed358(o.placementStrategies);
|
| + checkUnnamed1417(o.placementStrategies);
|
| }
|
| buildCounterPlacementStrategiesListResponse--;
|
| }
|
| @@ -4920,14 +5497,14 @@ checkPlacementStrategy(api.PlacementStrategy o) {
|
| buildCounterPlacementStrategy--;
|
| }
|
|
|
| -buildUnnamed359() {
|
| +buildUnnamed1418() {
|
| var o = new core.List<api.TagData>();
|
| o.add(buildTagData());
|
| o.add(buildTagData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed359(core.List<api.TagData> o) {
|
| +checkUnnamed1418(core.List<api.TagData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTagData(o[0]);
|
| checkTagData(o[1]);
|
| @@ -4939,7 +5516,7 @@ buildPlacementTag() {
|
| buildCounterPlacementTag++;
|
| if (buildCounterPlacementTag < 3) {
|
| o.placementId = "foo";
|
| - o.tagDatas = buildUnnamed359();
|
| + o.tagDatas = buildUnnamed1418();
|
| }
|
| buildCounterPlacementTag--;
|
| return o;
|
| @@ -4949,19 +5526,19 @@ checkPlacementTag(api.PlacementTag o) {
|
| buildCounterPlacementTag++;
|
| if (buildCounterPlacementTag < 3) {
|
| unittest.expect(o.placementId, unittest.equals('foo'));
|
| - checkUnnamed359(o.tagDatas);
|
| + checkUnnamed1418(o.tagDatas);
|
| }
|
| buildCounterPlacementTag--;
|
| }
|
|
|
| -buildUnnamed360() {
|
| +buildUnnamed1419() {
|
| var o = new core.List<api.PlacementTag>();
|
| o.add(buildPlacementTag());
|
| o.add(buildPlacementTag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed360(core.List<api.PlacementTag> o) {
|
| +checkUnnamed1419(core.List<api.PlacementTag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlacementTag(o[0]);
|
| checkPlacementTag(o[1]);
|
| @@ -4973,7 +5550,7 @@ buildPlacementsGenerateTagsResponse() {
|
| buildCounterPlacementsGenerateTagsResponse++;
|
| if (buildCounterPlacementsGenerateTagsResponse < 3) {
|
| o.kind = "foo";
|
| - o.placementTags = buildUnnamed360();
|
| + o.placementTags = buildUnnamed1419();
|
| }
|
| buildCounterPlacementsGenerateTagsResponse--;
|
| return o;
|
| @@ -4983,19 +5560,19 @@ checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) {
|
| buildCounterPlacementsGenerateTagsResponse++;
|
| if (buildCounterPlacementsGenerateTagsResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed360(o.placementTags);
|
| + checkUnnamed1419(o.placementTags);
|
| }
|
| buildCounterPlacementsGenerateTagsResponse--;
|
| }
|
|
|
| -buildUnnamed361() {
|
| +buildUnnamed1420() {
|
| var o = new core.List<api.Placement>();
|
| o.add(buildPlacement());
|
| o.add(buildPlacement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed361(core.List<api.Placement> o) {
|
| +checkUnnamed1420(core.List<api.Placement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlacement(o[0]);
|
| checkPlacement(o[1]);
|
| @@ -5008,7 +5585,7 @@ buildPlacementsListResponse() {
|
| if (buildCounterPlacementsListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.placements = buildUnnamed361();
|
| + o.placements = buildUnnamed1420();
|
| }
|
| buildCounterPlacementsListResponse--;
|
| return o;
|
| @@ -5019,7 +5596,7 @@ checkPlacementsListResponse(api.PlacementsListResponse o) {
|
| if (buildCounterPlacementsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed361(o.placements);
|
| + checkUnnamed1420(o.placements);
|
| }
|
| buildCounterPlacementsListResponse--;
|
| }
|
| @@ -5047,14 +5624,14 @@ checkPlatformType(api.PlatformType o) {
|
| buildCounterPlatformType--;
|
| }
|
|
|
| -buildUnnamed362() {
|
| +buildUnnamed1421() {
|
| var o = new core.List<api.PlatformType>();
|
| o.add(buildPlatformType());
|
| o.add(buildPlatformType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed362(core.List<api.PlatformType> o) {
|
| +checkUnnamed1421(core.List<api.PlatformType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlatformType(o[0]);
|
| checkPlatformType(o[1]);
|
| @@ -5066,7 +5643,7 @@ buildPlatformTypesListResponse() {
|
| buildCounterPlatformTypesListResponse++;
|
| if (buildCounterPlatformTypesListResponse < 3) {
|
| o.kind = "foo";
|
| - o.platformTypes = buildUnnamed362();
|
| + o.platformTypes = buildUnnamed1421();
|
| }
|
| buildCounterPlatformTypesListResponse--;
|
| return o;
|
| @@ -5076,7 +5653,7 @@ checkPlatformTypesListResponse(api.PlatformTypesListResponse o) {
|
| buildCounterPlatformTypesListResponse++;
|
| if (buildCounterPlatformTypesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed362(o.platformTypes);
|
| + checkUnnamed1421(o.platformTypes);
|
| }
|
| buildCounterPlatformTypesListResponse--;
|
| }
|
| @@ -5121,6 +5698,7 @@ buildPostalCode() {
|
| var o = new api.PostalCode();
|
| buildCounterPostalCode++;
|
| if (buildCounterPostalCode < 3) {
|
| + o.code = "foo";
|
| o.countryCode = "foo";
|
| o.countryDartId = "foo";
|
| o.id = "foo";
|
| @@ -5133,6 +5711,7 @@ buildPostalCode() {
|
| checkPostalCode(api.PostalCode o) {
|
| buildCounterPostalCode++;
|
| if (buildCounterPostalCode < 3) {
|
| + unittest.expect(o.code, unittest.equals('foo'));
|
| unittest.expect(o.countryCode, unittest.equals('foo'));
|
| unittest.expect(o.countryDartId, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -5141,14 +5720,14 @@ checkPostalCode(api.PostalCode o) {
|
| buildCounterPostalCode--;
|
| }
|
|
|
| -buildUnnamed363() {
|
| +buildUnnamed1422() {
|
| var o = new core.List<api.PostalCode>();
|
| o.add(buildPostalCode());
|
| o.add(buildPostalCode());
|
| return o;
|
| }
|
|
|
| -checkUnnamed363(core.List<api.PostalCode> o) {
|
| +checkUnnamed1422(core.List<api.PostalCode> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPostalCode(o[0]);
|
| checkPostalCode(o[1]);
|
| @@ -5160,7 +5739,7 @@ buildPostalCodesListResponse() {
|
| buildCounterPostalCodesListResponse++;
|
| if (buildCounterPostalCodesListResponse < 3) {
|
| o.kind = "foo";
|
| - o.postalCodes = buildUnnamed363();
|
| + o.postalCodes = buildUnnamed1422();
|
| }
|
| buildCounterPostalCodesListResponse--;
|
| return o;
|
| @@ -5170,19 +5749,61 @@ checkPostalCodesListResponse(api.PostalCodesListResponse o) {
|
| buildCounterPostalCodesListResponse++;
|
| if (buildCounterPostalCodesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed363(o.postalCodes);
|
| + checkUnnamed1422(o.postalCodes);
|
| }
|
| buildCounterPostalCodesListResponse--;
|
| }
|
|
|
| -buildUnnamed364() {
|
| +buildUnnamed1423() {
|
| + var o = new core.List<api.Flight>();
|
| + o.add(buildFlight());
|
| + o.add(buildFlight());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1423(core.List<api.Flight> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkFlight(o[0]);
|
| + checkFlight(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterPricing = 0;
|
| +buildPricing() {
|
| + var o = new api.Pricing();
|
| + buildCounterPricing++;
|
| + if (buildCounterPricing < 3) {
|
| + o.capCostType = "foo";
|
| + o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + o.flights = buildUnnamed1423();
|
| + o.groupType = "foo";
|
| + o.pricingType = "foo";
|
| + o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + }
|
| + buildCounterPricing--;
|
| + return o;
|
| +}
|
| +
|
| +checkPricing(api.Pricing o) {
|
| + buildCounterPricing++;
|
| + if (buildCounterPricing < 3) {
|
| + unittest.expect(o.capCostType, unittest.equals('foo'));
|
| + unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + checkUnnamed1423(o.flights);
|
| + unittest.expect(o.groupType, unittest.equals('foo'));
|
| + unittest.expect(o.pricingType, unittest.equals('foo'));
|
| + unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + }
|
| + buildCounterPricing--;
|
| +}
|
| +
|
| +buildUnnamed1424() {
|
| var o = new core.List<api.PricingSchedulePricingPeriod>();
|
| o.add(buildPricingSchedulePricingPeriod());
|
| o.add(buildPricingSchedulePricingPeriod());
|
| return o;
|
| }
|
|
|
| -checkUnnamed364(core.List<api.PricingSchedulePricingPeriod> o) {
|
| +checkUnnamed1424(core.List<api.PricingSchedulePricingPeriod> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPricingSchedulePricingPeriod(o[0]);
|
| checkPricingSchedulePricingPeriod(o[1]);
|
| @@ -5198,7 +5819,7 @@ buildPricingSchedule() {
|
| o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| o.flighted = true;
|
| o.floodlightActivityId = "foo";
|
| - o.pricingPeriods = buildUnnamed364();
|
| + o.pricingPeriods = buildUnnamed1424();
|
| o.pricingType = "foo";
|
| o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| @@ -5215,7 +5836,7 @@ checkPricingSchedule(api.PricingSchedule o) {
|
| unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| unittest.expect(o.flighted, unittest.isTrue);
|
| unittest.expect(o.floodlightActivityId, unittest.equals('foo'));
|
| - checkUnnamed364(o.pricingPeriods);
|
| + checkUnnamed1424(o.pricingPeriods);
|
| unittest.expect(o.pricingType, unittest.equals('foo'));
|
| unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| @@ -5250,121 +5871,161 @@ checkPricingSchedulePricingPeriod(api.PricingSchedulePricingPeriod o) {
|
| buildCounterPricingSchedulePricingPeriod--;
|
| }
|
|
|
| -buildUnnamed365() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| +core.int buildCounterProject = 0;
|
| +buildProject() {
|
| + var o = new api.Project();
|
| + buildCounterProject++;
|
| + if (buildCounterProject < 3) {
|
| + o.accountId = "foo";
|
| + o.advertiserId = "foo";
|
| + o.audienceAgeGroup = "foo";
|
| + o.audienceGender = "foo";
|
| + o.budget = "foo";
|
| + o.clientBillingCode = "foo";
|
| + o.clientName = "foo";
|
| + o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.lastModifiedInfo = buildLastModifiedInfo();
|
| + o.name = "foo";
|
| + o.overview = "foo";
|
| + o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| + o.subaccountId = "foo";
|
| + o.targetClicks = "foo";
|
| + o.targetConversions = "foo";
|
| + o.targetCpaNanos = "foo";
|
| + o.targetCpcNanos = "foo";
|
| + o.targetCpmNanos = "foo";
|
| + o.targetImpressions = "foo";
|
| + }
|
| + buildCounterProject--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed365(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'));
|
| +checkProject(api.Project o) {
|
| + buildCounterProject++;
|
| + if (buildCounterProject < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + unittest.expect(o.audienceAgeGroup, unittest.equals('foo'));
|
| + unittest.expect(o.audienceGender, unittest.equals('foo'));
|
| + unittest.expect(o.budget, unittest.equals('foo'));
|
| + unittest.expect(o.clientBillingCode, unittest.equals('foo'));
|
| + unittest.expect(o.clientName, unittest.equals('foo'));
|
| + unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkLastModifiedInfo(o.lastModifiedInfo);
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.overview, unittest.equals('foo'));
|
| + unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + unittest.expect(o.targetClicks, unittest.equals('foo'));
|
| + unittest.expect(o.targetConversions, unittest.equals('foo'));
|
| + unittest.expect(o.targetCpaNanos, unittest.equals('foo'));
|
| + unittest.expect(o.targetCpcNanos, unittest.equals('foo'));
|
| + unittest.expect(o.targetCpmNanos, unittest.equals('foo'));
|
| + unittest.expect(o.targetImpressions, unittest.equals('foo'));
|
| + }
|
| + buildCounterProject--;
|
| }
|
|
|
| -buildUnnamed366() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| +buildUnnamed1425() {
|
| + var o = new core.List<api.Project>();
|
| + o.add(buildProject());
|
| + o.add(buildProject());
|
| return o;
|
| }
|
|
|
| -checkUnnamed366(core.List<core.String> o) {
|
| +checkUnnamed1425(core.List<api.Project> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| + checkProject(o[0]);
|
| + checkProject(o[1]);
|
| }
|
|
|
| -core.int buildCounterProgrammaticSetting = 0;
|
| -buildProgrammaticSetting() {
|
| - var o = new api.ProgrammaticSetting();
|
| - buildCounterProgrammaticSetting++;
|
| - if (buildCounterProgrammaticSetting < 3) {
|
| - o.adxDealIds = buildUnnamed365();
|
| - o.insertionOrderId = "foo";
|
| - o.insertionOrderIdStatus = true;
|
| - o.mediaCostNanos = "foo";
|
| - o.programmatic = true;
|
| - o.traffickerEmails = buildUnnamed366();
|
| +core.int buildCounterProjectsListResponse = 0;
|
| +buildProjectsListResponse() {
|
| + var o = new api.ProjectsListResponse();
|
| + buildCounterProjectsListResponse++;
|
| + if (buildCounterProjectsListResponse < 3) {
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.projects = buildUnnamed1425();
|
| }
|
| - buildCounterProgrammaticSetting--;
|
| + buildCounterProjectsListResponse--;
|
| return o;
|
| }
|
|
|
| -checkProgrammaticSetting(api.ProgrammaticSetting o) {
|
| - buildCounterProgrammaticSetting++;
|
| - if (buildCounterProgrammaticSetting < 3) {
|
| - checkUnnamed365(o.adxDealIds);
|
| - unittest.expect(o.insertionOrderId, unittest.equals('foo'));
|
| - unittest.expect(o.insertionOrderIdStatus, unittest.isTrue);
|
| - unittest.expect(o.mediaCostNanos, unittest.equals('foo'));
|
| - unittest.expect(o.programmatic, unittest.isTrue);
|
| - checkUnnamed366(o.traffickerEmails);
|
| +checkProjectsListResponse(api.ProjectsListResponse o) {
|
| + buildCounterProjectsListResponse++;
|
| + if (buildCounterProjectsListResponse < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1425(o.projects);
|
| }
|
| - buildCounterProgrammaticSetting--;
|
| + buildCounterProjectsListResponse--;
|
| }
|
|
|
| -buildUnnamed367() {
|
| +buildUnnamed1426() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed367(core.List<api.Dimension> o) {
|
| +checkUnnamed1426(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed368() {
|
| +buildUnnamed1427() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed368(core.List<api.Dimension> o) {
|
| +checkUnnamed1427(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed369() {
|
| +buildUnnamed1428() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed369(core.List<api.Metric> o) {
|
| +checkUnnamed1428(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| }
|
|
|
| -buildUnnamed370() {
|
| +buildUnnamed1429() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed370(core.List<api.Metric> o) {
|
| +checkUnnamed1429(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| }
|
|
|
| -buildUnnamed371() {
|
| +buildUnnamed1430() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed371(core.List<api.Metric> o) {
|
| +checkUnnamed1430(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| @@ -5375,12 +6036,12 @@ buildReachReportCompatibleFields() {
|
| var o = new api.ReachReportCompatibleFields();
|
| buildCounterReachReportCompatibleFields++;
|
| if (buildCounterReachReportCompatibleFields < 3) {
|
| - o.dimensionFilters = buildUnnamed367();
|
| - o.dimensions = buildUnnamed368();
|
| + o.dimensionFilters = buildUnnamed1426();
|
| + o.dimensions = buildUnnamed1427();
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed369();
|
| - o.pivotedActivityMetrics = buildUnnamed370();
|
| - o.reachByFrequencyMetrics = buildUnnamed371();
|
| + o.metrics = buildUnnamed1428();
|
| + o.pivotedActivityMetrics = buildUnnamed1429();
|
| + o.reachByFrequencyMetrics = buildUnnamed1430();
|
| }
|
| buildCounterReachReportCompatibleFields--;
|
| return o;
|
| @@ -5389,12 +6050,12 @@ buildReachReportCompatibleFields() {
|
| checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) {
|
| buildCounterReachReportCompatibleFields++;
|
| if (buildCounterReachReportCompatibleFields < 3) {
|
| - checkUnnamed367(o.dimensionFilters);
|
| - checkUnnamed368(o.dimensions);
|
| + checkUnnamed1426(o.dimensionFilters);
|
| + checkUnnamed1427(o.dimensions);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed369(o.metrics);
|
| - checkUnnamed370(o.pivotedActivityMetrics);
|
| - checkUnnamed371(o.reachByFrequencyMetrics);
|
| + checkUnnamed1428(o.metrics);
|
| + checkUnnamed1429(o.pivotedActivityMetrics);
|
| + checkUnnamed1430(o.reachByFrequencyMetrics);
|
| }
|
| buildCounterReachReportCompatibleFields--;
|
| }
|
| @@ -5451,14 +6112,14 @@ checkRegion(api.Region o) {
|
| buildCounterRegion--;
|
| }
|
|
|
| -buildUnnamed372() {
|
| +buildUnnamed1431() {
|
| var o = new core.List<api.Region>();
|
| o.add(buildRegion());
|
| o.add(buildRegion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed372(core.List<api.Region> o) {
|
| +checkUnnamed1431(core.List<api.Region> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRegion(o[0]);
|
| checkRegion(o[1]);
|
| @@ -5470,7 +6131,7 @@ buildRegionsListResponse() {
|
| buildCounterRegionsListResponse++;
|
| if (buildCounterRegionsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.regions = buildUnnamed372();
|
| + o.regions = buildUnnamed1431();
|
| }
|
| buildCounterRegionsListResponse--;
|
| return o;
|
| @@ -5480,45 +6141,175 @@ checkRegionsListResponse(api.RegionsListResponse o) {
|
| buildCounterRegionsListResponse++;
|
| if (buildCounterRegionsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed372(o.regions);
|
| + checkUnnamed1431(o.regions);
|
| }
|
| buildCounterRegionsListResponse--;
|
| }
|
|
|
| -buildUnnamed373() {
|
| - var o = new core.List<api.DimensionValue>();
|
| - o.add(buildDimensionValue());
|
| - o.add(buildDimensionValue());
|
| +core.int buildCounterRemarketingList = 0;
|
| +buildRemarketingList() {
|
| + var o = new api.RemarketingList();
|
| + buildCounterRemarketingList++;
|
| + if (buildCounterRemarketingList < 3) {
|
| + o.accountId = "foo";
|
| + o.active = true;
|
| + o.advertiserId = "foo";
|
| + o.advertiserIdDimensionValue = buildDimensionValue();
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.lifeSpan = "foo";
|
| + o.listPopulationRule = buildListPopulationRule();
|
| + o.listSize = "foo";
|
| + o.listSource = "foo";
|
| + o.name = "foo";
|
| + o.subaccountId = "foo";
|
| + }
|
| + buildCounterRemarketingList--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed373(core.List<api.DimensionValue> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkDimensionValue(o[0]);
|
| - checkDimensionValue(o[1]);
|
| +checkRemarketingList(api.RemarketingList o) {
|
| + buildCounterRemarketingList++;
|
| + if (buildCounterRemarketingList < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + unittest.expect(o.active, unittest.isTrue);
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + checkDimensionValue(o.advertiserIdDimensionValue);
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.lifeSpan, unittest.equals('foo'));
|
| + checkListPopulationRule(o.listPopulationRule);
|
| + unittest.expect(o.listSize, unittest.equals('foo'));
|
| + unittest.expect(o.listSource, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + }
|
| + buildCounterRemarketingList--;
|
| }
|
|
|
| -buildUnnamed374() {
|
| - var o = new core.List<api.SortedDimension>();
|
| - o.add(buildSortedDimension());
|
| - o.add(buildSortedDimension());
|
| - return o;
|
| -}
|
| +buildUnnamed1432() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1432(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'));
|
| +}
|
| +
|
| +buildUnnamed1433() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1433(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'));
|
| +}
|
| +
|
| +core.int buildCounterRemarketingListShare = 0;
|
| +buildRemarketingListShare() {
|
| + var o = new api.RemarketingListShare();
|
| + buildCounterRemarketingListShare++;
|
| + if (buildCounterRemarketingListShare < 3) {
|
| + o.kind = "foo";
|
| + o.remarketingListId = "foo";
|
| + o.sharedAccountIds = buildUnnamed1432();
|
| + o.sharedAdvertiserIds = buildUnnamed1433();
|
| + }
|
| + buildCounterRemarketingListShare--;
|
| + return o;
|
| +}
|
| +
|
| +checkRemarketingListShare(api.RemarketingListShare o) {
|
| + buildCounterRemarketingListShare++;
|
| + if (buildCounterRemarketingListShare < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.remarketingListId, unittest.equals('foo'));
|
| + checkUnnamed1432(o.sharedAccountIds);
|
| + checkUnnamed1433(o.sharedAdvertiserIds);
|
| + }
|
| + buildCounterRemarketingListShare--;
|
| +}
|
| +
|
| +buildUnnamed1434() {
|
| + var o = new core.List<api.RemarketingList>();
|
| + o.add(buildRemarketingList());
|
| + o.add(buildRemarketingList());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1434(core.List<api.RemarketingList> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkRemarketingList(o[0]);
|
| + checkRemarketingList(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterRemarketingListsListResponse = 0;
|
| +buildRemarketingListsListResponse() {
|
| + var o = new api.RemarketingListsListResponse();
|
| + buildCounterRemarketingListsListResponse++;
|
| + if (buildCounterRemarketingListsListResponse < 3) {
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.remarketingLists = buildUnnamed1434();
|
| + }
|
| + buildCounterRemarketingListsListResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkRemarketingListsListResponse(api.RemarketingListsListResponse o) {
|
| + buildCounterRemarketingListsListResponse++;
|
| + if (buildCounterRemarketingListsListResponse < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1434(o.remarketingLists);
|
| + }
|
| + buildCounterRemarketingListsListResponse--;
|
| +}
|
| +
|
| +buildUnnamed1435() {
|
| + var o = new core.List<api.DimensionValue>();
|
| + o.add(buildDimensionValue());
|
| + o.add(buildDimensionValue());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1435(core.List<api.DimensionValue> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkDimensionValue(o[0]);
|
| + checkDimensionValue(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1436() {
|
| + var o = new core.List<api.SortedDimension>();
|
| + o.add(buildSortedDimension());
|
| + o.add(buildSortedDimension());
|
| + return o;
|
| +}
|
|
|
| -checkUnnamed374(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1436(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed375() {
|
| +buildUnnamed1437() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed375(core.List<core.String> o) {
|
| +checkUnnamed1437(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'));
|
| @@ -5532,9 +6323,9 @@ buildReportCriteria() {
|
| o.activities = buildActivities();
|
| o.customRichMediaEvents = buildCustomRichMediaEvents();
|
| o.dateRange = buildDateRange();
|
| - o.dimensionFilters = buildUnnamed373();
|
| - o.dimensions = buildUnnamed374();
|
| - o.metricNames = buildUnnamed375();
|
| + o.dimensionFilters = buildUnnamed1435();
|
| + o.dimensions = buildUnnamed1436();
|
| + o.metricNames = buildUnnamed1437();
|
| }
|
| buildCounterReportCriteria--;
|
| return o;
|
| @@ -5546,60 +6337,60 @@ checkReportCriteria(api.ReportCriteria o) {
|
| checkActivities(o.activities);
|
| checkCustomRichMediaEvents(o.customRichMediaEvents);
|
| checkDateRange(o.dateRange);
|
| - checkUnnamed373(o.dimensionFilters);
|
| - checkUnnamed374(o.dimensions);
|
| - checkUnnamed375(o.metricNames);
|
| + checkUnnamed1435(o.dimensionFilters);
|
| + checkUnnamed1436(o.dimensions);
|
| + checkUnnamed1437(o.metricNames);
|
| }
|
| buildCounterReportCriteria--;
|
| }
|
|
|
| -buildUnnamed376() {
|
| +buildUnnamed1438() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed376(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1438(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed377() {
|
| +buildUnnamed1439() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed377(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1439(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed378() {
|
| +buildUnnamed1440() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed378(core.List<core.String> o) {
|
| +checkUnnamed1440(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'));
|
| }
|
|
|
| -buildUnnamed379() {
|
| +buildUnnamed1441() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed379(core.List<core.String> o) {
|
| +checkUnnamed1441(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'));
|
| @@ -5610,12 +6401,12 @@ buildReportCrossDimensionReachCriteria() {
|
| var o = new api.ReportCrossDimensionReachCriteria();
|
| buildCounterReportCrossDimensionReachCriteria++;
|
| if (buildCounterReportCrossDimensionReachCriteria < 3) {
|
| - o.breakdown = buildUnnamed376();
|
| + o.breakdown = buildUnnamed1438();
|
| o.dateRange = buildDateRange();
|
| o.dimension = "foo";
|
| - o.dimensionFilters = buildUnnamed377();
|
| - o.metricNames = buildUnnamed378();
|
| - o.overlapMetricNames = buildUnnamed379();
|
| + o.dimensionFilters = buildUnnamed1439();
|
| + o.metricNames = buildUnnamed1440();
|
| + o.overlapMetricNames = buildUnnamed1441();
|
| o.pivoted = true;
|
| }
|
| buildCounterReportCrossDimensionReachCriteria--;
|
| @@ -5625,25 +6416,25 @@ buildReportCrossDimensionReachCriteria() {
|
| checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) {
|
| buildCounterReportCrossDimensionReachCriteria++;
|
| if (buildCounterReportCrossDimensionReachCriteria < 3) {
|
| - checkUnnamed376(o.breakdown);
|
| + checkUnnamed1438(o.breakdown);
|
| checkDateRange(o.dateRange);
|
| unittest.expect(o.dimension, unittest.equals('foo'));
|
| - checkUnnamed377(o.dimensionFilters);
|
| - checkUnnamed378(o.metricNames);
|
| - checkUnnamed379(o.overlapMetricNames);
|
| + checkUnnamed1439(o.dimensionFilters);
|
| + checkUnnamed1440(o.metricNames);
|
| + checkUnnamed1441(o.overlapMetricNames);
|
| unittest.expect(o.pivoted, unittest.isTrue);
|
| }
|
| buildCounterReportCrossDimensionReachCriteria--;
|
| }
|
|
|
| -buildUnnamed380() {
|
| +buildUnnamed1442() {
|
| var o = new core.List<api.Recipient>();
|
| o.add(buildRecipient());
|
| o.add(buildRecipient());
|
| return o;
|
| }
|
|
|
| -checkUnnamed380(core.List<api.Recipient> o) {
|
| +checkUnnamed1442(core.List<api.Recipient> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRecipient(o[0]);
|
| checkRecipient(o[1]);
|
| @@ -5657,7 +6448,7 @@ buildReportDelivery() {
|
| o.emailOwner = true;
|
| o.emailOwnerDeliveryType = "foo";
|
| o.message = "foo";
|
| - o.recipients = buildUnnamed380();
|
| + o.recipients = buildUnnamed1442();
|
| }
|
| buildCounterReportDelivery--;
|
| return o;
|
| @@ -5669,58 +6460,58 @@ checkReportDelivery(api.ReportDelivery o) {
|
| unittest.expect(o.emailOwner, unittest.isTrue);
|
| unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo'));
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| - checkUnnamed380(o.recipients);
|
| + checkUnnamed1442(o.recipients);
|
| }
|
| buildCounterReportDelivery--;
|
| }
|
|
|
| -buildUnnamed381() {
|
| +buildUnnamed1443() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed381(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1443(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed382() {
|
| +buildUnnamed1444() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed382(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1444(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed383() {
|
| +buildUnnamed1445() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed383(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1445(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed384() {
|
| +buildUnnamed1446() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed384(core.List<core.String> o) {
|
| +checkUnnamed1446(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'));
|
| @@ -5754,12 +6545,12 @@ buildReportFloodlightCriteria() {
|
| var o = new api.ReportFloodlightCriteria();
|
| buildCounterReportFloodlightCriteria++;
|
| if (buildCounterReportFloodlightCriteria < 3) {
|
| - o.customRichMediaEvents = buildUnnamed381();
|
| + o.customRichMediaEvents = buildUnnamed1443();
|
| o.dateRange = buildDateRange();
|
| - o.dimensionFilters = buildUnnamed382();
|
| - o.dimensions = buildUnnamed383();
|
| + o.dimensionFilters = buildUnnamed1444();
|
| + o.dimensions = buildUnnamed1445();
|
| o.floodlightConfigId = buildDimensionValue();
|
| - o.metricNames = buildUnnamed384();
|
| + o.metricNames = buildUnnamed1446();
|
| o.reportProperties = buildReportFloodlightCriteriaReportProperties();
|
| }
|
| buildCounterReportFloodlightCriteria--;
|
| @@ -5769,90 +6560,90 @@ buildReportFloodlightCriteria() {
|
| checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) {
|
| buildCounterReportFloodlightCriteria++;
|
| if (buildCounterReportFloodlightCriteria < 3) {
|
| - checkUnnamed381(o.customRichMediaEvents);
|
| + checkUnnamed1443(o.customRichMediaEvents);
|
| checkDateRange(o.dateRange);
|
| - checkUnnamed382(o.dimensionFilters);
|
| - checkUnnamed383(o.dimensions);
|
| + checkUnnamed1444(o.dimensionFilters);
|
| + checkUnnamed1445(o.dimensions);
|
| checkDimensionValue(o.floodlightConfigId);
|
| - checkUnnamed384(o.metricNames);
|
| + checkUnnamed1446(o.metricNames);
|
| checkReportFloodlightCriteriaReportProperties(o.reportProperties);
|
| }
|
| buildCounterReportFloodlightCriteria--;
|
| }
|
|
|
| -buildUnnamed385() {
|
| +buildUnnamed1447() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed385(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1447(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed386() {
|
| +buildUnnamed1448() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed386(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1448(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed387() {
|
| +buildUnnamed1449() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed387(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1449(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed388() {
|
| +buildUnnamed1450() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed388(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1450(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed389() {
|
| +buildUnnamed1451() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed389(core.List<core.String> o) {
|
| +checkUnnamed1451(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'));
|
| }
|
|
|
| -buildUnnamed390() {
|
| +buildUnnamed1452() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed390(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1452(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| @@ -5898,14 +6689,14 @@ buildReportPathToConversionCriteria() {
|
| var o = new api.ReportPathToConversionCriteria();
|
| buildCounterReportPathToConversionCriteria++;
|
| if (buildCounterReportPathToConversionCriteria < 3) {
|
| - o.activityFilters = buildUnnamed385();
|
| - o.conversionDimensions = buildUnnamed386();
|
| - o.customFloodlightVariables = buildUnnamed387();
|
| - o.customRichMediaEvents = buildUnnamed388();
|
| + o.activityFilters = buildUnnamed1447();
|
| + o.conversionDimensions = buildUnnamed1448();
|
| + o.customFloodlightVariables = buildUnnamed1449();
|
| + o.customRichMediaEvents = buildUnnamed1450();
|
| o.dateRange = buildDateRange();
|
| o.floodlightConfigId = buildDimensionValue();
|
| - o.metricNames = buildUnnamed389();
|
| - o.perInteractionDimensions = buildUnnamed390();
|
| + o.metricNames = buildUnnamed1451();
|
| + o.perInteractionDimensions = buildUnnamed1452();
|
| o.reportProperties = buildReportPathToConversionCriteriaReportProperties();
|
| }
|
| buildCounterReportPathToConversionCriteria--;
|
| @@ -5915,66 +6706,66 @@ buildReportPathToConversionCriteria() {
|
| checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) {
|
| buildCounterReportPathToConversionCriteria++;
|
| if (buildCounterReportPathToConversionCriteria < 3) {
|
| - checkUnnamed385(o.activityFilters);
|
| - checkUnnamed386(o.conversionDimensions);
|
| - checkUnnamed387(o.customFloodlightVariables);
|
| - checkUnnamed388(o.customRichMediaEvents);
|
| + checkUnnamed1447(o.activityFilters);
|
| + checkUnnamed1448(o.conversionDimensions);
|
| + checkUnnamed1449(o.customFloodlightVariables);
|
| + checkUnnamed1450(o.customRichMediaEvents);
|
| checkDateRange(o.dateRange);
|
| checkDimensionValue(o.floodlightConfigId);
|
| - checkUnnamed389(o.metricNames);
|
| - checkUnnamed390(o.perInteractionDimensions);
|
| + checkUnnamed1451(o.metricNames);
|
| + checkUnnamed1452(o.perInteractionDimensions);
|
| checkReportPathToConversionCriteriaReportProperties(o.reportProperties);
|
| }
|
| buildCounterReportPathToConversionCriteria--;
|
| }
|
|
|
| -buildUnnamed391() {
|
| +buildUnnamed1453() {
|
| var o = new core.List<api.DimensionValue>();
|
| o.add(buildDimensionValue());
|
| o.add(buildDimensionValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed391(core.List<api.DimensionValue> o) {
|
| +checkUnnamed1453(core.List<api.DimensionValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimensionValue(o[0]);
|
| checkDimensionValue(o[1]);
|
| }
|
|
|
| -buildUnnamed392() {
|
| +buildUnnamed1454() {
|
| var o = new core.List<api.SortedDimension>();
|
| o.add(buildSortedDimension());
|
| o.add(buildSortedDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed392(core.List<api.SortedDimension> o) {
|
| +checkUnnamed1454(core.List<api.SortedDimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSortedDimension(o[0]);
|
| checkSortedDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed393() {
|
| +buildUnnamed1455() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed393(core.List<core.String> o) {
|
| +checkUnnamed1455(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'));
|
| }
|
|
|
| -buildUnnamed394() {
|
| +buildUnnamed1456() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed394(core.List<core.String> o) {
|
| +checkUnnamed1456(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'));
|
| @@ -5988,11 +6779,11 @@ buildReportReachCriteria() {
|
| o.activities = buildActivities();
|
| o.customRichMediaEvents = buildCustomRichMediaEvents();
|
| o.dateRange = buildDateRange();
|
| - o.dimensionFilters = buildUnnamed391();
|
| - o.dimensions = buildUnnamed392();
|
| + o.dimensionFilters = buildUnnamed1453();
|
| + o.dimensions = buildUnnamed1454();
|
| o.enableAllDimensionCombinations = true;
|
| - o.metricNames = buildUnnamed393();
|
| - o.reachByFrequencyMetricNames = buildUnnamed394();
|
| + o.metricNames = buildUnnamed1455();
|
| + o.reachByFrequencyMetricNames = buildUnnamed1456();
|
| }
|
| buildCounterReportReachCriteria--;
|
| return o;
|
| @@ -6004,23 +6795,23 @@ checkReportReachCriteria(api.ReportReachCriteria o) {
|
| checkActivities(o.activities);
|
| checkCustomRichMediaEvents(o.customRichMediaEvents);
|
| checkDateRange(o.dateRange);
|
| - checkUnnamed391(o.dimensionFilters);
|
| - checkUnnamed392(o.dimensions);
|
| + checkUnnamed1453(o.dimensionFilters);
|
| + checkUnnamed1454(o.dimensions);
|
| unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue);
|
| - checkUnnamed393(o.metricNames);
|
| - checkUnnamed394(o.reachByFrequencyMetricNames);
|
| + checkUnnamed1455(o.metricNames);
|
| + checkUnnamed1456(o.reachByFrequencyMetricNames);
|
| }
|
| buildCounterReportReachCriteria--;
|
| }
|
|
|
| -buildUnnamed395() {
|
| +buildUnnamed1457() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed395(core.List<core.String> o) {
|
| +checkUnnamed1457(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'));
|
| @@ -6035,7 +6826,7 @@ buildReportSchedule() {
|
| o.every = 42;
|
| o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| o.repeats = "foo";
|
| - o.repeatsOnWeekDays = buildUnnamed395();
|
| + o.repeatsOnWeekDays = buildUnnamed1457();
|
| o.runsOnDayOfMonth = "foo";
|
| o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| }
|
| @@ -6050,7 +6841,7 @@ checkReportSchedule(api.ReportSchedule o) {
|
| unittest.expect(o.every, unittest.equals(42));
|
| unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| unittest.expect(o.repeats, unittest.equals('foo'));
|
| - checkUnnamed395(o.repeatsOnWeekDays);
|
| + checkUnnamed1457(o.repeatsOnWeekDays);
|
| unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo'));
|
| unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| }
|
| @@ -6110,53 +6901,53 @@ checkReport(api.Report o) {
|
| buildCounterReport--;
|
| }
|
|
|
| -buildUnnamed396() {
|
| +buildUnnamed1458() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed396(core.List<api.Dimension> o) {
|
| +checkUnnamed1458(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed397() {
|
| +buildUnnamed1459() {
|
| var o = new core.List<api.Dimension>();
|
| o.add(buildDimension());
|
| o.add(buildDimension());
|
| return o;
|
| }
|
|
|
| -checkUnnamed397(core.List<api.Dimension> o) {
|
| +checkUnnamed1459(core.List<api.Dimension> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDimension(o[0]);
|
| checkDimension(o[1]);
|
| }
|
|
|
| -buildUnnamed398() {
|
| +buildUnnamed1460() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed398(core.List<api.Metric> o) {
|
| +checkUnnamed1460(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| }
|
|
|
| -buildUnnamed399() {
|
| +buildUnnamed1461() {
|
| var o = new core.List<api.Metric>();
|
| o.add(buildMetric());
|
| o.add(buildMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed399(core.List<api.Metric> o) {
|
| +checkUnnamed1461(core.List<api.Metric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetric(o[0]);
|
| checkMetric(o[1]);
|
| @@ -6167,11 +6958,11 @@ buildReportCompatibleFields() {
|
| var o = new api.ReportCompatibleFields();
|
| buildCounterReportCompatibleFields++;
|
| if (buildCounterReportCompatibleFields < 3) {
|
| - o.dimensionFilters = buildUnnamed396();
|
| - o.dimensions = buildUnnamed397();
|
| + o.dimensionFilters = buildUnnamed1458();
|
| + o.dimensions = buildUnnamed1459();
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed398();
|
| - o.pivotedActivityMetrics = buildUnnamed399();
|
| + o.metrics = buildUnnamed1460();
|
| + o.pivotedActivityMetrics = buildUnnamed1461();
|
| }
|
| buildCounterReportCompatibleFields--;
|
| return o;
|
| @@ -6180,23 +6971,23 @@ buildReportCompatibleFields() {
|
| checkReportCompatibleFields(api.ReportCompatibleFields o) {
|
| buildCounterReportCompatibleFields++;
|
| if (buildCounterReportCompatibleFields < 3) {
|
| - checkUnnamed396(o.dimensionFilters);
|
| - checkUnnamed397(o.dimensions);
|
| + checkUnnamed1458(o.dimensionFilters);
|
| + checkUnnamed1459(o.dimensions);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed398(o.metrics);
|
| - checkUnnamed399(o.pivotedActivityMetrics);
|
| + checkUnnamed1460(o.metrics);
|
| + checkUnnamed1461(o.pivotedActivityMetrics);
|
| }
|
| buildCounterReportCompatibleFields--;
|
| }
|
|
|
| -buildUnnamed400() {
|
| +buildUnnamed1462() {
|
| var o = new core.List<api.Report>();
|
| o.add(buildReport());
|
| o.add(buildReport());
|
| return o;
|
| }
|
|
|
| -checkUnnamed400(core.List<api.Report> o) {
|
| +checkUnnamed1462(core.List<api.Report> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReport(o[0]);
|
| checkReport(o[1]);
|
| @@ -6208,7 +6999,7 @@ buildReportList() {
|
| buildCounterReportList++;
|
| if (buildCounterReportList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed400();
|
| + o.items = buildUnnamed1462();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -6220,7 +7011,7 @@ checkReportList(api.ReportList o) {
|
| buildCounterReportList++;
|
| if (buildCounterReportList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed400(o.items);
|
| + checkUnnamed1462(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -6273,14 +7064,14 @@ checkRichMediaExitOverride(api.RichMediaExitOverride o) {
|
| buildCounterRichMediaExitOverride--;
|
| }
|
|
|
| -buildUnnamed401() {
|
| +buildUnnamed1463() {
|
| var o = new core.List<api.SiteContact>();
|
| o.add(buildSiteContact());
|
| o.add(buildSiteContact());
|
| return o;
|
| }
|
|
|
| -checkUnnamed401(core.List<api.SiteContact> o) {
|
| +checkUnnamed1463(core.List<api.SiteContact> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSiteContact(o[0]);
|
| checkSiteContact(o[1]);
|
| @@ -6300,7 +7091,7 @@ buildSite() {
|
| o.keyName = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.siteContacts = buildUnnamed401();
|
| + o.siteContacts = buildUnnamed1463();
|
| o.siteSettings = buildSiteSettings();
|
| o.subaccountId = "foo";
|
| }
|
| @@ -6320,7 +7111,7 @@ checkSite(api.Site o) {
|
| unittest.expect(o.keyName, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed401(o.siteContacts);
|
| + checkUnnamed1463(o.siteContacts);
|
| checkSiteSettings(o.siteSettings);
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| }
|
| @@ -6332,11 +7123,14 @@ buildSiteContact() {
|
| var o = new api.SiteContact();
|
| buildCounterSiteContact++;
|
| if (buildCounterSiteContact < 3) {
|
| + o.address = "foo";
|
| o.contactType = "foo";
|
| o.email = "foo";
|
| o.firstName = "foo";
|
| o.id = "foo";
|
| o.lastName = "foo";
|
| + o.phone = "foo";
|
| + o.title = "foo";
|
| }
|
| buildCounterSiteContact--;
|
| return o;
|
| @@ -6345,11 +7139,14 @@ buildSiteContact() {
|
| checkSiteContact(api.SiteContact o) {
|
| buildCounterSiteContact++;
|
| if (buildCounterSiteContact < 3) {
|
| + unittest.expect(o.address, unittest.equals('foo'));
|
| unittest.expect(o.contactType, unittest.equals('foo'));
|
| unittest.expect(o.email, unittest.equals('foo'));
|
| unittest.expect(o.firstName, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.lastName, unittest.equals('foo'));
|
| + unittest.expect(o.phone, unittest.equals('foo'));
|
| + unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| buildCounterSiteContact--;
|
| }
|
| @@ -6383,14 +7180,14 @@ checkSiteSettings(api.SiteSettings o) {
|
| buildCounterSiteSettings--;
|
| }
|
|
|
| -buildUnnamed402() {
|
| +buildUnnamed1464() {
|
| var o = new core.List<api.Site>();
|
| o.add(buildSite());
|
| o.add(buildSite());
|
| return o;
|
| }
|
|
|
| -checkUnnamed402(core.List<api.Site> o) {
|
| +checkUnnamed1464(core.List<api.Site> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSite(o[0]);
|
| checkSite(o[1]);
|
| @@ -6403,7 +7200,7 @@ buildSitesListResponse() {
|
| if (buildCounterSitesListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.sites = buildUnnamed402();
|
| + o.sites = buildUnnamed1464();
|
| }
|
| buildCounterSitesListResponse--;
|
| return o;
|
| @@ -6414,7 +7211,7 @@ checkSitesListResponse(api.SitesListResponse o) {
|
| if (buildCounterSitesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed402(o.sites);
|
| + checkUnnamed1464(o.sites);
|
| }
|
| buildCounterSitesListResponse--;
|
| }
|
| @@ -6446,14 +7243,14 @@ checkSize(api.Size o) {
|
| buildCounterSize--;
|
| }
|
|
|
| -buildUnnamed403() {
|
| +buildUnnamed1465() {
|
| var o = new core.List<api.Size>();
|
| o.add(buildSize());
|
| o.add(buildSize());
|
| return o;
|
| }
|
|
|
| -checkUnnamed403(core.List<api.Size> o) {
|
| +checkUnnamed1465(core.List<api.Size> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSize(o[0]);
|
| checkSize(o[1]);
|
| @@ -6465,7 +7262,7 @@ buildSizesListResponse() {
|
| buildCounterSizesListResponse++;
|
| if (buildCounterSizesListResponse < 3) {
|
| o.kind = "foo";
|
| - o.sizes = buildUnnamed403();
|
| + o.sizes = buildUnnamed1465();
|
| }
|
| buildCounterSizesListResponse--;
|
| return o;
|
| @@ -6475,7 +7272,7 @@ checkSizesListResponse(api.SizesListResponse o) {
|
| buildCounterSizesListResponse++;
|
| if (buildCounterSizesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed403(o.sizes);
|
| + checkUnnamed1465(o.sizes);
|
| }
|
| buildCounterSizesListResponse--;
|
| }
|
| @@ -6503,14 +7300,14 @@ checkSortedDimension(api.SortedDimension o) {
|
| buildCounterSortedDimension--;
|
| }
|
|
|
| -buildUnnamed404() {
|
| +buildUnnamed1466() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed404(core.List<core.String> o) {
|
| +checkUnnamed1466(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'));
|
| @@ -6522,7 +7319,7 @@ buildSubaccount() {
|
| buildCounterSubaccount++;
|
| if (buildCounterSubaccount < 3) {
|
| o.accountId = "foo";
|
| - o.availablePermissionIds = buildUnnamed404();
|
| + o.availablePermissionIds = buildUnnamed1466();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| @@ -6535,7 +7332,7 @@ checkSubaccount(api.Subaccount o) {
|
| buildCounterSubaccount++;
|
| if (buildCounterSubaccount < 3) {
|
| unittest.expect(o.accountId, unittest.equals('foo'));
|
| - checkUnnamed404(o.availablePermissionIds);
|
| + checkUnnamed1466(o.availablePermissionIds);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -6543,14 +7340,14 @@ checkSubaccount(api.Subaccount o) {
|
| buildCounterSubaccount--;
|
| }
|
|
|
| -buildUnnamed405() {
|
| +buildUnnamed1467() {
|
| var o = new core.List<api.Subaccount>();
|
| o.add(buildSubaccount());
|
| o.add(buildSubaccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed405(core.List<api.Subaccount> o) {
|
| +checkUnnamed1467(core.List<api.Subaccount> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSubaccount(o[0]);
|
| checkSubaccount(o[1]);
|
| @@ -6563,7 +7360,7 @@ buildSubaccountsListResponse() {
|
| if (buildCounterSubaccountsListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.subaccounts = buildUnnamed405();
|
| + o.subaccounts = buildUnnamed1467();
|
| }
|
| buildCounterSubaccountsListResponse--;
|
| return o;
|
| @@ -6574,7 +7371,7 @@ checkSubaccountsListResponse(api.SubaccountsListResponse o) {
|
| if (buildCounterSubaccountsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed405(o.subaccounts);
|
| + checkUnnamed1467(o.subaccounts);
|
| }
|
| buildCounterSubaccountsListResponse--;
|
| }
|
| @@ -6673,79 +7470,156 @@ checkTargetWindow(api.TargetWindow o) {
|
| buildCounterTargetWindow--;
|
| }
|
|
|
| -buildUnnamed406() {
|
| +core.int buildCounterTargetableRemarketingList = 0;
|
| +buildTargetableRemarketingList() {
|
| + var o = new api.TargetableRemarketingList();
|
| + buildCounterTargetableRemarketingList++;
|
| + if (buildCounterTargetableRemarketingList < 3) {
|
| + o.accountId = "foo";
|
| + o.active = true;
|
| + o.advertiserId = "foo";
|
| + o.advertiserIdDimensionValue = buildDimensionValue();
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.lifeSpan = "foo";
|
| + o.listSize = "foo";
|
| + o.listSource = "foo";
|
| + o.name = "foo";
|
| + o.subaccountId = "foo";
|
| + }
|
| + buildCounterTargetableRemarketingList--;
|
| + return o;
|
| +}
|
| +
|
| +checkTargetableRemarketingList(api.TargetableRemarketingList o) {
|
| + buildCounterTargetableRemarketingList++;
|
| + if (buildCounterTargetableRemarketingList < 3) {
|
| + unittest.expect(o.accountId, unittest.equals('foo'));
|
| + unittest.expect(o.active, unittest.isTrue);
|
| + unittest.expect(o.advertiserId, unittest.equals('foo'));
|
| + checkDimensionValue(o.advertiserIdDimensionValue);
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.lifeSpan, unittest.equals('foo'));
|
| + unittest.expect(o.listSize, unittest.equals('foo'));
|
| + unittest.expect(o.listSource, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| + }
|
| + buildCounterTargetableRemarketingList--;
|
| +}
|
| +
|
| +buildUnnamed1468() {
|
| + var o = new core.List<api.TargetableRemarketingList>();
|
| + o.add(buildTargetableRemarketingList());
|
| + o.add(buildTargetableRemarketingList());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1468(core.List<api.TargetableRemarketingList> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkTargetableRemarketingList(o[0]);
|
| + checkTargetableRemarketingList(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterTargetableRemarketingListsListResponse = 0;
|
| +buildTargetableRemarketingListsListResponse() {
|
| + var o = new api.TargetableRemarketingListsListResponse();
|
| + buildCounterTargetableRemarketingListsListResponse++;
|
| + if (buildCounterTargetableRemarketingListsListResponse < 3) {
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.targetableRemarketingLists = buildUnnamed1468();
|
| + }
|
| + buildCounterTargetableRemarketingListsListResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkTargetableRemarketingListsListResponse(api.TargetableRemarketingListsListResponse o) {
|
| + buildCounterTargetableRemarketingListsListResponse++;
|
| + if (buildCounterTargetableRemarketingListsListResponse < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1468(o.targetableRemarketingLists);
|
| + }
|
| + buildCounterTargetableRemarketingListsListResponse--;
|
| +}
|
| +
|
| +buildUnnamed1469() {
|
| var o = new core.List<api.Browser>();
|
| o.add(buildBrowser());
|
| o.add(buildBrowser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed406(core.List<api.Browser> o) {
|
| +checkUnnamed1469(core.List<api.Browser> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBrowser(o[0]);
|
| checkBrowser(o[1]);
|
| }
|
|
|
| -buildUnnamed407() {
|
| +buildUnnamed1470() {
|
| var o = new core.List<api.ConnectionType>();
|
| o.add(buildConnectionType());
|
| o.add(buildConnectionType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed407(core.List<api.ConnectionType> o) {
|
| +checkUnnamed1470(core.List<api.ConnectionType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkConnectionType(o[0]);
|
| checkConnectionType(o[1]);
|
| }
|
|
|
| -buildUnnamed408() {
|
| +buildUnnamed1471() {
|
| var o = new core.List<api.MobileCarrier>();
|
| o.add(buildMobileCarrier());
|
| o.add(buildMobileCarrier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed408(core.List<api.MobileCarrier> o) {
|
| +checkUnnamed1471(core.List<api.MobileCarrier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMobileCarrier(o[0]);
|
| checkMobileCarrier(o[1]);
|
| }
|
|
|
| -buildUnnamed409() {
|
| +buildUnnamed1472() {
|
| var o = new core.List<api.OperatingSystemVersion>();
|
| o.add(buildOperatingSystemVersion());
|
| o.add(buildOperatingSystemVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed409(core.List<api.OperatingSystemVersion> o) {
|
| +checkUnnamed1472(core.List<api.OperatingSystemVersion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperatingSystemVersion(o[0]);
|
| checkOperatingSystemVersion(o[1]);
|
| }
|
|
|
| -buildUnnamed410() {
|
| +buildUnnamed1473() {
|
| var o = new core.List<api.OperatingSystem>();
|
| o.add(buildOperatingSystem());
|
| o.add(buildOperatingSystem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed410(core.List<api.OperatingSystem> o) {
|
| +checkUnnamed1473(core.List<api.OperatingSystem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperatingSystem(o[0]);
|
| checkOperatingSystem(o[1]);
|
| }
|
|
|
| -buildUnnamed411() {
|
| +buildUnnamed1474() {
|
| var o = new core.List<api.PlatformType>();
|
| o.add(buildPlatformType());
|
| o.add(buildPlatformType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed411(core.List<api.PlatformType> o) {
|
| +checkUnnamed1474(core.List<api.PlatformType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPlatformType(o[0]);
|
| checkPlatformType(o[1]);
|
| @@ -6756,12 +7630,12 @@ buildTechnologyTargeting() {
|
| var o = new api.TechnologyTargeting();
|
| buildCounterTechnologyTargeting++;
|
| if (buildCounterTechnologyTargeting < 3) {
|
| - o.browsers = buildUnnamed406();
|
| - o.connectionTypes = buildUnnamed407();
|
| - o.mobileCarriers = buildUnnamed408();
|
| - o.operatingSystemVersions = buildUnnamed409();
|
| - o.operatingSystems = buildUnnamed410();
|
| - o.platformTypes = buildUnnamed411();
|
| + o.browsers = buildUnnamed1469();
|
| + o.connectionTypes = buildUnnamed1470();
|
| + o.mobileCarriers = buildUnnamed1471();
|
| + o.operatingSystemVersions = buildUnnamed1472();
|
| + o.operatingSystems = buildUnnamed1473();
|
| + o.platformTypes = buildUnnamed1474();
|
| }
|
| buildCounterTechnologyTargeting--;
|
| return o;
|
| @@ -6770,16 +7644,37 @@ buildTechnologyTargeting() {
|
| checkTechnologyTargeting(api.TechnologyTargeting o) {
|
| buildCounterTechnologyTargeting++;
|
| if (buildCounterTechnologyTargeting < 3) {
|
| - checkUnnamed406(o.browsers);
|
| - checkUnnamed407(o.connectionTypes);
|
| - checkUnnamed408(o.mobileCarriers);
|
| - checkUnnamed409(o.operatingSystemVersions);
|
| - checkUnnamed410(o.operatingSystems);
|
| - checkUnnamed411(o.platformTypes);
|
| + checkUnnamed1469(o.browsers);
|
| + checkUnnamed1470(o.connectionTypes);
|
| + checkUnnamed1471(o.mobileCarriers);
|
| + checkUnnamed1472(o.operatingSystemVersions);
|
| + checkUnnamed1473(o.operatingSystems);
|
| + checkUnnamed1474(o.platformTypes);
|
| }
|
| buildCounterTechnologyTargeting--;
|
| }
|
|
|
| +core.int buildCounterThirdPartyAuthenticationToken = 0;
|
| +buildThirdPartyAuthenticationToken() {
|
| + var o = new api.ThirdPartyAuthenticationToken();
|
| + buildCounterThirdPartyAuthenticationToken++;
|
| + if (buildCounterThirdPartyAuthenticationToken < 3) {
|
| + o.name = "foo";
|
| + o.value = "foo";
|
| + }
|
| + buildCounterThirdPartyAuthenticationToken--;
|
| + return o;
|
| +}
|
| +
|
| +checkThirdPartyAuthenticationToken(api.ThirdPartyAuthenticationToken o) {
|
| + buildCounterThirdPartyAuthenticationToken++;
|
| + if (buildCounterThirdPartyAuthenticationToken < 3) {
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterThirdPartyAuthenticationToken--;
|
| +}
|
| +
|
| core.int buildCounterThirdPartyTrackingUrl = 0;
|
| buildThirdPartyTrackingUrl() {
|
| var o = new api.ThirdPartyTrackingUrl();
|
| @@ -6857,14 +7752,14 @@ checkUserProfile(api.UserProfile o) {
|
| buildCounterUserProfile--;
|
| }
|
|
|
| -buildUnnamed412() {
|
| +buildUnnamed1475() {
|
| var o = new core.List<api.UserProfile>();
|
| o.add(buildUserProfile());
|
| o.add(buildUserProfile());
|
| return o;
|
| }
|
|
|
| -checkUnnamed412(core.List<api.UserProfile> o) {
|
| +checkUnnamed1475(core.List<api.UserProfile> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserProfile(o[0]);
|
| checkUserProfile(o[1]);
|
| @@ -6876,7 +7771,7 @@ buildUserProfileList() {
|
| buildCounterUserProfileList++;
|
| if (buildCounterUserProfileList < 3) {
|
| o.etag = "foo";
|
| - o.items = buildUnnamed412();
|
| + o.items = buildUnnamed1475();
|
| o.kind = "foo";
|
| }
|
| buildCounterUserProfileList--;
|
| @@ -6887,20 +7782,20 @@ checkUserProfileList(api.UserProfileList o) {
|
| buildCounterUserProfileList++;
|
| if (buildCounterUserProfileList < 3) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| - checkUnnamed412(o.items);
|
| + checkUnnamed1475(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterUserProfileList--;
|
| }
|
|
|
| -buildUnnamed413() {
|
| +buildUnnamed1476() {
|
| var o = new core.List<api.UserRolePermission>();
|
| o.add(buildUserRolePermission());
|
| o.add(buildUserRolePermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed413(core.List<api.UserRolePermission> o) {
|
| +checkUnnamed1476(core.List<api.UserRolePermission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserRolePermission(o[0]);
|
| checkUserRolePermission(o[1]);
|
| @@ -6917,7 +7812,7 @@ buildUserRole() {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.parentUserRoleId = "foo";
|
| - o.permissions = buildUnnamed413();
|
| + o.permissions = buildUnnamed1476();
|
| o.subaccountId = "foo";
|
| }
|
| buildCounterUserRole--;
|
| @@ -6933,7 +7828,7 @@ checkUserRole(api.UserRole o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.parentUserRoleId, unittest.equals('foo'));
|
| - checkUnnamed413(o.permissions);
|
| + checkUnnamed1476(o.permissions);
|
| unittest.expect(o.subaccountId, unittest.equals('foo'));
|
| }
|
| buildCounterUserRole--;
|
| @@ -6989,14 +7884,14 @@ checkUserRolePermissionGroup(api.UserRolePermissionGroup o) {
|
| buildCounterUserRolePermissionGroup--;
|
| }
|
|
|
| -buildUnnamed414() {
|
| +buildUnnamed1477() {
|
| var o = new core.List<api.UserRolePermissionGroup>();
|
| o.add(buildUserRolePermissionGroup());
|
| o.add(buildUserRolePermissionGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed414(core.List<api.UserRolePermissionGroup> o) {
|
| +checkUnnamed1477(core.List<api.UserRolePermissionGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserRolePermissionGroup(o[0]);
|
| checkUserRolePermissionGroup(o[1]);
|
| @@ -7008,7 +7903,7 @@ buildUserRolePermissionGroupsListResponse() {
|
| buildCounterUserRolePermissionGroupsListResponse++;
|
| if (buildCounterUserRolePermissionGroupsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.userRolePermissionGroups = buildUnnamed414();
|
| + o.userRolePermissionGroups = buildUnnamed1477();
|
| }
|
| buildCounterUserRolePermissionGroupsListResponse--;
|
| return o;
|
| @@ -7018,19 +7913,19 @@ checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon
|
| buildCounterUserRolePermissionGroupsListResponse++;
|
| if (buildCounterUserRolePermissionGroupsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed414(o.userRolePermissionGroups);
|
| + checkUnnamed1477(o.userRolePermissionGroups);
|
| }
|
| buildCounterUserRolePermissionGroupsListResponse--;
|
| }
|
|
|
| -buildUnnamed415() {
|
| +buildUnnamed1478() {
|
| var o = new core.List<api.UserRolePermission>();
|
| o.add(buildUserRolePermission());
|
| o.add(buildUserRolePermission());
|
| return o;
|
| }
|
|
|
| -checkUnnamed415(core.List<api.UserRolePermission> o) {
|
| +checkUnnamed1478(core.List<api.UserRolePermission> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserRolePermission(o[0]);
|
| checkUserRolePermission(o[1]);
|
| @@ -7042,7 +7937,7 @@ buildUserRolePermissionsListResponse() {
|
| buildCounterUserRolePermissionsListResponse++;
|
| if (buildCounterUserRolePermissionsListResponse < 3) {
|
| o.kind = "foo";
|
| - o.userRolePermissions = buildUnnamed415();
|
| + o.userRolePermissions = buildUnnamed1478();
|
| }
|
| buildCounterUserRolePermissionsListResponse--;
|
| return o;
|
| @@ -7052,19 +7947,19 @@ checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) {
|
| buildCounterUserRolePermissionsListResponse++;
|
| if (buildCounterUserRolePermissionsListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed415(o.userRolePermissions);
|
| + checkUnnamed1478(o.userRolePermissions);
|
| }
|
| buildCounterUserRolePermissionsListResponse--;
|
| }
|
|
|
| -buildUnnamed416() {
|
| +buildUnnamed1479() {
|
| var o = new core.List<api.UserRole>();
|
| o.add(buildUserRole());
|
| o.add(buildUserRole());
|
| return o;
|
| }
|
|
|
| -checkUnnamed416(core.List<api.UserRole> o) {
|
| +checkUnnamed1479(core.List<api.UserRole> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUserRole(o[0]);
|
| checkUserRole(o[1]);
|
| @@ -7077,7 +7972,7 @@ buildUserRolesListResponse() {
|
| if (buildCounterUserRolesListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.userRoles = buildUnnamed416();
|
| + o.userRoles = buildUnnamed1479();
|
| }
|
| buildCounterUserRolesListResponse--;
|
| return o;
|
| @@ -7088,994 +7983,1124 @@ checkUserRolesListResponse(api.UserRolesListResponse o) {
|
| if (buildCounterUserRolesListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed416(o.userRoles);
|
| + checkUnnamed1479(o.userRoles);
|
| }
|
| buildCounterUserRolesListResponse--;
|
| }
|
|
|
| -buildUnnamed417() {
|
| +buildUnnamed1480() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1480(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'));
|
| +}
|
| +
|
| +buildUnnamed1481() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1481(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'));
|
| +}
|
| +
|
| +buildUnnamed1482() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1482(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'));
|
| +}
|
| +
|
| +buildUnnamed1483() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1483(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'));
|
| +}
|
| +
|
| +buildUnnamed1484() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1484(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'));
|
| +}
|
| +
|
| +buildUnnamed1485() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1485(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'));
|
| +}
|
| +
|
| +buildUnnamed1486() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1486(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'));
|
| +}
|
| +
|
| +buildUnnamed1487() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1487(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'));
|
| +}
|
| +
|
| +buildUnnamed1488() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1488(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'));
|
| +}
|
| +
|
| +buildUnnamed1489() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1489(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'));
|
| +}
|
| +
|
| +buildUnnamed1490() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed417(core.List<core.String> o) {
|
| +checkUnnamed1490(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'));
|
| }
|
|
|
| -buildUnnamed418() {
|
| +buildUnnamed1491() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed418(core.List<core.String> o) {
|
| +checkUnnamed1491(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'));
|
| }
|
|
|
| -buildUnnamed419() {
|
| +buildUnnamed1492() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed419(core.List<core.String> o) {
|
| +checkUnnamed1492(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'));
|
| }
|
|
|
| -buildUnnamed420() {
|
| +buildUnnamed1493() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed420(core.List<core.String> o) {
|
| +checkUnnamed1493(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'));
|
| }
|
|
|
| -buildUnnamed421() {
|
| +buildUnnamed1494() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed421(core.List<core.String> o) {
|
| +checkUnnamed1494(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'));
|
| }
|
|
|
| -buildUnnamed422() {
|
| +buildUnnamed1495() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed422(core.List<core.String> o) {
|
| +checkUnnamed1495(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'));
|
| }
|
|
|
| -buildUnnamed423() {
|
| +buildUnnamed1496() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed423(core.List<core.String> o) {
|
| +checkUnnamed1496(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'));
|
| }
|
|
|
| -buildUnnamed424() {
|
| +buildUnnamed1497() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed424(core.List<core.String> o) {
|
| +checkUnnamed1497(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'));
|
| }
|
|
|
| -buildUnnamed425() {
|
| +buildUnnamed1498() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed425(core.List<core.String> o) {
|
| +checkUnnamed1498(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'));
|
| }
|
|
|
| -buildUnnamed426() {
|
| +buildUnnamed1499() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed426(core.List<core.String> o) {
|
| +checkUnnamed1499(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'));
|
| }
|
|
|
| -buildUnnamed427() {
|
| +buildUnnamed1500() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed427(core.List<core.String> o) {
|
| +checkUnnamed1500(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'));
|
| }
|
|
|
| -buildUnnamed428() {
|
| +buildUnnamed1501() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed428(core.List<core.String> o) {
|
| +checkUnnamed1501(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'));
|
| }
|
|
|
| -buildUnnamed429() {
|
| +buildUnnamed1502() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed429(core.List<core.String> o) {
|
| +checkUnnamed1502(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'));
|
| }
|
|
|
| -buildUnnamed430() {
|
| +buildUnnamed1503() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed430(core.List<core.String> o) {
|
| +checkUnnamed1503(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'));
|
| }
|
|
|
| -buildUnnamed431() {
|
| +buildUnnamed1504() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed431(core.List<core.String> o) {
|
| +checkUnnamed1504(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'));
|
| }
|
|
|
| -buildUnnamed432() {
|
| +buildUnnamed1505() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed432(core.List<core.String> o) {
|
| +checkUnnamed1505(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'));
|
| }
|
|
|
| -buildUnnamed433() {
|
| +buildUnnamed1506() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed433(core.List<core.String> o) {
|
| +checkUnnamed1506(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'));
|
| }
|
|
|
| -buildUnnamed434() {
|
| +buildUnnamed1507() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed434(core.List<core.String> o) {
|
| +checkUnnamed1507(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'));
|
| }
|
|
|
| -buildUnnamed435() {
|
| +buildUnnamed1508() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed435(core.List<core.String> o) {
|
| +checkUnnamed1508(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'));
|
| }
|
|
|
| -buildUnnamed436() {
|
| +buildUnnamed1509() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed436(core.List<core.String> o) {
|
| +checkUnnamed1509(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'));
|
| }
|
|
|
| -buildUnnamed437() {
|
| +buildUnnamed1510() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed437(core.List<core.String> o) {
|
| +checkUnnamed1510(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'));
|
| }
|
|
|
| -buildUnnamed438() {
|
| +buildUnnamed1511() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed438(core.List<core.String> o) {
|
| +checkUnnamed1511(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'));
|
| }
|
|
|
| -buildUnnamed439() {
|
| +buildUnnamed1512() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed439(core.List<core.String> o) {
|
| +checkUnnamed1512(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'));
|
| }
|
|
|
| -buildUnnamed440() {
|
| +buildUnnamed1513() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed440(core.List<core.String> o) {
|
| +checkUnnamed1513(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'));
|
| }
|
|
|
| -buildUnnamed441() {
|
| +buildUnnamed1514() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed441(core.List<core.String> o) {
|
| +checkUnnamed1514(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'));
|
| }
|
|
|
| -buildUnnamed442() {
|
| +buildUnnamed1515() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed442(core.List<core.String> o) {
|
| +checkUnnamed1515(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'));
|
| }
|
|
|
| -buildUnnamed443() {
|
| +buildUnnamed1516() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed443(core.List<core.String> o) {
|
| +checkUnnamed1516(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'));
|
| }
|
|
|
| -buildUnnamed444() {
|
| +buildUnnamed1517() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed444(core.List<core.String> o) {
|
| +checkUnnamed1517(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'));
|
| }
|
|
|
| -buildUnnamed445() {
|
| +buildUnnamed1518() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed445(core.List<core.String> o) {
|
| +checkUnnamed1518(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'));
|
| }
|
|
|
| -buildUnnamed446() {
|
| +buildUnnamed1519() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed446(core.List<core.String> o) {
|
| +checkUnnamed1519(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'));
|
| }
|
|
|
| -buildUnnamed447() {
|
| +buildUnnamed1520() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed447(core.List<core.String> o) {
|
| +checkUnnamed1520(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'));
|
| }
|
|
|
| -buildUnnamed448() {
|
| +buildUnnamed1521() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed448(core.List<core.String> o) {
|
| +checkUnnamed1521(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'));
|
| }
|
|
|
| -buildUnnamed449() {
|
| +buildUnnamed1522() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed449(core.List<core.String> o) {
|
| +checkUnnamed1522(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'));
|
| }
|
|
|
| -buildUnnamed450() {
|
| +buildUnnamed1523() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed450(core.List<core.String> o) {
|
| +checkUnnamed1523(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'));
|
| }
|
|
|
| -buildUnnamed451() {
|
| +buildUnnamed1524() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed451(core.List<core.String> o) {
|
| +checkUnnamed1524(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'));
|
| }
|
|
|
| -buildUnnamed452() {
|
| +buildUnnamed1525() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed452(core.List<core.String> o) {
|
| +checkUnnamed1525(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'));
|
| }
|
|
|
| -buildUnnamed453() {
|
| +buildUnnamed1526() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed453(core.List<core.String> o) {
|
| +checkUnnamed1526(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'));
|
| }
|
|
|
| -buildUnnamed454() {
|
| +buildUnnamed1527() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed454(core.List<core.String> o) {
|
| +checkUnnamed1527(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'));
|
| }
|
|
|
| -buildUnnamed455() {
|
| +buildUnnamed1528() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed455(core.List<core.String> o) {
|
| +checkUnnamed1528(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'));
|
| }
|
|
|
| -buildUnnamed456() {
|
| +buildUnnamed1529() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed456(core.List<core.String> o) {
|
| +checkUnnamed1529(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'));
|
| }
|
|
|
| -buildUnnamed457() {
|
| +buildUnnamed1530() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed457(core.List<core.String> o) {
|
| +checkUnnamed1530(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'));
|
| }
|
|
|
| -buildUnnamed458() {
|
| +buildUnnamed1531() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed458(core.List<core.String> o) {
|
| +checkUnnamed1531(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'));
|
| }
|
|
|
| -buildUnnamed459() {
|
| +buildUnnamed1532() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed459(core.List<core.String> o) {
|
| +checkUnnamed1532(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'));
|
| }
|
|
|
| -buildUnnamed460() {
|
| +buildUnnamed1533() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed460(core.List<core.String> o) {
|
| +checkUnnamed1533(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'));
|
| }
|
|
|
| -buildUnnamed461() {
|
| +buildUnnamed1534() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed461(core.List<core.String> o) {
|
| +checkUnnamed1534(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'));
|
| }
|
|
|
| -buildUnnamed462() {
|
| +buildUnnamed1535() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed462(core.List<core.String> o) {
|
| +checkUnnamed1535(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'));
|
| }
|
|
|
| -buildUnnamed463() {
|
| +buildUnnamed1536() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed463(core.List<core.String> o) {
|
| +checkUnnamed1536(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'));
|
| }
|
|
|
| -buildUnnamed464() {
|
| +buildUnnamed1537() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed464(core.List<core.String> o) {
|
| +checkUnnamed1537(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'));
|
| }
|
|
|
| -buildUnnamed465() {
|
| +buildUnnamed1538() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed465(core.List<core.String> o) {
|
| +checkUnnamed1538(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'));
|
| }
|
|
|
| -buildUnnamed466() {
|
| +buildUnnamed1539() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed466(core.List<core.String> o) {
|
| +checkUnnamed1539(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'));
|
| }
|
|
|
| -buildUnnamed467() {
|
| +buildUnnamed1540() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed467(core.List<core.String> o) {
|
| +checkUnnamed1540(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'));
|
| }
|
|
|
| -buildUnnamed468() {
|
| +buildUnnamed1541() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed468(core.List<core.String> o) {
|
| +checkUnnamed1541(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'));
|
| }
|
|
|
| -buildUnnamed469() {
|
| +buildUnnamed1542() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed469(core.List<core.String> o) {
|
| +checkUnnamed1542(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'));
|
| }
|
|
|
| -buildUnnamed470() {
|
| +buildUnnamed1543() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed470(core.List<core.String> o) {
|
| +checkUnnamed1543(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'));
|
| }
|
|
|
| -buildUnnamed471() {
|
| +buildUnnamed1544() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed471(core.List<core.String> o) {
|
| +checkUnnamed1544(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'));
|
| }
|
|
|
| -buildUnnamed472() {
|
| +buildUnnamed1545() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed472(core.List<core.String> o) {
|
| +checkUnnamed1545(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'));
|
| }
|
|
|
| -buildUnnamed473() {
|
| +buildUnnamed1546() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed473(core.List<core.String> o) {
|
| +checkUnnamed1546(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'));
|
| }
|
|
|
| -buildUnnamed474() {
|
| +buildUnnamed1547() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed474(core.List<core.String> o) {
|
| +checkUnnamed1547(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'));
|
| }
|
|
|
| -buildUnnamed475() {
|
| +buildUnnamed1548() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed475(core.List<core.String> o) {
|
| +checkUnnamed1548(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'));
|
| }
|
|
|
| -buildUnnamed476() {
|
| +buildUnnamed1549() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed476(core.List<core.String> o) {
|
| +checkUnnamed1549(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'));
|
| }
|
|
|
| -buildUnnamed477() {
|
| +buildUnnamed1550() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed477(core.List<core.String> o) {
|
| +checkUnnamed1550(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'));
|
| }
|
|
|
| -buildUnnamed478() {
|
| +buildUnnamed1551() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed478(core.List<core.String> o) {
|
| +checkUnnamed1551(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'));
|
| }
|
|
|
| -buildUnnamed479() {
|
| +buildUnnamed1552() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed479(core.List<core.String> o) {
|
| +checkUnnamed1552(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'));
|
| }
|
|
|
| -buildUnnamed480() {
|
| +buildUnnamed1553() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed480(core.List<core.String> o) {
|
| +checkUnnamed1553(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'));
|
| }
|
|
|
| -buildUnnamed481() {
|
| +buildUnnamed1554() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed481(core.List<core.String> o) {
|
| +checkUnnamed1554(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'));
|
| }
|
|
|
| -buildUnnamed482() {
|
| +buildUnnamed1555() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed482(core.List<core.String> o) {
|
| +checkUnnamed1555(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'));
|
| }
|
|
|
| -buildUnnamed483() {
|
| +buildUnnamed1556() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed483(core.List<core.String> o) {
|
| +checkUnnamed1556(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'));
|
| }
|
|
|
| -buildUnnamed484() {
|
| +buildUnnamed1557() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed484(core.List<core.String> o) {
|
| +checkUnnamed1557(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'));
|
| }
|
|
|
| -buildUnnamed485() {
|
| +buildUnnamed1558() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed485(core.List<core.String> o) {
|
| +checkUnnamed1558(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'));
|
| }
|
|
|
| -buildUnnamed486() {
|
| +buildUnnamed1559() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed486(core.List<core.String> o) {
|
| +checkUnnamed1559(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'));
|
| }
|
|
|
| -buildUnnamed487() {
|
| +buildUnnamed1560() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed487(core.List<core.String> o) {
|
| +checkUnnamed1560(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'));
|
| }
|
|
|
| -buildUnnamed488() {
|
| +buildUnnamed1561() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed488(core.List<core.String> o) {
|
| +checkUnnamed1561(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'));
|
| }
|
|
|
| -buildUnnamed489() {
|
| +buildUnnamed1562() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed489(core.List<core.String> o) {
|
| +checkUnnamed1562(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'));
|
| }
|
|
|
| -buildUnnamed490() {
|
| +buildUnnamed1563() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed490(core.List<core.String> o) {
|
| +checkUnnamed1563(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'));
|
| }
|
|
|
| -buildUnnamed491() {
|
| +buildUnnamed1564() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed491(core.List<core.String> o) {
|
| +checkUnnamed1564(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'));
|
| }
|
|
|
| -buildUnnamed492() {
|
| +buildUnnamed1565() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed492(core.List<core.String> o) {
|
| +checkUnnamed1565(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'));
|
| @@ -8182,6 +9207,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-AdSlot", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAdSlot();
|
| + var od = new api.AdSlot.fromJson(o.toJson());
|
| + checkAdSlot(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-AdsListResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildAdsListResponse();
|
| @@ -8812,6 +9846,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Flight", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFlight();
|
| + var od = new api.Flight.fromJson(o.toJson());
|
| + checkFlight(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildFloodlightActivitiesGenerateTagResponse();
|
| @@ -8929,6 +9972,24 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-InventoryItem", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInventoryItem();
|
| + var od = new api.InventoryItem.fromJson(o.toJson());
|
| + checkInventoryItem(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InventoryItemsListResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInventoryItemsListResponse();
|
| + var od = new api.InventoryItemsListResponse.fromJson(o.toJson());
|
| + checkInventoryItemsListResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-KeyValueTargetingExpression", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildKeyValueTargetingExpression();
|
| @@ -8965,19 +10026,46 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ListTargetingExpression", () {
|
| + unittest.group("obj-schema-ListPopulationClause", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildListTargetingExpression();
|
| - var od = new api.ListTargetingExpression.fromJson(o.toJson());
|
| - checkListTargetingExpression(od);
|
| + var o = buildListPopulationClause();
|
| + var od = new api.ListPopulationClause.fromJson(o.toJson());
|
| + checkListPopulationClause(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-LookbackConfiguration", () {
|
| + unittest.group("obj-schema-ListPopulationRule", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildLookbackConfiguration();
|
| - var od = new api.LookbackConfiguration.fromJson(o.toJson());
|
| + var o = buildListPopulationRule();
|
| + var od = new api.ListPopulationRule.fromJson(o.toJson());
|
| + checkListPopulationRule(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ListPopulationTerm", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListPopulationTerm();
|
| + var od = new api.ListPopulationTerm.fromJson(o.toJson());
|
| + checkListPopulationTerm(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ListTargetingExpression", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListTargetingExpression();
|
| + var od = new api.ListTargetingExpression.fromJson(o.toJson());
|
| + checkListTargetingExpression(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-LookbackConfiguration", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildLookbackConfiguration();
|
| + var od = new api.LookbackConfiguration.fromJson(o.toJson());
|
| checkLookbackConfiguration(od);
|
| });
|
| });
|
| @@ -9100,6 +10188,51 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Order", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrder();
|
| + var od = new api.Order.fromJson(o.toJson());
|
| + checkOrder(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-OrderContact", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrderContact();
|
| + var od = new api.OrderContact.fromJson(o.toJson());
|
| + checkOrderContact(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-OrderDocument", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrderDocument();
|
| + var od = new api.OrderDocument.fromJson(o.toJson());
|
| + checkOrderDocument(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-OrderDocumentsListResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrderDocumentsListResponse();
|
| + var od = new api.OrderDocumentsListResponse.fromJson(o.toJson());
|
| + checkOrderDocumentsListResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-OrdersListResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrdersListResponse();
|
| + var od = new api.OrdersListResponse.fromJson(o.toJson());
|
| + checkOrdersListResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-PathToConversionReportCompatibleFields", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildPathToConversionReportCompatibleFields();
|
| @@ -9235,6 +10368,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Pricing", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildPricing();
|
| + var od = new api.Pricing.fromJson(o.toJson());
|
| + checkPricing(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-PricingSchedule", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildPricingSchedule();
|
| @@ -9253,11 +10395,20 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ProgrammaticSetting", () {
|
| + unittest.group("obj-schema-Project", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildProject();
|
| + var od = new api.Project.fromJson(o.toJson());
|
| + checkProject(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ProjectsListResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildProgrammaticSetting();
|
| - var od = new api.ProgrammaticSetting.fromJson(o.toJson());
|
| - checkProgrammaticSetting(od);
|
| + var o = buildProjectsListResponse();
|
| + var od = new api.ProjectsListResponse.fromJson(o.toJson());
|
| + checkProjectsListResponse(od);
|
| });
|
| });
|
|
|
| @@ -9298,6 +10449,33 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-RemarketingList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildRemarketingList();
|
| + var od = new api.RemarketingList.fromJson(o.toJson());
|
| + checkRemarketingList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-RemarketingListShare", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildRemarketingListShare();
|
| + var od = new api.RemarketingListShare.fromJson(o.toJson());
|
| + checkRemarketingListShare(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-RemarketingListsListResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildRemarketingListsListResponse();
|
| + var od = new api.RemarketingListsListResponse.fromJson(o.toJson());
|
| + checkRemarketingListsListResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-ReportCriteria", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReportCriteria();
|
| @@ -9541,6 +10719,24 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-TargetableRemarketingList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTargetableRemarketingList();
|
| + var od = new api.TargetableRemarketingList.fromJson(o.toJson());
|
| + checkTargetableRemarketingList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-TargetableRemarketingListsListResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTargetableRemarketingListsListResponse();
|
| + var od = new api.TargetableRemarketingListsListResponse.fromJson(o.toJson());
|
| + checkTargetableRemarketingListsListResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-TechnologyTargeting", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTechnologyTargeting();
|
| @@ -9550,6 +10746,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-ThirdPartyAuthenticationToken", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildThirdPartyAuthenticationToken();
|
| + var od = new api.ThirdPartyAuthenticationToken.fromJson(o.toJson());
|
| + checkThirdPartyAuthenticationToken(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-ThirdPartyTrackingUrl", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildThirdPartyTrackingUrl();
|
| @@ -9654,7 +10859,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9715,7 +10920,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9771,7 +10976,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9829,7 +11034,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9885,7 +11090,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9943,7 +11148,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -9987,13 +11192,70 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles;
|
| + var arg_request = buildAccountUserProfile();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.AccountUserProfile.fromJson(json);
|
| + checkAccountUserProfile(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/accountUserProfiles", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles"));
|
| + pathOffset += 20;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAccountUserProfile());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.AccountUserProfile response) {
|
| + checkAccountUserProfile(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles;
|
| var arg_profileId = "foo";
|
| var arg_active = true;
|
| - var arg_ids = buildUnnamed417();
|
| + var arg_ids = buildUnnamed1480();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -10008,7 +11270,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10075,7 +11337,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10133,7 +11395,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10191,7 +11453,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10241,7 +11503,7 @@ main() {
|
| api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts;
|
| var arg_profileId = "foo";
|
| var arg_active = true;
|
| - var arg_ids = buildUnnamed418();
|
| + var arg_ids = buildUnnamed1481();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -10254,7 +11516,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10319,7 +11581,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10377,7 +11639,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10435,7 +11697,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10495,7 +11757,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10544,27 +11806,27 @@ main() {
|
| var arg_active = true;
|
| var arg_advertiserId = "foo";
|
| var arg_archived = true;
|
| - var arg_audienceSegmentIds = buildUnnamed419();
|
| - var arg_campaignIds = buildUnnamed420();
|
| + var arg_audienceSegmentIds = buildUnnamed1482();
|
| + var arg_campaignIds = buildUnnamed1483();
|
| var arg_compatibility = "foo";
|
| - var arg_creativeIds = buildUnnamed421();
|
| - var arg_creativeOptimizationConfigurationIds = buildUnnamed422();
|
| + var arg_creativeIds = buildUnnamed1484();
|
| + var arg_creativeOptimizationConfigurationIds = buildUnnamed1485();
|
| var arg_creativeType = "foo";
|
| var arg_dynamicClickTracker = true;
|
| - var arg_ids = buildUnnamed423();
|
| - var arg_landingPageIds = buildUnnamed424();
|
| + var arg_ids = buildUnnamed1486();
|
| + var arg_landingPageIds = buildUnnamed1487();
|
| var arg_maxResults = 42;
|
| var arg_overriddenEventTagId = "foo";
|
| var arg_pageToken = "foo";
|
| - var arg_placementIds = buildUnnamed425();
|
| - var arg_remarketingListIds = buildUnnamed426();
|
| + var arg_placementIds = buildUnnamed1488();
|
| + var arg_remarketingListIds = buildUnnamed1489();
|
| var arg_searchString = "foo";
|
| - var arg_sizeIds = buildUnnamed427();
|
| + var arg_sizeIds = buildUnnamed1490();
|
| var arg_sortField = "foo";
|
| var arg_sortOrder = "foo";
|
| var arg_sslCompliant = true;
|
| var arg_sslRequired = true;
|
| - var arg_type = buildUnnamed428();
|
| + var arg_type = buildUnnamed1491();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10572,7 +11834,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10654,7 +11916,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10712,7 +11974,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10770,7 +12032,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10825,7 +12087,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10885,7 +12147,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -10931,7 +12193,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed429();
|
| + var arg_ids = buildUnnamed1492();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -10944,7 +12206,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11008,7 +12270,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11066,7 +12328,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11124,7 +12386,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11184,7 +12446,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11230,9 +12492,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers;
|
| var arg_profileId = "foo";
|
| - var arg_advertiserGroupIds = buildUnnamed430();
|
| - var arg_floodlightConfigurationIds = buildUnnamed431();
|
| - var arg_ids = buildUnnamed432();
|
| + var arg_advertiserGroupIds = buildUnnamed1493();
|
| + var arg_floodlightConfigurationIds = buildUnnamed1494();
|
| + var arg_ids = buildUnnamed1495();
|
| var arg_includeAdvertisersWithoutGroupsOnly = true;
|
| var arg_maxResults = 42;
|
| var arg_onlyParent = true;
|
| @@ -11249,7 +12511,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11319,7 +12581,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11377,7 +12639,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11434,7 +12696,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11496,7 +12758,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11560,7 +12822,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11628,7 +12890,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11690,7 +12952,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11738,12 +13000,12 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
|
| var arg_profileId = "foo";
|
| - var arg_advertiserGroupIds = buildUnnamed433();
|
| - var arg_advertiserIds = buildUnnamed434();
|
| + var arg_advertiserGroupIds = buildUnnamed1496();
|
| + var arg_advertiserIds = buildUnnamed1497();
|
| var arg_archived = true;
|
| var arg_atLeastOneOptimizationActivity = true;
|
| - var arg_excludedIds = buildUnnamed435();
|
| - var arg_ids = buildUnnamed436();
|
| + var arg_excludedIds = buildUnnamed1498();
|
| + var arg_ids = buildUnnamed1499();
|
| var arg_maxResults = 42;
|
| var arg_overriddenEventTagId = "foo";
|
| var arg_pageToken = "foo";
|
| @@ -11758,7 +13020,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11829,7 +13091,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11887,7 +13149,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11945,7 +13207,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -11995,15 +13257,15 @@ main() {
|
| api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs;
|
| var arg_profileId = "foo";
|
| var arg_action = "foo";
|
| - var arg_ids = buildUnnamed437();
|
| + var arg_ids = buildUnnamed1500();
|
| var arg_maxChangeTime = "foo";
|
| var arg_maxResults = 42;
|
| var arg_minChangeTime = "foo";
|
| - var arg_objectIds = buildUnnamed438();
|
| + var arg_objectIds = buildUnnamed1501();
|
| var arg_objectType = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| - var arg_userProfileIds = buildUnnamed439();
|
| + var arg_userProfileIds = buildUnnamed1502();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12011,7 +13273,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12071,10 +13333,10 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.CitiesResourceApi res = new api.DfareportingApi(mock).cities;
|
| var arg_profileId = "foo";
|
| - var arg_countryDartIds = buildUnnamed440();
|
| - var arg_dartIds = buildUnnamed441();
|
| + var arg_countryDartIds = buildUnnamed1503();
|
| + var arg_dartIds = buildUnnamed1504();
|
| var arg_namePrefix = "foo";
|
| - var arg_regionDartIds = buildUnnamed442();
|
| + var arg_regionDartIds = buildUnnamed1505();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12082,7 +13344,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12131,6 +13393,63 @@ main() {
|
|
|
|
|
| unittest.group("resource-ConnectionTypesResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connectionTypes;
|
| + var arg_profileId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/connectionTypes/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/connectionTypes/"));
|
| + pathOffset += 17;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildConnectionType());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ConnectionType response) {
|
| + checkConnectionType(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -12143,7 +13462,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12201,7 +13520,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12256,7 +13575,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12316,7 +13635,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12362,7 +13681,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed443();
|
| + var arg_ids = buildUnnamed1506();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -12375,7 +13694,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12439,7 +13758,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12497,7 +13816,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12555,7 +13874,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12611,7 +13930,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12675,7 +13994,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12741,7 +14060,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12804,7 +14123,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12872,7 +14191,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -12926,7 +14245,7 @@ main() {
|
| api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues;
|
| var arg_profileId = "foo";
|
| var arg_creativeFieldId = "foo";
|
| - var arg_ids = buildUnnamed444();
|
| + var arg_ids = buildUnnamed1507();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -12939,7 +14258,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13011,7 +14330,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13077,7 +14396,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13142,7 +14461,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13197,7 +14516,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13257,7 +14576,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13303,8 +14622,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields;
|
| var arg_profileId = "foo";
|
| - var arg_advertiserIds = buildUnnamed445();
|
| - var arg_ids = buildUnnamed446();
|
| + var arg_advertiserIds = buildUnnamed1508();
|
| + var arg_ids = buildUnnamed1509();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -13317,7 +14636,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13382,7 +14701,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13440,7 +14759,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13498,7 +14817,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13558,7 +14877,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13604,9 +14923,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups;
|
| var arg_profileId = "foo";
|
| - var arg_advertiserIds = buildUnnamed447();
|
| + var arg_advertiserIds = buildUnnamed1510();
|
| var arg_groupNumber = 42;
|
| - var arg_ids = buildUnnamed448();
|
| + var arg_ids = buildUnnamed1511();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -13619,7 +14938,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13685,7 +15004,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13743,7 +15062,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13801,7 +15120,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13861,7 +15180,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -13911,18 +15230,18 @@ main() {
|
| var arg_advertiserId = "foo";
|
| var arg_archived = true;
|
| var arg_campaignId = "foo";
|
| - var arg_companionCreativeIds = buildUnnamed449();
|
| - var arg_creativeFieldIds = buildUnnamed450();
|
| - var arg_ids = buildUnnamed451();
|
| + var arg_companionCreativeIds = buildUnnamed1512();
|
| + var arg_creativeFieldIds = buildUnnamed1513();
|
| + var arg_ids = buildUnnamed1514();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| - var arg_renderingIds = buildUnnamed452();
|
| + var arg_renderingIds = buildUnnamed1515();
|
| var arg_searchString = "foo";
|
| - var arg_sizeIds = buildUnnamed453();
|
| + var arg_sizeIds = buildUnnamed1516();
|
| var arg_sortField = "foo";
|
| var arg_sortOrder = "foo";
|
| var arg_studioCreativeId = "foo";
|
| - var arg_types = buildUnnamed454();
|
| + var arg_types = buildUnnamed1517();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13930,7 +15249,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14004,7 +15323,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14062,7 +15381,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14125,7 +15444,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14185,7 +15504,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14234,8 +15553,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts;
|
| var arg_profileId = "foo";
|
| - var arg_directorySiteIds = buildUnnamed455();
|
| - var arg_ids = buildUnnamed456();
|
| + var arg_directorySiteIds = buildUnnamed1518();
|
| + var arg_ids = buildUnnamed1519();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -14248,7 +15567,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14313,7 +15632,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14357,6 +15676,63 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites;
|
| + var arg_request = buildDirectorySite();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.DirectorySite.fromJson(json);
|
| + checkDirectorySite(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/directorySites", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/directorySites"));
|
| + pathOffset += 15;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDirectorySite());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.DirectorySite response) {
|
| + checkDirectorySite(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -14368,7 +15744,7 @@ main() {
|
| var arg_active = true;
|
| var arg_countryId = "foo";
|
| var arg_dfpNetworkCode = "foo";
|
| - var arg_ids = buildUnnamed457();
|
| + var arg_ids = buildUnnamed1520();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_parentId = "foo";
|
| @@ -14382,7 +15758,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14453,7 +15829,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14508,7 +15884,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14568,7 +15944,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14619,8 +15995,8 @@ main() {
|
| var arg_campaignId = "foo";
|
| var arg_definitionsOnly = true;
|
| var arg_enabled = true;
|
| - var arg_eventTagTypes = buildUnnamed458();
|
| - var arg_ids = buildUnnamed459();
|
| + var arg_eventTagTypes = buildUnnamed1521();
|
| + var arg_ids = buildUnnamed1522();
|
| var arg_searchString = "foo";
|
| var arg_sortField = "foo";
|
| var arg_sortOrder = "foo";
|
| @@ -14631,7 +16007,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14699,7 +16075,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14757,7 +16133,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14817,7 +16193,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/"));
|
| pathOffset += 8;
|
| @@ -14878,7 +16254,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14941,7 +16317,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -14996,7 +16372,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15051,7 +16427,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15111,7 +16487,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15158,12 +16534,12 @@ main() {
|
| api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities;
|
| var arg_profileId = "foo";
|
| var arg_advertiserId = "foo";
|
| - var arg_floodlightActivityGroupIds = buildUnnamed460();
|
| + var arg_floodlightActivityGroupIds = buildUnnamed1523();
|
| var arg_floodlightActivityGroupName = "foo";
|
| var arg_floodlightActivityGroupTagString = "foo";
|
| var arg_floodlightActivityGroupType = "foo";
|
| var arg_floodlightConfigurationId = "foo";
|
| - var arg_ids = buildUnnamed461();
|
| + var arg_ids = buildUnnamed1524();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -15177,7 +16553,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15248,7 +16624,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15306,7 +16682,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15364,7 +16740,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15419,7 +16795,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15479,7 +16855,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15527,7 +16903,7 @@ main() {
|
| var arg_profileId = "foo";
|
| var arg_advertiserId = "foo";
|
| var arg_floodlightConfigurationId = "foo";
|
| - var arg_ids = buildUnnamed462();
|
| + var arg_ids = buildUnnamed1525();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -15541,7 +16917,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15608,7 +16984,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15666,7 +17042,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15724,7 +17100,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15773,7 +17149,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed463();
|
| + var arg_ids = buildUnnamed1526();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15781,7 +17157,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15840,7 +17216,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15898,7 +17274,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -15942,13 +17318,13 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-LandingPagesResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.group("resource-InventoryItemsResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages;
|
| + api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems;
|
| var arg_profileId = "foo";
|
| - var arg_campaignId = "foo";
|
| + var arg_projectId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -15957,22 +17333,168 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/campaigns/", pathOffset);
|
| + index = path.indexOf("/projects/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/"));
|
| - pathOffset += 11;
|
| - index = path.indexOf("/landingPages/", pathOffset);
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/inventoryItems/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_campaignId"));
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/inventoryItems/"));
|
| + pathOffset += 16;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildInventoryItem());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.InventoryItem response) {
|
| + checkInventoryItem(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems;
|
| + var arg_profileId = "foo";
|
| + var arg_projectId = "foo";
|
| + var arg_ids = buildUnnamed1527();
|
| + var arg_inPlan = true;
|
| + var arg_maxResults = 42;
|
| + var arg_orderId = buildUnnamed1528();
|
| + var arg_pageToken = "foo";
|
| + var arg_siteId = buildUnnamed1529();
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/projects/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/inventoryItems", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/inventoryItems"));
|
| + pathOffset += 15;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(queryMap["inPlan"].first, unittest.equals("$arg_inPlan"));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildInventoryItemsListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.InventoryItemsListResponse response) {
|
| + checkInventoryItemsListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-LandingPagesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages;
|
| + var arg_profileId = "foo";
|
| + var arg_campaignId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/campaigns/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/"));
|
| + pathOffset += 11;
|
| + index = path.indexOf("/landingPages/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_campaignId"));
|
| unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/landingPages/"));
|
| pathOffset += 14;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| @@ -16020,7 +17542,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16088,7 +17610,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16149,7 +17671,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16215,7 +17737,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16281,7 +17803,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16345,7 +17867,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -16390,11 +17912,12 @@ main() {
|
|
|
|
|
| unittest.group("resource-MobileCarriersResourceApi", () {
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers;
|
| var arg_profileId = "foo";
|
| + var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16402,17 +17925,20 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/mobileCarriers", pathOffset);
|
| + index = path.indexOf("/mobileCarriers/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/mobileCarriers"));
|
| - pathOffset += 15;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/mobileCarriers/"));
|
| + pathOffset += 16;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16435,22 +17961,18 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildMobileCarriersListResponse());
|
| + var resp = convert.JSON.encode(buildMobileCarrier());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersListResponse response) {
|
| - checkMobileCarriersListResponse(response);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.MobileCarrier response) {
|
| + checkMobileCarrier(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-OperatingSystemVersionsResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions;
|
| + api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers;
|
| var arg_profileId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -16459,17 +17981,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/operatingSystemVersions", pathOffset);
|
| + index = path.indexOf("/mobileCarriers", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/operatingSystemVersions"));
|
| - pathOffset += 24;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/mobileCarriers"));
|
| + pathOffset += 15;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16492,23 +18014,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse());
|
| + var resp = convert.JSON.encode(buildMobileCarriersListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVersionsListResponse response) {
|
| - checkOperatingSystemVersionsListResponse(response);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersListResponse response) {
|
| + checkMobileCarriersListResponse(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-OperatingSystemsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| + unittest.group("resource-OperatingSystemVersionsResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems;
|
| + api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions;
|
| var arg_profileId = "foo";
|
| + var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16516,17 +18039,20 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/operatingSystems", pathOffset);
|
| + index = path.indexOf("/operatingSystemVersions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/operatingSystems"));
|
| - pathOffset += 17;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/operatingSystemVersions/"));
|
| + pathOffset += 25;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16549,24 +18075,19 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperatingSystemsListResponse());
|
| + var resp = convert.JSON.encode(buildOperatingSystemVersion());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsListResponse response) {
|
| - checkOperatingSystemsListResponse(response);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.OperatingSystemVersion response) {
|
| + checkOperatingSystemVersion(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-PlacementGroupsResourceApi", () {
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| + api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions;
|
| var arg_profileId = "foo";
|
| - var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16574,20 +18095,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementGroups/", pathOffset);
|
| + index = path.indexOf("/operatingSystemVersions", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/placementGroups/"));
|
| - pathOffset += 17;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_id"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/operatingSystemVersions"));
|
| + pathOffset += 24;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16610,41 +18128,45 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementGroup());
|
| + var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| - checkPlacementGroup(response);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVersionsListResponse response) {
|
| + checkOperatingSystemVersionsListResponse(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-OperatingSystemsResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| - var arg_request = buildPlacementGroup();
|
| + api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems;
|
| var arg_profileId = "foo";
|
| + var arg_dartId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementGroup.fromJson(json);
|
| - checkPlacementGroup(obj);
|
| -
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementGroups", pathOffset);
|
| + index = path.indexOf("/operatingSystems/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| - pathOffset += 16;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/operatingSystems/"));
|
| + pathOffset += 18;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_dartId"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16667,34 +18189,19 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementGroup());
|
| + var resp = convert.JSON.encode(buildOperatingSystem());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| - checkPlacementGroup(response);
|
| + res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.OperatingSystem response) {
|
| + checkOperatingSystem(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| + api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems;
|
| var arg_profileId = "foo";
|
| - var arg_advertiserIds = buildUnnamed464();
|
| - var arg_archived = true;
|
| - var arg_campaignIds = buildUnnamed465();
|
| - var arg_contentCategoryIds = buildUnnamed466();
|
| - var arg_directorySiteIds = buildUnnamed467();
|
| - var arg_ids = buildUnnamed468();
|
| - var arg_maxResults = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_placementGroupType = "foo";
|
| - var arg_placementStrategyIds = buildUnnamed469();
|
| - var arg_pricingTypes = buildUnnamed470();
|
| - var arg_searchString = "foo";
|
| - var arg_siteIds = buildUnnamed471();
|
| - var arg_sortField = "foo";
|
| - var arg_sortOrder = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16702,17 +18209,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementGroups", pathOffset);
|
| + index = path.indexOf("/operatingSystems", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| - pathOffset += 16;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/operatingSystems"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16730,62 +18237,58 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds));
|
| - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived"));
|
| - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds));
|
| - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds));
|
| - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds));
|
| - unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["placementGroupType"].first, unittest.equals(arg_placementGroupType));
|
| - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds));
|
| - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes));
|
| - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
|
| - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementGroupsListResponse());
|
| + var resp = convert.JSON.encode(buildOperatingSystemsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) {
|
| - checkPlacementGroupsListResponse(response);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsListResponse response) {
|
| + checkOperatingSystemsListResponse(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + });
|
|
|
| - var mock = new HttpServerMock();
|
| - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| - var arg_request = buildPlacementGroup();
|
| +
|
| + unittest.group("resource-OrderDocumentsResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments;
|
| var arg_profileId = "foo";
|
| + var arg_projectId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementGroup.fromJson(json);
|
| - checkPlacementGroup(obj);
|
| -
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementGroups", pathOffset);
|
| + index = path.indexOf("/projects/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/orderDocuments/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/orderDocuments/"));
|
| pathOffset += 16;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16803,47 +18306,59 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementGroup());
|
| + var resp = convert.JSON.encode(buildOrderDocument());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| - checkPlacementGroup(response);
|
| + res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.OrderDocument response) {
|
| + checkOrderDocument(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| - var arg_request = buildPlacementGroup();
|
| + api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments;
|
| var arg_profileId = "foo";
|
| + var arg_projectId = "foo";
|
| + var arg_approved = true;
|
| + var arg_ids = buildUnnamed1530();
|
| + var arg_maxResults = 42;
|
| + var arg_orderId = buildUnnamed1531();
|
| + var arg_pageToken = "foo";
|
| + var arg_searchString = "foo";
|
| + var arg_siteId = buildUnnamed1532();
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementGroup.fromJson(json);
|
| - checkPlacementGroup(obj);
|
| -
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementGroups", pathOffset);
|
| + index = path.indexOf("/projects/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| - pathOffset += 16;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/orderDocuments", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/orderDocuments"));
|
| + pathOffset += 15;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -16861,28 +18376,38 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approved"));
|
| + unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementGroup());
|
| + var resp = convert.JSON.encode(buildOrderDocumentsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| - checkPlacementGroup(response);
|
| + res.list(arg_profileId, arg_projectId, approved: arg_approved, ids: arg_ids, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrderDocumentsListResponse response) {
|
| + checkOrderDocumentsListResponse(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-PlacementStrategiesResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.group("resource-OrdersResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + api.OrdersResourceApi res = new api.DfareportingApi(mock).orders;
|
| var arg_profileId = "foo";
|
| + var arg_projectId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -16891,17 +18416,24 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies/", pathOffset);
|
| + index = path.indexOf("/projects/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/"));
|
| - pathOffset += 21;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/orders/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/orders/"));
|
| + pathOffset += 8;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| unittest.expect(subPart, unittest.equals("$arg_id"));
|
| @@ -16927,16 +18459,97 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = "";
|
| + var resp = convert.JSON.encode(buildOrder());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
|
| + res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.Order response) {
|
| + checkOrder(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.OrdersResourceApi res = new api.DfareportingApi(mock).orders;
|
| + var arg_profileId = "foo";
|
| + var arg_projectId = "foo";
|
| + var arg_ids = buildUnnamed1533();
|
| + var arg_maxResults = 42;
|
| + var arg_pageToken = "foo";
|
| + var arg_searchString = "foo";
|
| + var arg_siteId = buildUnnamed1534();
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/projects/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + index = path.indexOf("/orders", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/orders"));
|
| + pathOffset += 7;
|
| +
|
| + 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["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOrdersListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, arg_projectId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrdersListResponse response) {
|
| + checkOrdersListResponse(response);
|
| + })));
|
| });
|
|
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-PlacementGroupsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| var arg_profileId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -16946,17 +18559,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies/", pathOffset);
|
| + index = path.indexOf("/placementGroups/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/"));
|
| - pathOffset += 21;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/placementGroups/"));
|
| + pathOffset += 17;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| unittest.expect(subPart, unittest.equals("$arg_id"));
|
| @@ -16982,23 +18595,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + var resp = convert.JSON.encode(buildPlacementGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| - checkPlacementStrategy(response);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| + checkPlacementGroup(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| - var arg_request = buildPlacementStrategy();
|
| + api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| + var arg_request = buildPlacementGroup();
|
| var arg_profileId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementStrategy.fromJson(json);
|
| - checkPlacementStrategy(obj);
|
| + var obj = new api.PlacementGroup.fromJson(json);
|
| + checkPlacementGroup(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17006,17 +18619,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies", pathOffset);
|
| + index = path.indexOf("/placementGroups", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| - pathOffset += 20;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| + pathOffset += 16;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17039,23 +18652,36 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + var resp = convert.JSON.encode(buildPlacementGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| - checkPlacementStrategy(response);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| + checkPlacementGroup(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed472();
|
| + var arg_advertiserIds = buildUnnamed1535();
|
| + var arg_archived = true;
|
| + var arg_campaignIds = buildUnnamed1536();
|
| + var arg_contentCategoryIds = buildUnnamed1537();
|
| + var arg_directorySiteIds = buildUnnamed1538();
|
| + var arg_ids = buildUnnamed1539();
|
| + var arg_maxEndDate = "foo";
|
| var arg_maxResults = 42;
|
| + var arg_maxStartDate = "foo";
|
| + var arg_minEndDate = "foo";
|
| + var arg_minStartDate = "foo";
|
| var arg_pageToken = "foo";
|
| + var arg_placementGroupType = "foo";
|
| + var arg_placementStrategyIds = buildUnnamed1540();
|
| + var arg_pricingTypes = buildUnnamed1541();
|
| var arg_searchString = "foo";
|
| + var arg_siteIds = buildUnnamed1542();
|
| var arg_sortField = "foo";
|
| var arg_sortOrder = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -17065,17 +18691,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies", pathOffset);
|
| + index = path.indexOf("/placementGroups", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| - pathOffset += 20;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| + pathOffset += 16;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17093,10 +18719,23 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds));
|
| + unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived"));
|
| + unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds));
|
| + unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds));
|
| + unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds));
|
| unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate));
|
| + unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate));
|
| + unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["placementGroupType"].first, unittest.equals(arg_placementGroupType));
|
| + unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds));
|
| + unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes));
|
| unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
|
| unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
|
|
| @@ -17104,24 +18743,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementStrategiesListResponse());
|
| + var resp = convert.JSON.encode(buildPlacementGroupsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListResponse response) {
|
| - checkPlacementStrategiesListResponse(response);
|
| + res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) {
|
| + checkPlacementGroupsListResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| - var arg_request = buildPlacementStrategy();
|
| + api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| + var arg_request = buildPlacementGroup();
|
| var arg_profileId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementStrategy.fromJson(json);
|
| - checkPlacementStrategy(obj);
|
| + var obj = new api.PlacementGroup.fromJson(json);
|
| + checkPlacementGroup(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17129,17 +18768,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies", pathOffset);
|
| + index = path.indexOf("/placementGroups", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| - pathOffset += 20;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| + pathOffset += 16;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17163,23 +18802,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + var resp = convert.JSON.encode(buildPlacementGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| - checkPlacementStrategy(response);
|
| + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| + checkPlacementGroup(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| - var arg_request = buildPlacementStrategy();
|
| + api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups;
|
| + var arg_request = buildPlacementGroup();
|
| var arg_profileId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.PlacementStrategy.fromJson(json);
|
| - checkPlacementStrategy(obj);
|
| + var obj = new api.PlacementGroup.fromJson(json);
|
| + checkPlacementGroup(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17187,17 +18826,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placementStrategies", pathOffset);
|
| + index = path.indexOf("/placementGroups", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| - pathOffset += 20;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups"));
|
| + pathOffset += 16;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17220,26 +18859,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + var resp = convert.JSON.encode(buildPlacementGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| - checkPlacementStrategy(response);
|
| + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) {
|
| + checkPlacementGroup(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-PlacementsResourceApi", () {
|
| - unittest.test("method--generatetags", () {
|
| + unittest.group("resource-PlacementStrategiesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| var arg_profileId = "foo";
|
| - var arg_campaignId = "foo";
|
| - var arg_placementIds = buildUnnamed473();
|
| - var arg_tagFormats = buildUnnamed474();
|
| + var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17247,17 +18884,20 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements/generatetags", pathOffset);
|
| + index = path.indexOf("/placementStrategies/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/placements/generatetags"));
|
| - pathOffset += 24;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/"));
|
| + pathOffset += 21;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17275,26 +18915,938 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId));
|
| - unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds));
|
| - unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse());
|
| + var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.PlacementsGenerateTagsResponse response) {
|
| - checkPlacementsGenerateTagsResponse(response);
|
| - })));
|
| + res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + var arg_profileId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placementStrategies/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/"));
|
| + pathOffset += 21;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| + checkPlacementStrategy(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + var arg_request = buildPlacementStrategy();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.PlacementStrategy.fromJson(json);
|
| + checkPlacementStrategy(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placementStrategies", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| + pathOffset += 20;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| + checkPlacementStrategy(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + var arg_profileId = "foo";
|
| + var arg_ids = buildUnnamed1543();
|
| + var arg_maxResults = 42;
|
| + var arg_pageToken = "foo";
|
| + var arg_searchString = "foo";
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placementStrategies", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| + pathOffset += 20;
|
| +
|
| + 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["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementStrategiesListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListResponse response) {
|
| + checkPlacementStrategiesListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + var arg_request = buildPlacementStrategy();
|
| + var arg_profileId = "foo";
|
| + var arg_id = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.PlacementStrategy.fromJson(json);
|
| + checkPlacementStrategy(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placementStrategies", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| + pathOffset += 20;
|
| +
|
| + 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["id"].first, unittest.equals(arg_id));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| + checkPlacementStrategy(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--update", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies;
|
| + var arg_request = buildPlacementStrategy();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.PlacementStrategy.fromJson(json);
|
| + checkPlacementStrategy(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placementStrategies", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies"));
|
| + pathOffset += 20;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementStrategy());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) {
|
| + checkPlacementStrategy(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-PlacementsResourceApi", () {
|
| + unittest.test("method--generatetags", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_profileId = "foo";
|
| + var arg_campaignId = "foo";
|
| + var arg_placementIds = buildUnnamed1544();
|
| + var arg_tagFormats = buildUnnamed1545();
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements/generatetags", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/placements/generatetags"));
|
| + pathOffset += 24;
|
| +
|
| + 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["campaignId"].first, unittest.equals(arg_campaignId));
|
| + unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds));
|
| + unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.PlacementsGenerateTagsResponse response) {
|
| + checkPlacementsGenerateTagsResponse(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_profileId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/placements/"));
|
| + pathOffset += 12;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacement());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) {
|
| + checkPlacement(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_request = buildPlacement();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Placement.fromJson(json);
|
| + checkPlacement(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| + pathOffset += 11;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacement());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) {
|
| + checkPlacement(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_profileId = "foo";
|
| + var arg_advertiserIds = buildUnnamed1546();
|
| + var arg_archived = true;
|
| + var arg_campaignIds = buildUnnamed1547();
|
| + var arg_compatibilities = buildUnnamed1548();
|
| + var arg_contentCategoryIds = buildUnnamed1549();
|
| + var arg_directorySiteIds = buildUnnamed1550();
|
| + var arg_groupIds = buildUnnamed1551();
|
| + var arg_ids = buildUnnamed1552();
|
| + var arg_maxEndDate = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_maxStartDate = "foo";
|
| + var arg_minEndDate = "foo";
|
| + var arg_minStartDate = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_paymentSource = "foo";
|
| + var arg_placementStrategyIds = buildUnnamed1553();
|
| + var arg_pricingTypes = buildUnnamed1554();
|
| + var arg_searchString = "foo";
|
| + var arg_siteIds = buildUnnamed1555();
|
| + var arg_sizeIds = buildUnnamed1556();
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| + pathOffset += 11;
|
| +
|
| + 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["advertiserIds"], unittest.equals(arg_advertiserIds));
|
| + unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived"));
|
| + unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds));
|
| + unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compatibilities));
|
| + unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds));
|
| + unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds));
|
| + unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds));
|
| + unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate));
|
| + unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate));
|
| + unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_paymentSource));
|
| + unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds));
|
| + unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes));
|
| + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
|
| + unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacementsListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) {
|
| + checkPlacementsListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_request = buildPlacement();
|
| + var arg_profileId = "foo";
|
| + var arg_id = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Placement.fromJson(json);
|
| + checkPlacement(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| + pathOffset += 11;
|
| +
|
| + 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["id"].first, unittest.equals(arg_id));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacement());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) {
|
| + checkPlacement(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--update", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + var arg_request = buildPlacement();
|
| + var arg_profileId = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Placement.fromJson(json);
|
| + checkPlacement(obj);
|
| +
|
| + 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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/placements", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| + pathOffset += 11;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlacement());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) {
|
| + checkPlacement(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-PlatformTypesResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes;
|
| + var arg_profileId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/platformTypes/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/platformTypes/"));
|
| + pathOffset += 15;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlatformType());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlatformType response) {
|
| + checkPlatformType(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes;
|
| + var arg_profileId = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/platformTypes", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/platformTypes"));
|
| + pathOffset += 14;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPlatformTypesListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListResponse response) {
|
| + checkPlatformTypesListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-PostalCodesResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes;
|
| + var arg_profileId = "foo";
|
| + var arg_code = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/postalCodes/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/postalCodes/"));
|
| + pathOffset += 13;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_code"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPostalCode());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_code).then(unittest.expectAsync(((api.PostalCode response) {
|
| + checkPostalCode(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes;
|
| + var arg_profileId = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/postalCodes", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/postalCodes"));
|
| + pathOffset += 12;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildPostalCodesListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListResponse response) {
|
| + checkPostalCodesListResponse(response);
|
| + })));
|
| });
|
|
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-ProjectsResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects;
|
| var arg_profileId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -17304,20 +19856,205 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements/", pathOffset);
|
| + index = path.indexOf("/projects/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/"));
|
| + pathOffset += 10;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildProject());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Project response) {
|
| + checkProject(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects;
|
| + var arg_profileId = "foo";
|
| + var arg_advertiserIds = buildUnnamed1557();
|
| + var arg_ids = buildUnnamed1558();
|
| + var arg_maxResults = 42;
|
| + var arg_pageToken = "foo";
|
| + var arg_searchString = "foo";
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/projects", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/projects"));
|
| + pathOffset += 9;
|
| +
|
| + 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["advertiserIds"], unittest.equals(arg_advertiserIds));
|
| + unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildProjectsListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ProjectsListResponse response) {
|
| + checkProjectsListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RegionsResourceApi", () {
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.RegionsResourceApi res = new api.DfareportingApi(mock).regions;
|
| + var arg_profileId = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/regions", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/regions"));
|
| + 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]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildRegionsListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListResponse response) {
|
| + checkRegionsListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RemarketingListSharesResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares;
|
| + var arg_profileId = "foo";
|
| + var arg_remarketingListId = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/remarketingListShares/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/placements/"));
|
| - pathOffset += 12;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/remarketingListShares/"));
|
| + pathOffset += 23;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_id"));
|
| + unittest.expect(subPart, unittest.equals("$arg_remarketingListId"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17340,23 +20077,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacement());
|
| + var resp = convert.JSON.encode(buildRemarketingListShare());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) {
|
| - checkPlacement(response);
|
| + res.get(arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) {
|
| + checkRemarketingListShare(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| - var arg_request = buildPlacement();
|
| + api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares;
|
| + var arg_request = buildRemarketingListShare();
|
| var arg_profileId = "foo";
|
| + var arg_remarketingListId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Placement.fromJson(json);
|
| - checkPlacement(obj);
|
| + var obj = new api.RemarketingListShare.fromJson(json);
|
| + checkRemarketingListShare(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17364,17 +20102,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements", pathOffset);
|
| + index = path.indexOf("/remarketingListShares", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| - pathOffset += 11;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares"));
|
| + pathOffset += 22;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17392,60 +20130,47 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["remarketingListId"].first, unittest.equals(arg_remarketingListId));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacement());
|
| + var resp = convert.JSON.encode(buildRemarketingListShare());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) {
|
| - checkPlacement(response);
|
| + res.patch(arg_request, arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) {
|
| + checkRemarketingListShare(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| + api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares;
|
| + var arg_request = buildRemarketingListShare();
|
| var arg_profileId = "foo";
|
| - var arg_advertiserIds = buildUnnamed475();
|
| - var arg_archived = true;
|
| - var arg_campaignIds = buildUnnamed476();
|
| - var arg_compatibilities = buildUnnamed477();
|
| - var arg_contentCategoryIds = buildUnnamed478();
|
| - var arg_directorySiteIds = buildUnnamed479();
|
| - var arg_groupIds = buildUnnamed480();
|
| - var arg_ids = buildUnnamed481();
|
| - var arg_maxResults = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_paymentSource = "foo";
|
| - var arg_placementStrategyIds = buildUnnamed482();
|
| - var arg_pricingTypes = buildUnnamed483();
|
| - var arg_searchString = "foo";
|
| - var arg_siteIds = buildUnnamed484();
|
| - var arg_sizeIds = buildUnnamed485();
|
| - var arg_sortField = "foo";
|
| - var arg_sortOrder = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RemarketingListShare.fromJson(json);
|
| + checkRemarketingListShare(obj);
|
| +
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements", pathOffset);
|
| + index = path.indexOf("/remarketingListShares", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| - pathOffset += 11;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares"));
|
| + pathOffset += 22;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17463,65 +20188,50 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds));
|
| - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived"));
|
| - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds));
|
| - unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compatibilities));
|
| - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds));
|
| - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds));
|
| - unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds));
|
| - unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_paymentSource));
|
| - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds));
|
| - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes));
|
| - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString));
|
| - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
|
| - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds));
|
| - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacementsListResponse());
|
| + var resp = convert.JSON.encode(buildRemarketingListShare());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) {
|
| - checkPlacementsListResponse(response);
|
| + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingListShare response) {
|
| + checkRemarketingListShare(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RemarketingListsResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| - var arg_request = buildPlacement();
|
| + api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists;
|
| var arg_profileId = "foo";
|
| var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Placement.fromJson(json);
|
| - checkPlacement(obj);
|
| -
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements", pathOffset);
|
| + index = path.indexOf("/remarketingLists/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| - pathOffset += 11;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/remarketingLists/"));
|
| + pathOffset += 18;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17539,29 +20249,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacement());
|
| + var resp = convert.JSON.encode(buildRemarketingList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) {
|
| - checkPlacement(response);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) {
|
| + checkRemarketingList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
|
| - var arg_request = buildPlacement();
|
| + api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists;
|
| + var arg_request = buildRemarketingList();
|
| var arg_profileId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Placement.fromJson(json);
|
| - checkPlacement(obj);
|
| + var obj = new api.RemarketingList.fromJson(json);
|
| + checkRemarketingList(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17569,17 +20278,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/placements", pathOffset);
|
| + index = path.indexOf("/remarketingLists", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements"));
|
| - pathOffset += 11;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17602,23 +20311,27 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlacement());
|
| + var resp = convert.JSON.encode(buildRemarketingList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) {
|
| - checkPlacement(response);
|
| + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) {
|
| + checkRemarketingList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-PlatformTypesResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes;
|
| + api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists;
|
| var arg_profileId = "foo";
|
| + var arg_advertiserId = "foo";
|
| + var arg_active = true;
|
| + var arg_floodlightActivityId = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_name = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -17626,17 +20339,17 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/platformTypes", pathOffset);
|
| + index = path.indexOf("/remarketingLists", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/platformTypes"));
|
| - pathOffset += 14;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17654,46 +20367,55 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId));
|
| + unittest.expect(queryMap["active"].first, unittest.equals("$arg_active"));
|
| + unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(arg_floodlightActivityId));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPlatformTypesListResponse());
|
| + var resp = convert.JSON.encode(buildRemarketingListsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListResponse response) {
|
| - checkPlatformTypesListResponse(response);
|
| + res.list(arg_profileId, arg_advertiserId, active: arg_active, floodlightActivityId: arg_floodlightActivityId, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.RemarketingListsListResponse response) {
|
| + checkRemarketingListsListResponse(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-PostalCodesResourceApi", () {
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes;
|
| + api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists;
|
| + var arg_request = buildRemarketingList();
|
| var arg_profileId = "foo";
|
| + var arg_id = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RemarketingList.fromJson(json);
|
| + checkRemarketingList(obj);
|
| +
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/postalCodes", pathOffset);
|
| + index = path.indexOf("/remarketingLists", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/postalCodes"));
|
| - pathOffset += 12;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17711,46 +20433,47 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildPostalCodesListResponse());
|
| + var resp = convert.JSON.encode(buildRemarketingList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListResponse response) {
|
| - checkPostalCodesListResponse(response);
|
| + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) {
|
| + checkRemarketingList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-RegionsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.RegionsResourceApi res = new api.DfareportingApi(mock).regions;
|
| + api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists;
|
| + var arg_request = buildRemarketingList();
|
| var arg_profileId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RemarketingList.fromJson(json);
|
| + checkRemarketingList(obj);
|
| +
|
| 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 + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| - index = path.indexOf("/regions", pathOffset);
|
| + index = path.indexOf("/remarketingLists", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/regions"));
|
| - pathOffset += 8;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists"));
|
| + pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -17773,11 +20496,11 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildRegionsListResponse());
|
| + var resp = convert.JSON.encode(buildRemarketingList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListResponse response) {
|
| - checkRegionsListResponse(response);
|
| + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) {
|
| + checkRemarketingList(response);
|
| })));
|
| });
|
|
|
| @@ -17798,7 +20521,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -17853,7 +20576,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -17913,7 +20636,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -17971,7 +20694,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18034,7 +20757,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18092,7 +20815,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18158,7 +20881,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18222,7 +20945,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18283,7 +21006,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18351,7 +21074,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18420,7 +21143,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18480,7 +21203,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18531,9 +21254,9 @@ main() {
|
| var arg_acceptsPublisherPaidPlacements = true;
|
| var arg_adWordsSite = true;
|
| var arg_approved = true;
|
| - var arg_campaignIds = buildUnnamed486();
|
| - var arg_directorySiteIds = buildUnnamed487();
|
| - var arg_ids = buildUnnamed488();
|
| + var arg_campaignIds = buildUnnamed1559();
|
| + var arg_directorySiteIds = buildUnnamed1560();
|
| + var arg_ids = buildUnnamed1561();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -18548,7 +21271,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18621,7 +21344,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18679,7 +21402,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18737,7 +21460,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18797,7 +21520,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18845,7 +21568,7 @@ main() {
|
| var arg_profileId = "foo";
|
| var arg_height = 42;
|
| var arg_iabStandard = true;
|
| - var arg_ids = buildUnnamed489();
|
| + var arg_ids = buildUnnamed1562();
|
| var arg_width = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -18854,7 +21577,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18916,7 +21639,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -18976,7 +21699,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19022,7 +21745,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed490();
|
| + var arg_ids = buildUnnamed1563();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -19035,7 +21758,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19099,7 +21822,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19157,7 +21880,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19201,6 +21924,134 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("resource-TargetableRemarketingListsResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists;
|
| + var arg_profileId = "foo";
|
| + var arg_id = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/targetableRemarketingLists/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("/targetableRemarketingLists/"));
|
| + pathOffset += 28;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_id"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTargetableRemarketingList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetableRemarketingList response) {
|
| + checkTargetableRemarketingList(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists;
|
| + var arg_profileId = "foo";
|
| + var arg_advertiserId = "foo";
|
| + var arg_active = true;
|
| + var arg_maxResults = 42;
|
| + var arg_name = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_sortField = "foo";
|
| + var arg_sortOrder = "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 + 18), unittest.equals("dfareporting/v2.2/"));
|
| + pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| + pathOffset += 13;
|
| + index = path.indexOf("/targetableRemarketingLists", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_profileId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.equals("/targetableRemarketingLists"));
|
| + pathOffset += 27;
|
| +
|
| + 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["advertiserId"].first, unittest.equals(arg_advertiserId));
|
| + unittest.expect(queryMap["active"].first, unittest.equals("$arg_active"));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField));
|
| + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildTargetableRemarketingListsListResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_profileId, arg_advertiserId, active: arg_active, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetableRemarketingListsListResponse response) {
|
| + checkTargetableRemarketingListsListResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| unittest.group("resource-UserProfilesResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| @@ -19214,7 +22065,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19262,7 +22113,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("userprofiles"));
|
| pathOffset += 12;
|
| @@ -19313,7 +22164,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19369,7 +22220,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19427,7 +22278,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19476,7 +22327,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions;
|
| var arg_profileId = "foo";
|
| - var arg_ids = buildUnnamed491();
|
| + var arg_ids = buildUnnamed1564();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -19484,7 +22335,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19543,7 +22394,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19598,7 +22449,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19658,7 +22509,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19705,7 +22556,7 @@ main() {
|
| api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
|
| var arg_profileId = "foo";
|
| var arg_accountUserRoleOnly = true;
|
| - var arg_ids = buildUnnamed492();
|
| + var arg_ids = buildUnnamed1565();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_searchString = "foo";
|
| @@ -19719,7 +22570,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19785,7 +22636,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
| @@ -19843,7 +22694,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.0/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/"));
|
| pathOffset += 18;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/"));
|
| pathOffset += 13;
|
|
|