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 21 matching lines...) Expand all Loading... |
32 checkContextFacets(api.ContextFacets o) { | 32 checkContextFacets(api.ContextFacets o) { |
33 buildCounterContextFacets++; | 33 buildCounterContextFacets++; |
34 if (buildCounterContextFacets < 3) { | 34 if (buildCounterContextFacets < 3) { |
35 unittest.expect(o.anchor, unittest.equals('foo')); | 35 unittest.expect(o.anchor, unittest.equals('foo')); |
36 unittest.expect(o.label, unittest.equals('foo')); | 36 unittest.expect(o.label, unittest.equals('foo')); |
37 unittest.expect(o.labelWithOp, unittest.equals('foo')); | 37 unittest.expect(o.labelWithOp, unittest.equals('foo')); |
38 } | 38 } |
39 buildCounterContextFacets--; | 39 buildCounterContextFacets--; |
40 } | 40 } |
41 | 41 |
42 buildUnnamed171() { | 42 buildUnnamed264() { |
43 var o = new core.List<api.ContextFacets>(); | 43 var o = new core.List<api.ContextFacets>(); |
44 o.add(buildContextFacets()); | 44 o.add(buildContextFacets()); |
45 o.add(buildContextFacets()); | 45 o.add(buildContextFacets()); |
46 return o; | 46 return o; |
47 } | 47 } |
48 | 48 |
49 checkUnnamed171(core.List<api.ContextFacets> o) { | 49 checkUnnamed264(core.List<api.ContextFacets> o) { |
50 unittest.expect(o, unittest.hasLength(2)); | 50 unittest.expect(o, unittest.hasLength(2)); |
51 checkContextFacets(o[0]); | 51 checkContextFacets(o[0]); |
52 checkContextFacets(o[1]); | 52 checkContextFacets(o[1]); |
53 } | 53 } |
54 | 54 |
55 buildUnnamed172() { | 55 buildUnnamed265() { |
56 var o = new core.List<core.List<api.ContextFacets>>(); | 56 var o = new core.List<core.List<api.ContextFacets>>(); |
57 o.add(buildUnnamed171()); | 57 o.add(buildUnnamed264()); |
58 o.add(buildUnnamed171()); | 58 o.add(buildUnnamed264()); |
59 return o; | 59 return o; |
60 } | 60 } |
61 | 61 |
62 checkUnnamed172(core.List<core.List<api.ContextFacets>> o) { | 62 checkUnnamed265(core.List<core.List<api.ContextFacets>> o) { |
63 unittest.expect(o, unittest.hasLength(2)); | 63 unittest.expect(o, unittest.hasLength(2)); |
64 checkUnnamed171(o[0]); | 64 checkUnnamed264(o[0]); |
65 checkUnnamed171(o[1]); | 65 checkUnnamed264(o[1]); |
66 } | 66 } |
67 | 67 |
68 core.int buildCounterContext = 0; | 68 core.int buildCounterContext = 0; |
69 buildContext() { | 69 buildContext() { |
70 var o = new api.Context(); | 70 var o = new api.Context(); |
71 buildCounterContext++; | 71 buildCounterContext++; |
72 if (buildCounterContext < 3) { | 72 if (buildCounterContext < 3) { |
73 o.facets = buildUnnamed172(); | 73 o.facets = buildUnnamed265(); |
74 o.title = "foo"; | 74 o.title = "foo"; |
75 } | 75 } |
76 buildCounterContext--; | 76 buildCounterContext--; |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkContext(api.Context o) { | 80 checkContext(api.Context o) { |
81 buildCounterContext++; | 81 buildCounterContext++; |
82 if (buildCounterContext < 3) { | 82 if (buildCounterContext < 3) { |
83 checkUnnamed172(o.facets); | 83 checkUnnamed265(o.facets); |
84 unittest.expect(o.title, unittest.equals('foo')); | 84 unittest.expect(o.title, unittest.equals('foo')); |
85 } | 85 } |
86 buildCounterContext--; | 86 buildCounterContext--; |
87 } | 87 } |
88 | 88 |
89 core.int buildCounterPromotionBodyLines = 0; | 89 core.int buildCounterPromotionBodyLines = 0; |
90 buildPromotionBodyLines() { | 90 buildPromotionBodyLines() { |
91 var o = new api.PromotionBodyLines(); | 91 var o = new api.PromotionBodyLines(); |
92 buildCounterPromotionBodyLines++; | 92 buildCounterPromotionBodyLines++; |
93 if (buildCounterPromotionBodyLines < 3) { | 93 if (buildCounterPromotionBodyLines < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
104 buildCounterPromotionBodyLines++; | 104 buildCounterPromotionBodyLines++; |
105 if (buildCounterPromotionBodyLines < 3) { | 105 if (buildCounterPromotionBodyLines < 3) { |
106 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 106 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
107 unittest.expect(o.link, unittest.equals('foo')); | 107 unittest.expect(o.link, unittest.equals('foo')); |
108 unittest.expect(o.title, unittest.equals('foo')); | 108 unittest.expect(o.title, unittest.equals('foo')); |
109 unittest.expect(o.url, unittest.equals('foo')); | 109 unittest.expect(o.url, unittest.equals('foo')); |
110 } | 110 } |
111 buildCounterPromotionBodyLines--; | 111 buildCounterPromotionBodyLines--; |
112 } | 112 } |
113 | 113 |
114 buildUnnamed173() { | 114 buildUnnamed266() { |
115 var o = new core.List<api.PromotionBodyLines>(); | 115 var o = new core.List<api.PromotionBodyLines>(); |
116 o.add(buildPromotionBodyLines()); | 116 o.add(buildPromotionBodyLines()); |
117 o.add(buildPromotionBodyLines()); | 117 o.add(buildPromotionBodyLines()); |
118 return o; | 118 return o; |
119 } | 119 } |
120 | 120 |
121 checkUnnamed173(core.List<api.PromotionBodyLines> o) { | 121 checkUnnamed266(core.List<api.PromotionBodyLines> o) { |
122 unittest.expect(o, unittest.hasLength(2)); | 122 unittest.expect(o, unittest.hasLength(2)); |
123 checkPromotionBodyLines(o[0]); | 123 checkPromotionBodyLines(o[0]); |
124 checkPromotionBodyLines(o[1]); | 124 checkPromotionBodyLines(o[1]); |
125 } | 125 } |
126 | 126 |
127 core.int buildCounterPromotionImage = 0; | 127 core.int buildCounterPromotionImage = 0; |
128 buildPromotionImage() { | 128 buildPromotionImage() { |
129 var o = new api.PromotionImage(); | 129 var o = new api.PromotionImage(); |
130 buildCounterPromotionImage++; | 130 buildCounterPromotionImage++; |
131 if (buildCounterPromotionImage < 3) { | 131 if (buildCounterPromotionImage < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
145 unittest.expect(o.width, unittest.equals(42)); | 145 unittest.expect(o.width, unittest.equals(42)); |
146 } | 146 } |
147 buildCounterPromotionImage--; | 147 buildCounterPromotionImage--; |
148 } | 148 } |
149 | 149 |
150 core.int buildCounterPromotion = 0; | 150 core.int buildCounterPromotion = 0; |
151 buildPromotion() { | 151 buildPromotion() { |
152 var o = new api.Promotion(); | 152 var o = new api.Promotion(); |
153 buildCounterPromotion++; | 153 buildCounterPromotion++; |
154 if (buildCounterPromotion < 3) { | 154 if (buildCounterPromotion < 3) { |
155 o.bodyLines = buildUnnamed173(); | 155 o.bodyLines = buildUnnamed266(); |
156 o.displayLink = "foo"; | 156 o.displayLink = "foo"; |
157 o.htmlTitle = "foo"; | 157 o.htmlTitle = "foo"; |
158 o.image = buildPromotionImage(); | 158 o.image = buildPromotionImage(); |
159 o.link = "foo"; | 159 o.link = "foo"; |
160 o.title = "foo"; | 160 o.title = "foo"; |
161 } | 161 } |
162 buildCounterPromotion--; | 162 buildCounterPromotion--; |
163 return o; | 163 return o; |
164 } | 164 } |
165 | 165 |
166 checkPromotion(api.Promotion o) { | 166 checkPromotion(api.Promotion o) { |
167 buildCounterPromotion++; | 167 buildCounterPromotion++; |
168 if (buildCounterPromotion < 3) { | 168 if (buildCounterPromotion < 3) { |
169 checkUnnamed173(o.bodyLines); | 169 checkUnnamed266(o.bodyLines); |
170 unittest.expect(o.displayLink, unittest.equals('foo')); | 170 unittest.expect(o.displayLink, unittest.equals('foo')); |
171 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 171 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
172 checkPromotionImage(o.image); | 172 checkPromotionImage(o.image); |
173 unittest.expect(o.link, unittest.equals('foo')); | 173 unittest.expect(o.link, unittest.equals('foo')); |
174 unittest.expect(o.title, unittest.equals('foo')); | 174 unittest.expect(o.title, unittest.equals('foo')); |
175 } | 175 } |
176 buildCounterPromotion--; | 176 buildCounterPromotion--; |
177 } | 177 } |
178 | 178 |
179 core.int buildCounterQuery = 0; | 179 core.int buildCounterQuery = 0; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 checkResultLabels(api.ResultLabels o) { | 314 checkResultLabels(api.ResultLabels o) { |
315 buildCounterResultLabels++; | 315 buildCounterResultLabels++; |
316 if (buildCounterResultLabels < 3) { | 316 if (buildCounterResultLabels < 3) { |
317 unittest.expect(o.displayName, unittest.equals('foo')); | 317 unittest.expect(o.displayName, unittest.equals('foo')); |
318 unittest.expect(o.labelWithOp, unittest.equals('foo')); | 318 unittest.expect(o.labelWithOp, unittest.equals('foo')); |
319 unittest.expect(o.name, unittest.equals('foo')); | 319 unittest.expect(o.name, unittest.equals('foo')); |
320 } | 320 } |
321 buildCounterResultLabels--; | 321 buildCounterResultLabels--; |
322 } | 322 } |
323 | 323 |
324 buildUnnamed174() { | 324 buildUnnamed267() { |
325 var o = new core.List<api.ResultLabels>(); | 325 var o = new core.List<api.ResultLabels>(); |
326 o.add(buildResultLabels()); | 326 o.add(buildResultLabels()); |
327 o.add(buildResultLabels()); | 327 o.add(buildResultLabels()); |
328 return o; | 328 return o; |
329 } | 329 } |
330 | 330 |
331 checkUnnamed174(core.List<api.ResultLabels> o) { | 331 checkUnnamed267(core.List<api.ResultLabels> o) { |
332 unittest.expect(o, unittest.hasLength(2)); | 332 unittest.expect(o, unittest.hasLength(2)); |
333 checkResultLabels(o[0]); | 333 checkResultLabels(o[0]); |
334 checkResultLabels(o[1]); | 334 checkResultLabels(o[1]); |
335 } | 335 } |
336 | 336 |
337 buildUnnamed175() { | 337 buildUnnamed268() { |
338 var o = new core.Map<core.String, core.Object>(); | 338 var o = new core.Map<core.String, core.Object>(); |
339 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 339 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
340 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 340 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
341 return o; | 341 return o; |
342 } | 342 } |
343 | 343 |
344 checkUnnamed175(core.Map<core.String, core.Object> o) { | 344 checkUnnamed268(core.Map<core.String, core.Object> o) { |
345 unittest.expect(o, unittest.hasLength(2)); | 345 unittest.expect(o, unittest.hasLength(2)); |
346 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')); | 346 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')); |
347 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')); | 347 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')); |
348 } | 348 } |
349 | 349 |
350 buildUnnamed176() { | 350 buildUnnamed269() { |
351 var o = new core.List<core.Map<core.String, core.Object>>(); | 351 var o = new core.List<core.Map<core.String, core.Object>>(); |
352 o.add(buildUnnamed175()); | 352 o.add(buildUnnamed268()); |
353 o.add(buildUnnamed175()); | 353 o.add(buildUnnamed268()); |
354 return o; | 354 return o; |
355 } | 355 } |
356 | 356 |
357 checkUnnamed176(core.List<core.Map<core.String, core.Object>> o) { | 357 checkUnnamed269(core.List<core.Map<core.String, core.Object>> o) { |
358 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
359 checkUnnamed175(o[0]); | 359 checkUnnamed268(o[0]); |
360 checkUnnamed175(o[1]); | 360 checkUnnamed268(o[1]); |
361 } | 361 } |
362 | 362 |
363 buildUnnamed177() { | 363 buildUnnamed270() { |
364 var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>
>>(); | 364 var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>
>>(); |
365 o["x"] = buildUnnamed176(); | 365 o["x"] = buildUnnamed269(); |
366 o["y"] = buildUnnamed176(); | 366 o["y"] = buildUnnamed269(); |
367 return o; | 367 return o; |
368 } | 368 } |
369 | 369 |
370 checkUnnamed177(core.Map<core.String, core.List<core.Map<core.String, core.Objec
t>>> o) { | 370 checkUnnamed270(core.Map<core.String, core.List<core.Map<core.String, core.Objec
t>>> o) { |
371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
372 checkUnnamed176(o["x"]); | 372 checkUnnamed269(o["x"]); |
373 checkUnnamed176(o["y"]); | 373 checkUnnamed269(o["y"]); |
374 } | 374 } |
375 | 375 |
376 core.int buildCounterResult = 0; | 376 core.int buildCounterResult = 0; |
377 buildResult() { | 377 buildResult() { |
378 var o = new api.Result(); | 378 var o = new api.Result(); |
379 buildCounterResult++; | 379 buildCounterResult++; |
380 if (buildCounterResult < 3) { | 380 if (buildCounterResult < 3) { |
381 o.cacheId = "foo"; | 381 o.cacheId = "foo"; |
382 o.displayLink = "foo"; | 382 o.displayLink = "foo"; |
383 o.fileFormat = "foo"; | 383 o.fileFormat = "foo"; |
384 o.formattedUrl = "foo"; | 384 o.formattedUrl = "foo"; |
385 o.htmlFormattedUrl = "foo"; | 385 o.htmlFormattedUrl = "foo"; |
386 o.htmlSnippet = "foo"; | 386 o.htmlSnippet = "foo"; |
387 o.htmlTitle = "foo"; | 387 o.htmlTitle = "foo"; |
388 o.image = buildResultImage(); | 388 o.image = buildResultImage(); |
389 o.kind = "foo"; | 389 o.kind = "foo"; |
390 o.labels = buildUnnamed174(); | 390 o.labels = buildUnnamed267(); |
391 o.link = "foo"; | 391 o.link = "foo"; |
392 o.mime = "foo"; | 392 o.mime = "foo"; |
393 o.pagemap = buildUnnamed177(); | 393 o.pagemap = buildUnnamed270(); |
394 o.snippet = "foo"; | 394 o.snippet = "foo"; |
395 o.title = "foo"; | 395 o.title = "foo"; |
396 } | 396 } |
397 buildCounterResult--; | 397 buildCounterResult--; |
398 return o; | 398 return o; |
399 } | 399 } |
400 | 400 |
401 checkResult(api.Result o) { | 401 checkResult(api.Result o) { |
402 buildCounterResult++; | 402 buildCounterResult++; |
403 if (buildCounterResult < 3) { | 403 if (buildCounterResult < 3) { |
404 unittest.expect(o.cacheId, unittest.equals('foo')); | 404 unittest.expect(o.cacheId, unittest.equals('foo')); |
405 unittest.expect(o.displayLink, unittest.equals('foo')); | 405 unittest.expect(o.displayLink, unittest.equals('foo')); |
406 unittest.expect(o.fileFormat, unittest.equals('foo')); | 406 unittest.expect(o.fileFormat, unittest.equals('foo')); |
407 unittest.expect(o.formattedUrl, unittest.equals('foo')); | 407 unittest.expect(o.formattedUrl, unittest.equals('foo')); |
408 unittest.expect(o.htmlFormattedUrl, unittest.equals('foo')); | 408 unittest.expect(o.htmlFormattedUrl, unittest.equals('foo')); |
409 unittest.expect(o.htmlSnippet, unittest.equals('foo')); | 409 unittest.expect(o.htmlSnippet, unittest.equals('foo')); |
410 unittest.expect(o.htmlTitle, unittest.equals('foo')); | 410 unittest.expect(o.htmlTitle, unittest.equals('foo')); |
411 checkResultImage(o.image); | 411 checkResultImage(o.image); |
412 unittest.expect(o.kind, unittest.equals('foo')); | 412 unittest.expect(o.kind, unittest.equals('foo')); |
413 checkUnnamed174(o.labels); | 413 checkUnnamed267(o.labels); |
414 unittest.expect(o.link, unittest.equals('foo')); | 414 unittest.expect(o.link, unittest.equals('foo')); |
415 unittest.expect(o.mime, unittest.equals('foo')); | 415 unittest.expect(o.mime, unittest.equals('foo')); |
416 checkUnnamed177(o.pagemap); | 416 checkUnnamed270(o.pagemap); |
417 unittest.expect(o.snippet, unittest.equals('foo')); | 417 unittest.expect(o.snippet, unittest.equals('foo')); |
418 unittest.expect(o.title, unittest.equals('foo')); | 418 unittest.expect(o.title, unittest.equals('foo')); |
419 } | 419 } |
420 buildCounterResult--; | 420 buildCounterResult--; |
421 } | 421 } |
422 | 422 |
423 buildUnnamed178() { | 423 buildUnnamed271() { |
424 var o = new core.List<api.Result>(); | 424 var o = new core.List<api.Result>(); |
425 o.add(buildResult()); | 425 o.add(buildResult()); |
426 o.add(buildResult()); | 426 o.add(buildResult()); |
427 return o; | 427 return o; |
428 } | 428 } |
429 | 429 |
430 checkUnnamed178(core.List<api.Result> o) { | 430 checkUnnamed271(core.List<api.Result> o) { |
431 unittest.expect(o, unittest.hasLength(2)); | 431 unittest.expect(o, unittest.hasLength(2)); |
432 checkResult(o[0]); | 432 checkResult(o[0]); |
433 checkResult(o[1]); | 433 checkResult(o[1]); |
434 } | 434 } |
435 | 435 |
436 buildUnnamed179() { | 436 buildUnnamed272() { |
437 var o = new core.List<api.Promotion>(); | 437 var o = new core.List<api.Promotion>(); |
438 o.add(buildPromotion()); | 438 o.add(buildPromotion()); |
439 o.add(buildPromotion()); | 439 o.add(buildPromotion()); |
440 return o; | 440 return o; |
441 } | 441 } |
442 | 442 |
443 checkUnnamed179(core.List<api.Promotion> o) { | 443 checkUnnamed272(core.List<api.Promotion> o) { |
444 unittest.expect(o, unittest.hasLength(2)); | 444 unittest.expect(o, unittest.hasLength(2)); |
445 checkPromotion(o[0]); | 445 checkPromotion(o[0]); |
446 checkPromotion(o[1]); | 446 checkPromotion(o[1]); |
447 } | 447 } |
448 | 448 |
449 buildUnnamed180() { | 449 buildUnnamed273() { |
450 var o = new core.List<api.Query>(); | 450 var o = new core.List<api.Query>(); |
451 o.add(buildQuery()); | 451 o.add(buildQuery()); |
452 o.add(buildQuery()); | 452 o.add(buildQuery()); |
453 return o; | 453 return o; |
454 } | 454 } |
455 | 455 |
456 checkUnnamed180(core.List<api.Query> o) { | 456 checkUnnamed273(core.List<api.Query> o) { |
457 unittest.expect(o, unittest.hasLength(2)); | 457 unittest.expect(o, unittest.hasLength(2)); |
458 checkQuery(o[0]); | 458 checkQuery(o[0]); |
459 checkQuery(o[1]); | 459 checkQuery(o[1]); |
460 } | 460 } |
461 | 461 |
462 buildUnnamed181() { | 462 buildUnnamed274() { |
463 var o = new core.Map<core.String, core.List<api.Query>>(); | 463 var o = new core.Map<core.String, core.List<api.Query>>(); |
464 o["x"] = buildUnnamed180(); | 464 o["x"] = buildUnnamed273(); |
465 o["y"] = buildUnnamed180(); | 465 o["y"] = buildUnnamed273(); |
466 return o; | 466 return o; |
467 } | 467 } |
468 | 468 |
469 checkUnnamed181(core.Map<core.String, core.List<api.Query>> o) { | 469 checkUnnamed274(core.Map<core.String, core.List<api.Query>> o) { |
470 unittest.expect(o, unittest.hasLength(2)); | 470 unittest.expect(o, unittest.hasLength(2)); |
471 checkUnnamed180(o["x"]); | 471 checkUnnamed273(o["x"]); |
472 checkUnnamed180(o["y"]); | 472 checkUnnamed273(o["y"]); |
473 } | 473 } |
474 | 474 |
475 core.int buildCounterSearchSearchInformation = 0; | 475 core.int buildCounterSearchSearchInformation = 0; |
476 buildSearchSearchInformation() { | 476 buildSearchSearchInformation() { |
477 var o = new api.SearchSearchInformation(); | 477 var o = new api.SearchSearchInformation(); |
478 buildCounterSearchSearchInformation++; | 478 buildCounterSearchSearchInformation++; |
479 if (buildCounterSearchSearchInformation < 3) { | 479 if (buildCounterSearchSearchInformation < 3) { |
480 o.formattedSearchTime = "foo"; | 480 o.formattedSearchTime = "foo"; |
481 o.formattedTotalResults = "foo"; | 481 o.formattedTotalResults = "foo"; |
482 o.searchTime = 42.0; | 482 o.searchTime = 42.0; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 } | 538 } |
539 buildCounterSearchUrl--; | 539 buildCounterSearchUrl--; |
540 } | 540 } |
541 | 541 |
542 core.int buildCounterSearch = 0; | 542 core.int buildCounterSearch = 0; |
543 buildSearch() { | 543 buildSearch() { |
544 var o = new api.Search(); | 544 var o = new api.Search(); |
545 buildCounterSearch++; | 545 buildCounterSearch++; |
546 if (buildCounterSearch < 3) { | 546 if (buildCounterSearch < 3) { |
547 o.context = buildContext(); | 547 o.context = buildContext(); |
548 o.items = buildUnnamed178(); | 548 o.items = buildUnnamed271(); |
549 o.kind = "foo"; | 549 o.kind = "foo"; |
550 o.promotions = buildUnnamed179(); | 550 o.promotions = buildUnnamed272(); |
551 o.queries = buildUnnamed181(); | 551 o.queries = buildUnnamed274(); |
552 o.searchInformation = buildSearchSearchInformation(); | 552 o.searchInformation = buildSearchSearchInformation(); |
553 o.spelling = buildSearchSpelling(); | 553 o.spelling = buildSearchSpelling(); |
554 o.url = buildSearchUrl(); | 554 o.url = buildSearchUrl(); |
555 } | 555 } |
556 buildCounterSearch--; | 556 buildCounterSearch--; |
557 return o; | 557 return o; |
558 } | 558 } |
559 | 559 |
560 checkSearch(api.Search o) { | 560 checkSearch(api.Search o) { |
561 buildCounterSearch++; | 561 buildCounterSearch++; |
562 if (buildCounterSearch < 3) { | 562 if (buildCounterSearch < 3) { |
563 checkContext(o.context); | 563 checkContext(o.context); |
564 checkUnnamed178(o.items); | 564 checkUnnamed271(o.items); |
565 unittest.expect(o.kind, unittest.equals('foo')); | 565 unittest.expect(o.kind, unittest.equals('foo')); |
566 checkUnnamed179(o.promotions); | 566 checkUnnamed272(o.promotions); |
567 checkUnnamed181(o.queries); | 567 checkUnnamed274(o.queries); |
568 checkSearchSearchInformation(o.searchInformation); | 568 checkSearchSearchInformation(o.searchInformation); |
569 checkSearchSpelling(o.spelling); | 569 checkSearchSpelling(o.spelling); |
570 checkSearchUrl(o.url); | 570 checkSearchUrl(o.url); |
571 } | 571 } |
572 buildCounterSearch--; | 572 buildCounterSearch--; |
573 } | 573 } |
574 | 574 |
575 | 575 |
576 main() { | 576 main() { |
577 unittest.group("obj-schema-ContextFacets", () { | 577 unittest.group("obj-schema-ContextFacets", () { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 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) { | 799 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) { |
800 checkSearch(response); | 800 checkSearch(response); |
801 }))); | 801 }))); |
802 }); | 802 }); |
803 | 803 |
804 }); | 804 }); |
805 | 805 |
806 | 806 |
807 } | 807 } |
808 | 808 |
OLD | NEW |