| Index: generated/googleapis/test/customsearch/v1_test.dart
|
| diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart
|
| index 8b91ce5ad5c49539e2baa19c62a592cfe8b19111..42dacd05ee7d5ebf4cc3c2e1a17609a0d675de21 100644
|
| --- a/generated/googleapis/test/customsearch/v1_test.dart
|
| +++ b/generated/googleapis/test/customsearch/v1_test.dart
|
| @@ -39,30 +39,30 @@ checkContextFacets(api.ContextFacets o) {
|
| buildCounterContextFacets--;
|
| }
|
|
|
| -buildUnnamed264() {
|
| +buildUnnamed613() {
|
| var o = new core.List<api.ContextFacets>();
|
| o.add(buildContextFacets());
|
| o.add(buildContextFacets());
|
| return o;
|
| }
|
|
|
| -checkUnnamed264(core.List<api.ContextFacets> o) {
|
| +checkUnnamed613(core.List<api.ContextFacets> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContextFacets(o[0]);
|
| checkContextFacets(o[1]);
|
| }
|
|
|
| -buildUnnamed265() {
|
| +buildUnnamed614() {
|
| var o = new core.List<core.List<api.ContextFacets>>();
|
| - o.add(buildUnnamed264());
|
| - o.add(buildUnnamed264());
|
| + o.add(buildUnnamed613());
|
| + o.add(buildUnnamed613());
|
| return o;
|
| }
|
|
|
| -checkUnnamed265(core.List<core.List<api.ContextFacets>> o) {
|
| +checkUnnamed614(core.List<core.List<api.ContextFacets>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed264(o[0]);
|
| - checkUnnamed264(o[1]);
|
| + checkUnnamed613(o[0]);
|
| + checkUnnamed613(o[1]);
|
| }
|
|
|
| core.int buildCounterContext = 0;
|
| @@ -70,7 +70,7 @@ buildContext() {
|
| var o = new api.Context();
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - o.facets = buildUnnamed265();
|
| + o.facets = buildUnnamed614();
|
| o.title = "foo";
|
| }
|
| buildCounterContext--;
|
| @@ -80,7 +80,7 @@ buildContext() {
|
| checkContext(api.Context o) {
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - checkUnnamed265(o.facets);
|
| + checkUnnamed614(o.facets);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| buildCounterContext--;
|
| @@ -111,14 +111,14 @@ checkPromotionBodyLines(api.PromotionBodyLines o) {
|
| buildCounterPromotionBodyLines--;
|
| }
|
|
|
| -buildUnnamed266() {
|
| +buildUnnamed615() {
|
| var o = new core.List<api.PromotionBodyLines>();
|
| o.add(buildPromotionBodyLines());
|
| o.add(buildPromotionBodyLines());
|
| return o;
|
| }
|
|
|
| -checkUnnamed266(core.List<api.PromotionBodyLines> o) {
|
| +checkUnnamed615(core.List<api.PromotionBodyLines> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPromotionBodyLines(o[0]);
|
| checkPromotionBodyLines(o[1]);
|
| @@ -152,7 +152,7 @@ buildPromotion() {
|
| var o = new api.Promotion();
|
| buildCounterPromotion++;
|
| if (buildCounterPromotion < 3) {
|
| - o.bodyLines = buildUnnamed266();
|
| + o.bodyLines = buildUnnamed615();
|
| o.displayLink = "foo";
|
| o.htmlTitle = "foo";
|
| o.image = buildPromotionImage();
|
| @@ -166,7 +166,7 @@ buildPromotion() {
|
| checkPromotion(api.Promotion o) {
|
| buildCounterPromotion++;
|
| if (buildCounterPromotion < 3) {
|
| - checkUnnamed266(o.bodyLines);
|
| + checkUnnamed615(o.bodyLines);
|
| unittest.expect(o.displayLink, unittest.equals('foo'));
|
| unittest.expect(o.htmlTitle, unittest.equals('foo'));
|
| checkPromotionImage(o.image);
|
| @@ -321,56 +321,56 @@ checkResultLabels(api.ResultLabels o) {
|
| buildCounterResultLabels--;
|
| }
|
|
|
| -buildUnnamed267() {
|
| +buildUnnamed616() {
|
| var o = new core.List<api.ResultLabels>();
|
| o.add(buildResultLabels());
|
| o.add(buildResultLabels());
|
| return o;
|
| }
|
|
|
| -checkUnnamed267(core.List<api.ResultLabels> o) {
|
| +checkUnnamed616(core.List<api.ResultLabels> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResultLabels(o[0]);
|
| checkResultLabels(o[1]);
|
| }
|
|
|
| -buildUnnamed268() {
|
| +buildUnnamed617() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed268(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed617(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o["x"]) 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["y"]) 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'));
|
| }
|
|
|
| -buildUnnamed269() {
|
| +buildUnnamed618() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed268());
|
| - o.add(buildUnnamed268());
|
| + o.add(buildUnnamed617());
|
| + o.add(buildUnnamed617());
|
| return o;
|
| }
|
|
|
| -checkUnnamed269(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed618(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed268(o[0]);
|
| - checkUnnamed268(o[1]);
|
| + checkUnnamed617(o[0]);
|
| + checkUnnamed617(o[1]);
|
| }
|
|
|
| -buildUnnamed270() {
|
| +buildUnnamed619() {
|
| var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>();
|
| - o["x"] = buildUnnamed269();
|
| - o["y"] = buildUnnamed269();
|
| + o["x"] = buildUnnamed618();
|
| + o["y"] = buildUnnamed618();
|
| return o;
|
| }
|
|
|
| -checkUnnamed270(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) {
|
| +checkUnnamed619(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed269(o["x"]);
|
| - checkUnnamed269(o["y"]);
|
| + checkUnnamed618(o["x"]);
|
| + checkUnnamed618(o["y"]);
|
| }
|
|
|
| core.int buildCounterResult = 0;
|
| @@ -387,10 +387,10 @@ buildResult() {
|
| o.htmlTitle = "foo";
|
| o.image = buildResultImage();
|
| o.kind = "foo";
|
| - o.labels = buildUnnamed267();
|
| + o.labels = buildUnnamed616();
|
| o.link = "foo";
|
| o.mime = "foo";
|
| - o.pagemap = buildUnnamed270();
|
| + o.pagemap = buildUnnamed619();
|
| o.snippet = "foo";
|
| o.title = "foo";
|
| }
|
| @@ -410,66 +410,66 @@ checkResult(api.Result o) {
|
| unittest.expect(o.htmlTitle, unittest.equals('foo'));
|
| checkResultImage(o.image);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed267(o.labels);
|
| + checkUnnamed616(o.labels);
|
| unittest.expect(o.link, unittest.equals('foo'));
|
| unittest.expect(o.mime, unittest.equals('foo'));
|
| - checkUnnamed270(o.pagemap);
|
| + checkUnnamed619(o.pagemap);
|
| unittest.expect(o.snippet, unittest.equals('foo'));
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| buildCounterResult--;
|
| }
|
|
|
| -buildUnnamed271() {
|
| +buildUnnamed620() {
|
| var o = new core.List<api.Result>();
|
| o.add(buildResult());
|
| o.add(buildResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed271(core.List<api.Result> o) {
|
| +checkUnnamed620(core.List<api.Result> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResult(o[0]);
|
| checkResult(o[1]);
|
| }
|
|
|
| -buildUnnamed272() {
|
| +buildUnnamed621() {
|
| var o = new core.List<api.Promotion>();
|
| o.add(buildPromotion());
|
| o.add(buildPromotion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed272(core.List<api.Promotion> o) {
|
| +checkUnnamed621(core.List<api.Promotion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPromotion(o[0]);
|
| checkPromotion(o[1]);
|
| }
|
|
|
| -buildUnnamed273() {
|
| +buildUnnamed622() {
|
| var o = new core.List<api.Query>();
|
| o.add(buildQuery());
|
| o.add(buildQuery());
|
| return o;
|
| }
|
|
|
| -checkUnnamed273(core.List<api.Query> o) {
|
| +checkUnnamed622(core.List<api.Query> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkQuery(o[0]);
|
| checkQuery(o[1]);
|
| }
|
|
|
| -buildUnnamed274() {
|
| +buildUnnamed623() {
|
| var o = new core.Map<core.String, core.List<api.Query>>();
|
| - o["x"] = buildUnnamed273();
|
| - o["y"] = buildUnnamed273();
|
| + o["x"] = buildUnnamed622();
|
| + o["y"] = buildUnnamed622();
|
| return o;
|
| }
|
|
|
| -checkUnnamed274(core.Map<core.String, core.List<api.Query>> o) {
|
| +checkUnnamed623(core.Map<core.String, core.List<api.Query>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed273(o["x"]);
|
| - checkUnnamed273(o["y"]);
|
| + checkUnnamed622(o["x"]);
|
| + checkUnnamed622(o["y"]);
|
| }
|
|
|
| core.int buildCounterSearchSearchInformation = 0;
|
| @@ -545,10 +545,10 @@ buildSearch() {
|
| buildCounterSearch++;
|
| if (buildCounterSearch < 3) {
|
| o.context = buildContext();
|
| - o.items = buildUnnamed271();
|
| + o.items = buildUnnamed620();
|
| o.kind = "foo";
|
| - o.promotions = buildUnnamed272();
|
| - o.queries = buildUnnamed274();
|
| + o.promotions = buildUnnamed621();
|
| + o.queries = buildUnnamed623();
|
| o.searchInformation = buildSearchSearchInformation();
|
| o.spelling = buildSearchSpelling();
|
| o.url = buildSearchUrl();
|
| @@ -561,10 +561,10 @@ checkSearch(api.Search o) {
|
| buildCounterSearch++;
|
| if (buildCounterSearch < 3) {
|
| checkContext(o.context);
|
| - checkUnnamed271(o.items);
|
| + checkUnnamed620(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed272(o.promotions);
|
| - checkUnnamed274(o.queries);
|
| + checkUnnamed621(o.promotions);
|
| + checkUnnamed623(o.queries);
|
| checkSearchSearchInformation(o.searchInformation);
|
| checkSearchSpelling(o.spelling);
|
| checkSearchUrl(o.url);
|
|
|