OLD | NEW |
1 library googleapis.youtubeAnalytics.v1.test; | 1 library googleapis.youtubeAnalytics.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 checkBatchReportOutputs(api.BatchReportOutputs o) { | 67 checkBatchReportOutputs(api.BatchReportOutputs o) { |
68 buildCounterBatchReportOutputs++; | 68 buildCounterBatchReportOutputs++; |
69 if (buildCounterBatchReportOutputs < 3) { | 69 if (buildCounterBatchReportOutputs < 3) { |
70 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 70 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
71 unittest.expect(o.format, unittest.equals('foo')); | 71 unittest.expect(o.format, unittest.equals('foo')); |
72 unittest.expect(o.type, unittest.equals('foo')); | 72 unittest.expect(o.type, unittest.equals('foo')); |
73 } | 73 } |
74 buildCounterBatchReportOutputs--; | 74 buildCounterBatchReportOutputs--; |
75 } | 75 } |
76 | 76 |
77 buildUnnamed174() { | 77 buildUnnamed189() { |
78 var o = new core.List<api.BatchReportOutputs>(); | 78 var o = new core.List<api.BatchReportOutputs>(); |
79 o.add(buildBatchReportOutputs()); | 79 o.add(buildBatchReportOutputs()); |
80 o.add(buildBatchReportOutputs()); | 80 o.add(buildBatchReportOutputs()); |
81 return o; | 81 return o; |
82 } | 82 } |
83 | 83 |
84 checkUnnamed174(core.List<api.BatchReportOutputs> o) { | 84 checkUnnamed189(core.List<api.BatchReportOutputs> o) { |
85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
86 checkBatchReportOutputs(o[0]); | 86 checkBatchReportOutputs(o[0]); |
87 checkBatchReportOutputs(o[1]); | 87 checkBatchReportOutputs(o[1]); |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterBatchReportTimeSpan = 0; | 90 core.int buildCounterBatchReportTimeSpan = 0; |
91 buildBatchReportTimeSpan() { | 91 buildBatchReportTimeSpan() { |
92 var o = new api.BatchReportTimeSpan(); | 92 var o = new api.BatchReportTimeSpan(); |
93 buildCounterBatchReportTimeSpan++; | 93 buildCounterBatchReportTimeSpan++; |
94 if (buildCounterBatchReportTimeSpan < 3) { | 94 if (buildCounterBatchReportTimeSpan < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
108 buildCounterBatchReportTimeSpan--; | 108 buildCounterBatchReportTimeSpan--; |
109 } | 109 } |
110 | 110 |
111 core.int buildCounterBatchReport = 0; | 111 core.int buildCounterBatchReport = 0; |
112 buildBatchReport() { | 112 buildBatchReport() { |
113 var o = new api.BatchReport(); | 113 var o = new api.BatchReport(); |
114 buildCounterBatchReport++; | 114 buildCounterBatchReport++; |
115 if (buildCounterBatchReport < 3) { | 115 if (buildCounterBatchReport < 3) { |
116 o.id = "foo"; | 116 o.id = "foo"; |
117 o.kind = "foo"; | 117 o.kind = "foo"; |
118 o.outputs = buildUnnamed174(); | 118 o.outputs = buildUnnamed189(); |
119 o.reportId = "foo"; | 119 o.reportId = "foo"; |
120 o.timeSpan = buildBatchReportTimeSpan(); | 120 o.timeSpan = buildBatchReportTimeSpan(); |
121 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); | 121 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); |
122 } | 122 } |
123 buildCounterBatchReport--; | 123 buildCounterBatchReport--; |
124 return o; | 124 return o; |
125 } | 125 } |
126 | 126 |
127 checkBatchReport(api.BatchReport o) { | 127 checkBatchReport(api.BatchReport o) { |
128 buildCounterBatchReport++; | 128 buildCounterBatchReport++; |
129 if (buildCounterBatchReport < 3) { | 129 if (buildCounterBatchReport < 3) { |
130 unittest.expect(o.id, unittest.equals('foo')); | 130 unittest.expect(o.id, unittest.equals('foo')); |
131 unittest.expect(o.kind, unittest.equals('foo')); | 131 unittest.expect(o.kind, unittest.equals('foo')); |
132 checkUnnamed174(o.outputs); | 132 checkUnnamed189(o.outputs); |
133 unittest.expect(o.reportId, unittest.equals('foo')); | 133 unittest.expect(o.reportId, unittest.equals('foo')); |
134 checkBatchReportTimeSpan(o.timeSpan); | 134 checkBatchReportTimeSpan(o.timeSpan); |
135 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 135 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
136 } | 136 } |
137 buildCounterBatchReport--; | 137 buildCounterBatchReport--; |
138 } | 138 } |
139 | 139 |
140 core.int buildCounterBatchReportDefinition = 0; | 140 core.int buildCounterBatchReportDefinition = 0; |
141 buildBatchReportDefinition() { | 141 buildBatchReportDefinition() { |
142 var o = new api.BatchReportDefinition(); | 142 var o = new api.BatchReportDefinition(); |
(...skipping 14 matching lines...) Expand all Loading... |
157 if (buildCounterBatchReportDefinition < 3) { | 157 if (buildCounterBatchReportDefinition < 3) { |
158 unittest.expect(o.id, unittest.equals('foo')); | 158 unittest.expect(o.id, unittest.equals('foo')); |
159 unittest.expect(o.kind, unittest.equals('foo')); | 159 unittest.expect(o.kind, unittest.equals('foo')); |
160 unittest.expect(o.name, unittest.equals('foo')); | 160 unittest.expect(o.name, unittest.equals('foo')); |
161 unittest.expect(o.status, unittest.equals('foo')); | 161 unittest.expect(o.status, unittest.equals('foo')); |
162 unittest.expect(o.type, unittest.equals('foo')); | 162 unittest.expect(o.type, unittest.equals('foo')); |
163 } | 163 } |
164 buildCounterBatchReportDefinition--; | 164 buildCounterBatchReportDefinition--; |
165 } | 165 } |
166 | 166 |
167 buildUnnamed175() { | 167 buildUnnamed190() { |
168 var o = new core.List<api.BatchReportDefinition>(); | 168 var o = new core.List<api.BatchReportDefinition>(); |
169 o.add(buildBatchReportDefinition()); | 169 o.add(buildBatchReportDefinition()); |
170 o.add(buildBatchReportDefinition()); | 170 o.add(buildBatchReportDefinition()); |
171 return o; | 171 return o; |
172 } | 172 } |
173 | 173 |
174 checkUnnamed175(core.List<api.BatchReportDefinition> o) { | 174 checkUnnamed190(core.List<api.BatchReportDefinition> o) { |
175 unittest.expect(o, unittest.hasLength(2)); | 175 unittest.expect(o, unittest.hasLength(2)); |
176 checkBatchReportDefinition(o[0]); | 176 checkBatchReportDefinition(o[0]); |
177 checkBatchReportDefinition(o[1]); | 177 checkBatchReportDefinition(o[1]); |
178 } | 178 } |
179 | 179 |
180 core.int buildCounterBatchReportDefinitionList = 0; | 180 core.int buildCounterBatchReportDefinitionList = 0; |
181 buildBatchReportDefinitionList() { | 181 buildBatchReportDefinitionList() { |
182 var o = new api.BatchReportDefinitionList(); | 182 var o = new api.BatchReportDefinitionList(); |
183 buildCounterBatchReportDefinitionList++; | 183 buildCounterBatchReportDefinitionList++; |
184 if (buildCounterBatchReportDefinitionList < 3) { | 184 if (buildCounterBatchReportDefinitionList < 3) { |
185 o.items = buildUnnamed175(); | 185 o.items = buildUnnamed190(); |
186 o.kind = "foo"; | 186 o.kind = "foo"; |
187 } | 187 } |
188 buildCounterBatchReportDefinitionList--; | 188 buildCounterBatchReportDefinitionList--; |
189 return o; | 189 return o; |
190 } | 190 } |
191 | 191 |
192 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { | 192 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { |
193 buildCounterBatchReportDefinitionList++; | 193 buildCounterBatchReportDefinitionList++; |
194 if (buildCounterBatchReportDefinitionList < 3) { | 194 if (buildCounterBatchReportDefinitionList < 3) { |
195 checkUnnamed175(o.items); | 195 checkUnnamed190(o.items); |
196 unittest.expect(o.kind, unittest.equals('foo')); | 196 unittest.expect(o.kind, unittest.equals('foo')); |
197 } | 197 } |
198 buildCounterBatchReportDefinitionList--; | 198 buildCounterBatchReportDefinitionList--; |
199 } | 199 } |
200 | 200 |
201 buildUnnamed176() { | 201 buildUnnamed191() { |
202 var o = new core.List<api.BatchReport>(); | 202 var o = new core.List<api.BatchReport>(); |
203 o.add(buildBatchReport()); | 203 o.add(buildBatchReport()); |
204 o.add(buildBatchReport()); | 204 o.add(buildBatchReport()); |
205 return o; | 205 return o; |
206 } | 206 } |
207 | 207 |
208 checkUnnamed176(core.List<api.BatchReport> o) { | 208 checkUnnamed191(core.List<api.BatchReport> o) { |
209 unittest.expect(o, unittest.hasLength(2)); | 209 unittest.expect(o, unittest.hasLength(2)); |
210 checkBatchReport(o[0]); | 210 checkBatchReport(o[0]); |
211 checkBatchReport(o[1]); | 211 checkBatchReport(o[1]); |
212 } | 212 } |
213 | 213 |
214 core.int buildCounterBatchReportList = 0; | 214 core.int buildCounterBatchReportList = 0; |
215 buildBatchReportList() { | 215 buildBatchReportList() { |
216 var o = new api.BatchReportList(); | 216 var o = new api.BatchReportList(); |
217 buildCounterBatchReportList++; | 217 buildCounterBatchReportList++; |
218 if (buildCounterBatchReportList < 3) { | 218 if (buildCounterBatchReportList < 3) { |
219 o.items = buildUnnamed176(); | 219 o.items = buildUnnamed191(); |
220 o.kind = "foo"; | 220 o.kind = "foo"; |
221 } | 221 } |
222 buildCounterBatchReportList--; | 222 buildCounterBatchReportList--; |
223 return o; | 223 return o; |
224 } | 224 } |
225 | 225 |
226 checkBatchReportList(api.BatchReportList o) { | 226 checkBatchReportList(api.BatchReportList o) { |
227 buildCounterBatchReportList++; | 227 buildCounterBatchReportList++; |
228 if (buildCounterBatchReportList < 3) { | 228 if (buildCounterBatchReportList < 3) { |
229 checkUnnamed176(o.items); | 229 checkUnnamed191(o.items); |
230 unittest.expect(o.kind, unittest.equals('foo')); | 230 unittest.expect(o.kind, unittest.equals('foo')); |
231 } | 231 } |
232 buildCounterBatchReportList--; | 232 buildCounterBatchReportList--; |
233 } | 233 } |
234 | 234 |
235 core.int buildCounterGroupContentDetails = 0; | 235 core.int buildCounterGroupContentDetails = 0; |
236 buildGroupContentDetails() { | 236 buildGroupContentDetails() { |
237 var o = new api.GroupContentDetails(); | 237 var o = new api.GroupContentDetails(); |
238 buildCounterGroupContentDetails++; | 238 buildCounterGroupContentDetails++; |
239 if (buildCounterGroupContentDetails < 3) { | 239 if (buildCounterGroupContentDetails < 3) { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 if (buildCounterGroupItem < 3) { | 342 if (buildCounterGroupItem < 3) { |
343 unittest.expect(o.etag, unittest.equals('foo')); | 343 unittest.expect(o.etag, unittest.equals('foo')); |
344 unittest.expect(o.groupId, unittest.equals('foo')); | 344 unittest.expect(o.groupId, unittest.equals('foo')); |
345 unittest.expect(o.id, unittest.equals('foo')); | 345 unittest.expect(o.id, unittest.equals('foo')); |
346 unittest.expect(o.kind, unittest.equals('foo')); | 346 unittest.expect(o.kind, unittest.equals('foo')); |
347 checkGroupItemResource(o.resource); | 347 checkGroupItemResource(o.resource); |
348 } | 348 } |
349 buildCounterGroupItem--; | 349 buildCounterGroupItem--; |
350 } | 350 } |
351 | 351 |
352 buildUnnamed177() { | 352 buildUnnamed192() { |
353 var o = new core.List<api.GroupItem>(); | 353 var o = new core.List<api.GroupItem>(); |
354 o.add(buildGroupItem()); | 354 o.add(buildGroupItem()); |
355 o.add(buildGroupItem()); | 355 o.add(buildGroupItem()); |
356 return o; | 356 return o; |
357 } | 357 } |
358 | 358 |
359 checkUnnamed177(core.List<api.GroupItem> o) { | 359 checkUnnamed192(core.List<api.GroupItem> o) { |
360 unittest.expect(o, unittest.hasLength(2)); | 360 unittest.expect(o, unittest.hasLength(2)); |
361 checkGroupItem(o[0]); | 361 checkGroupItem(o[0]); |
362 checkGroupItem(o[1]); | 362 checkGroupItem(o[1]); |
363 } | 363 } |
364 | 364 |
365 core.int buildCounterGroupItemListResponse = 0; | 365 core.int buildCounterGroupItemListResponse = 0; |
366 buildGroupItemListResponse() { | 366 buildGroupItemListResponse() { |
367 var o = new api.GroupItemListResponse(); | 367 var o = new api.GroupItemListResponse(); |
368 buildCounterGroupItemListResponse++; | 368 buildCounterGroupItemListResponse++; |
369 if (buildCounterGroupItemListResponse < 3) { | 369 if (buildCounterGroupItemListResponse < 3) { |
370 o.etag = "foo"; | 370 o.etag = "foo"; |
371 o.items = buildUnnamed177(); | 371 o.items = buildUnnamed192(); |
372 o.kind = "foo"; | 372 o.kind = "foo"; |
373 } | 373 } |
374 buildCounterGroupItemListResponse--; | 374 buildCounterGroupItemListResponse--; |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkGroupItemListResponse(api.GroupItemListResponse o) { | 378 checkGroupItemListResponse(api.GroupItemListResponse o) { |
379 buildCounterGroupItemListResponse++; | 379 buildCounterGroupItemListResponse++; |
380 if (buildCounterGroupItemListResponse < 3) { | 380 if (buildCounterGroupItemListResponse < 3) { |
381 unittest.expect(o.etag, unittest.equals('foo')); | 381 unittest.expect(o.etag, unittest.equals('foo')); |
382 checkUnnamed177(o.items); | 382 checkUnnamed192(o.items); |
383 unittest.expect(o.kind, unittest.equals('foo')); | 383 unittest.expect(o.kind, unittest.equals('foo')); |
384 } | 384 } |
385 buildCounterGroupItemListResponse--; | 385 buildCounterGroupItemListResponse--; |
386 } | 386 } |
387 | 387 |
388 buildUnnamed178() { | 388 buildUnnamed193() { |
389 var o = new core.List<api.Group>(); | 389 var o = new core.List<api.Group>(); |
390 o.add(buildGroup()); | 390 o.add(buildGroup()); |
391 o.add(buildGroup()); | 391 o.add(buildGroup()); |
392 return o; | 392 return o; |
393 } | 393 } |
394 | 394 |
395 checkUnnamed178(core.List<api.Group> o) { | 395 checkUnnamed193(core.List<api.Group> o) { |
396 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
397 checkGroup(o[0]); | 397 checkGroup(o[0]); |
398 checkGroup(o[1]); | 398 checkGroup(o[1]); |
399 } | 399 } |
400 | 400 |
401 core.int buildCounterGroupListResponse = 0; | 401 core.int buildCounterGroupListResponse = 0; |
402 buildGroupListResponse() { | 402 buildGroupListResponse() { |
403 var o = new api.GroupListResponse(); | 403 var o = new api.GroupListResponse(); |
404 buildCounterGroupListResponse++; | 404 buildCounterGroupListResponse++; |
405 if (buildCounterGroupListResponse < 3) { | 405 if (buildCounterGroupListResponse < 3) { |
406 o.etag = "foo"; | 406 o.etag = "foo"; |
407 o.items = buildUnnamed178(); | 407 o.items = buildUnnamed193(); |
408 o.kind = "foo"; | 408 o.kind = "foo"; |
409 o.nextPageToken = "foo"; | 409 o.nextPageToken = "foo"; |
410 } | 410 } |
411 buildCounterGroupListResponse--; | 411 buildCounterGroupListResponse--; |
412 return o; | 412 return o; |
413 } | 413 } |
414 | 414 |
415 checkGroupListResponse(api.GroupListResponse o) { | 415 checkGroupListResponse(api.GroupListResponse o) { |
416 buildCounterGroupListResponse++; | 416 buildCounterGroupListResponse++; |
417 if (buildCounterGroupListResponse < 3) { | 417 if (buildCounterGroupListResponse < 3) { |
418 unittest.expect(o.etag, unittest.equals('foo')); | 418 unittest.expect(o.etag, unittest.equals('foo')); |
419 checkUnnamed178(o.items); | 419 checkUnnamed193(o.items); |
420 unittest.expect(o.kind, unittest.equals('foo')); | 420 unittest.expect(o.kind, unittest.equals('foo')); |
421 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 421 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
422 } | 422 } |
423 buildCounterGroupListResponse--; | 423 buildCounterGroupListResponse--; |
424 } | 424 } |
425 | 425 |
426 core.int buildCounterResultTableColumnHeaders = 0; | 426 core.int buildCounterResultTableColumnHeaders = 0; |
427 buildResultTableColumnHeaders() { | 427 buildResultTableColumnHeaders() { |
428 var o = new api.ResultTableColumnHeaders(); | 428 var o = new api.ResultTableColumnHeaders(); |
429 buildCounterResultTableColumnHeaders++; | 429 buildCounterResultTableColumnHeaders++; |
430 if (buildCounterResultTableColumnHeaders < 3) { | 430 if (buildCounterResultTableColumnHeaders < 3) { |
431 o.columnType = "foo"; | 431 o.columnType = "foo"; |
432 o.dataType = "foo"; | 432 o.dataType = "foo"; |
433 o.name = "foo"; | 433 o.name = "foo"; |
434 } | 434 } |
435 buildCounterResultTableColumnHeaders--; | 435 buildCounterResultTableColumnHeaders--; |
436 return o; | 436 return o; |
437 } | 437 } |
438 | 438 |
439 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) { | 439 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) { |
440 buildCounterResultTableColumnHeaders++; | 440 buildCounterResultTableColumnHeaders++; |
441 if (buildCounterResultTableColumnHeaders < 3) { | 441 if (buildCounterResultTableColumnHeaders < 3) { |
442 unittest.expect(o.columnType, unittest.equals('foo')); | 442 unittest.expect(o.columnType, unittest.equals('foo')); |
443 unittest.expect(o.dataType, unittest.equals('foo')); | 443 unittest.expect(o.dataType, unittest.equals('foo')); |
444 unittest.expect(o.name, unittest.equals('foo')); | 444 unittest.expect(o.name, unittest.equals('foo')); |
445 } | 445 } |
446 buildCounterResultTableColumnHeaders--; | 446 buildCounterResultTableColumnHeaders--; |
447 } | 447 } |
448 | 448 |
449 buildUnnamed179() { | 449 buildUnnamed194() { |
450 var o = new core.List<api.ResultTableColumnHeaders>(); | 450 var o = new core.List<api.ResultTableColumnHeaders>(); |
451 o.add(buildResultTableColumnHeaders()); | 451 o.add(buildResultTableColumnHeaders()); |
452 o.add(buildResultTableColumnHeaders()); | 452 o.add(buildResultTableColumnHeaders()); |
453 return o; | 453 return o; |
454 } | 454 } |
455 | 455 |
456 checkUnnamed179(core.List<api.ResultTableColumnHeaders> o) { | 456 checkUnnamed194(core.List<api.ResultTableColumnHeaders> o) { |
457 unittest.expect(o, unittest.hasLength(2)); | 457 unittest.expect(o, unittest.hasLength(2)); |
458 checkResultTableColumnHeaders(o[0]); | 458 checkResultTableColumnHeaders(o[0]); |
459 checkResultTableColumnHeaders(o[1]); | 459 checkResultTableColumnHeaders(o[1]); |
460 } | 460 } |
461 | 461 |
462 buildUnnamed180() { | 462 buildUnnamed195() { |
463 var o = new core.List<core.Object>(); | 463 var o = new core.List<core.Object>(); |
464 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 464 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
465 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 465 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
466 return o; | 466 return o; |
467 } | 467 } |
468 | 468 |
469 checkUnnamed180(core.List<core.Object> o) { | 469 checkUnnamed195(core.List<core.Object> o) { |
470 unittest.expect(o, unittest.hasLength(2)); | 470 unittest.expect(o, unittest.hasLength(2)); |
471 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 471 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
472 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 472 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
473 } | 473 } |
474 | 474 |
475 buildUnnamed181() { | 475 buildUnnamed196() { |
476 var o = new core.List<core.List<core.Object>>(); | 476 var o = new core.List<core.List<core.Object>>(); |
477 o.add(buildUnnamed180()); | 477 o.add(buildUnnamed195()); |
478 o.add(buildUnnamed180()); | 478 o.add(buildUnnamed195()); |
479 return o; | 479 return o; |
480 } | 480 } |
481 | 481 |
482 checkUnnamed181(core.List<core.List<core.Object>> o) { | 482 checkUnnamed196(core.List<core.List<core.Object>> o) { |
483 unittest.expect(o, unittest.hasLength(2)); | 483 unittest.expect(o, unittest.hasLength(2)); |
484 checkUnnamed180(o[0]); | 484 checkUnnamed195(o[0]); |
485 checkUnnamed180(o[1]); | 485 checkUnnamed195(o[1]); |
486 } | 486 } |
487 | 487 |
488 core.int buildCounterResultTable = 0; | 488 core.int buildCounterResultTable = 0; |
489 buildResultTable() { | 489 buildResultTable() { |
490 var o = new api.ResultTable(); | 490 var o = new api.ResultTable(); |
491 buildCounterResultTable++; | 491 buildCounterResultTable++; |
492 if (buildCounterResultTable < 3) { | 492 if (buildCounterResultTable < 3) { |
493 o.columnHeaders = buildUnnamed179(); | 493 o.columnHeaders = buildUnnamed194(); |
494 o.kind = "foo"; | 494 o.kind = "foo"; |
495 o.rows = buildUnnamed181(); | 495 o.rows = buildUnnamed196(); |
496 } | 496 } |
497 buildCounterResultTable--; | 497 buildCounterResultTable--; |
498 return o; | 498 return o; |
499 } | 499 } |
500 | 500 |
501 checkResultTable(api.ResultTable o) { | 501 checkResultTable(api.ResultTable o) { |
502 buildCounterResultTable++; | 502 buildCounterResultTable++; |
503 if (buildCounterResultTable < 3) { | 503 if (buildCounterResultTable < 3) { |
504 checkUnnamed179(o.columnHeaders); | 504 checkUnnamed194(o.columnHeaders); |
505 unittest.expect(o.kind, unittest.equals('foo')); | 505 unittest.expect(o.kind, unittest.equals('foo')); |
506 checkUnnamed181(o.rows); | 506 checkUnnamed196(o.rows); |
507 } | 507 } |
508 buildCounterResultTable--; | 508 buildCounterResultTable--; |
509 } | 509 } |
510 | 510 |
511 | 511 |
512 main() { | 512 main() { |
513 unittest.group("obj-schema-BatchReportOutputs", () { | 513 unittest.group("obj-schema-BatchReportOutputs", () { |
514 unittest.test("to-json--from-json", () { | 514 unittest.test("to-json--from-json", () { |
515 var o = buildBatchReportOutputs(); | 515 var o = buildBatchReportOutputs(); |
516 var od = new api.BatchReportOutputs.fromJson(o.toJson()); | 516 var od = new api.BatchReportOutputs.fromJson(o.toJson()); |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: ar
g_currency, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_m
ax_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAs
ync(((api.ResultTable response) { | 1170 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: ar
g_currency, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_m
ax_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAs
ync(((api.ResultTable response) { |
1171 checkResultTable(response); | 1171 checkResultTable(response); |
1172 }))); | 1172 }))); |
1173 }); | 1173 }); |
1174 | 1174 |
1175 }); | 1175 }); |
1176 | 1176 |
1177 | 1177 |
1178 } | 1178 } |
1179 | 1179 |
OLD | NEW |