OLD | NEW |
1 library googleapis.adexchangeseller.v1_1.test; | 1 library googleapis.adexchangeseller.v1_1.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 if (buildCounterAdClient < 3) { | 94 if (buildCounterAdClient < 3) { |
95 unittest.expect(o.arcOptIn, unittest.isTrue); | 95 unittest.expect(o.arcOptIn, unittest.isTrue); |
96 unittest.expect(o.id, unittest.equals('foo')); | 96 unittest.expect(o.id, unittest.equals('foo')); |
97 unittest.expect(o.kind, unittest.equals('foo')); | 97 unittest.expect(o.kind, unittest.equals('foo')); |
98 unittest.expect(o.productCode, unittest.equals('foo')); | 98 unittest.expect(o.productCode, unittest.equals('foo')); |
99 unittest.expect(o.supportsReporting, unittest.isTrue); | 99 unittest.expect(o.supportsReporting, unittest.isTrue); |
100 } | 100 } |
101 buildCounterAdClient--; | 101 buildCounterAdClient--; |
102 } | 102 } |
103 | 103 |
104 buildUnnamed198() { | 104 buildUnnamed200() { |
105 var o = new core.List<api.AdClient>(); | 105 var o = new core.List<api.AdClient>(); |
106 o.add(buildAdClient()); | 106 o.add(buildAdClient()); |
107 o.add(buildAdClient()); | 107 o.add(buildAdClient()); |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkUnnamed198(core.List<api.AdClient> o) { | 111 checkUnnamed200(core.List<api.AdClient> o) { |
112 unittest.expect(o, unittest.hasLength(2)); | 112 unittest.expect(o, unittest.hasLength(2)); |
113 checkAdClient(o[0]); | 113 checkAdClient(o[0]); |
114 checkAdClient(o[1]); | 114 checkAdClient(o[1]); |
115 } | 115 } |
116 | 116 |
117 core.int buildCounterAdClients = 0; | 117 core.int buildCounterAdClients = 0; |
118 buildAdClients() { | 118 buildAdClients() { |
119 var o = new api.AdClients(); | 119 var o = new api.AdClients(); |
120 buildCounterAdClients++; | 120 buildCounterAdClients++; |
121 if (buildCounterAdClients < 3) { | 121 if (buildCounterAdClients < 3) { |
122 o.etag = "foo"; | 122 o.etag = "foo"; |
123 o.items = buildUnnamed198(); | 123 o.items = buildUnnamed200(); |
124 o.kind = "foo"; | 124 o.kind = "foo"; |
125 o.nextPageToken = "foo"; | 125 o.nextPageToken = "foo"; |
126 } | 126 } |
127 buildCounterAdClients--; | 127 buildCounterAdClients--; |
128 return o; | 128 return o; |
129 } | 129 } |
130 | 130 |
131 checkAdClients(api.AdClients o) { | 131 checkAdClients(api.AdClients o) { |
132 buildCounterAdClients++; | 132 buildCounterAdClients++; |
133 if (buildCounterAdClients < 3) { | 133 if (buildCounterAdClients < 3) { |
134 unittest.expect(o.etag, unittest.equals('foo')); | 134 unittest.expect(o.etag, unittest.equals('foo')); |
135 checkUnnamed198(o.items); | 135 checkUnnamed200(o.items); |
136 unittest.expect(o.kind, unittest.equals('foo')); | 136 unittest.expect(o.kind, unittest.equals('foo')); |
137 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 137 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
138 } | 138 } |
139 buildCounterAdClients--; | 139 buildCounterAdClients--; |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterAdUnit = 0; | 142 core.int buildCounterAdUnit = 0; |
143 buildAdUnit() { | 143 buildAdUnit() { |
144 var o = new api.AdUnit(); | 144 var o = new api.AdUnit(); |
145 buildCounterAdUnit++; | 145 buildCounterAdUnit++; |
(...skipping 13 matching lines...) Expand all Loading... |
159 if (buildCounterAdUnit < 3) { | 159 if (buildCounterAdUnit < 3) { |
160 unittest.expect(o.code, unittest.equals('foo')); | 160 unittest.expect(o.code, unittest.equals('foo')); |
161 unittest.expect(o.id, unittest.equals('foo')); | 161 unittest.expect(o.id, unittest.equals('foo')); |
162 unittest.expect(o.kind, unittest.equals('foo')); | 162 unittest.expect(o.kind, unittest.equals('foo')); |
163 unittest.expect(o.name, unittest.equals('foo')); | 163 unittest.expect(o.name, unittest.equals('foo')); |
164 unittest.expect(o.status, unittest.equals('foo')); | 164 unittest.expect(o.status, unittest.equals('foo')); |
165 } | 165 } |
166 buildCounterAdUnit--; | 166 buildCounterAdUnit--; |
167 } | 167 } |
168 | 168 |
169 buildUnnamed199() { | 169 buildUnnamed201() { |
170 var o = new core.List<api.AdUnit>(); | 170 var o = new core.List<api.AdUnit>(); |
171 o.add(buildAdUnit()); | 171 o.add(buildAdUnit()); |
172 o.add(buildAdUnit()); | 172 o.add(buildAdUnit()); |
173 return o; | 173 return o; |
174 } | 174 } |
175 | 175 |
176 checkUnnamed199(core.List<api.AdUnit> o) { | 176 checkUnnamed201(core.List<api.AdUnit> o) { |
177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
178 checkAdUnit(o[0]); | 178 checkAdUnit(o[0]); |
179 checkAdUnit(o[1]); | 179 checkAdUnit(o[1]); |
180 } | 180 } |
181 | 181 |
182 core.int buildCounterAdUnits = 0; | 182 core.int buildCounterAdUnits = 0; |
183 buildAdUnits() { | 183 buildAdUnits() { |
184 var o = new api.AdUnits(); | 184 var o = new api.AdUnits(); |
185 buildCounterAdUnits++; | 185 buildCounterAdUnits++; |
186 if (buildCounterAdUnits < 3) { | 186 if (buildCounterAdUnits < 3) { |
187 o.etag = "foo"; | 187 o.etag = "foo"; |
188 o.items = buildUnnamed199(); | 188 o.items = buildUnnamed201(); |
189 o.kind = "foo"; | 189 o.kind = "foo"; |
190 o.nextPageToken = "foo"; | 190 o.nextPageToken = "foo"; |
191 } | 191 } |
192 buildCounterAdUnits--; | 192 buildCounterAdUnits--; |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkAdUnits(api.AdUnits o) { | 196 checkAdUnits(api.AdUnits o) { |
197 buildCounterAdUnits++; | 197 buildCounterAdUnits++; |
198 if (buildCounterAdUnits < 3) { | 198 if (buildCounterAdUnits < 3) { |
199 unittest.expect(o.etag, unittest.equals('foo')); | 199 unittest.expect(o.etag, unittest.equals('foo')); |
200 checkUnnamed199(o.items); | 200 checkUnnamed201(o.items); |
201 unittest.expect(o.kind, unittest.equals('foo')); | 201 unittest.expect(o.kind, unittest.equals('foo')); |
202 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 202 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
203 } | 203 } |
204 buildCounterAdUnits--; | 204 buildCounterAdUnits--; |
205 } | 205 } |
206 | 206 |
207 core.int buildCounterAlert = 0; | 207 core.int buildCounterAlert = 0; |
208 buildAlert() { | 208 buildAlert() { |
209 var o = new api.Alert(); | 209 var o = new api.Alert(); |
210 buildCounterAlert++; | 210 buildCounterAlert++; |
(...skipping 13 matching lines...) Expand all Loading... |
224 if (buildCounterAlert < 3) { | 224 if (buildCounterAlert < 3) { |
225 unittest.expect(o.id, unittest.equals('foo')); | 225 unittest.expect(o.id, unittest.equals('foo')); |
226 unittest.expect(o.kind, unittest.equals('foo')); | 226 unittest.expect(o.kind, unittest.equals('foo')); |
227 unittest.expect(o.message, unittest.equals('foo')); | 227 unittest.expect(o.message, unittest.equals('foo')); |
228 unittest.expect(o.severity, unittest.equals('foo')); | 228 unittest.expect(o.severity, unittest.equals('foo')); |
229 unittest.expect(o.type, unittest.equals('foo')); | 229 unittest.expect(o.type, unittest.equals('foo')); |
230 } | 230 } |
231 buildCounterAlert--; | 231 buildCounterAlert--; |
232 } | 232 } |
233 | 233 |
234 buildUnnamed200() { | 234 buildUnnamed202() { |
235 var o = new core.List<api.Alert>(); | 235 var o = new core.List<api.Alert>(); |
236 o.add(buildAlert()); | 236 o.add(buildAlert()); |
237 o.add(buildAlert()); | 237 o.add(buildAlert()); |
238 return o; | 238 return o; |
239 } | 239 } |
240 | 240 |
241 checkUnnamed200(core.List<api.Alert> o) { | 241 checkUnnamed202(core.List<api.Alert> o) { |
242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
243 checkAlert(o[0]); | 243 checkAlert(o[0]); |
244 checkAlert(o[1]); | 244 checkAlert(o[1]); |
245 } | 245 } |
246 | 246 |
247 core.int buildCounterAlerts = 0; | 247 core.int buildCounterAlerts = 0; |
248 buildAlerts() { | 248 buildAlerts() { |
249 var o = new api.Alerts(); | 249 var o = new api.Alerts(); |
250 buildCounterAlerts++; | 250 buildCounterAlerts++; |
251 if (buildCounterAlerts < 3) { | 251 if (buildCounterAlerts < 3) { |
252 o.items = buildUnnamed200(); | 252 o.items = buildUnnamed202(); |
253 o.kind = "foo"; | 253 o.kind = "foo"; |
254 } | 254 } |
255 buildCounterAlerts--; | 255 buildCounterAlerts--; |
256 return o; | 256 return o; |
257 } | 257 } |
258 | 258 |
259 checkAlerts(api.Alerts o) { | 259 checkAlerts(api.Alerts o) { |
260 buildCounterAlerts++; | 260 buildCounterAlerts++; |
261 if (buildCounterAlerts < 3) { | 261 if (buildCounterAlerts < 3) { |
262 checkUnnamed200(o.items); | 262 checkUnnamed202(o.items); |
263 unittest.expect(o.kind, unittest.equals('foo')); | 263 unittest.expect(o.kind, unittest.equals('foo')); |
264 } | 264 } |
265 buildCounterAlerts--; | 265 buildCounterAlerts--; |
266 } | 266 } |
267 | 267 |
268 core.int buildCounterCustomChannelTargetingInfo = 0; | 268 core.int buildCounterCustomChannelTargetingInfo = 0; |
269 buildCustomChannelTargetingInfo() { | 269 buildCustomChannelTargetingInfo() { |
270 var o = new api.CustomChannelTargetingInfo(); | 270 var o = new api.CustomChannelTargetingInfo(); |
271 buildCounterCustomChannelTargetingInfo++; | 271 buildCounterCustomChannelTargetingInfo++; |
272 if (buildCounterCustomChannelTargetingInfo < 3) { | 272 if (buildCounterCustomChannelTargetingInfo < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 if (buildCounterCustomChannel < 3) { | 310 if (buildCounterCustomChannel < 3) { |
311 unittest.expect(o.code, unittest.equals('foo')); | 311 unittest.expect(o.code, unittest.equals('foo')); |
312 unittest.expect(o.id, unittest.equals('foo')); | 312 unittest.expect(o.id, unittest.equals('foo')); |
313 unittest.expect(o.kind, unittest.equals('foo')); | 313 unittest.expect(o.kind, unittest.equals('foo')); |
314 unittest.expect(o.name, unittest.equals('foo')); | 314 unittest.expect(o.name, unittest.equals('foo')); |
315 checkCustomChannelTargetingInfo(o.targetingInfo); | 315 checkCustomChannelTargetingInfo(o.targetingInfo); |
316 } | 316 } |
317 buildCounterCustomChannel--; | 317 buildCounterCustomChannel--; |
318 } | 318 } |
319 | 319 |
320 buildUnnamed201() { | 320 buildUnnamed203() { |
321 var o = new core.List<api.CustomChannel>(); | 321 var o = new core.List<api.CustomChannel>(); |
322 o.add(buildCustomChannel()); | 322 o.add(buildCustomChannel()); |
323 o.add(buildCustomChannel()); | 323 o.add(buildCustomChannel()); |
324 return o; | 324 return o; |
325 } | 325 } |
326 | 326 |
327 checkUnnamed201(core.List<api.CustomChannel> o) { | 327 checkUnnamed203(core.List<api.CustomChannel> o) { |
328 unittest.expect(o, unittest.hasLength(2)); | 328 unittest.expect(o, unittest.hasLength(2)); |
329 checkCustomChannel(o[0]); | 329 checkCustomChannel(o[0]); |
330 checkCustomChannel(o[1]); | 330 checkCustomChannel(o[1]); |
331 } | 331 } |
332 | 332 |
333 core.int buildCounterCustomChannels = 0; | 333 core.int buildCounterCustomChannels = 0; |
334 buildCustomChannels() { | 334 buildCustomChannels() { |
335 var o = new api.CustomChannels(); | 335 var o = new api.CustomChannels(); |
336 buildCounterCustomChannels++; | 336 buildCounterCustomChannels++; |
337 if (buildCounterCustomChannels < 3) { | 337 if (buildCounterCustomChannels < 3) { |
338 o.etag = "foo"; | 338 o.etag = "foo"; |
339 o.items = buildUnnamed201(); | 339 o.items = buildUnnamed203(); |
340 o.kind = "foo"; | 340 o.kind = "foo"; |
341 o.nextPageToken = "foo"; | 341 o.nextPageToken = "foo"; |
342 } | 342 } |
343 buildCounterCustomChannels--; | 343 buildCounterCustomChannels--; |
344 return o; | 344 return o; |
345 } | 345 } |
346 | 346 |
347 checkCustomChannels(api.CustomChannels o) { | 347 checkCustomChannels(api.CustomChannels o) { |
348 buildCounterCustomChannels++; | 348 buildCounterCustomChannels++; |
349 if (buildCounterCustomChannels < 3) { | 349 if (buildCounterCustomChannels < 3) { |
350 unittest.expect(o.etag, unittest.equals('foo')); | 350 unittest.expect(o.etag, unittest.equals('foo')); |
351 checkUnnamed201(o.items); | 351 checkUnnamed203(o.items); |
352 unittest.expect(o.kind, unittest.equals('foo')); | 352 unittest.expect(o.kind, unittest.equals('foo')); |
353 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 353 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
354 } | 354 } |
355 buildCounterCustomChannels--; | 355 buildCounterCustomChannels--; |
356 } | 356 } |
357 | 357 |
358 buildUnnamed202() { | 358 buildUnnamed204() { |
359 var o = new core.List<api.ReportingMetadataEntry>(); | 359 var o = new core.List<api.ReportingMetadataEntry>(); |
360 o.add(buildReportingMetadataEntry()); | 360 o.add(buildReportingMetadataEntry()); |
361 o.add(buildReportingMetadataEntry()); | 361 o.add(buildReportingMetadataEntry()); |
362 return o; | 362 return o; |
363 } | 363 } |
364 | 364 |
365 checkUnnamed202(core.List<api.ReportingMetadataEntry> o) { | 365 checkUnnamed204(core.List<api.ReportingMetadataEntry> o) { |
366 unittest.expect(o, unittest.hasLength(2)); | 366 unittest.expect(o, unittest.hasLength(2)); |
367 checkReportingMetadataEntry(o[0]); | 367 checkReportingMetadataEntry(o[0]); |
368 checkReportingMetadataEntry(o[1]); | 368 checkReportingMetadataEntry(o[1]); |
369 } | 369 } |
370 | 370 |
371 core.int buildCounterMetadata = 0; | 371 core.int buildCounterMetadata = 0; |
372 buildMetadata() { | 372 buildMetadata() { |
373 var o = new api.Metadata(); | 373 var o = new api.Metadata(); |
374 buildCounterMetadata++; | 374 buildCounterMetadata++; |
375 if (buildCounterMetadata < 3) { | 375 if (buildCounterMetadata < 3) { |
376 o.items = buildUnnamed202(); | 376 o.items = buildUnnamed204(); |
377 o.kind = "foo"; | 377 o.kind = "foo"; |
378 } | 378 } |
379 buildCounterMetadata--; | 379 buildCounterMetadata--; |
380 return o; | 380 return o; |
381 } | 381 } |
382 | 382 |
383 checkMetadata(api.Metadata o) { | 383 checkMetadata(api.Metadata o) { |
384 buildCounterMetadata++; | 384 buildCounterMetadata++; |
385 if (buildCounterMetadata < 3) { | 385 if (buildCounterMetadata < 3) { |
386 checkUnnamed202(o.items); | 386 checkUnnamed204(o.items); |
387 unittest.expect(o.kind, unittest.equals('foo')); | 387 unittest.expect(o.kind, unittest.equals('foo')); |
388 } | 388 } |
389 buildCounterMetadata--; | 389 buildCounterMetadata--; |
390 } | 390 } |
391 | 391 |
392 core.int buildCounterPreferredDeal = 0; | 392 core.int buildCounterPreferredDeal = 0; |
393 buildPreferredDeal() { | 393 buildPreferredDeal() { |
394 var o = new api.PreferredDeal(); | 394 var o = new api.PreferredDeal(); |
395 buildCounterPreferredDeal++; | 395 buildCounterPreferredDeal++; |
396 if (buildCounterPreferredDeal < 3) { | 396 if (buildCounterPreferredDeal < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
415 unittest.expect(o.currencyCode, unittest.equals('foo')); | 415 unittest.expect(o.currencyCode, unittest.equals('foo')); |
416 unittest.expect(o.endTime, unittest.equals('foo')); | 416 unittest.expect(o.endTime, unittest.equals('foo')); |
417 unittest.expect(o.fixedCpm, unittest.equals('foo')); | 417 unittest.expect(o.fixedCpm, unittest.equals('foo')); |
418 unittest.expect(o.id, unittest.equals('foo')); | 418 unittest.expect(o.id, unittest.equals('foo')); |
419 unittest.expect(o.kind, unittest.equals('foo')); | 419 unittest.expect(o.kind, unittest.equals('foo')); |
420 unittest.expect(o.startTime, unittest.equals('foo')); | 420 unittest.expect(o.startTime, unittest.equals('foo')); |
421 } | 421 } |
422 buildCounterPreferredDeal--; | 422 buildCounterPreferredDeal--; |
423 } | 423 } |
424 | 424 |
425 buildUnnamed203() { | 425 buildUnnamed205() { |
426 var o = new core.List<api.PreferredDeal>(); | 426 var o = new core.List<api.PreferredDeal>(); |
427 o.add(buildPreferredDeal()); | 427 o.add(buildPreferredDeal()); |
428 o.add(buildPreferredDeal()); | 428 o.add(buildPreferredDeal()); |
429 return o; | 429 return o; |
430 } | 430 } |
431 | 431 |
432 checkUnnamed203(core.List<api.PreferredDeal> o) { | 432 checkUnnamed205(core.List<api.PreferredDeal> o) { |
433 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
434 checkPreferredDeal(o[0]); | 434 checkPreferredDeal(o[0]); |
435 checkPreferredDeal(o[1]); | 435 checkPreferredDeal(o[1]); |
436 } | 436 } |
437 | 437 |
438 core.int buildCounterPreferredDeals = 0; | 438 core.int buildCounterPreferredDeals = 0; |
439 buildPreferredDeals() { | 439 buildPreferredDeals() { |
440 var o = new api.PreferredDeals(); | 440 var o = new api.PreferredDeals(); |
441 buildCounterPreferredDeals++; | 441 buildCounterPreferredDeals++; |
442 if (buildCounterPreferredDeals < 3) { | 442 if (buildCounterPreferredDeals < 3) { |
443 o.items = buildUnnamed203(); | 443 o.items = buildUnnamed205(); |
444 o.kind = "foo"; | 444 o.kind = "foo"; |
445 } | 445 } |
446 buildCounterPreferredDeals--; | 446 buildCounterPreferredDeals--; |
447 return o; | 447 return o; |
448 } | 448 } |
449 | 449 |
450 checkPreferredDeals(api.PreferredDeals o) { | 450 checkPreferredDeals(api.PreferredDeals o) { |
451 buildCounterPreferredDeals++; | 451 buildCounterPreferredDeals++; |
452 if (buildCounterPreferredDeals < 3) { | 452 if (buildCounterPreferredDeals < 3) { |
453 checkUnnamed203(o.items); | 453 checkUnnamed205(o.items); |
454 unittest.expect(o.kind, unittest.equals('foo')); | 454 unittest.expect(o.kind, unittest.equals('foo')); |
455 } | 455 } |
456 buildCounterPreferredDeals--; | 456 buildCounterPreferredDeals--; |
457 } | 457 } |
458 | 458 |
459 buildUnnamed204() { | 459 buildUnnamed206() { |
460 var o = new core.List<core.String>(); | 460 var o = new core.List<core.String>(); |
461 o.add("foo"); | 461 o.add("foo"); |
462 o.add("foo"); | 462 o.add("foo"); |
463 return o; | 463 return o; |
464 } | 464 } |
465 | 465 |
466 checkUnnamed204(core.List<core.String> o) { | 466 checkUnnamed206(core.List<core.String> o) { |
467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
468 unittest.expect(o[0], unittest.equals('foo')); | 468 unittest.expect(o[0], unittest.equals('foo')); |
469 unittest.expect(o[1], unittest.equals('foo')); | 469 unittest.expect(o[1], unittest.equals('foo')); |
470 } | 470 } |
471 | 471 |
472 core.int buildCounterReportHeaders = 0; | 472 core.int buildCounterReportHeaders = 0; |
473 buildReportHeaders() { | 473 buildReportHeaders() { |
474 var o = new api.ReportHeaders(); | 474 var o = new api.ReportHeaders(); |
475 buildCounterReportHeaders++; | 475 buildCounterReportHeaders++; |
476 if (buildCounterReportHeaders < 3) { | 476 if (buildCounterReportHeaders < 3) { |
477 o.currency = "foo"; | 477 o.currency = "foo"; |
478 o.name = "foo"; | 478 o.name = "foo"; |
479 o.type = "foo"; | 479 o.type = "foo"; |
480 } | 480 } |
481 buildCounterReportHeaders--; | 481 buildCounterReportHeaders--; |
482 return o; | 482 return o; |
483 } | 483 } |
484 | 484 |
485 checkReportHeaders(api.ReportHeaders o) { | 485 checkReportHeaders(api.ReportHeaders o) { |
486 buildCounterReportHeaders++; | 486 buildCounterReportHeaders++; |
487 if (buildCounterReportHeaders < 3) { | 487 if (buildCounterReportHeaders < 3) { |
488 unittest.expect(o.currency, unittest.equals('foo')); | 488 unittest.expect(o.currency, unittest.equals('foo')); |
489 unittest.expect(o.name, unittest.equals('foo')); | 489 unittest.expect(o.name, unittest.equals('foo')); |
490 unittest.expect(o.type, unittest.equals('foo')); | 490 unittest.expect(o.type, unittest.equals('foo')); |
491 } | 491 } |
492 buildCounterReportHeaders--; | 492 buildCounterReportHeaders--; |
493 } | 493 } |
494 | 494 |
495 buildUnnamed205() { | 495 buildUnnamed207() { |
496 var o = new core.List<api.ReportHeaders>(); | 496 var o = new core.List<api.ReportHeaders>(); |
497 o.add(buildReportHeaders()); | 497 o.add(buildReportHeaders()); |
498 o.add(buildReportHeaders()); | 498 o.add(buildReportHeaders()); |
499 return o; | 499 return o; |
500 } | 500 } |
501 | 501 |
502 checkUnnamed205(core.List<api.ReportHeaders> o) { | 502 checkUnnamed207(core.List<api.ReportHeaders> o) { |
503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
504 checkReportHeaders(o[0]); | 504 checkReportHeaders(o[0]); |
505 checkReportHeaders(o[1]); | 505 checkReportHeaders(o[1]); |
506 } | 506 } |
507 | 507 |
508 buildUnnamed206() { | |
509 var o = new core.List<core.String>(); | |
510 o.add("foo"); | |
511 o.add("foo"); | |
512 return o; | |
513 } | |
514 | |
515 checkUnnamed206(core.List<core.String> o) { | |
516 unittest.expect(o, unittest.hasLength(2)); | |
517 unittest.expect(o[0], unittest.equals('foo')); | |
518 unittest.expect(o[1], unittest.equals('foo')); | |
519 } | |
520 | |
521 buildUnnamed207() { | |
522 var o = new core.List<core.List<core.String>>(); | |
523 o.add(buildUnnamed206()); | |
524 o.add(buildUnnamed206()); | |
525 return o; | |
526 } | |
527 | |
528 checkUnnamed207(core.List<core.List<core.String>> o) { | |
529 unittest.expect(o, unittest.hasLength(2)); | |
530 checkUnnamed206(o[0]); | |
531 checkUnnamed206(o[1]); | |
532 } | |
533 | |
534 buildUnnamed208() { | 508 buildUnnamed208() { |
535 var o = new core.List<core.String>(); | 509 var o = new core.List<core.String>(); |
536 o.add("foo"); | 510 o.add("foo"); |
537 o.add("foo"); | 511 o.add("foo"); |
538 return o; | 512 return o; |
539 } | 513 } |
540 | 514 |
541 checkUnnamed208(core.List<core.String> o) { | 515 checkUnnamed208(core.List<core.String> o) { |
542 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
543 unittest.expect(o[0], unittest.equals('foo')); | 517 unittest.expect(o[0], unittest.equals('foo')); |
544 unittest.expect(o[1], unittest.equals('foo')); | 518 unittest.expect(o[1], unittest.equals('foo')); |
545 } | 519 } |
546 | 520 |
547 buildUnnamed209() { | 521 buildUnnamed209() { |
| 522 var o = new core.List<core.List<core.String>>(); |
| 523 o.add(buildUnnamed208()); |
| 524 o.add(buildUnnamed208()); |
| 525 return o; |
| 526 } |
| 527 |
| 528 checkUnnamed209(core.List<core.List<core.String>> o) { |
| 529 unittest.expect(o, unittest.hasLength(2)); |
| 530 checkUnnamed208(o[0]); |
| 531 checkUnnamed208(o[1]); |
| 532 } |
| 533 |
| 534 buildUnnamed210() { |
548 var o = new core.List<core.String>(); | 535 var o = new core.List<core.String>(); |
549 o.add("foo"); | 536 o.add("foo"); |
550 o.add("foo"); | 537 o.add("foo"); |
551 return o; | 538 return o; |
552 } | 539 } |
553 | 540 |
554 checkUnnamed209(core.List<core.String> o) { | 541 checkUnnamed210(core.List<core.String> o) { |
555 unittest.expect(o, unittest.hasLength(2)); | 542 unittest.expect(o, unittest.hasLength(2)); |
556 unittest.expect(o[0], unittest.equals('foo')); | 543 unittest.expect(o[0], unittest.equals('foo')); |
557 unittest.expect(o[1], unittest.equals('foo')); | 544 unittest.expect(o[1], unittest.equals('foo')); |
| 545 } |
| 546 |
| 547 buildUnnamed211() { |
| 548 var o = new core.List<core.String>(); |
| 549 o.add("foo"); |
| 550 o.add("foo"); |
| 551 return o; |
| 552 } |
| 553 |
| 554 checkUnnamed211(core.List<core.String> o) { |
| 555 unittest.expect(o, unittest.hasLength(2)); |
| 556 unittest.expect(o[0], unittest.equals('foo')); |
| 557 unittest.expect(o[1], unittest.equals('foo')); |
558 } | 558 } |
559 | 559 |
560 core.int buildCounterReport = 0; | 560 core.int buildCounterReport = 0; |
561 buildReport() { | 561 buildReport() { |
562 var o = new api.Report(); | 562 var o = new api.Report(); |
563 buildCounterReport++; | 563 buildCounterReport++; |
564 if (buildCounterReport < 3) { | 564 if (buildCounterReport < 3) { |
565 o.averages = buildUnnamed204(); | 565 o.averages = buildUnnamed206(); |
566 o.headers = buildUnnamed205(); | 566 o.headers = buildUnnamed207(); |
567 o.kind = "foo"; | 567 o.kind = "foo"; |
568 o.rows = buildUnnamed207(); | 568 o.rows = buildUnnamed209(); |
569 o.totalMatchedRows = "foo"; | 569 o.totalMatchedRows = "foo"; |
570 o.totals = buildUnnamed208(); | 570 o.totals = buildUnnamed210(); |
571 o.warnings = buildUnnamed209(); | 571 o.warnings = buildUnnamed211(); |
572 } | 572 } |
573 buildCounterReport--; | 573 buildCounterReport--; |
574 return o; | 574 return o; |
575 } | 575 } |
576 | 576 |
577 checkReport(api.Report o) { | 577 checkReport(api.Report o) { |
578 buildCounterReport++; | 578 buildCounterReport++; |
579 if (buildCounterReport < 3) { | 579 if (buildCounterReport < 3) { |
580 checkUnnamed204(o.averages); | 580 checkUnnamed206(o.averages); |
581 checkUnnamed205(o.headers); | 581 checkUnnamed207(o.headers); |
582 unittest.expect(o.kind, unittest.equals('foo')); | 582 unittest.expect(o.kind, unittest.equals('foo')); |
583 checkUnnamed207(o.rows); | 583 checkUnnamed209(o.rows); |
584 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 584 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
585 checkUnnamed208(o.totals); | 585 checkUnnamed210(o.totals); |
586 checkUnnamed209(o.warnings); | 586 checkUnnamed211(o.warnings); |
587 } | 587 } |
588 buildCounterReport--; | 588 buildCounterReport--; |
589 } | 589 } |
590 | 590 |
591 buildUnnamed210() { | |
592 var o = new core.List<core.String>(); | |
593 o.add("foo"); | |
594 o.add("foo"); | |
595 return o; | |
596 } | |
597 | |
598 checkUnnamed210(core.List<core.String> o) { | |
599 unittest.expect(o, unittest.hasLength(2)); | |
600 unittest.expect(o[0], unittest.equals('foo')); | |
601 unittest.expect(o[1], unittest.equals('foo')); | |
602 } | |
603 | |
604 buildUnnamed211() { | |
605 var o = new core.List<core.String>(); | |
606 o.add("foo"); | |
607 o.add("foo"); | |
608 return o; | |
609 } | |
610 | |
611 checkUnnamed211(core.List<core.String> o) { | |
612 unittest.expect(o, unittest.hasLength(2)); | |
613 unittest.expect(o[0], unittest.equals('foo')); | |
614 unittest.expect(o[1], unittest.equals('foo')); | |
615 } | |
616 | |
617 buildUnnamed212() { | 591 buildUnnamed212() { |
618 var o = new core.List<core.String>(); | 592 var o = new core.List<core.String>(); |
619 o.add("foo"); | 593 o.add("foo"); |
620 o.add("foo"); | 594 o.add("foo"); |
621 return o; | 595 return o; |
622 } | 596 } |
623 | 597 |
624 checkUnnamed212(core.List<core.String> o) { | 598 checkUnnamed212(core.List<core.String> o) { |
625 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
626 unittest.expect(o[0], unittest.equals('foo')); | 600 unittest.expect(o[0], unittest.equals('foo')); |
(...skipping 17 matching lines...) Expand all Loading... |
644 var o = new core.List<core.String>(); | 618 var o = new core.List<core.String>(); |
645 o.add("foo"); | 619 o.add("foo"); |
646 o.add("foo"); | 620 o.add("foo"); |
647 return o; | 621 return o; |
648 } | 622 } |
649 | 623 |
650 checkUnnamed214(core.List<core.String> o) { | 624 checkUnnamed214(core.List<core.String> o) { |
651 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
652 unittest.expect(o[0], unittest.equals('foo')); | 626 unittest.expect(o[0], unittest.equals('foo')); |
653 unittest.expect(o[1], unittest.equals('foo')); | 627 unittest.expect(o[1], unittest.equals('foo')); |
| 628 } |
| 629 |
| 630 buildUnnamed215() { |
| 631 var o = new core.List<core.String>(); |
| 632 o.add("foo"); |
| 633 o.add("foo"); |
| 634 return o; |
| 635 } |
| 636 |
| 637 checkUnnamed215(core.List<core.String> o) { |
| 638 unittest.expect(o, unittest.hasLength(2)); |
| 639 unittest.expect(o[0], unittest.equals('foo')); |
| 640 unittest.expect(o[1], unittest.equals('foo')); |
| 641 } |
| 642 |
| 643 buildUnnamed216() { |
| 644 var o = new core.List<core.String>(); |
| 645 o.add("foo"); |
| 646 o.add("foo"); |
| 647 return o; |
| 648 } |
| 649 |
| 650 checkUnnamed216(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); |
654 } | 654 } |
655 | 655 |
656 core.int buildCounterReportingMetadataEntry = 0; | 656 core.int buildCounterReportingMetadataEntry = 0; |
657 buildReportingMetadataEntry() { | 657 buildReportingMetadataEntry() { |
658 var o = new api.ReportingMetadataEntry(); | 658 var o = new api.ReportingMetadataEntry(); |
659 buildCounterReportingMetadataEntry++; | 659 buildCounterReportingMetadataEntry++; |
660 if (buildCounterReportingMetadataEntry < 3) { | 660 if (buildCounterReportingMetadataEntry < 3) { |
661 o.compatibleDimensions = buildUnnamed210(); | 661 o.compatibleDimensions = buildUnnamed212(); |
662 o.compatibleMetrics = buildUnnamed211(); | 662 o.compatibleMetrics = buildUnnamed213(); |
663 o.id = "foo"; | 663 o.id = "foo"; |
664 o.kind = "foo"; | 664 o.kind = "foo"; |
665 o.requiredDimensions = buildUnnamed212(); | 665 o.requiredDimensions = buildUnnamed214(); |
666 o.requiredMetrics = buildUnnamed213(); | 666 o.requiredMetrics = buildUnnamed215(); |
667 o.supportedProducts = buildUnnamed214(); | 667 o.supportedProducts = buildUnnamed216(); |
668 } | 668 } |
669 buildCounterReportingMetadataEntry--; | 669 buildCounterReportingMetadataEntry--; |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 673 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
674 buildCounterReportingMetadataEntry++; | 674 buildCounterReportingMetadataEntry++; |
675 if (buildCounterReportingMetadataEntry < 3) { | 675 if (buildCounterReportingMetadataEntry < 3) { |
676 checkUnnamed210(o.compatibleDimensions); | 676 checkUnnamed212(o.compatibleDimensions); |
677 checkUnnamed211(o.compatibleMetrics); | 677 checkUnnamed213(o.compatibleMetrics); |
678 unittest.expect(o.id, unittest.equals('foo')); | 678 unittest.expect(o.id, unittest.equals('foo')); |
679 unittest.expect(o.kind, unittest.equals('foo')); | 679 unittest.expect(o.kind, unittest.equals('foo')); |
680 checkUnnamed212(o.requiredDimensions); | 680 checkUnnamed214(o.requiredDimensions); |
681 checkUnnamed213(o.requiredMetrics); | 681 checkUnnamed215(o.requiredMetrics); |
682 checkUnnamed214(o.supportedProducts); | 682 checkUnnamed216(o.supportedProducts); |
683 } | 683 } |
684 buildCounterReportingMetadataEntry--; | 684 buildCounterReportingMetadataEntry--; |
685 } | 685 } |
686 | 686 |
687 core.int buildCounterSavedReport = 0; | 687 core.int buildCounterSavedReport = 0; |
688 buildSavedReport() { | 688 buildSavedReport() { |
689 var o = new api.SavedReport(); | 689 var o = new api.SavedReport(); |
690 buildCounterSavedReport++; | 690 buildCounterSavedReport++; |
691 if (buildCounterSavedReport < 3) { | 691 if (buildCounterSavedReport < 3) { |
692 o.id = "foo"; | 692 o.id = "foo"; |
693 o.kind = "foo"; | 693 o.kind = "foo"; |
694 o.name = "foo"; | 694 o.name = "foo"; |
695 } | 695 } |
696 buildCounterSavedReport--; | 696 buildCounterSavedReport--; |
697 return o; | 697 return o; |
698 } | 698 } |
699 | 699 |
700 checkSavedReport(api.SavedReport o) { | 700 checkSavedReport(api.SavedReport o) { |
701 buildCounterSavedReport++; | 701 buildCounterSavedReport++; |
702 if (buildCounterSavedReport < 3) { | 702 if (buildCounterSavedReport < 3) { |
703 unittest.expect(o.id, unittest.equals('foo')); | 703 unittest.expect(o.id, unittest.equals('foo')); |
704 unittest.expect(o.kind, unittest.equals('foo')); | 704 unittest.expect(o.kind, unittest.equals('foo')); |
705 unittest.expect(o.name, unittest.equals('foo')); | 705 unittest.expect(o.name, unittest.equals('foo')); |
706 } | 706 } |
707 buildCounterSavedReport--; | 707 buildCounterSavedReport--; |
708 } | 708 } |
709 | 709 |
710 buildUnnamed215() { | 710 buildUnnamed217() { |
711 var o = new core.List<api.SavedReport>(); | 711 var o = new core.List<api.SavedReport>(); |
712 o.add(buildSavedReport()); | 712 o.add(buildSavedReport()); |
713 o.add(buildSavedReport()); | 713 o.add(buildSavedReport()); |
714 return o; | 714 return o; |
715 } | 715 } |
716 | 716 |
717 checkUnnamed215(core.List<api.SavedReport> o) { | 717 checkUnnamed217(core.List<api.SavedReport> o) { |
718 unittest.expect(o, unittest.hasLength(2)); | 718 unittest.expect(o, unittest.hasLength(2)); |
719 checkSavedReport(o[0]); | 719 checkSavedReport(o[0]); |
720 checkSavedReport(o[1]); | 720 checkSavedReport(o[1]); |
721 } | 721 } |
722 | 722 |
723 core.int buildCounterSavedReports = 0; | 723 core.int buildCounterSavedReports = 0; |
724 buildSavedReports() { | 724 buildSavedReports() { |
725 var o = new api.SavedReports(); | 725 var o = new api.SavedReports(); |
726 buildCounterSavedReports++; | 726 buildCounterSavedReports++; |
727 if (buildCounterSavedReports < 3) { | 727 if (buildCounterSavedReports < 3) { |
728 o.etag = "foo"; | 728 o.etag = "foo"; |
729 o.items = buildUnnamed215(); | 729 o.items = buildUnnamed217(); |
730 o.kind = "foo"; | 730 o.kind = "foo"; |
731 o.nextPageToken = "foo"; | 731 o.nextPageToken = "foo"; |
732 } | 732 } |
733 buildCounterSavedReports--; | 733 buildCounterSavedReports--; |
734 return o; | 734 return o; |
735 } | 735 } |
736 | 736 |
737 checkSavedReports(api.SavedReports o) { | 737 checkSavedReports(api.SavedReports o) { |
738 buildCounterSavedReports++; | 738 buildCounterSavedReports++; |
739 if (buildCounterSavedReports < 3) { | 739 if (buildCounterSavedReports < 3) { |
740 unittest.expect(o.etag, unittest.equals('foo')); | 740 unittest.expect(o.etag, unittest.equals('foo')); |
741 checkUnnamed215(o.items); | 741 checkUnnamed217(o.items); |
742 unittest.expect(o.kind, unittest.equals('foo')); | 742 unittest.expect(o.kind, unittest.equals('foo')); |
743 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 743 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
744 } | 744 } |
745 buildCounterSavedReports--; | 745 buildCounterSavedReports--; |
746 } | 746 } |
747 | 747 |
748 core.int buildCounterUrlChannel = 0; | 748 core.int buildCounterUrlChannel = 0; |
749 buildUrlChannel() { | 749 buildUrlChannel() { |
750 var o = new api.UrlChannel(); | 750 var o = new api.UrlChannel(); |
751 buildCounterUrlChannel++; | 751 buildCounterUrlChannel++; |
752 if (buildCounterUrlChannel < 3) { | 752 if (buildCounterUrlChannel < 3) { |
753 o.id = "foo"; | 753 o.id = "foo"; |
754 o.kind = "foo"; | 754 o.kind = "foo"; |
755 o.urlPattern = "foo"; | 755 o.urlPattern = "foo"; |
756 } | 756 } |
757 buildCounterUrlChannel--; | 757 buildCounterUrlChannel--; |
758 return o; | 758 return o; |
759 } | 759 } |
760 | 760 |
761 checkUrlChannel(api.UrlChannel o) { | 761 checkUrlChannel(api.UrlChannel o) { |
762 buildCounterUrlChannel++; | 762 buildCounterUrlChannel++; |
763 if (buildCounterUrlChannel < 3) { | 763 if (buildCounterUrlChannel < 3) { |
764 unittest.expect(o.id, unittest.equals('foo')); | 764 unittest.expect(o.id, unittest.equals('foo')); |
765 unittest.expect(o.kind, unittest.equals('foo')); | 765 unittest.expect(o.kind, unittest.equals('foo')); |
766 unittest.expect(o.urlPattern, unittest.equals('foo')); | 766 unittest.expect(o.urlPattern, unittest.equals('foo')); |
767 } | 767 } |
768 buildCounterUrlChannel--; | 768 buildCounterUrlChannel--; |
769 } | 769 } |
770 | 770 |
771 buildUnnamed216() { | 771 buildUnnamed218() { |
772 var o = new core.List<api.UrlChannel>(); | 772 var o = new core.List<api.UrlChannel>(); |
773 o.add(buildUrlChannel()); | 773 o.add(buildUrlChannel()); |
774 o.add(buildUrlChannel()); | 774 o.add(buildUrlChannel()); |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkUnnamed216(core.List<api.UrlChannel> o) { | 778 checkUnnamed218(core.List<api.UrlChannel> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
780 checkUrlChannel(o[0]); | 780 checkUrlChannel(o[0]); |
781 checkUrlChannel(o[1]); | 781 checkUrlChannel(o[1]); |
782 } | 782 } |
783 | 783 |
784 core.int buildCounterUrlChannels = 0; | 784 core.int buildCounterUrlChannels = 0; |
785 buildUrlChannels() { | 785 buildUrlChannels() { |
786 var o = new api.UrlChannels(); | 786 var o = new api.UrlChannels(); |
787 buildCounterUrlChannels++; | 787 buildCounterUrlChannels++; |
788 if (buildCounterUrlChannels < 3) { | 788 if (buildCounterUrlChannels < 3) { |
789 o.etag = "foo"; | 789 o.etag = "foo"; |
790 o.items = buildUnnamed216(); | 790 o.items = buildUnnamed218(); |
791 o.kind = "foo"; | 791 o.kind = "foo"; |
792 o.nextPageToken = "foo"; | 792 o.nextPageToken = "foo"; |
793 } | 793 } |
794 buildCounterUrlChannels--; | 794 buildCounterUrlChannels--; |
795 return o; | 795 return o; |
796 } | 796 } |
797 | 797 |
798 checkUrlChannels(api.UrlChannels o) { | 798 checkUrlChannels(api.UrlChannels o) { |
799 buildCounterUrlChannels++; | 799 buildCounterUrlChannels++; |
800 if (buildCounterUrlChannels < 3) { | 800 if (buildCounterUrlChannels < 3) { |
801 unittest.expect(o.etag, unittest.equals('foo')); | 801 unittest.expect(o.etag, unittest.equals('foo')); |
802 checkUnnamed216(o.items); | 802 checkUnnamed218(o.items); |
803 unittest.expect(o.kind, unittest.equals('foo')); | 803 unittest.expect(o.kind, unittest.equals('foo')); |
804 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 804 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
805 } | 805 } |
806 buildCounterUrlChannels--; | 806 buildCounterUrlChannels--; |
807 } | 807 } |
808 | 808 |
809 buildUnnamed217() { | |
810 var o = new core.List<core.String>(); | |
811 o.add("foo"); | |
812 o.add("foo"); | |
813 return o; | |
814 } | |
815 | |
816 checkUnnamed217(core.List<core.String> o) { | |
817 unittest.expect(o, unittest.hasLength(2)); | |
818 unittest.expect(o[0], unittest.equals('foo')); | |
819 unittest.expect(o[1], unittest.equals('foo')); | |
820 } | |
821 | |
822 buildUnnamed218() { | |
823 var o = new core.List<core.String>(); | |
824 o.add("foo"); | |
825 o.add("foo"); | |
826 return o; | |
827 } | |
828 | |
829 checkUnnamed218(core.List<core.String> o) { | |
830 unittest.expect(o, unittest.hasLength(2)); | |
831 unittest.expect(o[0], unittest.equals('foo')); | |
832 unittest.expect(o[1], unittest.equals('foo')); | |
833 } | |
834 | |
835 buildUnnamed219() { | 809 buildUnnamed219() { |
836 var o = new core.List<core.String>(); | 810 var o = new core.List<core.String>(); |
837 o.add("foo"); | 811 o.add("foo"); |
838 o.add("foo"); | 812 o.add("foo"); |
839 return o; | 813 return o; |
840 } | 814 } |
841 | 815 |
842 checkUnnamed219(core.List<core.String> o) { | 816 checkUnnamed219(core.List<core.String> o) { |
843 unittest.expect(o, unittest.hasLength(2)); | 817 unittest.expect(o, unittest.hasLength(2)); |
844 unittest.expect(o[0], unittest.equals('foo')); | 818 unittest.expect(o[0], unittest.equals('foo')); |
845 unittest.expect(o[1], unittest.equals('foo')); | 819 unittest.expect(o[1], unittest.equals('foo')); |
846 } | 820 } |
847 | 821 |
848 buildUnnamed220() { | 822 buildUnnamed220() { |
849 var o = new core.List<core.String>(); | 823 var o = new core.List<core.String>(); |
850 o.add("foo"); | 824 o.add("foo"); |
851 o.add("foo"); | 825 o.add("foo"); |
852 return o; | 826 return o; |
853 } | 827 } |
854 | 828 |
855 checkUnnamed220(core.List<core.String> o) { | 829 checkUnnamed220(core.List<core.String> o) { |
856 unittest.expect(o, unittest.hasLength(2)); | 830 unittest.expect(o, unittest.hasLength(2)); |
857 unittest.expect(o[0], unittest.equals('foo')); | 831 unittest.expect(o[0], unittest.equals('foo')); |
858 unittest.expect(o[1], unittest.equals('foo')); | 832 unittest.expect(o[1], unittest.equals('foo')); |
| 833 } |
| 834 |
| 835 buildUnnamed221() { |
| 836 var o = new core.List<core.String>(); |
| 837 o.add("foo"); |
| 838 o.add("foo"); |
| 839 return o; |
| 840 } |
| 841 |
| 842 checkUnnamed221(core.List<core.String> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); |
| 844 unittest.expect(o[0], unittest.equals('foo')); |
| 845 unittest.expect(o[1], unittest.equals('foo')); |
| 846 } |
| 847 |
| 848 buildUnnamed222() { |
| 849 var o = new core.List<core.String>(); |
| 850 o.add("foo"); |
| 851 o.add("foo"); |
| 852 return o; |
| 853 } |
| 854 |
| 855 checkUnnamed222(core.List<core.String> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); |
| 857 unittest.expect(o[0], unittest.equals('foo')); |
| 858 unittest.expect(o[1], unittest.equals('foo')); |
859 } | 859 } |
860 | 860 |
861 | 861 |
862 main() { | 862 main() { |
863 unittest.group("obj-schema-Account", () { | 863 unittest.group("obj-schema-Account", () { |
864 unittest.test("to-json--from-json", () { | 864 unittest.test("to-json--from-json", () { |
865 var o = buildAccount(); | 865 var o = buildAccount(); |
866 var od = new api.Account.fromJson(o.toJson()); | 866 var od = new api.Account.fromJson(o.toJson()); |
867 checkAccount(od); | 867 checkAccount(od); |
868 }); | 868 }); |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 | 1773 |
1774 unittest.group("resource-ReportsResourceApi", () { | 1774 unittest.group("resource-ReportsResourceApi", () { |
1775 unittest.test("method--generate", () { | 1775 unittest.test("method--generate", () { |
1776 // TODO: Implement tests for media upload; | 1776 // TODO: Implement tests for media upload; |
1777 // TODO: Implement tests for media download; | 1777 // TODO: Implement tests for media download; |
1778 | 1778 |
1779 var mock = new HttpServerMock(); | 1779 var mock = new HttpServerMock(); |
1780 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; | 1780 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; |
1781 var arg_startDate = "foo"; | 1781 var arg_startDate = "foo"; |
1782 var arg_endDate = "foo"; | 1782 var arg_endDate = "foo"; |
1783 var arg_dimension = buildUnnamed217(); | 1783 var arg_dimension = buildUnnamed219(); |
1784 var arg_filter = buildUnnamed218(); | 1784 var arg_filter = buildUnnamed220(); |
1785 var arg_locale = "foo"; | 1785 var arg_locale = "foo"; |
1786 var arg_maxResults = 42; | 1786 var arg_maxResults = 42; |
1787 var arg_metric = buildUnnamed219(); | 1787 var arg_metric = buildUnnamed221(); |
1788 var arg_sort = buildUnnamed220(); | 1788 var arg_sort = buildUnnamed222(); |
1789 var arg_startIndex = 42; | 1789 var arg_startIndex = 42; |
1790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1791 var path = (req.url).path; | 1791 var path = (req.url).path; |
1792 var pathOffset = 0; | 1792 var pathOffset = 0; |
1793 var index; | 1793 var index; |
1794 var subPart; | 1794 var subPart; |
1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1796 pathOffset += 1; | 1796 pathOffset += 1; |
1797 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); | 1797 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); |
1798 pathOffset += 22; | 1798 pathOffset += 22; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { | 2004 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { |
2005 checkUrlChannels(response); | 2005 checkUrlChannels(response); |
2006 }))); | 2006 }))); |
2007 }); | 2007 }); |
2008 | 2008 |
2009 }); | 2009 }); |
2010 | 2010 |
2011 | 2011 |
2012 } | 2012 } |
2013 | 2013 |
OLD | NEW |