| Index: generated/googleapis/test/adexchangebuyer/v1_4_test.dart
|
| diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
|
| similarity index 83%
|
| copy from generated/googleapis/test/adexchangebuyer/v1_3_test.dart
|
| copy to generated/googleapis/test/adexchangebuyer/v1_4_test.dart
|
| index 558a215dbffdc8f22f045af23691930569783831..dafff4b283a25e92ffefdfd2c5a8d89182793d7b 100644
|
| --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
|
| +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
|
| @@ -1,4 +1,4 @@
|
| -library googleapis.adexchangebuyer.v1_3.test;
|
| +library googleapis.adexchangebuyer.v1_4.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/adexchangebuyer/v1_3.dart' as api;
|
| +import 'package:googleapis/adexchangebuyer/v1_4.dart' as api;
|
|
|
| class HttpServerMock extends http.BaseClient {
|
| core.Function _callback;
|
| @@ -74,14 +74,14 @@ checkAccountBidderLocation(api.AccountBidderLocation o) {
|
| buildCounterAccountBidderLocation--;
|
| }
|
|
|
| -buildUnnamed841() {
|
| +buildUnnamed44() {
|
| var o = new core.List<api.AccountBidderLocation>();
|
| o.add(buildAccountBidderLocation());
|
| o.add(buildAccountBidderLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed841(core.List<api.AccountBidderLocation> o) {
|
| +checkUnnamed44(core.List<api.AccountBidderLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccountBidderLocation(o[0]);
|
| checkAccountBidderLocation(o[1]);
|
| @@ -92,7 +92,7 @@ buildAccount() {
|
| var o = new api.Account();
|
| buildCounterAccount++;
|
| if (buildCounterAccount < 3) {
|
| - o.bidderLocation = buildUnnamed841();
|
| + o.bidderLocation = buildUnnamed44();
|
| o.cookieMatchingNid = "foo";
|
| o.cookieMatchingUrl = "foo";
|
| o.id = 42;
|
| @@ -108,7 +108,7 @@ buildAccount() {
|
| checkAccount(api.Account o) {
|
| buildCounterAccount++;
|
| if (buildCounterAccount < 3) {
|
| - checkUnnamed841(o.bidderLocation);
|
| + checkUnnamed44(o.bidderLocation);
|
| unittest.expect(o.cookieMatchingNid, unittest.equals('foo'));
|
| unittest.expect(o.cookieMatchingUrl, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals(42));
|
| @@ -120,14 +120,14 @@ checkAccount(api.Account o) {
|
| buildCounterAccount--;
|
| }
|
|
|
| -buildUnnamed842() {
|
| +buildUnnamed45() {
|
| var o = new core.List<api.Account>();
|
| o.add(buildAccount());
|
| o.add(buildAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed842(core.List<api.Account> o) {
|
| +checkUnnamed45(core.List<api.Account> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccount(o[0]);
|
| checkAccount(o[1]);
|
| @@ -138,7 +138,7 @@ buildAccountsList() {
|
| var o = new api.AccountsList();
|
| buildCounterAccountsList++;
|
| if (buildCounterAccountsList < 3) {
|
| - o.items = buildUnnamed842();
|
| + o.items = buildUnnamed45();
|
| o.kind = "foo";
|
| }
|
| buildCounterAccountsList--;
|
| @@ -148,20 +148,20 @@ buildAccountsList() {
|
| checkAccountsList(api.AccountsList o) {
|
| buildCounterAccountsList++;
|
| if (buildCounterAccountsList < 3) {
|
| - checkUnnamed842(o.items);
|
| + checkUnnamed45(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterAccountsList--;
|
| }
|
|
|
| -buildUnnamed843() {
|
| +buildUnnamed46() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed843(core.List<core.String> o) {
|
| +checkUnnamed46(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'));
|
| @@ -174,7 +174,7 @@ buildBillingInfo() {
|
| if (buildCounterBillingInfo < 3) {
|
| o.accountId = 42;
|
| o.accountName = "foo";
|
| - o.billingId = buildUnnamed843();
|
| + o.billingId = buildUnnamed46();
|
| o.kind = "foo";
|
| }
|
| buildCounterBillingInfo--;
|
| @@ -186,20 +186,20 @@ checkBillingInfo(api.BillingInfo o) {
|
| if (buildCounterBillingInfo < 3) {
|
| unittest.expect(o.accountId, unittest.equals(42));
|
| unittest.expect(o.accountName, unittest.equals('foo'));
|
| - checkUnnamed843(o.billingId);
|
| + checkUnnamed46(o.billingId);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterBillingInfo--;
|
| }
|
|
|
| -buildUnnamed844() {
|
| +buildUnnamed47() {
|
| var o = new core.List<api.BillingInfo>();
|
| o.add(buildBillingInfo());
|
| o.add(buildBillingInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed844(core.List<api.BillingInfo> o) {
|
| +checkUnnamed47(core.List<api.BillingInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBillingInfo(o[0]);
|
| checkBillingInfo(o[1]);
|
| @@ -210,7 +210,7 @@ buildBillingInfoList() {
|
| var o = new api.BillingInfoList();
|
| buildCounterBillingInfoList++;
|
| if (buildCounterBillingInfoList < 3) {
|
| - o.items = buildUnnamed844();
|
| + o.items = buildUnnamed47();
|
| o.kind = "foo";
|
| }
|
| buildCounterBillingInfoList--;
|
| @@ -220,7 +220,7 @@ buildBillingInfoList() {
|
| checkBillingInfoList(api.BillingInfoList o) {
|
| buildCounterBillingInfoList++;
|
| if (buildCounterBillingInfoList < 3) {
|
| - checkUnnamed844(o.items);
|
| + checkUnnamed47(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterBillingInfoList--;
|
| @@ -255,53 +255,53 @@ checkBudget(api.Budget o) {
|
| buildCounterBudget--;
|
| }
|
|
|
| -buildUnnamed845() {
|
| +buildUnnamed48() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed845(core.List<core.String> o) {
|
| +checkUnnamed48(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'));
|
| }
|
|
|
| -buildUnnamed846() {
|
| +buildUnnamed49() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed846(core.List<core.int> o) {
|
| +checkUnnamed49(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));
|
| }
|
|
|
| -buildUnnamed847() {
|
| +buildUnnamed50() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed847(core.List<core.String> o) {
|
| +checkUnnamed50(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'));
|
| }
|
|
|
| -buildUnnamed848() {
|
| +buildUnnamed51() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed848(core.List<core.String> o) {
|
| +checkUnnamed51(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'));
|
| @@ -312,7 +312,7 @@ buildCreativeCorrections() {
|
| var o = new api.CreativeCorrections();
|
| buildCounterCreativeCorrections++;
|
| if (buildCounterCreativeCorrections < 3) {
|
| - o.details = buildUnnamed848();
|
| + o.details = buildUnnamed51();
|
| o.reason = "foo";
|
| }
|
| buildCounterCreativeCorrections--;
|
| @@ -322,72 +322,25 @@ buildCreativeCorrections() {
|
| checkCreativeCorrections(api.CreativeCorrections o) {
|
| buildCounterCreativeCorrections++;
|
| if (buildCounterCreativeCorrections < 3) {
|
| - checkUnnamed848(o.details);
|
| + checkUnnamed51(o.details);
|
| unittest.expect(o.reason, unittest.equals('foo'));
|
| }
|
| buildCounterCreativeCorrections--;
|
| }
|
|
|
| -buildUnnamed849() {
|
| +buildUnnamed52() {
|
| var o = new core.List<api.CreativeCorrections>();
|
| o.add(buildCreativeCorrections());
|
| o.add(buildCreativeCorrections());
|
| return o;
|
| }
|
|
|
| -checkUnnamed849(core.List<api.CreativeCorrections> o) {
|
| +checkUnnamed52(core.List<api.CreativeCorrections> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeCorrections(o[0]);
|
| checkCreativeCorrections(o[1]);
|
| }
|
|
|
| -buildUnnamed850() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed850(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 buildCounterCreativeDisapprovalReasons = 0;
|
| -buildCreativeDisapprovalReasons() {
|
| - var o = new api.CreativeDisapprovalReasons();
|
| - buildCounterCreativeDisapprovalReasons++;
|
| - if (buildCounterCreativeDisapprovalReasons < 3) {
|
| - o.details = buildUnnamed850();
|
| - o.reason = "foo";
|
| - }
|
| - buildCounterCreativeDisapprovalReasons--;
|
| - return o;
|
| -}
|
| -
|
| -checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) {
|
| - buildCounterCreativeDisapprovalReasons++;
|
| - if (buildCounterCreativeDisapprovalReasons < 3) {
|
| - checkUnnamed850(o.details);
|
| - unittest.expect(o.reason, unittest.equals('foo'));
|
| - }
|
| - buildCounterCreativeDisapprovalReasons--;
|
| -}
|
| -
|
| -buildUnnamed851() {
|
| - var o = new core.List<api.CreativeDisapprovalReasons>();
|
| - o.add(buildCreativeDisapprovalReasons());
|
| - o.add(buildCreativeDisapprovalReasons());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed851(core.List<api.CreativeDisapprovalReasons> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkCreativeDisapprovalReasons(o[0]);
|
| - checkCreativeDisapprovalReasons(o[1]);
|
| -}
|
| -
|
| core.int buildCounterCreativeFilteringReasonsReasons = 0;
|
| buildCreativeFilteringReasonsReasons() {
|
| var o = new api.CreativeFilteringReasonsReasons();
|
| @@ -409,14 +362,14 @@ checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) {
|
| buildCounterCreativeFilteringReasonsReasons--;
|
| }
|
|
|
| -buildUnnamed852() {
|
| +buildUnnamed53() {
|
| var o = new core.List<api.CreativeFilteringReasonsReasons>();
|
| o.add(buildCreativeFilteringReasonsReasons());
|
| o.add(buildCreativeFilteringReasonsReasons());
|
| return o;
|
| }
|
|
|
| -checkUnnamed852(core.List<api.CreativeFilteringReasonsReasons> o) {
|
| +checkUnnamed53(core.List<api.CreativeFilteringReasonsReasons> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreativeFilteringReasonsReasons(o[0]);
|
| checkCreativeFilteringReasonsReasons(o[1]);
|
| @@ -428,7 +381,7 @@ buildCreativeFilteringReasons() {
|
| buildCounterCreativeFilteringReasons++;
|
| if (buildCounterCreativeFilteringReasons < 3) {
|
| o.date = "foo";
|
| - o.reasons = buildUnnamed852();
|
| + o.reasons = buildUnnamed53();
|
| }
|
| buildCounterCreativeFilteringReasons--;
|
| return o;
|
| @@ -438,58 +391,218 @@ checkCreativeFilteringReasons(api.CreativeFilteringReasons o) {
|
| buildCounterCreativeFilteringReasons++;
|
| if (buildCounterCreativeFilteringReasons < 3) {
|
| unittest.expect(o.date, unittest.equals('foo'));
|
| - checkUnnamed852(o.reasons);
|
| + checkUnnamed53(o.reasons);
|
| }
|
| buildCounterCreativeFilteringReasons--;
|
| }
|
|
|
| -buildUnnamed853() {
|
| +buildUnnamed54() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed853(core.List<core.int> o) {
|
| +checkUnnamed54(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));
|
| }
|
|
|
| -buildUnnamed854() {
|
| +buildUnnamed55() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed854(core.List<core.int> o) {
|
| +checkUnnamed55(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));
|
| }
|
|
|
| -buildUnnamed855() {
|
| +buildUnnamed56() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed855(core.List<core.int> o) {
|
| +checkUnnamed56(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));
|
| }
|
|
|
| -buildUnnamed856() {
|
| +buildUnnamed57() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed57(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'));
|
| +}
|
| +
|
| +buildUnnamed58() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed856(core.List<core.int> o) {
|
| +checkUnnamed58(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));
|
| +}
|
| +
|
| +buildUnnamed59() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed59(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 buildCounterCreativeServingRestrictionsContexts = 0;
|
| +buildCreativeServingRestrictionsContexts() {
|
| + var o = new api.CreativeServingRestrictionsContexts();
|
| + buildCounterCreativeServingRestrictionsContexts++;
|
| + if (buildCounterCreativeServingRestrictionsContexts < 3) {
|
| + o.auctionType = buildUnnamed57();
|
| + o.contextType = "foo";
|
| + o.geoCriteriaId = buildUnnamed58();
|
| + o.platform = buildUnnamed59();
|
| + }
|
| + buildCounterCreativeServingRestrictionsContexts--;
|
| + return o;
|
| +}
|
| +
|
| +checkCreativeServingRestrictionsContexts(api.CreativeServingRestrictionsContexts o) {
|
| + buildCounterCreativeServingRestrictionsContexts++;
|
| + if (buildCounterCreativeServingRestrictionsContexts < 3) {
|
| + checkUnnamed57(o.auctionType);
|
| + unittest.expect(o.contextType, unittest.equals('foo'));
|
| + checkUnnamed58(o.geoCriteriaId);
|
| + checkUnnamed59(o.platform);
|
| + }
|
| + buildCounterCreativeServingRestrictionsContexts--;
|
| +}
|
| +
|
| +buildUnnamed60() {
|
| + var o = new core.List<api.CreativeServingRestrictionsContexts>();
|
| + o.add(buildCreativeServingRestrictionsContexts());
|
| + o.add(buildCreativeServingRestrictionsContexts());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed60(core.List<api.CreativeServingRestrictionsContexts> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkCreativeServingRestrictionsContexts(o[0]);
|
| + checkCreativeServingRestrictionsContexts(o[1]);
|
| +}
|
| +
|
| +buildUnnamed61() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed61(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 buildCounterCreativeServingRestrictionsDisapprovalReasons = 0;
|
| +buildCreativeServingRestrictionsDisapprovalReasons() {
|
| + var o = new api.CreativeServingRestrictionsDisapprovalReasons();
|
| + buildCounterCreativeServingRestrictionsDisapprovalReasons++;
|
| + if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) {
|
| + o.details = buildUnnamed61();
|
| + o.reason = "foo";
|
| + }
|
| + buildCounterCreativeServingRestrictionsDisapprovalReasons--;
|
| + return o;
|
| +}
|
| +
|
| +checkCreativeServingRestrictionsDisapprovalReasons(api.CreativeServingRestrictionsDisapprovalReasons o) {
|
| + buildCounterCreativeServingRestrictionsDisapprovalReasons++;
|
| + if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) {
|
| + checkUnnamed61(o.details);
|
| + unittest.expect(o.reason, unittest.equals('foo'));
|
| + }
|
| + buildCounterCreativeServingRestrictionsDisapprovalReasons--;
|
| +}
|
| +
|
| +buildUnnamed62() {
|
| + var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>();
|
| + o.add(buildCreativeServingRestrictionsDisapprovalReasons());
|
| + o.add(buildCreativeServingRestrictionsDisapprovalReasons());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed62(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkCreativeServingRestrictionsDisapprovalReasons(o[0]);
|
| + checkCreativeServingRestrictionsDisapprovalReasons(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterCreativeServingRestrictions = 0;
|
| +buildCreativeServingRestrictions() {
|
| + var o = new api.CreativeServingRestrictions();
|
| + buildCounterCreativeServingRestrictions++;
|
| + if (buildCounterCreativeServingRestrictions < 3) {
|
| + o.contexts = buildUnnamed60();
|
| + o.disapprovalReasons = buildUnnamed62();
|
| + o.reason = "foo";
|
| + }
|
| + buildCounterCreativeServingRestrictions--;
|
| + return o;
|
| +}
|
| +
|
| +checkCreativeServingRestrictions(api.CreativeServingRestrictions o) {
|
| + buildCounterCreativeServingRestrictions++;
|
| + if (buildCounterCreativeServingRestrictions < 3) {
|
| + checkUnnamed60(o.contexts);
|
| + checkUnnamed62(o.disapprovalReasons);
|
| + unittest.expect(o.reason, unittest.equals('foo'));
|
| + }
|
| + buildCounterCreativeServingRestrictions--;
|
| +}
|
| +
|
| +buildUnnamed63() {
|
| + var o = new core.List<api.CreativeServingRestrictions>();
|
| + o.add(buildCreativeServingRestrictions());
|
| + o.add(buildCreativeServingRestrictions());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed63(core.List<api.CreativeServingRestrictions> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkCreativeServingRestrictions(o[0]);
|
| + checkCreativeServingRestrictions(o[1]);
|
| +}
|
| +
|
| +buildUnnamed64() {
|
| + var o = new core.List<core.int>();
|
| + o.add(42);
|
| + o.add(42);
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed64(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));
|
| @@ -502,22 +615,23 @@ buildCreative() {
|
| if (buildCounterCreative < 3) {
|
| o.HTMLSnippet = "foo";
|
| o.accountId = 42;
|
| - o.advertiserId = buildUnnamed845();
|
| + o.advertiserId = buildUnnamed48();
|
| o.advertiserName = "foo";
|
| o.agencyId = "foo";
|
| - o.attribute = buildUnnamed846();
|
| + o.attribute = buildUnnamed49();
|
| o.buyerCreativeId = "foo";
|
| - o.clickThroughUrl = buildUnnamed847();
|
| - o.corrections = buildUnnamed849();
|
| - o.disapprovalReasons = buildUnnamed851();
|
| + o.clickThroughUrl = buildUnnamed50();
|
| + o.corrections = buildUnnamed52();
|
| + o.dealsStatus = "foo";
|
| o.filteringReasons = buildCreativeFilteringReasons();
|
| o.height = 42;
|
| o.kind = "foo";
|
| - o.productCategories = buildUnnamed853();
|
| - o.restrictedCategories = buildUnnamed854();
|
| - o.sensitiveCategories = buildUnnamed855();
|
| - o.status = "foo";
|
| - o.vendorType = buildUnnamed856();
|
| + o.openAuctionStatus = "foo";
|
| + o.productCategories = buildUnnamed54();
|
| + o.restrictedCategories = buildUnnamed55();
|
| + o.sensitiveCategories = buildUnnamed56();
|
| + o.servingRestrictions = buildUnnamed63();
|
| + o.vendorType = buildUnnamed64();
|
| o.videoURL = "foo";
|
| o.width = 42;
|
| }
|
| @@ -530,36 +644,37 @@ checkCreative(api.Creative o) {
|
| if (buildCounterCreative < 3) {
|
| unittest.expect(o.HTMLSnippet, unittest.equals('foo'));
|
| unittest.expect(o.accountId, unittest.equals(42));
|
| - checkUnnamed845(o.advertiserId);
|
| + checkUnnamed48(o.advertiserId);
|
| unittest.expect(o.advertiserName, unittest.equals('foo'));
|
| unittest.expect(o.agencyId, unittest.equals('foo'));
|
| - checkUnnamed846(o.attribute);
|
| + checkUnnamed49(o.attribute);
|
| unittest.expect(o.buyerCreativeId, unittest.equals('foo'));
|
| - checkUnnamed847(o.clickThroughUrl);
|
| - checkUnnamed849(o.corrections);
|
| - checkUnnamed851(o.disapprovalReasons);
|
| + checkUnnamed50(o.clickThroughUrl);
|
| + checkUnnamed52(o.corrections);
|
| + unittest.expect(o.dealsStatus, unittest.equals('foo'));
|
| checkCreativeFilteringReasons(o.filteringReasons);
|
| unittest.expect(o.height, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed853(o.productCategories);
|
| - checkUnnamed854(o.restrictedCategories);
|
| - checkUnnamed855(o.sensitiveCategories);
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - checkUnnamed856(o.vendorType);
|
| + unittest.expect(o.openAuctionStatus, unittest.equals('foo'));
|
| + checkUnnamed54(o.productCategories);
|
| + checkUnnamed55(o.restrictedCategories);
|
| + checkUnnamed56(o.sensitiveCategories);
|
| + checkUnnamed63(o.servingRestrictions);
|
| + checkUnnamed64(o.vendorType);
|
| unittest.expect(o.videoURL, unittest.equals('foo'));
|
| unittest.expect(o.width, unittest.equals(42));
|
| }
|
| buildCounterCreative--;
|
| }
|
|
|
| -buildUnnamed857() {
|
| +buildUnnamed65() {
|
| var o = new core.List<api.Creative>();
|
| o.add(buildCreative());
|
| o.add(buildCreative());
|
| return o;
|
| }
|
|
|
| -checkUnnamed857(core.List<api.Creative> o) {
|
| +checkUnnamed65(core.List<api.Creative> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCreative(o[0]);
|
| checkCreative(o[1]);
|
| @@ -570,7 +685,7 @@ buildCreativesList() {
|
| var o = new api.CreativesList();
|
| buildCounterCreativesList++;
|
| if (buildCounterCreativesList < 3) {
|
| - o.items = buildUnnamed857();
|
| + o.items = buildUnnamed65();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -581,135 +696,60 @@ buildCreativesList() {
|
| checkCreativesList(api.CreativesList o) {
|
| buildCounterCreativesList++;
|
| if (buildCounterCreativesList < 3) {
|
| - checkUnnamed857(o.items);
|
| + checkUnnamed65(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterCreativesList--;
|
| }
|
|
|
| -core.int buildCounterDirectDeal = 0;
|
| -buildDirectDeal() {
|
| - var o = new api.DirectDeal();
|
| - buildCounterDirectDeal++;
|
| - if (buildCounterDirectDeal < 3) {
|
| - o.accountId = 42;
|
| - o.advertiser = "foo";
|
| - o.currencyCode = "foo";
|
| - o.endTime = "foo";
|
| - o.fixedCpm = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.privateExchangeMinCpm = "foo";
|
| - o.publisherBlocksOverriden = true;
|
| - o.sellerNetwork = "foo";
|
| - o.startTime = "foo";
|
| - }
|
| - buildCounterDirectDeal--;
|
| - return o;
|
| -}
|
| -
|
| -checkDirectDeal(api.DirectDeal o) {
|
| - buildCounterDirectDeal++;
|
| - if (buildCounterDirectDeal < 3) {
|
| - unittest.expect(o.accountId, unittest.equals(42));
|
| - unittest.expect(o.advertiser, unittest.equals('foo'));
|
| - unittest.expect(o.currencyCode, unittest.equals('foo'));
|
| - unittest.expect(o.endTime, unittest.equals('foo'));
|
| - unittest.expect(o.fixedCpm, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo'));
|
| - unittest.expect(o.publisherBlocksOverriden, unittest.isTrue);
|
| - unittest.expect(o.sellerNetwork, unittest.equals('foo'));
|
| - unittest.expect(o.startTime, unittest.equals('foo'));
|
| - }
|
| - buildCounterDirectDeal--;
|
| -}
|
| -
|
| -buildUnnamed858() {
|
| - var o = new core.List<api.DirectDeal>();
|
| - o.add(buildDirectDeal());
|
| - o.add(buildDirectDeal());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed858(core.List<api.DirectDeal> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkDirectDeal(o[0]);
|
| - checkDirectDeal(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterDirectDealsList = 0;
|
| -buildDirectDealsList() {
|
| - var o = new api.DirectDealsList();
|
| - buildCounterDirectDealsList++;
|
| - if (buildCounterDirectDealsList < 3) {
|
| - o.directDeals = buildUnnamed858();
|
| - o.kind = "foo";
|
| - }
|
| - buildCounterDirectDealsList--;
|
| - return o;
|
| -}
|
| -
|
| -checkDirectDealsList(api.DirectDealsList o) {
|
| - buildCounterDirectDealsList++;
|
| - if (buildCounterDirectDealsList < 3) {
|
| - checkUnnamed858(o.directDeals);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - }
|
| - buildCounterDirectDealsList--;
|
| -}
|
| -
|
| -buildUnnamed859() {
|
| +buildUnnamed66() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed859(core.List<core.Object> o) {
|
| +checkUnnamed66(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed860() {
|
| +buildUnnamed67() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed860(core.List<core.Object> o) {
|
| +checkUnnamed67(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed861() {
|
| +buildUnnamed68() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed861(core.List<core.Object> o) {
|
| +checkUnnamed68(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed862() {
|
| +buildUnnamed69() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed862(core.List<core.Object> o) {
|
| +checkUnnamed69(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
|
| var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
|
| @@ -722,11 +762,11 @@ buildPerformanceReport() {
|
| if (buildCounterPerformanceReport < 3) {
|
| o.bidRate = 42.0;
|
| o.bidRequestRate = 42.0;
|
| - o.calloutStatusRate = buildUnnamed859();
|
| - o.cookieMatcherStatusRate = buildUnnamed860();
|
| - o.creativeStatusRate = buildUnnamed861();
|
| + o.calloutStatusRate = buildUnnamed66();
|
| + o.cookieMatcherStatusRate = buildUnnamed67();
|
| + o.creativeStatusRate = buildUnnamed68();
|
| o.filteredBidRate = 42.0;
|
| - o.hostedMatchStatusRate = buildUnnamed862();
|
| + o.hostedMatchStatusRate = buildUnnamed69();
|
| o.inventoryMatchRate = 42.0;
|
| o.kind = "foo";
|
| o.latency50thPercentile = 42.0;
|
| @@ -752,11 +792,11 @@ checkPerformanceReport(api.PerformanceReport o) {
|
| if (buildCounterPerformanceReport < 3) {
|
| unittest.expect(o.bidRate, unittest.equals(42.0));
|
| unittest.expect(o.bidRequestRate, unittest.equals(42.0));
|
| - checkUnnamed859(o.calloutStatusRate);
|
| - checkUnnamed860(o.cookieMatcherStatusRate);
|
| - checkUnnamed861(o.creativeStatusRate);
|
| + checkUnnamed66(o.calloutStatusRate);
|
| + checkUnnamed67(o.cookieMatcherStatusRate);
|
| + checkUnnamed68(o.creativeStatusRate);
|
| unittest.expect(o.filteredBidRate, unittest.equals(42.0));
|
| - checkUnnamed862(o.hostedMatchStatusRate);
|
| + checkUnnamed69(o.hostedMatchStatusRate);
|
| unittest.expect(o.inventoryMatchRate, unittest.equals(42.0));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.latency50thPercentile, unittest.equals(42.0));
|
| @@ -776,14 +816,14 @@ checkPerformanceReport(api.PerformanceReport o) {
|
| buildCounterPerformanceReport--;
|
| }
|
|
|
| -buildUnnamed863() {
|
| +buildUnnamed70() {
|
| var o = new core.List<api.PerformanceReport>();
|
| o.add(buildPerformanceReport());
|
| o.add(buildPerformanceReport());
|
| return o;
|
| }
|
|
|
| -checkUnnamed863(core.List<api.PerformanceReport> o) {
|
| +checkUnnamed70(core.List<api.PerformanceReport> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPerformanceReport(o[0]);
|
| checkPerformanceReport(o[1]);
|
| @@ -795,7 +835,7 @@ buildPerformanceReportList() {
|
| buildCounterPerformanceReportList++;
|
| if (buildCounterPerformanceReportList < 3) {
|
| o.kind = "foo";
|
| - o.performanceReport = buildUnnamed863();
|
| + o.performanceReport = buildUnnamed70();
|
| }
|
| buildCounterPerformanceReportList--;
|
| return o;
|
| @@ -805,19 +845,19 @@ checkPerformanceReportList(api.PerformanceReportList o) {
|
| buildCounterPerformanceReportList++;
|
| if (buildCounterPerformanceReportList < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed863(o.performanceReport);
|
| + checkUnnamed70(o.performanceReport);
|
| }
|
| buildCounterPerformanceReportList--;
|
| }
|
|
|
| -buildUnnamed864() {
|
| +buildUnnamed71() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed864(core.List<core.String> o) {
|
| +checkUnnamed71(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'));
|
| @@ -844,40 +884,40 @@ checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) {
|
| buildCounterPretargetingConfigDimensions--;
|
| }
|
|
|
| -buildUnnamed865() {
|
| +buildUnnamed72() {
|
| var o = new core.List<api.PretargetingConfigDimensions>();
|
| o.add(buildPretargetingConfigDimensions());
|
| o.add(buildPretargetingConfigDimensions());
|
| return o;
|
| }
|
|
|
| -checkUnnamed865(core.List<api.PretargetingConfigDimensions> o) {
|
| +checkUnnamed72(core.List<api.PretargetingConfigDimensions> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPretargetingConfigDimensions(o[0]);
|
| checkPretargetingConfigDimensions(o[1]);
|
| }
|
|
|
| -buildUnnamed866() {
|
| +buildUnnamed73() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed866(core.List<core.String> o) {
|
| +checkUnnamed73(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'));
|
| }
|
|
|
| -buildUnnamed867() {
|
| +buildUnnamed74() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed867(core.List<core.String> o) {
|
| +checkUnnamed74(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'));
|
| @@ -904,105 +944,105 @@ checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
|
| buildCounterPretargetingConfigExcludedPlacements--;
|
| }
|
|
|
| -buildUnnamed868() {
|
| +buildUnnamed75() {
|
| var o = new core.List<api.PretargetingConfigExcludedPlacements>();
|
| o.add(buildPretargetingConfigExcludedPlacements());
|
| o.add(buildPretargetingConfigExcludedPlacements());
|
| return o;
|
| }
|
|
|
| -checkUnnamed868(core.List<api.PretargetingConfigExcludedPlacements> o) {
|
| +checkUnnamed75(core.List<api.PretargetingConfigExcludedPlacements> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPretargetingConfigExcludedPlacements(o[0]);
|
| checkPretargetingConfigExcludedPlacements(o[1]);
|
| }
|
|
|
| -buildUnnamed869() {
|
| +buildUnnamed76() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed869(core.List<core.String> o) {
|
| +checkUnnamed76(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'));
|
| }
|
|
|
| -buildUnnamed870() {
|
| +buildUnnamed77() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed870(core.List<core.String> o) {
|
| +checkUnnamed77(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'));
|
| }
|
|
|
| -buildUnnamed871() {
|
| +buildUnnamed78() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed871(core.List<core.String> o) {
|
| +checkUnnamed78(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'));
|
| }
|
|
|
| -buildUnnamed872() {
|
| +buildUnnamed79() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed872(core.List<core.String> o) {
|
| +checkUnnamed79(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'));
|
| }
|
|
|
| -buildUnnamed873() {
|
| +buildUnnamed80() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed873(core.List<core.String> o) {
|
| +checkUnnamed80(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'));
|
| }
|
|
|
| -buildUnnamed874() {
|
| +buildUnnamed81() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed874(core.List<core.String> o) {
|
| +checkUnnamed81(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'));
|
| }
|
|
|
| -buildUnnamed875() {
|
| +buildUnnamed82() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed875(core.List<core.String> o) {
|
| +checkUnnamed82(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'));
|
| @@ -1029,79 +1069,79 @@ checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) {
|
| buildCounterPretargetingConfigPlacements--;
|
| }
|
|
|
| -buildUnnamed876() {
|
| +buildUnnamed83() {
|
| var o = new core.List<api.PretargetingConfigPlacements>();
|
| o.add(buildPretargetingConfigPlacements());
|
| o.add(buildPretargetingConfigPlacements());
|
| return o;
|
| }
|
|
|
| -checkUnnamed876(core.List<api.PretargetingConfigPlacements> o) {
|
| +checkUnnamed83(core.List<api.PretargetingConfigPlacements> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPretargetingConfigPlacements(o[0]);
|
| checkPretargetingConfigPlacements(o[1]);
|
| }
|
|
|
| -buildUnnamed877() {
|
| +buildUnnamed84() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed877(core.List<core.String> o) {
|
| +checkUnnamed84(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'));
|
| }
|
|
|
| -buildUnnamed878() {
|
| +buildUnnamed85() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed878(core.List<core.String> o) {
|
| +checkUnnamed85(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'));
|
| }
|
|
|
| -buildUnnamed879() {
|
| +buildUnnamed86() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed879(core.List<core.String> o) {
|
| +checkUnnamed86(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'));
|
| }
|
|
|
| -buildUnnamed880() {
|
| +buildUnnamed87() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed880(core.List<core.String> o) {
|
| +checkUnnamed87(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'));
|
| }
|
|
|
| -buildUnnamed881() {
|
| +buildUnnamed88() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed881(core.List<core.String> o) {
|
| +checkUnnamed88(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'));
|
| @@ -1115,26 +1155,26 @@ buildPretargetingConfig() {
|
| o.billingId = "foo";
|
| o.configId = "foo";
|
| o.configName = "foo";
|
| - o.creativeType = buildUnnamed864();
|
| - o.dimensions = buildUnnamed865();
|
| - o.excludedContentLabels = buildUnnamed866();
|
| - o.excludedGeoCriteriaIds = buildUnnamed867();
|
| - o.excludedPlacements = buildUnnamed868();
|
| - o.excludedUserLists = buildUnnamed869();
|
| - o.excludedVerticals = buildUnnamed870();
|
| - o.geoCriteriaIds = buildUnnamed871();
|
| + o.creativeType = buildUnnamed71();
|
| + o.dimensions = buildUnnamed72();
|
| + o.excludedContentLabels = buildUnnamed73();
|
| + o.excludedGeoCriteriaIds = buildUnnamed74();
|
| + o.excludedPlacements = buildUnnamed75();
|
| + o.excludedUserLists = buildUnnamed76();
|
| + o.excludedVerticals = buildUnnamed77();
|
| + o.geoCriteriaIds = buildUnnamed78();
|
| o.isActive = true;
|
| o.kind = "foo";
|
| - o.languages = buildUnnamed872();
|
| - o.mobileCarriers = buildUnnamed873();
|
| - o.mobileDevices = buildUnnamed874();
|
| - o.mobileOperatingSystemVersions = buildUnnamed875();
|
| - o.placements = buildUnnamed876();
|
| - o.platforms = buildUnnamed877();
|
| - o.supportedCreativeAttributes = buildUnnamed878();
|
| - o.userLists = buildUnnamed879();
|
| - o.vendorTypes = buildUnnamed880();
|
| - o.verticals = buildUnnamed881();
|
| + o.languages = buildUnnamed79();
|
| + o.mobileCarriers = buildUnnamed80();
|
| + o.mobileDevices = buildUnnamed81();
|
| + o.mobileOperatingSystemVersions = buildUnnamed82();
|
| + o.placements = buildUnnamed83();
|
| + o.platforms = buildUnnamed84();
|
| + o.supportedCreativeAttributes = buildUnnamed85();
|
| + o.userLists = buildUnnamed86();
|
| + o.vendorTypes = buildUnnamed87();
|
| + o.verticals = buildUnnamed88();
|
| }
|
| buildCounterPretargetingConfig--;
|
| return o;
|
| @@ -1146,38 +1186,38 @@ checkPretargetingConfig(api.PretargetingConfig o) {
|
| unittest.expect(o.billingId, unittest.equals('foo'));
|
| unittest.expect(o.configId, unittest.equals('foo'));
|
| unittest.expect(o.configName, unittest.equals('foo'));
|
| - checkUnnamed864(o.creativeType);
|
| - checkUnnamed865(o.dimensions);
|
| - checkUnnamed866(o.excludedContentLabels);
|
| - checkUnnamed867(o.excludedGeoCriteriaIds);
|
| - checkUnnamed868(o.excludedPlacements);
|
| - checkUnnamed869(o.excludedUserLists);
|
| - checkUnnamed870(o.excludedVerticals);
|
| - checkUnnamed871(o.geoCriteriaIds);
|
| + checkUnnamed71(o.creativeType);
|
| + checkUnnamed72(o.dimensions);
|
| + checkUnnamed73(o.excludedContentLabels);
|
| + checkUnnamed74(o.excludedGeoCriteriaIds);
|
| + checkUnnamed75(o.excludedPlacements);
|
| + checkUnnamed76(o.excludedUserLists);
|
| + checkUnnamed77(o.excludedVerticals);
|
| + checkUnnamed78(o.geoCriteriaIds);
|
| unittest.expect(o.isActive, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed872(o.languages);
|
| - checkUnnamed873(o.mobileCarriers);
|
| - checkUnnamed874(o.mobileDevices);
|
| - checkUnnamed875(o.mobileOperatingSystemVersions);
|
| - checkUnnamed876(o.placements);
|
| - checkUnnamed877(o.platforms);
|
| - checkUnnamed878(o.supportedCreativeAttributes);
|
| - checkUnnamed879(o.userLists);
|
| - checkUnnamed880(o.vendorTypes);
|
| - checkUnnamed881(o.verticals);
|
| + checkUnnamed79(o.languages);
|
| + checkUnnamed80(o.mobileCarriers);
|
| + checkUnnamed81(o.mobileDevices);
|
| + checkUnnamed82(o.mobileOperatingSystemVersions);
|
| + checkUnnamed83(o.placements);
|
| + checkUnnamed84(o.platforms);
|
| + checkUnnamed85(o.supportedCreativeAttributes);
|
| + checkUnnamed86(o.userLists);
|
| + checkUnnamed87(o.vendorTypes);
|
| + checkUnnamed88(o.verticals);
|
| }
|
| buildCounterPretargetingConfig--;
|
| }
|
|
|
| -buildUnnamed882() {
|
| +buildUnnamed89() {
|
| var o = new core.List<api.PretargetingConfig>();
|
| o.add(buildPretargetingConfig());
|
| o.add(buildPretargetingConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed882(core.List<api.PretargetingConfig> o) {
|
| +checkUnnamed89(core.List<api.PretargetingConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPretargetingConfig(o[0]);
|
| checkPretargetingConfig(o[1]);
|
| @@ -1188,7 +1228,7 @@ buildPretargetingConfigList() {
|
| var o = new api.PretargetingConfigList();
|
| buildCounterPretargetingConfigList++;
|
| if (buildCounterPretargetingConfigList < 3) {
|
| - o.items = buildUnnamed882();
|
| + o.items = buildUnnamed89();
|
| o.kind = "foo";
|
| }
|
| buildCounterPretargetingConfigList--;
|
| @@ -1198,33 +1238,33 @@ buildPretargetingConfigList() {
|
| checkPretargetingConfigList(api.PretargetingConfigList o) {
|
| buildCounterPretargetingConfigList++;
|
| if (buildCounterPretargetingConfigList < 3) {
|
| - checkUnnamed882(o.items);
|
| + checkUnnamed89(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterPretargetingConfigList--;
|
| }
|
|
|
| -buildUnnamed883() {
|
| +buildUnnamed90() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed883(core.List<core.int> o) {
|
| +checkUnnamed90(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));
|
| }
|
|
|
| -buildUnnamed884() {
|
| +buildUnnamed91() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed884(core.List<core.String> o) {
|
| +checkUnnamed91(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'));
|
| @@ -1295,15 +1335,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-CreativeDisapprovalReasons", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildCreativeDisapprovalReasons();
|
| - var od = new api.CreativeDisapprovalReasons.fromJson(o.toJson());
|
| - checkCreativeDisapprovalReasons(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-CreativeFilteringReasonsReasons", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCreativeFilteringReasonsReasons();
|
| @@ -1322,38 +1353,47 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Creative", () {
|
| + unittest.group("obj-schema-CreativeServingRestrictionsContexts", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildCreative();
|
| - var od = new api.Creative.fromJson(o.toJson());
|
| - checkCreative(od);
|
| + var o = buildCreativeServingRestrictionsContexts();
|
| + var od = new api.CreativeServingRestrictionsContexts.fromJson(o.toJson());
|
| + checkCreativeServingRestrictionsContexts(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-CreativesList", () {
|
| + unittest.group("obj-schema-CreativeServingRestrictionsDisapprovalReasons", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildCreativesList();
|
| - var od = new api.CreativesList.fromJson(o.toJson());
|
| - checkCreativesList(od);
|
| + var o = buildCreativeServingRestrictionsDisapprovalReasons();
|
| + var od = new api.CreativeServingRestrictionsDisapprovalReasons.fromJson(o.toJson());
|
| + checkCreativeServingRestrictionsDisapprovalReasons(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DirectDeal", () {
|
| + unittest.group("obj-schema-CreativeServingRestrictions", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDirectDeal();
|
| - var od = new api.DirectDeal.fromJson(o.toJson());
|
| - checkDirectDeal(od);
|
| + var o = buildCreativeServingRestrictions();
|
| + var od = new api.CreativeServingRestrictions.fromJson(o.toJson());
|
| + checkCreativeServingRestrictions(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DirectDealsList", () {
|
| + unittest.group("obj-schema-Creative", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDirectDealsList();
|
| - var od = new api.DirectDealsList.fromJson(o.toJson());
|
| - checkDirectDealsList(od);
|
| + var o = buildCreative();
|
| + var od = new api.Creative.fromJson(o.toJson());
|
| + checkCreative(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-CreativesList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildCreativesList();
|
| + var od = new api.CreativesList.fromJson(o.toJson());
|
| + checkCreativesList(od);
|
| });
|
| });
|
|
|
| @@ -1434,7 +1474,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| pathOffset += 9;
|
| @@ -1482,7 +1522,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("accounts"));
|
| pathOffset += 8;
|
| @@ -1532,7 +1572,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| pathOffset += 9;
|
| @@ -1585,7 +1625,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("accounts/"));
|
| pathOffset += 9;
|
| @@ -1638,7 +1678,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("billinginfo/"));
|
| pathOffset += 12;
|
| @@ -1686,7 +1726,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("billinginfo"));
|
| pathOffset += 11;
|
| @@ -1737,7 +1777,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("billinginfo/"));
|
| pathOffset += 12;
|
| @@ -1798,7 +1838,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("billinginfo/"));
|
| pathOffset += 12;
|
| @@ -1859,7 +1899,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("billinginfo/"));
|
| pathOffset += 12;
|
| @@ -1920,7 +1960,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("creatives/"));
|
| pathOffset += 10;
|
| @@ -1979,7 +2019,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("creatives"));
|
| pathOffset += 9;
|
| @@ -2017,11 +2057,12 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives;
|
| - var arg_accountId = buildUnnamed883();
|
| - var arg_buyerCreativeId = buildUnnamed884();
|
| + var arg_accountId = buildUnnamed90();
|
| + var arg_buyerCreativeId = buildUnnamed91();
|
| + var arg_dealsStatusFilter = "foo";
|
| var arg_maxResults = 42;
|
| + var arg_openAuctionStatusFilter = "foo";
|
| var arg_pageToken = "foo";
|
| - var arg_statusFilter = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2029,7 +2070,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("creatives"));
|
| pathOffset += 9;
|
| @@ -2052,9 +2093,10 @@ main() {
|
| }
|
| unittest.expect(queryMap["accountId"].map(core.int.parse).toList(), unittest.equals(arg_accountId));
|
| unittest.expect(queryMap["buyerCreativeId"], unittest.equals(arg_buyerCreativeId));
|
| + unittest.expect(queryMap["dealsStatusFilter"].first, unittest.equals(arg_dealsStatusFilter));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["openAuctionStatusFilter"].first, unittest.equals(arg_openAuctionStatusFilter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["statusFilter"].first, unittest.equals(arg_statusFilter));
|
|
|
|
|
| var h = {
|
| @@ -2063,7 +2105,7 @@ main() {
|
| var resp = convert.JSON.encode(buildCreativesList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, maxResults: arg_maxResults, pageToken: arg_pageToken, statusFilter: arg_statusFilter).then(unittest.expectAsync(((api.CreativesList response) {
|
| + res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, dealsStatusFilter: arg_dealsStatusFilter, maxResults: arg_maxResults, openAuctionStatusFilter: arg_openAuctionStatusFilter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.CreativesList response) {
|
| checkCreativesList(response);
|
| })));
|
| });
|
| @@ -2071,104 +2113,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-DirectDealsResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDeals;
|
| - 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 + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| - pathOffset += 21;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("directdeals/"));
|
| - 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(buildDirectDeal());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_id).then(unittest.expectAsync(((api.DirectDeal response) {
|
| - checkDirectDeal(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDeals;
|
| - 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 + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| - pathOffset += 21;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("directdeals"));
|
| - 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(buildDirectDealsList());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list().then(unittest.expectAsync(((api.DirectDealsList response) {
|
| - checkDirectDealsList(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| unittest.group("resource-PerformanceReportResourceApi", () {
|
| unittest.test("method--list", () {
|
|
|
| @@ -2186,7 +2130,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("performancereport"));
|
| pathOffset += 17;
|
| @@ -2242,7 +2186,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
| @@ -2297,7 +2241,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
| @@ -2357,7 +2301,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
| @@ -2406,7 +2350,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
| @@ -2460,7 +2404,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
| @@ -2521,7 +2465,7 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.3/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/"));
|
| pathOffset += 21;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("pretargetingconfigs/"));
|
| pathOffset += 20;
|
|
|