| Index: generated/googleapis/test/playmoviespartner/v1_test.dart
|
| diff --git a/generated/googleapis/test/playmoviespartner/v1_test.dart b/generated/googleapis/test/playmoviespartner/v1_test.dart
|
| index a98f4d3de85d58e7df07fb72b21044c9b47df4c7..9fe7a2ef6823b44dc7364b28ff49fffecc048f38 100644
|
| --- a/generated/googleapis/test/playmoviespartner/v1_test.dart
|
| +++ b/generated/googleapis/test/playmoviespartner/v1_test.dart
|
| @@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed3019() {
|
| +buildUnnamed3020() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3019(core.List<core.String> o) {
|
| +checkUnnamed3020(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,7 +82,7 @@ buildAvail() {
|
| o.episodeTitleInternalAlias = "foo";
|
| o.formatProfile = "foo";
|
| o.licenseType = "foo";
|
| - o.pphNames = buildUnnamed3019();
|
| + o.pphNames = buildUnnamed3020();
|
| o.priceType = "foo";
|
| o.priceValue = "foo";
|
| o.productId = "foo";
|
| @@ -123,7 +123,7 @@ checkAvail(api.Avail o) {
|
| unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo'));
|
| unittest.expect(o.formatProfile, unittest.equals('foo'));
|
| unittest.expect(o.licenseType, unittest.equals('foo'));
|
| - checkUnnamed3019(o.pphNames);
|
| + checkUnnamed3020(o.pphNames);
|
| unittest.expect(o.priceType, unittest.equals('foo'));
|
| unittest.expect(o.priceValue, unittest.equals('foo'));
|
| unittest.expect(o.productId, unittest.equals('foo'));
|
| @@ -147,242 +147,14 @@ checkAvail(api.Avail o) {
|
| buildCounterAvail--;
|
| }
|
|
|
| -buildUnnamed3020() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3020(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'));
|
| -}
|
| -
|
| buildUnnamed3021() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3021(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'));
|
| -}
|
| -
|
| -buildUnnamed3022() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3022(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'));
|
| -}
|
| -
|
| -buildUnnamed3023() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3023(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'));
|
| -}
|
| -
|
| -buildUnnamed3024() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3024(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'));
|
| -}
|
| -
|
| -buildUnnamed3025() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3025(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 buildCounterComponent = 0;
|
| -buildComponent() {
|
| - var o = new api.Component();
|
| - buildCounterComponent++;
|
| - if (buildCounterComponent < 3) {
|
| - o.altCutIds = buildUnnamed3020();
|
| - o.approvedTime = "foo";
|
| - o.componentDetailType = "foo";
|
| - o.componentId = "foo";
|
| - o.customIds = buildUnnamed3021();
|
| - o.editLevelEidrs = buildUnnamed3022();
|
| - o.elIds = buildUnnamed3023();
|
| - o.filename = "foo";
|
| - o.language = "foo";
|
| - o.name = "foo";
|
| - o.normalizedPriority = "foo";
|
| - o.playableUnitType = "foo";
|
| - o.pphName = "foo";
|
| - o.priority = 42.0;
|
| - o.processingErrors = buildUnnamed3024();
|
| - o.receivedTime = "foo";
|
| - o.rejectionNote = "foo";
|
| - o.status = "foo";
|
| - o.statusDetail = "foo";
|
| - o.studioName = "foo";
|
| - o.titleLevelEidrs = buildUnnamed3025();
|
| - o.type = "foo";
|
| - }
|
| - buildCounterComponent--;
|
| - return o;
|
| -}
|
| -
|
| -checkComponent(api.Component o) {
|
| - buildCounterComponent++;
|
| - if (buildCounterComponent < 3) {
|
| - checkUnnamed3020(o.altCutIds);
|
| - unittest.expect(o.approvedTime, unittest.equals('foo'));
|
| - unittest.expect(o.componentDetailType, unittest.equals('foo'));
|
| - unittest.expect(o.componentId, unittest.equals('foo'));
|
| - checkUnnamed3021(o.customIds);
|
| - checkUnnamed3022(o.editLevelEidrs);
|
| - checkUnnamed3023(o.elIds);
|
| - unittest.expect(o.filename, unittest.equals('foo'));
|
| - unittest.expect(o.language, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.normalizedPriority, unittest.equals('foo'));
|
| - unittest.expect(o.playableUnitType, unittest.equals('foo'));
|
| - unittest.expect(o.pphName, unittest.equals('foo'));
|
| - unittest.expect(o.priority, unittest.equals(42.0));
|
| - checkUnnamed3024(o.processingErrors);
|
| - unittest.expect(o.receivedTime, unittest.equals('foo'));
|
| - unittest.expect(o.rejectionNote, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - unittest.expect(o.statusDetail, unittest.equals('foo'));
|
| - unittest.expect(o.studioName, unittest.equals('foo'));
|
| - checkUnnamed3025(o.titleLevelEidrs);
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - }
|
| - buildCounterComponent--;
|
| -}
|
| -
|
| -buildUnnamed3026() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3026(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'));
|
| -}
|
| -
|
| -buildUnnamed3027() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3027(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 buildCounterExperienceLocale = 0;
|
| -buildExperienceLocale() {
|
| - var o = new api.ExperienceLocale();
|
| - buildCounterExperienceLocale++;
|
| - if (buildCounterExperienceLocale < 3) {
|
| - o.altCutId = "foo";
|
| - o.approvedTime = "foo";
|
| - o.channelId = "foo";
|
| - o.country = "foo";
|
| - o.createdTime = "foo";
|
| - o.customIds = buildUnnamed3026();
|
| - o.earliestAvailStartTime = "foo";
|
| - o.editLevelEidr = "foo";
|
| - o.elId = "foo";
|
| - o.inventoryId = "foo";
|
| - o.language = "foo";
|
| - o.name = "foo";
|
| - o.normalizedPriority = "foo";
|
| - o.playableSequenceId = "foo";
|
| - o.pphNames = buildUnnamed3027();
|
| - o.presentationId = "foo";
|
| - o.priority = 42.0;
|
| - o.status = "foo";
|
| - o.studioName = "foo";
|
| - o.titleLevelEidr = "foo";
|
| - o.trailerId = "foo";
|
| - o.type = "foo";
|
| - o.videoId = "foo";
|
| - }
|
| - buildCounterExperienceLocale--;
|
| - return o;
|
| -}
|
| -
|
| -checkExperienceLocale(api.ExperienceLocale o) {
|
| - buildCounterExperienceLocale++;
|
| - if (buildCounterExperienceLocale < 3) {
|
| - unittest.expect(o.altCutId, unittest.equals('foo'));
|
| - unittest.expect(o.approvedTime, unittest.equals('foo'));
|
| - unittest.expect(o.channelId, unittest.equals('foo'));
|
| - unittest.expect(o.country, unittest.equals('foo'));
|
| - unittest.expect(o.createdTime, unittest.equals('foo'));
|
| - checkUnnamed3026(o.customIds);
|
| - unittest.expect(o.earliestAvailStartTime, unittest.equals('foo'));
|
| - unittest.expect(o.editLevelEidr, unittest.equals('foo'));
|
| - unittest.expect(o.elId, unittest.equals('foo'));
|
| - unittest.expect(o.inventoryId, unittest.equals('foo'));
|
| - unittest.expect(o.language, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.normalizedPriority, unittest.equals('foo'));
|
| - unittest.expect(o.playableSequenceId, unittest.equals('foo'));
|
| - checkUnnamed3027(o.pphNames);
|
| - unittest.expect(o.presentationId, unittest.equals('foo'));
|
| - unittest.expect(o.priority, unittest.equals(42.0));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - unittest.expect(o.studioName, unittest.equals('foo'));
|
| - unittest.expect(o.titleLevelEidr, unittest.equals('foo'));
|
| - unittest.expect(o.trailerId, unittest.equals('foo'));
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - unittest.expect(o.videoId, unittest.equals('foo'));
|
| - }
|
| - buildCounterExperienceLocale--;
|
| -}
|
| -
|
| -buildUnnamed3028() {
|
| var o = new core.List<api.Avail>();
|
| o.add(buildAvail());
|
| o.add(buildAvail());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3028(core.List<api.Avail> o) {
|
| +checkUnnamed3021(core.List<api.Avail> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAvail(o[0]);
|
| checkAvail(o[1]);
|
| @@ -393,7 +165,7 @@ buildListAvailsResponse() {
|
| var o = new api.ListAvailsResponse();
|
| buildCounterListAvailsResponse++;
|
| if (buildCounterListAvailsResponse < 3) {
|
| - o.avails = buildUnnamed3028();
|
| + o.avails = buildUnnamed3021();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -404,93 +176,21 @@ buildListAvailsResponse() {
|
| checkListAvailsResponse(api.ListAvailsResponse o) {
|
| buildCounterListAvailsResponse++;
|
| if (buildCounterListAvailsResponse < 3) {
|
| - checkUnnamed3028(o.avails);
|
| + checkUnnamed3021(o.avails);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListAvailsResponse--;
|
| }
|
|
|
| -buildUnnamed3029() {
|
| - var o = new core.List<api.Component>();
|
| - o.add(buildComponent());
|
| - o.add(buildComponent());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3029(core.List<api.Component> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkComponent(o[0]);
|
| - checkComponent(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterListComponentsResponse = 0;
|
| -buildListComponentsResponse() {
|
| - var o = new api.ListComponentsResponse();
|
| - buildCounterListComponentsResponse++;
|
| - if (buildCounterListComponentsResponse < 3) {
|
| - o.components = buildUnnamed3029();
|
| - o.nextPageToken = "foo";
|
| - o.totalSize = 42;
|
| - }
|
| - buildCounterListComponentsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkListComponentsResponse(api.ListComponentsResponse o) {
|
| - buildCounterListComponentsResponse++;
|
| - if (buildCounterListComponentsResponse < 3) {
|
| - checkUnnamed3029(o.components);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.totalSize, unittest.equals(42));
|
| - }
|
| - buildCounterListComponentsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3030() {
|
| - var o = new core.List<api.ExperienceLocale>();
|
| - o.add(buildExperienceLocale());
|
| - o.add(buildExperienceLocale());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3030(core.List<api.ExperienceLocale> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkExperienceLocale(o[0]);
|
| - checkExperienceLocale(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterListExperienceLocalesResponse = 0;
|
| -buildListExperienceLocalesResponse() {
|
| - var o = new api.ListExperienceLocalesResponse();
|
| - buildCounterListExperienceLocalesResponse++;
|
| - if (buildCounterListExperienceLocalesResponse < 3) {
|
| - o.experienceLocales = buildUnnamed3030();
|
| - o.nextPageToken = "foo";
|
| - o.totalSize = 42;
|
| - }
|
| - buildCounterListExperienceLocalesResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkListExperienceLocalesResponse(api.ListExperienceLocalesResponse o) {
|
| - buildCounterListExperienceLocalesResponse++;
|
| - if (buildCounterListExperienceLocalesResponse < 3) {
|
| - checkUnnamed3030(o.experienceLocales);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.totalSize, unittest.equals(42));
|
| - }
|
| - buildCounterListExperienceLocalesResponse--;
|
| -}
|
| -
|
| -buildUnnamed3031() {
|
| +buildUnnamed3022() {
|
| var o = new core.List<api.Order>();
|
| o.add(buildOrder());
|
| o.add(buildOrder());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3031(core.List<api.Order> o) {
|
| +checkUnnamed3022(core.List<api.Order> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrder(o[0]);
|
| checkOrder(o[1]);
|
| @@ -502,7 +202,7 @@ buildListOrdersResponse() {
|
| buildCounterListOrdersResponse++;
|
| if (buildCounterListOrdersResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.orders = buildUnnamed3031();
|
| + o.orders = buildUnnamed3022();
|
| o.totalSize = 42;
|
| }
|
| buildCounterListOrdersResponse--;
|
| @@ -513,20 +213,20 @@ checkListOrdersResponse(api.ListOrdersResponse o) {
|
| buildCounterListOrdersResponse++;
|
| if (buildCounterListOrdersResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3031(o.orders);
|
| + checkUnnamed3022(o.orders);
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListOrdersResponse--;
|
| }
|
|
|
| -buildUnnamed3032() {
|
| +buildUnnamed3023() {
|
| var o = new core.List<api.StoreInfo>();
|
| o.add(buildStoreInfo());
|
| o.add(buildStoreInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3032(core.List<api.StoreInfo> o) {
|
| +checkUnnamed3023(core.List<api.StoreInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkStoreInfo(o[0]);
|
| checkStoreInfo(o[1]);
|
| @@ -538,7 +238,7 @@ buildListStoreInfosResponse() {
|
| buildCounterListStoreInfosResponse++;
|
| if (buildCounterListStoreInfosResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.storeInfos = buildUnnamed3032();
|
| + o.storeInfos = buildUnnamed3023();
|
| o.totalSize = 42;
|
| }
|
| buildCounterListStoreInfosResponse--;
|
| @@ -549,20 +249,20 @@ checkListStoreInfosResponse(api.ListStoreInfosResponse o) {
|
| buildCounterListStoreInfosResponse++;
|
| if (buildCounterListStoreInfosResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3032(o.storeInfos);
|
| + checkUnnamed3023(o.storeInfos);
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListStoreInfosResponse--;
|
| }
|
|
|
| -buildUnnamed3033() {
|
| +buildUnnamed3024() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3033(core.List<core.String> o) {
|
| +checkUnnamed3024(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'));
|
| @@ -576,7 +276,7 @@ buildOrder() {
|
| o.approvedTime = "foo";
|
| o.channelId = "foo";
|
| o.channelName = "foo";
|
| - o.countries = buildUnnamed3033();
|
| + o.countries = buildUnnamed3024();
|
| o.customId = "foo";
|
| o.earliestAvailStartTime = "foo";
|
| o.episodeName = "foo";
|
| @@ -607,7 +307,7 @@ checkOrder(api.Order o) {
|
| unittest.expect(o.approvedTime, unittest.equals('foo'));
|
| unittest.expect(o.channelId, unittest.equals('foo'));
|
| unittest.expect(o.channelName, unittest.equals('foo'));
|
| - checkUnnamed3033(o.countries);
|
| + checkUnnamed3024(o.countries);
|
| unittest.expect(o.customId, unittest.equals('foo'));
|
| unittest.expect(o.earliestAvailStartTime, unittest.equals('foo'));
|
| unittest.expect(o.episodeName, unittest.equals('foo'));
|
| @@ -631,40 +331,40 @@ checkOrder(api.Order o) {
|
| buildCounterOrder--;
|
| }
|
|
|
| -buildUnnamed3034() {
|
| +buildUnnamed3025() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3034(core.List<core.String> o) {
|
| +checkUnnamed3025(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'));
|
| }
|
|
|
| -buildUnnamed3035() {
|
| +buildUnnamed3026() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3035(core.List<core.String> o) {
|
| +checkUnnamed3026(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'));
|
| }
|
|
|
| -buildUnnamed3036() {
|
| +buildUnnamed3027() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3036(core.List<core.String> o) {
|
| +checkUnnamed3027(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'));
|
| @@ -675,7 +375,7 @@ buildStoreInfo() {
|
| var o = new api.StoreInfo();
|
| buildCounterStoreInfo++;
|
| if (buildCounterStoreInfo < 3) {
|
| - o.audioTracks = buildUnnamed3034();
|
| + o.audioTracks = buildUnnamed3025();
|
| o.country = "foo";
|
| o.editLevelEidr = "foo";
|
| o.episodeNumber = "foo";
|
| @@ -688,14 +388,14 @@ buildStoreInfo() {
|
| o.liveTime = "foo";
|
| o.mid = "foo";
|
| o.name = "foo";
|
| - o.pphNames = buildUnnamed3035();
|
| + o.pphNames = buildUnnamed3026();
|
| o.seasonId = "foo";
|
| o.seasonName = "foo";
|
| o.seasonNumber = "foo";
|
| o.showId = "foo";
|
| o.showName = "foo";
|
| o.studioName = "foo";
|
| - o.subtitles = buildUnnamed3036();
|
| + o.subtitles = buildUnnamed3027();
|
| o.titleLevelEidr = "foo";
|
| o.trailerId = "foo";
|
| o.type = "foo";
|
| @@ -708,7 +408,7 @@ buildStoreInfo() {
|
| checkStoreInfo(api.StoreInfo o) {
|
| buildCounterStoreInfo++;
|
| if (buildCounterStoreInfo < 3) {
|
| - checkUnnamed3034(o.audioTracks);
|
| + checkUnnamed3025(o.audioTracks);
|
| unittest.expect(o.country, unittest.equals('foo'));
|
| unittest.expect(o.editLevelEidr, unittest.equals('foo'));
|
| unittest.expect(o.episodeNumber, unittest.equals('foo'));
|
| @@ -721,14 +421,14 @@ checkStoreInfo(api.StoreInfo o) {
|
| unittest.expect(o.liveTime, unittest.equals('foo'));
|
| unittest.expect(o.mid, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3035(o.pphNames);
|
| + checkUnnamed3026(o.pphNames);
|
| unittest.expect(o.seasonId, unittest.equals('foo'));
|
| unittest.expect(o.seasonName, unittest.equals('foo'));
|
| unittest.expect(o.seasonNumber, unittest.equals('foo'));
|
| unittest.expect(o.showId, unittest.equals('foo'));
|
| unittest.expect(o.showName, unittest.equals('foo'));
|
| unittest.expect(o.studioName, unittest.equals('foo'));
|
| - checkUnnamed3036(o.subtitles);
|
| + checkUnnamed3027(o.subtitles);
|
| unittest.expect(o.titleLevelEidr, unittest.equals('foo'));
|
| unittest.expect(o.trailerId, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -737,274 +437,196 @@ checkStoreInfo(api.StoreInfo o) {
|
| buildCounterStoreInfo--;
|
| }
|
|
|
| -buildUnnamed3037() {
|
| +buildUnnamed3028() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3037(core.List<core.String> o) {
|
| +checkUnnamed3028(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'));
|
| }
|
|
|
| -buildUnnamed3038() {
|
| +buildUnnamed3029() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3038(core.List<core.String> o) {
|
| +checkUnnamed3029(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'));
|
| }
|
|
|
| -buildUnnamed3039() {
|
| +buildUnnamed3030() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3039(core.List<core.String> o) {
|
| +checkUnnamed3030(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'));
|
| }
|
|
|
| -buildUnnamed3040() {
|
| +buildUnnamed3031() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3040(core.List<core.String> o) {
|
| +checkUnnamed3031(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'));
|
| }
|
|
|
| -buildUnnamed3041() {
|
| +buildUnnamed3032() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3041(core.List<core.String> o) {
|
| +checkUnnamed3032(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'));
|
| }
|
|
|
| -buildUnnamed3042() {
|
| +buildUnnamed3033() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3042(core.List<core.String> o) {
|
| +checkUnnamed3033(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'));
|
| }
|
|
|
| -buildUnnamed3043() {
|
| +buildUnnamed3034() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3043(core.List<core.String> o) {
|
| +checkUnnamed3034(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'));
|
| }
|
|
|
| -buildUnnamed3044() {
|
| +buildUnnamed3035() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3044(core.List<core.String> o) {
|
| +checkUnnamed3035(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'));
|
| }
|
|
|
| -buildUnnamed3045() {
|
| +buildUnnamed3036() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3045(core.List<core.String> o) {
|
| +checkUnnamed3036(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'));
|
| }
|
|
|
| -buildUnnamed3046() {
|
| +buildUnnamed3037() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3046(core.List<core.String> o) {
|
| +checkUnnamed3037(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'));
|
| }
|
|
|
| -buildUnnamed3047() {
|
| +buildUnnamed3038() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3047(core.List<core.String> o) {
|
| +checkUnnamed3038(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'));
|
| }
|
|
|
| -buildUnnamed3048() {
|
| +buildUnnamed3039() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3048(core.List<core.String> o) {
|
| +checkUnnamed3039(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'));
|
| }
|
|
|
| -buildUnnamed3049() {
|
| +buildUnnamed3040() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3049(core.List<core.String> o) {
|
| +checkUnnamed3040(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'));
|
| }
|
|
|
| -buildUnnamed3050() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3050(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'));
|
| -}
|
| -
|
| -buildUnnamed3051() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3051(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'));
|
| -}
|
| -
|
| -buildUnnamed3052() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3052(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'));
|
| -}
|
| -
|
| -buildUnnamed3053() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3053(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'));
|
| -}
|
| -
|
| -buildUnnamed3054() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3054(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'));
|
| -}
|
| -
|
| -buildUnnamed3055() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3055(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'));
|
| -}
|
| -
|
| -buildUnnamed3056() {
|
| +buildUnnamed3041() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3056(core.List<core.String> o) {
|
| +checkUnnamed3041(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'));
|
| }
|
|
|
| -buildUnnamed3057() {
|
| +buildUnnamed3042() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3057(core.List<core.String> o) {
|
| +checkUnnamed3042(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1021,24 +643,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Component", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildComponent();
|
| - var od = new api.Component.fromJson(o.toJson());
|
| - checkComponent(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExperienceLocale", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExperienceLocale();
|
| - var od = new api.ExperienceLocale.fromJson(o.toJson());
|
| - checkExperienceLocale(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-ListAvailsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListAvailsResponse();
|
| @@ -1048,24 +652,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ListComponentsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildListComponentsResponse();
|
| - var od = new api.ListComponentsResponse.fromJson(o.toJson());
|
| - checkListComponentsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ListExperienceLocalesResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildListExperienceLocalesResponse();
|
| - var od = new api.ListExperienceLocalesResponse.fromJson(o.toJson());
|
| - checkListExperienceLocalesResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-ListOrdersResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListOrdersResponse();
|
| @@ -1165,13 +751,13 @@ main() {
|
| var arg_accountId = "foo";
|
| var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| - var arg_pphNames = buildUnnamed3037();
|
| - var arg_studioNames = buildUnnamed3038();
|
| + var arg_pphNames = buildUnnamed3028();
|
| + var arg_studioNames = buildUnnamed3029();
|
| var arg_title = "foo";
|
| - var arg_territories = buildUnnamed3039();
|
| + var arg_territories = buildUnnamed3030();
|
| var arg_altId = "foo";
|
| - var arg_videoIds = buildUnnamed3040();
|
| - var arg_altIds = buildUnnamed3041();
|
| + var arg_videoIds = buildUnnamed3031();
|
| + var arg_altIds = buildUnnamed3032();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1230,284 +816,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-AccountsComponentsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AccountsComponentsResourceApi res = new api.PlaymoviespartnerApi(mock).accounts.components;
|
| - var arg_accountId = "foo";
|
| - var arg_pageSize = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_pphNames = buildUnnamed3042();
|
| - var arg_studioNames = buildUnnamed3043();
|
| - var arg_titleLevelEidr = "foo";
|
| - var arg_editLevelEidr = "foo";
|
| - var arg_status = buildUnnamed3044();
|
| - var arg_customId = "foo";
|
| - var arg_inventoryId = "foo";
|
| - var arg_presentationId = "foo";
|
| - var arg_playableSequenceId = "foo";
|
| - var arg_elId = "foo";
|
| - var arg_altCutId = "foo";
|
| - var arg_filename = "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 + 12), unittest.equals("v1/accounts/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/components", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/components"));
|
| - 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames));
|
| - unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames));
|
| - unittest.expect(queryMap["titleLevelEidr"].first, unittest.equals(arg_titleLevelEidr));
|
| - unittest.expect(queryMap["editLevelEidr"].first, unittest.equals(arg_editLevelEidr));
|
| - unittest.expect(queryMap["status"], unittest.equals(arg_status));
|
| - unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId));
|
| - unittest.expect(queryMap["inventoryId"].first, unittest.equals(arg_inventoryId));
|
| - unittest.expect(queryMap["presentationId"].first, unittest.equals(arg_presentationId));
|
| - unittest.expect(queryMap["playableSequenceId"].first, unittest.equals(arg_playableSequenceId));
|
| - unittest.expect(queryMap["elId"].first, unittest.equals(arg_elId));
|
| - unittest.expect(queryMap["altCutId"].first, unittest.equals(arg_altCutId));
|
| - unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildListComponentsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken, pphNames: arg_pphNames, studioNames: arg_studioNames, titleLevelEidr: arg_titleLevelEidr, editLevelEidr: arg_editLevelEidr, status: arg_status, customId: arg_customId, inventoryId: arg_inventoryId, presentationId: arg_presentationId, playableSequenceId: arg_playableSequenceId, elId: arg_elId, altCutId: arg_altCutId, filename: arg_filename).then(unittest.expectAsync(((api.ListComponentsResponse response) {
|
| - checkListComponentsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AccountsComponentsTypeResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AccountsComponentsTypeResourceApi res = new api.PlaymoviespartnerApi(mock).accounts.components.type;
|
| - var arg_accountId = "foo";
|
| - var arg_componentId = "foo";
|
| - var arg_type = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/accounts/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/components/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/components/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/type/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_componentId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/type/"));
|
| - pathOffset += 6;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_type"));
|
| -
|
| - 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(buildComponent());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_accountId, arg_componentId, arg_type).then(unittest.expectAsync(((api.Component response) {
|
| - checkComponent(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AccountsExperienceLocalesResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AccountsExperienceLocalesResourceApi res = new api.PlaymoviespartnerApi(mock).accounts.experienceLocales;
|
| - var arg_accountId = "foo";
|
| - var arg_elId = "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 + 12), unittest.equals("v1/accounts/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/experienceLocales/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/experienceLocales/"));
|
| - pathOffset += 19;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_elId"));
|
| -
|
| - 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(buildExperienceLocale());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_accountId, arg_elId).then(unittest.expectAsync(((api.ExperienceLocale response) {
|
| - checkExperienceLocale(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AccountsExperienceLocalesResourceApi res = new api.PlaymoviespartnerApi(mock).accounts.experienceLocales;
|
| - var arg_accountId = "foo";
|
| - var arg_pageSize = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_pphNames = buildUnnamed3045();
|
| - var arg_studioNames = buildUnnamed3046();
|
| - var arg_titleLevelEidr = "foo";
|
| - var arg_editLevelEidr = "foo";
|
| - var arg_status = buildUnnamed3047();
|
| - var arg_customId = "foo";
|
| - var arg_altCutId = "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 + 12), unittest.equals("v1/accounts/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/experienceLocales", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_accountId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/experienceLocales"));
|
| - pathOffset += 18;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames));
|
| - unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames));
|
| - unittest.expect(queryMap["titleLevelEidr"].first, unittest.equals(arg_titleLevelEidr));
|
| - unittest.expect(queryMap["editLevelEidr"].first, unittest.equals(arg_editLevelEidr));
|
| - unittest.expect(queryMap["status"], unittest.equals(arg_status));
|
| - unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId));
|
| - unittest.expect(queryMap["altCutId"].first, unittest.equals(arg_altCutId));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildListExperienceLocalesResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken, pphNames: arg_pphNames, studioNames: arg_studioNames, titleLevelEidr: arg_titleLevelEidr, editLevelEidr: arg_editLevelEidr, status: arg_status, customId: arg_customId, altCutId: arg_altCutId).then(unittest.expectAsync(((api.ListExperienceLocalesResponse response) {
|
| - checkListExperienceLocalesResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| unittest.group("resource-AccountsOrdersResourceApi", () {
|
| unittest.test("method--get", () {
|
|
|
| @@ -1571,12 +879,12 @@ main() {
|
| var arg_accountId = "foo";
|
| var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| - var arg_pphNames = buildUnnamed3048();
|
| - var arg_studioNames = buildUnnamed3049();
|
| + var arg_pphNames = buildUnnamed3033();
|
| + var arg_studioNames = buildUnnamed3034();
|
| var arg_name = "foo";
|
| - var arg_status = buildUnnamed3050();
|
| + var arg_status = buildUnnamed3035();
|
| var arg_customId = "foo";
|
| - var arg_videoIds = buildUnnamed3051();
|
| + var arg_videoIds = buildUnnamed3036();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1642,14 +950,14 @@ main() {
|
| var arg_accountId = "foo";
|
| var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| - var arg_pphNames = buildUnnamed3052();
|
| - var arg_studioNames = buildUnnamed3053();
|
| + var arg_pphNames = buildUnnamed3037();
|
| + var arg_studioNames = buildUnnamed3038();
|
| var arg_videoId = "foo";
|
| - var arg_countries = buildUnnamed3054();
|
| + var arg_countries = buildUnnamed3039();
|
| var arg_name = "foo";
|
| - var arg_videoIds = buildUnnamed3055();
|
| - var arg_mids = buildUnnamed3056();
|
| - var arg_seasonIds = buildUnnamed3057();
|
| + var arg_videoIds = buildUnnamed3040();
|
| + var arg_mids = buildUnnamed3041();
|
| + var arg_seasonIds = buildUnnamed3042();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
|
|