| 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 b6c207400aef698e3270b26c1d4152a718f8d802..c8365fbdb063161e5e1455259cd2ac281b046aa3 100644
|
| --- a/generated/googleapis/test/customsearch/v1_test.dart
|
| +++ b/generated/googleapis/test/customsearch/v1_test.dart
|
| @@ -74,30 +74,30 @@ checkContextFacets(api.ContextFacets o) {
|
| buildCounterContextFacets--;
|
| }
|
|
|
| -buildUnnamed727() {
|
| +buildUnnamed249() {
|
| var o = new core.List<api.ContextFacets>();
|
| o.add(buildContextFacets());
|
| o.add(buildContextFacets());
|
| return o;
|
| }
|
|
|
| -checkUnnamed727(core.List<api.ContextFacets> o) {
|
| +checkUnnamed249(core.List<api.ContextFacets> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContextFacets(o[0]);
|
| checkContextFacets(o[1]);
|
| }
|
|
|
| -buildUnnamed728() {
|
| +buildUnnamed250() {
|
| var o = new core.List<core.List<api.ContextFacets>>();
|
| - o.add(buildUnnamed727());
|
| - o.add(buildUnnamed727());
|
| + o.add(buildUnnamed249());
|
| + o.add(buildUnnamed249());
|
| return o;
|
| }
|
|
|
| -checkUnnamed728(core.List<core.List<api.ContextFacets>> o) {
|
| +checkUnnamed250(core.List<core.List<api.ContextFacets>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed727(o[0]);
|
| - checkUnnamed727(o[1]);
|
| + checkUnnamed249(o[0]);
|
| + checkUnnamed249(o[1]);
|
| }
|
|
|
| core.int buildCounterContext = 0;
|
| @@ -105,7 +105,7 @@ buildContext() {
|
| var o = new api.Context();
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - o.facets = buildUnnamed728();
|
| + o.facets = buildUnnamed250();
|
| o.title = "foo";
|
| }
|
| buildCounterContext--;
|
| @@ -115,7 +115,7 @@ buildContext() {
|
| checkContext(api.Context o) {
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - checkUnnamed728(o.facets);
|
| + checkUnnamed250(o.facets);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| buildCounterContext--;
|
| @@ -146,14 +146,14 @@ checkPromotionBodyLines(api.PromotionBodyLines o) {
|
| buildCounterPromotionBodyLines--;
|
| }
|
|
|
| -buildUnnamed729() {
|
| +buildUnnamed251() {
|
| var o = new core.List<api.PromotionBodyLines>();
|
| o.add(buildPromotionBodyLines());
|
| o.add(buildPromotionBodyLines());
|
| return o;
|
| }
|
|
|
| -checkUnnamed729(core.List<api.PromotionBodyLines> o) {
|
| +checkUnnamed251(core.List<api.PromotionBodyLines> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPromotionBodyLines(o[0]);
|
| checkPromotionBodyLines(o[1]);
|
| @@ -187,7 +187,7 @@ buildPromotion() {
|
| var o = new api.Promotion();
|
| buildCounterPromotion++;
|
| if (buildCounterPromotion < 3) {
|
| - o.bodyLines = buildUnnamed729();
|
| + o.bodyLines = buildUnnamed251();
|
| o.displayLink = "foo";
|
| o.htmlTitle = "foo";
|
| o.image = buildPromotionImage();
|
| @@ -201,7 +201,7 @@ buildPromotion() {
|
| checkPromotion(api.Promotion o) {
|
| buildCounterPromotion++;
|
| if (buildCounterPromotion < 3) {
|
| - checkUnnamed729(o.bodyLines);
|
| + checkUnnamed251(o.bodyLines);
|
| unittest.expect(o.displayLink, unittest.equals('foo'));
|
| unittest.expect(o.htmlTitle, unittest.equals('foo'));
|
| checkPromotionImage(o.image);
|
| @@ -356,56 +356,56 @@ checkResultLabels(api.ResultLabels o) {
|
| buildCounterResultLabels--;
|
| }
|
|
|
| -buildUnnamed730() {
|
| +buildUnnamed252() {
|
| var o = new core.List<api.ResultLabels>();
|
| o.add(buildResultLabels());
|
| o.add(buildResultLabels());
|
| return o;
|
| }
|
|
|
| -checkUnnamed730(core.List<api.ResultLabels> o) {
|
| +checkUnnamed252(core.List<api.ResultLabels> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResultLabels(o[0]);
|
| checkResultLabels(o[1]);
|
| }
|
|
|
| -buildUnnamed731() {
|
| +buildUnnamed253() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed731(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed253(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'));
|
| }
|
|
|
| -buildUnnamed732() {
|
| +buildUnnamed254() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed731());
|
| - o.add(buildUnnamed731());
|
| + o.add(buildUnnamed253());
|
| + o.add(buildUnnamed253());
|
| return o;
|
| }
|
|
|
| -checkUnnamed732(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed254(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed731(o[0]);
|
| - checkUnnamed731(o[1]);
|
| + checkUnnamed253(o[0]);
|
| + checkUnnamed253(o[1]);
|
| }
|
|
|
| -buildUnnamed733() {
|
| +buildUnnamed255() {
|
| var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>();
|
| - o["x"] = buildUnnamed732();
|
| - o["y"] = buildUnnamed732();
|
| + o["x"] = buildUnnamed254();
|
| + o["y"] = buildUnnamed254();
|
| return o;
|
| }
|
|
|
| -checkUnnamed733(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) {
|
| +checkUnnamed255(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed732(o["x"]);
|
| - checkUnnamed732(o["y"]);
|
| + checkUnnamed254(o["x"]);
|
| + checkUnnamed254(o["y"]);
|
| }
|
|
|
| core.int buildCounterResult = 0;
|
| @@ -422,10 +422,10 @@ buildResult() {
|
| o.htmlTitle = "foo";
|
| o.image = buildResultImage();
|
| o.kind = "foo";
|
| - o.labels = buildUnnamed730();
|
| + o.labels = buildUnnamed252();
|
| o.link = "foo";
|
| o.mime = "foo";
|
| - o.pagemap = buildUnnamed733();
|
| + o.pagemap = buildUnnamed255();
|
| o.snippet = "foo";
|
| o.title = "foo";
|
| }
|
| @@ -445,66 +445,66 @@ checkResult(api.Result o) {
|
| unittest.expect(o.htmlTitle, unittest.equals('foo'));
|
| checkResultImage(o.image);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed730(o.labels);
|
| + checkUnnamed252(o.labels);
|
| unittest.expect(o.link, unittest.equals('foo'));
|
| unittest.expect(o.mime, unittest.equals('foo'));
|
| - checkUnnamed733(o.pagemap);
|
| + checkUnnamed255(o.pagemap);
|
| unittest.expect(o.snippet, unittest.equals('foo'));
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| }
|
| buildCounterResult--;
|
| }
|
|
|
| -buildUnnamed734() {
|
| +buildUnnamed256() {
|
| var o = new core.List<api.Result>();
|
| o.add(buildResult());
|
| o.add(buildResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed734(core.List<api.Result> o) {
|
| +checkUnnamed256(core.List<api.Result> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkResult(o[0]);
|
| checkResult(o[1]);
|
| }
|
|
|
| -buildUnnamed735() {
|
| +buildUnnamed257() {
|
| var o = new core.List<api.Promotion>();
|
| o.add(buildPromotion());
|
| o.add(buildPromotion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed735(core.List<api.Promotion> o) {
|
| +checkUnnamed257(core.List<api.Promotion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPromotion(o[0]);
|
| checkPromotion(o[1]);
|
| }
|
|
|
| -buildUnnamed736() {
|
| +buildUnnamed258() {
|
| var o = new core.List<api.Query>();
|
| o.add(buildQuery());
|
| o.add(buildQuery());
|
| return o;
|
| }
|
|
|
| -checkUnnamed736(core.List<api.Query> o) {
|
| +checkUnnamed258(core.List<api.Query> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkQuery(o[0]);
|
| checkQuery(o[1]);
|
| }
|
|
|
| -buildUnnamed737() {
|
| +buildUnnamed259() {
|
| var o = new core.Map<core.String, core.List<api.Query>>();
|
| - o["x"] = buildUnnamed736();
|
| - o["y"] = buildUnnamed736();
|
| + o["x"] = buildUnnamed258();
|
| + o["y"] = buildUnnamed258();
|
| return o;
|
| }
|
|
|
| -checkUnnamed737(core.Map<core.String, core.List<api.Query>> o) {
|
| +checkUnnamed259(core.Map<core.String, core.List<api.Query>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed736(o["x"]);
|
| - checkUnnamed736(o["y"]);
|
| + checkUnnamed258(o["x"]);
|
| + checkUnnamed258(o["y"]);
|
| }
|
|
|
| core.int buildCounterSearchSearchInformation = 0;
|
| @@ -580,10 +580,10 @@ buildSearch() {
|
| buildCounterSearch++;
|
| if (buildCounterSearch < 3) {
|
| o.context = buildContext();
|
| - o.items = buildUnnamed734();
|
| + o.items = buildUnnamed256();
|
| o.kind = "foo";
|
| - o.promotions = buildUnnamed735();
|
| - o.queries = buildUnnamed737();
|
| + o.promotions = buildUnnamed257();
|
| + o.queries = buildUnnamed259();
|
| o.searchInformation = buildSearchSearchInformation();
|
| o.spelling = buildSearchSpelling();
|
| o.url = buildSearchUrl();
|
| @@ -596,10 +596,10 @@ checkSearch(api.Search o) {
|
| buildCounterSearch++;
|
| if (buildCounterSearch < 3) {
|
| checkContext(o.context);
|
| - checkUnnamed734(o.items);
|
| + checkUnnamed256(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed735(o.promotions);
|
| - checkUnnamed737(o.queries);
|
| + checkUnnamed257(o.promotions);
|
| + checkUnnamed259(o.queries);
|
| checkSearchSearchInformation(o.searchInformation);
|
| checkSearchSpelling(o.spelling);
|
| checkSearchUrl(o.url);
|
|
|