OLD | NEW |
1 library googleapis.customsearch.v1.test; | 1 library googleapis.customsearch.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 checkContextFacets(api.ContextFacets o) { | 67 checkContextFacets(api.ContextFacets o) { |
68 buildCounterContextFacets++; | 68 buildCounterContextFacets++; |
69 if (buildCounterContextFacets < 3) { | 69 if (buildCounterContextFacets < 3) { |
70 unittest.expect(o.anchor, unittest.equals('foo')); | 70 unittest.expect(o.anchor, unittest.equals('foo')); |
71 unittest.expect(o.label, unittest.equals('foo')); | 71 unittest.expect(o.label, unittest.equals('foo')); |
72 unittest.expect(o.labelWithOp, unittest.equals('foo')); | 72 unittest.expect(o.labelWithOp, unittest.equals('foo')); |
73 } | 73 } |
74 buildCounterContextFacets--; | 74 buildCounterContextFacets--; |
75 } | 75 } |
76 | 76 |
77 buildUnnamed221() { | 77 buildUnnamed223() { |
78 var o = new core.List<api.ContextFacets>(); | 78 var o = new core.List<api.ContextFacets>(); |
79 o.add(buildContextFacets()); | 79 o.add(buildContextFacets()); |
80 o.add(buildContextFacets()); | 80 o.add(buildContextFacets()); |
81 return o; | 81 return o; |
82 } | 82 } |
83 | 83 |
84 checkUnnamed221(core.List<api.ContextFacets> o) { | 84 checkUnnamed223(core.List<api.ContextFacets> o) { |
85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
86 checkContextFacets(o[0]); | 86 checkContextFacets(o[0]); |
87 checkContextFacets(o[1]); | 87 checkContextFacets(o[1]); |
88 } | 88 } |
89 | 89 |
90 buildUnnamed222() { | 90 buildUnnamed224() { |
91 var o = new core.List<core.List<api.ContextFacets>>(); | 91 var o = new core.List<core.List<api.ContextFacets>>(); |
92 o.add(buildUnnamed221()); | 92 o.add(buildUnnamed223()); |
93 o.add(buildUnnamed221()); | 93 o.add(buildUnnamed223()); |
94 return o; | 94 return o; |
95 } | 95 } |
96 | 96 |
97 checkUnnamed222(core.List<core.List<api.ContextFacets>> o) { | 97 checkUnnamed224(core.List<core.List<api.ContextFacets>> o) { |
98 unittest.expect(o, unittest.hasLength(2)); | 98 unittest.expect(o, unittest.hasLength(2)); |
99 checkUnnamed221(o[0]); | 99 checkUnnamed223(o[0]); |
100 checkUnnamed221(o[1]); | 100 checkUnnamed223(o[1]); |
101 } | 101 } |
102 | 102 |
103 core.int buildCounterContext = 0; | 103 core.int buildCounterContext = 0; |
104 buildContext() { | 104 buildContext() { |
105 var o = new api.Context(); | 105 var o = new api.Context(); |
106 buildCounterContext++; | 106 buildCounterContext++; |
107 if (buildCounterContext < 3) { | 107 if (buildCounterContext < 3) { |
108 o.facets = buildUnnamed222(); | 108 o.facets = buildUnnamed224(); |
109 o.title = "foo"; | 109 o.title = "foo"; |
110 } | 110 } |
111 buildCounterContext--; | 111 buildCounterContext--; |
112 return o; | 112 return o; |
113 } | 113 } |
114 | 114 |
115 checkContext(api.Context o) { | 115 checkContext(api.Context o) { |
116 buildCounterContext++; | 116 buildCounterContext++; |
117 if (buildCounterContext < 3) { | 117 if (buildCounterContext < 3) { |
118 checkUnnamed222(o.facets); | 118 checkUnnamed224(o.facets); |
119 unittest.expect(o.title, unittest.equals('foo')); | 119 unittest.expect(o.title, unittest.equals('foo')); |
120 } | 120 } |
121 buildCounterContext--; | 121 buildCounterContext--; |
122 } | 122 } |
123 | 123 |
124 core.int buildCounterPromotionBodyLines = 0; | 124 core.int buildCounterPromotionBodyLines = 0; |
125 buildPromotionBodyLines() { | 125 buildPromotionBodyLines() { |
126 var o = new api.PromotionBodyLines(); | 126 var o = new api.PromotionBodyLines(); |
127 buildCounterPromotionBodyLines++; | 127 buildCounterPromotionBodyLines++; |
128 if (buildCounterPromotionBodyLines < 3) { | 128 if (buildCounterPromotionBodyLines < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
139 buildCounterPromotionBodyLines++; | 139 buildCounterPromotionBodyLines++; |
140 if (buildCounterPromotionBodyLines < 3) { | 140 if (buildCounterPromotionBodyLines < 3) { |
141 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 141 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
142 unittest.expect(o.link, unittest.equals('foo')); | 142 unittest.expect(o.link, unittest.equals('foo')); |
143 unittest.expect(o.title, unittest.equals('foo')); | 143 unittest.expect(o.title, unittest.equals('foo')); |
144 unittest.expect(o.url, unittest.equals('foo')); | 144 unittest.expect(o.url, unittest.equals('foo')); |
145 } | 145 } |
146 buildCounterPromotionBodyLines--; | 146 buildCounterPromotionBodyLines--; |
147 } | 147 } |
148 | 148 |
149 buildUnnamed223() { | 149 buildUnnamed225() { |
150 var o = new core.List<api.PromotionBodyLines>(); | 150 var o = new core.List<api.PromotionBodyLines>(); |
151 o.add(buildPromotionBodyLines()); | 151 o.add(buildPromotionBodyLines()); |
152 o.add(buildPromotionBodyLines()); | 152 o.add(buildPromotionBodyLines()); |
153 return o; | 153 return o; |
154 } | 154 } |
155 | 155 |
156 checkUnnamed223(core.List<api.PromotionBodyLines> o) { | 156 checkUnnamed225(core.List<api.PromotionBodyLines> o) { |
157 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
158 checkPromotionBodyLines(o[0]); | 158 checkPromotionBodyLines(o[0]); |
159 checkPromotionBodyLines(o[1]); | 159 checkPromotionBodyLines(o[1]); |
160 } | 160 } |
161 | 161 |
162 core.int buildCounterPromotionImage = 0; | 162 core.int buildCounterPromotionImage = 0; |
163 buildPromotionImage() { | 163 buildPromotionImage() { |
164 var o = new api.PromotionImage(); | 164 var o = new api.PromotionImage(); |
165 buildCounterPromotionImage++; | 165 buildCounterPromotionImage++; |
166 if (buildCounterPromotionImage < 3) { | 166 if (buildCounterPromotionImage < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
180 unittest.expect(o.width, unittest.equals(42)); | 180 unittest.expect(o.width, unittest.equals(42)); |
181 } | 181 } |
182 buildCounterPromotionImage--; | 182 buildCounterPromotionImage--; |
183 } | 183 } |
184 | 184 |
185 core.int buildCounterPromotion = 0; | 185 core.int buildCounterPromotion = 0; |
186 buildPromotion() { | 186 buildPromotion() { |
187 var o = new api.Promotion(); | 187 var o = new api.Promotion(); |
188 buildCounterPromotion++; | 188 buildCounterPromotion++; |
189 if (buildCounterPromotion < 3) { | 189 if (buildCounterPromotion < 3) { |
190 o.bodyLines = buildUnnamed223(); | 190 o.bodyLines = buildUnnamed225(); |
191 o.displayLink = "foo"; | 191 o.displayLink = "foo"; |
192 o.htmlTitle = "foo"; | 192 o.htmlTitle = "foo"; |
193 o.image = buildPromotionImage(); | 193 o.image = buildPromotionImage(); |
194 o.link = "foo"; | 194 o.link = "foo"; |
195 o.title = "foo"; | 195 o.title = "foo"; |
196 } | 196 } |
197 buildCounterPromotion--; | 197 buildCounterPromotion--; |
198 return o; | 198 return o; |
199 } | 199 } |
200 | 200 |
201 checkPromotion(api.Promotion o) { | 201 checkPromotion(api.Promotion o) { |
202 buildCounterPromotion++; | 202 buildCounterPromotion++; |
203 if (buildCounterPromotion < 3) { | 203 if (buildCounterPromotion < 3) { |
204 checkUnnamed223(o.bodyLines); | 204 checkUnnamed225(o.bodyLines); |
205 unittest.expect(o.displayLink, unittest.equals('foo')); | 205 unittest.expect(o.displayLink, unittest.equals('foo')); |
206 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 206 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
207 checkPromotionImage(o.image); | 207 checkPromotionImage(o.image); |
208 unittest.expect(o.link, unittest.equals('foo')); | 208 unittest.expect(o.link, unittest.equals('foo')); |
209 unittest.expect(o.title, unittest.equals('foo')); | 209 unittest.expect(o.title, unittest.equals('foo')); |
210 } | 210 } |
211 buildCounterPromotion--; | 211 buildCounterPromotion--; |
212 } | 212 } |
213 | 213 |
214 core.int buildCounterQuery = 0; | 214 core.int buildCounterQuery = 0; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 checkResultLabels(api.ResultLabels o) { | 349 checkResultLabels(api.ResultLabels o) { |
350 buildCounterResultLabels++; | 350 buildCounterResultLabels++; |
351 if (buildCounterResultLabels < 3) { | 351 if (buildCounterResultLabels < 3) { |
352 unittest.expect(o.displayName, unittest.equals('foo')); | 352 unittest.expect(o.displayName, unittest.equals('foo')); |
353 unittest.expect(o.labelWithOp, unittest.equals('foo')); | 353 unittest.expect(o.labelWithOp, unittest.equals('foo')); |
354 unittest.expect(o.name, unittest.equals('foo')); | 354 unittest.expect(o.name, unittest.equals('foo')); |
355 } | 355 } |
356 buildCounterResultLabels--; | 356 buildCounterResultLabels--; |
357 } | 357 } |
358 | 358 |
359 buildUnnamed224() { | 359 buildUnnamed226() { |
360 var o = new core.List<api.ResultLabels>(); | 360 var o = new core.List<api.ResultLabels>(); |
361 o.add(buildResultLabels()); | 361 o.add(buildResultLabels()); |
362 o.add(buildResultLabels()); | 362 o.add(buildResultLabels()); |
363 return o; | 363 return o; |
364 } | 364 } |
365 | 365 |
366 checkUnnamed224(core.List<api.ResultLabels> o) { | 366 checkUnnamed226(core.List<api.ResultLabels> o) { |
367 unittest.expect(o, unittest.hasLength(2)); | 367 unittest.expect(o, unittest.hasLength(2)); |
368 checkResultLabels(o[0]); | 368 checkResultLabels(o[0]); |
369 checkResultLabels(o[1]); | 369 checkResultLabels(o[1]); |
370 } | 370 } |
371 | 371 |
372 buildUnnamed225() { | 372 buildUnnamed227() { |
373 var o = new core.Map<core.String, core.Object>(); | 373 var o = new core.Map<core.String, core.Object>(); |
374 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 374 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
375 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 375 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
376 return o; | 376 return o; |
377 } | 377 } |
378 | 378 |
379 checkUnnamed225(core.Map<core.String, core.Object> o) { | 379 checkUnnamed227(core.Map<core.String, core.Object> o) { |
380 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
381 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 381 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
382 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 382 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
383 } | 383 } |
384 | 384 |
385 buildUnnamed226() { | 385 buildUnnamed228() { |
386 var o = new core.List<core.Map<core.String, core.Object>>(); | 386 var o = new core.List<core.Map<core.String, core.Object>>(); |
387 o.add(buildUnnamed225()); | 387 o.add(buildUnnamed227()); |
388 o.add(buildUnnamed225()); | 388 o.add(buildUnnamed227()); |
389 return o; | 389 return o; |
390 } | 390 } |
391 | 391 |
392 checkUnnamed226(core.List<core.Map<core.String, core.Object>> o) { | 392 checkUnnamed228(core.List<core.Map<core.String, core.Object>> o) { |
393 unittest.expect(o, unittest.hasLength(2)); | 393 unittest.expect(o, unittest.hasLength(2)); |
394 checkUnnamed225(o[0]); | 394 checkUnnamed227(o[0]); |
395 checkUnnamed225(o[1]); | 395 checkUnnamed227(o[1]); |
396 } | 396 } |
397 | 397 |
398 buildUnnamed227() { | 398 buildUnnamed229() { |
399 var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>
>>(); | 399 var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>
>>(); |
400 o["x"] = buildUnnamed226(); | 400 o["x"] = buildUnnamed228(); |
401 o["y"] = buildUnnamed226(); | 401 o["y"] = buildUnnamed228(); |
402 return o; | 402 return o; |
403 } | 403 } |
404 | 404 |
405 checkUnnamed227(core.Map<core.String, core.List<core.Map<core.String, core.Objec
t>>> o) { | 405 checkUnnamed229(core.Map<core.String, core.List<core.Map<core.String, core.Objec
t>>> o) { |
406 unittest.expect(o, unittest.hasLength(2)); | 406 unittest.expect(o, unittest.hasLength(2)); |
407 checkUnnamed226(o["x"]); | 407 checkUnnamed228(o["x"]); |
408 checkUnnamed226(o["y"]); | 408 checkUnnamed228(o["y"]); |
409 } | 409 } |
410 | 410 |
411 core.int buildCounterResult = 0; | 411 core.int buildCounterResult = 0; |
412 buildResult() { | 412 buildResult() { |
413 var o = new api.Result(); | 413 var o = new api.Result(); |
414 buildCounterResult++; | 414 buildCounterResult++; |
415 if (buildCounterResult < 3) { | 415 if (buildCounterResult < 3) { |
416 o.cacheId = "foo"; | 416 o.cacheId = "foo"; |
417 o.displayLink = "foo"; | 417 o.displayLink = "foo"; |
418 o.fileFormat = "foo"; | 418 o.fileFormat = "foo"; |
419 o.formattedUrl = "foo"; | 419 o.formattedUrl = "foo"; |
420 o.htmlFormattedUrl = "foo"; | 420 o.htmlFormattedUrl = "foo"; |
421 o.htmlSnippet = "foo"; | 421 o.htmlSnippet = "foo"; |
422 o.htmlTitle = "foo"; | 422 o.htmlTitle = "foo"; |
423 o.image = buildResultImage(); | 423 o.image = buildResultImage(); |
424 o.kind = "foo"; | 424 o.kind = "foo"; |
425 o.labels = buildUnnamed224(); | 425 o.labels = buildUnnamed226(); |
426 o.link = "foo"; | 426 o.link = "foo"; |
427 o.mime = "foo"; | 427 o.mime = "foo"; |
428 o.pagemap = buildUnnamed227(); | 428 o.pagemap = buildUnnamed229(); |
429 o.snippet = "foo"; | 429 o.snippet = "foo"; |
430 o.title = "foo"; | 430 o.title = "foo"; |
431 } | 431 } |
432 buildCounterResult--; | 432 buildCounterResult--; |
433 return o; | 433 return o; |
434 } | 434 } |
435 | 435 |
436 checkResult(api.Result o) { | 436 checkResult(api.Result o) { |
437 buildCounterResult++; | 437 buildCounterResult++; |
438 if (buildCounterResult < 3) { | 438 if (buildCounterResult < 3) { |
439 unittest.expect(o.cacheId, unittest.equals('foo')); | 439 unittest.expect(o.cacheId, unittest.equals('foo')); |
440 unittest.expect(o.displayLink, unittest.equals('foo')); | 440 unittest.expect(o.displayLink, unittest.equals('foo')); |
441 unittest.expect(o.fileFormat, unittest.equals('foo')); | 441 unittest.expect(o.fileFormat, unittest.equals('foo')); |
442 unittest.expect(o.formattedUrl, unittest.equals('foo')); | 442 unittest.expect(o.formattedUrl, unittest.equals('foo')); |
443 unittest.expect(o.htmlFormattedUrl, unittest.equals('foo')); | 443 unittest.expect(o.htmlFormattedUrl, unittest.equals('foo')); |
444 unittest.expect(o.htmlSnippet, unittest.equals('foo')); | 444 unittest.expect(o.htmlSnippet, unittest.equals('foo')); |
445 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 445 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
446 checkResultImage(o.image); | 446 checkResultImage(o.image); |
447 unittest.expect(o.kind, unittest.equals('foo')); | 447 unittest.expect(o.kind, unittest.equals('foo')); |
448 checkUnnamed224(o.labels); | 448 checkUnnamed226(o.labels); |
449 unittest.expect(o.link, unittest.equals('foo')); | 449 unittest.expect(o.link, unittest.equals('foo')); |
450 unittest.expect(o.mime, unittest.equals('foo')); | 450 unittest.expect(o.mime, unittest.equals('foo')); |
451 checkUnnamed227(o.pagemap); | 451 checkUnnamed229(o.pagemap); |
452 unittest.expect(o.snippet, unittest.equals('foo')); | 452 unittest.expect(o.snippet, unittest.equals('foo')); |
453 unittest.expect(o.title, unittest.equals('foo')); | 453 unittest.expect(o.title, unittest.equals('foo')); |
454 } | 454 } |
455 buildCounterResult--; | 455 buildCounterResult--; |
456 } | 456 } |
457 | 457 |
458 buildUnnamed228() { | 458 buildUnnamed230() { |
459 var o = new core.List<api.Result>(); | 459 var o = new core.List<api.Result>(); |
460 o.add(buildResult()); | 460 o.add(buildResult()); |
461 o.add(buildResult()); | 461 o.add(buildResult()); |
462 return o; | 462 return o; |
463 } | 463 } |
464 | 464 |
465 checkUnnamed228(core.List<api.Result> o) { | 465 checkUnnamed230(core.List<api.Result> o) { |
466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
467 checkResult(o[0]); | 467 checkResult(o[0]); |
468 checkResult(o[1]); | 468 checkResult(o[1]); |
469 } | 469 } |
470 | 470 |
471 buildUnnamed229() { | 471 buildUnnamed231() { |
472 var o = new core.List<api.Promotion>(); | 472 var o = new core.List<api.Promotion>(); |
473 o.add(buildPromotion()); | 473 o.add(buildPromotion()); |
474 o.add(buildPromotion()); | 474 o.add(buildPromotion()); |
475 return o; | 475 return o; |
476 } | 476 } |
477 | 477 |
478 checkUnnamed229(core.List<api.Promotion> o) { | 478 checkUnnamed231(core.List<api.Promotion> o) { |
479 unittest.expect(o, unittest.hasLength(2)); | 479 unittest.expect(o, unittest.hasLength(2)); |
480 checkPromotion(o[0]); | 480 checkPromotion(o[0]); |
481 checkPromotion(o[1]); | 481 checkPromotion(o[1]); |
482 } | 482 } |
483 | 483 |
484 buildUnnamed230() { | 484 buildUnnamed232() { |
485 var o = new core.List<api.Query>(); | 485 var o = new core.List<api.Query>(); |
486 o.add(buildQuery()); | 486 o.add(buildQuery()); |
487 o.add(buildQuery()); | 487 o.add(buildQuery()); |
488 return o; | 488 return o; |
489 } | 489 } |
490 | 490 |
491 checkUnnamed230(core.List<api.Query> o) { | 491 checkUnnamed232(core.List<api.Query> o) { |
492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
493 checkQuery(o[0]); | 493 checkQuery(o[0]); |
494 checkQuery(o[1]); | 494 checkQuery(o[1]); |
495 } | 495 } |
496 | 496 |
497 buildUnnamed231() { | 497 buildUnnamed233() { |
498 var o = new core.Map<core.String, core.List<api.Query>>(); | 498 var o = new core.Map<core.String, core.List<api.Query>>(); |
499 o["x"] = buildUnnamed230(); | 499 o["x"] = buildUnnamed232(); |
500 o["y"] = buildUnnamed230(); | 500 o["y"] = buildUnnamed232(); |
501 return o; | 501 return o; |
502 } | 502 } |
503 | 503 |
504 checkUnnamed231(core.Map<core.String, core.List<api.Query>> o) { | 504 checkUnnamed233(core.Map<core.String, core.List<api.Query>> o) { |
505 unittest.expect(o, unittest.hasLength(2)); | 505 unittest.expect(o, unittest.hasLength(2)); |
506 checkUnnamed230(o["x"]); | 506 checkUnnamed232(o["x"]); |
507 checkUnnamed230(o["y"]); | 507 checkUnnamed232(o["y"]); |
508 } | 508 } |
509 | 509 |
510 core.int buildCounterSearchSearchInformation = 0; | 510 core.int buildCounterSearchSearchInformation = 0; |
511 buildSearchSearchInformation() { | 511 buildSearchSearchInformation() { |
512 var o = new api.SearchSearchInformation(); | 512 var o = new api.SearchSearchInformation(); |
513 buildCounterSearchSearchInformation++; | 513 buildCounterSearchSearchInformation++; |
514 if (buildCounterSearchSearchInformation < 3) { | 514 if (buildCounterSearchSearchInformation < 3) { |
515 o.formattedSearchTime = "foo"; | 515 o.formattedSearchTime = "foo"; |
516 o.formattedTotalResults = "foo"; | 516 o.formattedTotalResults = "foo"; |
517 o.searchTime = 42.0; | 517 o.searchTime = 42.0; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 } | 573 } |
574 buildCounterSearchUrl--; | 574 buildCounterSearchUrl--; |
575 } | 575 } |
576 | 576 |
577 core.int buildCounterSearch = 0; | 577 core.int buildCounterSearch = 0; |
578 buildSearch() { | 578 buildSearch() { |
579 var o = new api.Search(); | 579 var o = new api.Search(); |
580 buildCounterSearch++; | 580 buildCounterSearch++; |
581 if (buildCounterSearch < 3) { | 581 if (buildCounterSearch < 3) { |
582 o.context = buildContext(); | 582 o.context = buildContext(); |
583 o.items = buildUnnamed228(); | 583 o.items = buildUnnamed230(); |
584 o.kind = "foo"; | 584 o.kind = "foo"; |
585 o.promotions = buildUnnamed229(); | 585 o.promotions = buildUnnamed231(); |
586 o.queries = buildUnnamed231(); | 586 o.queries = buildUnnamed233(); |
587 o.searchInformation = buildSearchSearchInformation(); | 587 o.searchInformation = buildSearchSearchInformation(); |
588 o.spelling = buildSearchSpelling(); | 588 o.spelling = buildSearchSpelling(); |
589 o.url = buildSearchUrl(); | 589 o.url = buildSearchUrl(); |
590 } | 590 } |
591 buildCounterSearch--; | 591 buildCounterSearch--; |
592 return o; | 592 return o; |
593 } | 593 } |
594 | 594 |
595 checkSearch(api.Search o) { | 595 checkSearch(api.Search o) { |
596 buildCounterSearch++; | 596 buildCounterSearch++; |
597 if (buildCounterSearch < 3) { | 597 if (buildCounterSearch < 3) { |
598 checkContext(o.context); | 598 checkContext(o.context); |
599 checkUnnamed228(o.items); | 599 checkUnnamed230(o.items); |
600 unittest.expect(o.kind, unittest.equals('foo')); | 600 unittest.expect(o.kind, unittest.equals('foo')); |
601 checkUnnamed229(o.promotions); | 601 checkUnnamed231(o.promotions); |
602 checkUnnamed231(o.queries); | 602 checkUnnamed233(o.queries); |
603 checkSearchSearchInformation(o.searchInformation); | 603 checkSearchSearchInformation(o.searchInformation); |
604 checkSearchSpelling(o.spelling); | 604 checkSearchSpelling(o.spelling); |
605 checkSearchUrl(o.url); | 605 checkSearchUrl(o.url); |
606 } | 606 } |
607 buildCounterSearch--; | 607 buildCounterSearch--; |
608 } | 608 } |
609 | 609 |
610 | 610 |
611 main() { | 611 main() { |
612 unittest.group("obj-schema-ContextFacets", () { | 612 unittest.group("obj-schema-ContextFacets", () { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 res.list(arg_q, c2coff: arg_c2coff, cr: arg_cr, cref: arg_cref, cx: arg_cx
, dateRestrict: arg_dateRestrict, exactTerms: arg_exactTerms, excludeTerms: arg_
excludeTerms, fileType: arg_fileType, filter: arg_filter, gl: arg_gl, googlehost
: arg_googlehost, highRange: arg_highRange, hl: arg_hl, hq: arg_hq, imgColorType
: arg_imgColorType, imgDominantColor: arg_imgDominantColor, imgSize: arg_imgSize
, imgType: arg_imgType, linkSite: arg_linkSite, lowRange: arg_lowRange, lr: arg_
lr, num: arg_num, orTerms: arg_orTerms, relatedSite: arg_relatedSite, rights: ar
g_rights, safe: arg_safe, searchType: arg_searchType, siteSearch: arg_siteSearch
, siteSearchFilter: arg_siteSearchFilter, sort: arg_sort, start: arg_start).then
(unittest.expectAsync(((api.Search response) { | 834 res.list(arg_q, c2coff: arg_c2coff, cr: arg_cr, cref: arg_cref, cx: arg_cx
, dateRestrict: arg_dateRestrict, exactTerms: arg_exactTerms, excludeTerms: arg_
excludeTerms, fileType: arg_fileType, filter: arg_filter, gl: arg_gl, googlehost
: arg_googlehost, highRange: arg_highRange, hl: arg_hl, hq: arg_hq, imgColorType
: arg_imgColorType, imgDominantColor: arg_imgDominantColor, imgSize: arg_imgSize
, imgType: arg_imgType, linkSite: arg_linkSite, lowRange: arg_lowRange, lr: arg_
lr, num: arg_num, orTerms: arg_orTerms, relatedSite: arg_relatedSite, rights: ar
g_rights, safe: arg_safe, searchType: arg_searchType, siteSearch: arg_siteSearch
, siteSearchFilter: arg_siteSearchFilter, sort: arg_sort, start: arg_start).then
(unittest.expectAsync(((api.Search response) { |
835 checkSearch(response); | 835 checkSearch(response); |
836 }))); | 836 }))); |
837 }); | 837 }); |
838 | 838 |
839 }); | 839 }); |
840 | 840 |
841 | 841 |
842 } | 842 } |
843 | 843 |
OLD | NEW |