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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (buildCounterAdClient < 3) { | 59 if (buildCounterAdClient < 3) { |
60 unittest.expect(o.arcOptIn, unittest.isTrue); | 60 unittest.expect(o.arcOptIn, unittest.isTrue); |
61 unittest.expect(o.id, unittest.equals('foo')); | 61 unittest.expect(o.id, unittest.equals('foo')); |
62 unittest.expect(o.kind, unittest.equals('foo')); | 62 unittest.expect(o.kind, unittest.equals('foo')); |
63 unittest.expect(o.productCode, unittest.equals('foo')); | 63 unittest.expect(o.productCode, unittest.equals('foo')); |
64 unittest.expect(o.supportsReporting, unittest.isTrue); | 64 unittest.expect(o.supportsReporting, unittest.isTrue); |
65 } | 65 } |
66 buildCounterAdClient--; | 66 buildCounterAdClient--; |
67 } | 67 } |
68 | 68 |
69 buildUnnamed280() { | 69 buildUnnamed241() { |
70 var o = new core.List<api.AdClient>(); | 70 var o = new core.List<api.AdClient>(); |
71 o.add(buildAdClient()); | 71 o.add(buildAdClient()); |
72 o.add(buildAdClient()); | 72 o.add(buildAdClient()); |
73 return o; | 73 return o; |
74 } | 74 } |
75 | 75 |
76 checkUnnamed280(core.List<api.AdClient> o) { | 76 checkUnnamed241(core.List<api.AdClient> o) { |
77 unittest.expect(o, unittest.hasLength(2)); | 77 unittest.expect(o, unittest.hasLength(2)); |
78 checkAdClient(o[0]); | 78 checkAdClient(o[0]); |
79 checkAdClient(o[1]); | 79 checkAdClient(o[1]); |
80 } | 80 } |
81 | 81 |
82 core.int buildCounterAdClients = 0; | 82 core.int buildCounterAdClients = 0; |
83 buildAdClients() { | 83 buildAdClients() { |
84 var o = new api.AdClients(); | 84 var o = new api.AdClients(); |
85 buildCounterAdClients++; | 85 buildCounterAdClients++; |
86 if (buildCounterAdClients < 3) { | 86 if (buildCounterAdClients < 3) { |
87 o.etag = "foo"; | 87 o.etag = "foo"; |
88 o.items = buildUnnamed280(); | 88 o.items = buildUnnamed241(); |
89 o.kind = "foo"; | 89 o.kind = "foo"; |
90 o.nextPageToken = "foo"; | 90 o.nextPageToken = "foo"; |
91 } | 91 } |
92 buildCounterAdClients--; | 92 buildCounterAdClients--; |
93 return o; | 93 return o; |
94 } | 94 } |
95 | 95 |
96 checkAdClients(api.AdClients o) { | 96 checkAdClients(api.AdClients o) { |
97 buildCounterAdClients++; | 97 buildCounterAdClients++; |
98 if (buildCounterAdClients < 3) { | 98 if (buildCounterAdClients < 3) { |
99 unittest.expect(o.etag, unittest.equals('foo')); | 99 unittest.expect(o.etag, unittest.equals('foo')); |
100 checkUnnamed280(o.items); | 100 checkUnnamed241(o.items); |
101 unittest.expect(o.kind, unittest.equals('foo')); | 101 unittest.expect(o.kind, unittest.equals('foo')); |
102 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 102 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
103 } | 103 } |
104 buildCounterAdClients--; | 104 buildCounterAdClients--; |
105 } | 105 } |
106 | 106 |
107 core.int buildCounterAdUnit = 0; | 107 core.int buildCounterAdUnit = 0; |
108 buildAdUnit() { | 108 buildAdUnit() { |
109 var o = new api.AdUnit(); | 109 var o = new api.AdUnit(); |
110 buildCounterAdUnit++; | 110 buildCounterAdUnit++; |
(...skipping 13 matching lines...) Expand all Loading... |
124 if (buildCounterAdUnit < 3) { | 124 if (buildCounterAdUnit < 3) { |
125 unittest.expect(o.code, unittest.equals('foo')); | 125 unittest.expect(o.code, unittest.equals('foo')); |
126 unittest.expect(o.id, unittest.equals('foo')); | 126 unittest.expect(o.id, unittest.equals('foo')); |
127 unittest.expect(o.kind, unittest.equals('foo')); | 127 unittest.expect(o.kind, unittest.equals('foo')); |
128 unittest.expect(o.name, unittest.equals('foo')); | 128 unittest.expect(o.name, unittest.equals('foo')); |
129 unittest.expect(o.status, unittest.equals('foo')); | 129 unittest.expect(o.status, unittest.equals('foo')); |
130 } | 130 } |
131 buildCounterAdUnit--; | 131 buildCounterAdUnit--; |
132 } | 132 } |
133 | 133 |
134 buildUnnamed281() { | 134 buildUnnamed242() { |
135 var o = new core.List<api.AdUnit>(); | 135 var o = new core.List<api.AdUnit>(); |
136 o.add(buildAdUnit()); | 136 o.add(buildAdUnit()); |
137 o.add(buildAdUnit()); | 137 o.add(buildAdUnit()); |
138 return o; | 138 return o; |
139 } | 139 } |
140 | 140 |
141 checkUnnamed281(core.List<api.AdUnit> o) { | 141 checkUnnamed242(core.List<api.AdUnit> o) { |
142 unittest.expect(o, unittest.hasLength(2)); | 142 unittest.expect(o, unittest.hasLength(2)); |
143 checkAdUnit(o[0]); | 143 checkAdUnit(o[0]); |
144 checkAdUnit(o[1]); | 144 checkAdUnit(o[1]); |
145 } | 145 } |
146 | 146 |
147 core.int buildCounterAdUnits = 0; | 147 core.int buildCounterAdUnits = 0; |
148 buildAdUnits() { | 148 buildAdUnits() { |
149 var o = new api.AdUnits(); | 149 var o = new api.AdUnits(); |
150 buildCounterAdUnits++; | 150 buildCounterAdUnits++; |
151 if (buildCounterAdUnits < 3) { | 151 if (buildCounterAdUnits < 3) { |
152 o.etag = "foo"; | 152 o.etag = "foo"; |
153 o.items = buildUnnamed281(); | 153 o.items = buildUnnamed242(); |
154 o.kind = "foo"; | 154 o.kind = "foo"; |
155 o.nextPageToken = "foo"; | 155 o.nextPageToken = "foo"; |
156 } | 156 } |
157 buildCounterAdUnits--; | 157 buildCounterAdUnits--; |
158 return o; | 158 return o; |
159 } | 159 } |
160 | 160 |
161 checkAdUnits(api.AdUnits o) { | 161 checkAdUnits(api.AdUnits o) { |
162 buildCounterAdUnits++; | 162 buildCounterAdUnits++; |
163 if (buildCounterAdUnits < 3) { | 163 if (buildCounterAdUnits < 3) { |
164 unittest.expect(o.etag, unittest.equals('foo')); | 164 unittest.expect(o.etag, unittest.equals('foo')); |
165 checkUnnamed281(o.items); | 165 checkUnnamed242(o.items); |
166 unittest.expect(o.kind, unittest.equals('foo')); | 166 unittest.expect(o.kind, unittest.equals('foo')); |
167 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 167 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
168 } | 168 } |
169 buildCounterAdUnits--; | 169 buildCounterAdUnits--; |
170 } | 170 } |
171 | 171 |
172 core.int buildCounterAlert = 0; | 172 core.int buildCounterAlert = 0; |
173 buildAlert() { | 173 buildAlert() { |
174 var o = new api.Alert(); | 174 var o = new api.Alert(); |
175 buildCounterAlert++; | 175 buildCounterAlert++; |
(...skipping 13 matching lines...) Expand all Loading... |
189 if (buildCounterAlert < 3) { | 189 if (buildCounterAlert < 3) { |
190 unittest.expect(o.id, unittest.equals('foo')); | 190 unittest.expect(o.id, unittest.equals('foo')); |
191 unittest.expect(o.kind, unittest.equals('foo')); | 191 unittest.expect(o.kind, unittest.equals('foo')); |
192 unittest.expect(o.message, unittest.equals('foo')); | 192 unittest.expect(o.message, unittest.equals('foo')); |
193 unittest.expect(o.severity, unittest.equals('foo')); | 193 unittest.expect(o.severity, unittest.equals('foo')); |
194 unittest.expect(o.type, unittest.equals('foo')); | 194 unittest.expect(o.type, unittest.equals('foo')); |
195 } | 195 } |
196 buildCounterAlert--; | 196 buildCounterAlert--; |
197 } | 197 } |
198 | 198 |
199 buildUnnamed282() { | 199 buildUnnamed243() { |
200 var o = new core.List<api.Alert>(); | 200 var o = new core.List<api.Alert>(); |
201 o.add(buildAlert()); | 201 o.add(buildAlert()); |
202 o.add(buildAlert()); | 202 o.add(buildAlert()); |
203 return o; | 203 return o; |
204 } | 204 } |
205 | 205 |
206 checkUnnamed282(core.List<api.Alert> o) { | 206 checkUnnamed243(core.List<api.Alert> o) { |
207 unittest.expect(o, unittest.hasLength(2)); | 207 unittest.expect(o, unittest.hasLength(2)); |
208 checkAlert(o[0]); | 208 checkAlert(o[0]); |
209 checkAlert(o[1]); | 209 checkAlert(o[1]); |
210 } | 210 } |
211 | 211 |
212 core.int buildCounterAlerts = 0; | 212 core.int buildCounterAlerts = 0; |
213 buildAlerts() { | 213 buildAlerts() { |
214 var o = new api.Alerts(); | 214 var o = new api.Alerts(); |
215 buildCounterAlerts++; | 215 buildCounterAlerts++; |
216 if (buildCounterAlerts < 3) { | 216 if (buildCounterAlerts < 3) { |
217 o.items = buildUnnamed282(); | 217 o.items = buildUnnamed243(); |
218 o.kind = "foo"; | 218 o.kind = "foo"; |
219 } | 219 } |
220 buildCounterAlerts--; | 220 buildCounterAlerts--; |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkAlerts(api.Alerts o) { | 224 checkAlerts(api.Alerts o) { |
225 buildCounterAlerts++; | 225 buildCounterAlerts++; |
226 if (buildCounterAlerts < 3) { | 226 if (buildCounterAlerts < 3) { |
227 checkUnnamed282(o.items); | 227 checkUnnamed243(o.items); |
228 unittest.expect(o.kind, unittest.equals('foo')); | 228 unittest.expect(o.kind, unittest.equals('foo')); |
229 } | 229 } |
230 buildCounterAlerts--; | 230 buildCounterAlerts--; |
231 } | 231 } |
232 | 232 |
233 core.int buildCounterCustomChannelTargetingInfo = 0; | 233 core.int buildCounterCustomChannelTargetingInfo = 0; |
234 buildCustomChannelTargetingInfo() { | 234 buildCustomChannelTargetingInfo() { |
235 var o = new api.CustomChannelTargetingInfo(); | 235 var o = new api.CustomChannelTargetingInfo(); |
236 buildCounterCustomChannelTargetingInfo++; | 236 buildCounterCustomChannelTargetingInfo++; |
237 if (buildCounterCustomChannelTargetingInfo < 3) { | 237 if (buildCounterCustomChannelTargetingInfo < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 if (buildCounterCustomChannel < 3) { | 275 if (buildCounterCustomChannel < 3) { |
276 unittest.expect(o.code, unittest.equals('foo')); | 276 unittest.expect(o.code, unittest.equals('foo')); |
277 unittest.expect(o.id, unittest.equals('foo')); | 277 unittest.expect(o.id, unittest.equals('foo')); |
278 unittest.expect(o.kind, unittest.equals('foo')); | 278 unittest.expect(o.kind, unittest.equals('foo')); |
279 unittest.expect(o.name, unittest.equals('foo')); | 279 unittest.expect(o.name, unittest.equals('foo')); |
280 checkCustomChannelTargetingInfo(o.targetingInfo); | 280 checkCustomChannelTargetingInfo(o.targetingInfo); |
281 } | 281 } |
282 buildCounterCustomChannel--; | 282 buildCounterCustomChannel--; |
283 } | 283 } |
284 | 284 |
285 buildUnnamed283() { | 285 buildUnnamed244() { |
286 var o = new core.List<api.CustomChannel>(); | 286 var o = new core.List<api.CustomChannel>(); |
287 o.add(buildCustomChannel()); | 287 o.add(buildCustomChannel()); |
288 o.add(buildCustomChannel()); | 288 o.add(buildCustomChannel()); |
289 return o; | 289 return o; |
290 } | 290 } |
291 | 291 |
292 checkUnnamed283(core.List<api.CustomChannel> o) { | 292 checkUnnamed244(core.List<api.CustomChannel> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
294 checkCustomChannel(o[0]); | 294 checkCustomChannel(o[0]); |
295 checkCustomChannel(o[1]); | 295 checkCustomChannel(o[1]); |
296 } | 296 } |
297 | 297 |
298 core.int buildCounterCustomChannels = 0; | 298 core.int buildCounterCustomChannels = 0; |
299 buildCustomChannels() { | 299 buildCustomChannels() { |
300 var o = new api.CustomChannels(); | 300 var o = new api.CustomChannels(); |
301 buildCounterCustomChannels++; | 301 buildCounterCustomChannels++; |
302 if (buildCounterCustomChannels < 3) { | 302 if (buildCounterCustomChannels < 3) { |
303 o.etag = "foo"; | 303 o.etag = "foo"; |
304 o.items = buildUnnamed283(); | 304 o.items = buildUnnamed244(); |
305 o.kind = "foo"; | 305 o.kind = "foo"; |
306 o.nextPageToken = "foo"; | 306 o.nextPageToken = "foo"; |
307 } | 307 } |
308 buildCounterCustomChannels--; | 308 buildCounterCustomChannels--; |
309 return o; | 309 return o; |
310 } | 310 } |
311 | 311 |
312 checkCustomChannels(api.CustomChannels o) { | 312 checkCustomChannels(api.CustomChannels o) { |
313 buildCounterCustomChannels++; | 313 buildCounterCustomChannels++; |
314 if (buildCounterCustomChannels < 3) { | 314 if (buildCounterCustomChannels < 3) { |
315 unittest.expect(o.etag, unittest.equals('foo')); | 315 unittest.expect(o.etag, unittest.equals('foo')); |
316 checkUnnamed283(o.items); | 316 checkUnnamed244(o.items); |
317 unittest.expect(o.kind, unittest.equals('foo')); | 317 unittest.expect(o.kind, unittest.equals('foo')); |
318 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 318 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
319 } | 319 } |
320 buildCounterCustomChannels--; | 320 buildCounterCustomChannels--; |
321 } | 321 } |
322 | 322 |
323 buildUnnamed284() { | 323 buildUnnamed245() { |
324 var o = new core.List<api.ReportingMetadataEntry>(); | 324 var o = new core.List<api.ReportingMetadataEntry>(); |
325 o.add(buildReportingMetadataEntry()); | 325 o.add(buildReportingMetadataEntry()); |
326 o.add(buildReportingMetadataEntry()); | 326 o.add(buildReportingMetadataEntry()); |
327 return o; | 327 return o; |
328 } | 328 } |
329 | 329 |
330 checkUnnamed284(core.List<api.ReportingMetadataEntry> o) { | 330 checkUnnamed245(core.List<api.ReportingMetadataEntry> o) { |
331 unittest.expect(o, unittest.hasLength(2)); | 331 unittest.expect(o, unittest.hasLength(2)); |
332 checkReportingMetadataEntry(o[0]); | 332 checkReportingMetadataEntry(o[0]); |
333 checkReportingMetadataEntry(o[1]); | 333 checkReportingMetadataEntry(o[1]); |
334 } | 334 } |
335 | 335 |
336 core.int buildCounterMetadata = 0; | 336 core.int buildCounterMetadata = 0; |
337 buildMetadata() { | 337 buildMetadata() { |
338 var o = new api.Metadata(); | 338 var o = new api.Metadata(); |
339 buildCounterMetadata++; | 339 buildCounterMetadata++; |
340 if (buildCounterMetadata < 3) { | 340 if (buildCounterMetadata < 3) { |
341 o.items = buildUnnamed284(); | 341 o.items = buildUnnamed245(); |
342 o.kind = "foo"; | 342 o.kind = "foo"; |
343 } | 343 } |
344 buildCounterMetadata--; | 344 buildCounterMetadata--; |
345 return o; | 345 return o; |
346 } | 346 } |
347 | 347 |
348 checkMetadata(api.Metadata o) { | 348 checkMetadata(api.Metadata o) { |
349 buildCounterMetadata++; | 349 buildCounterMetadata++; |
350 if (buildCounterMetadata < 3) { | 350 if (buildCounterMetadata < 3) { |
351 checkUnnamed284(o.items); | 351 checkUnnamed245(o.items); |
352 unittest.expect(o.kind, unittest.equals('foo')); | 352 unittest.expect(o.kind, unittest.equals('foo')); |
353 } | 353 } |
354 buildCounterMetadata--; | 354 buildCounterMetadata--; |
355 } | 355 } |
356 | 356 |
357 core.int buildCounterPreferredDeal = 0; | 357 core.int buildCounterPreferredDeal = 0; |
358 buildPreferredDeal() { | 358 buildPreferredDeal() { |
359 var o = new api.PreferredDeal(); | 359 var o = new api.PreferredDeal(); |
360 buildCounterPreferredDeal++; | 360 buildCounterPreferredDeal++; |
361 if (buildCounterPreferredDeal < 3) { | 361 if (buildCounterPreferredDeal < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
380 unittest.expect(o.currencyCode, unittest.equals('foo')); | 380 unittest.expect(o.currencyCode, unittest.equals('foo')); |
381 unittest.expect(o.endTime, unittest.equals('foo')); | 381 unittest.expect(o.endTime, unittest.equals('foo')); |
382 unittest.expect(o.fixedCpm, unittest.equals('foo')); | 382 unittest.expect(o.fixedCpm, unittest.equals('foo')); |
383 unittest.expect(o.id, unittest.equals('foo')); | 383 unittest.expect(o.id, unittest.equals('foo')); |
384 unittest.expect(o.kind, unittest.equals('foo')); | 384 unittest.expect(o.kind, unittest.equals('foo')); |
385 unittest.expect(o.startTime, unittest.equals('foo')); | 385 unittest.expect(o.startTime, unittest.equals('foo')); |
386 } | 386 } |
387 buildCounterPreferredDeal--; | 387 buildCounterPreferredDeal--; |
388 } | 388 } |
389 | 389 |
390 buildUnnamed285() { | 390 buildUnnamed246() { |
391 var o = new core.List<api.PreferredDeal>(); | 391 var o = new core.List<api.PreferredDeal>(); |
392 o.add(buildPreferredDeal()); | 392 o.add(buildPreferredDeal()); |
393 o.add(buildPreferredDeal()); | 393 o.add(buildPreferredDeal()); |
394 return o; | 394 return o; |
395 } | 395 } |
396 | 396 |
397 checkUnnamed285(core.List<api.PreferredDeal> o) { | 397 checkUnnamed246(core.List<api.PreferredDeal> o) { |
398 unittest.expect(o, unittest.hasLength(2)); | 398 unittest.expect(o, unittest.hasLength(2)); |
399 checkPreferredDeal(o[0]); | 399 checkPreferredDeal(o[0]); |
400 checkPreferredDeal(o[1]); | 400 checkPreferredDeal(o[1]); |
401 } | 401 } |
402 | 402 |
403 core.int buildCounterPreferredDeals = 0; | 403 core.int buildCounterPreferredDeals = 0; |
404 buildPreferredDeals() { | 404 buildPreferredDeals() { |
405 var o = new api.PreferredDeals(); | 405 var o = new api.PreferredDeals(); |
406 buildCounterPreferredDeals++; | 406 buildCounterPreferredDeals++; |
407 if (buildCounterPreferredDeals < 3) { | 407 if (buildCounterPreferredDeals < 3) { |
408 o.items = buildUnnamed285(); | 408 o.items = buildUnnamed246(); |
409 o.kind = "foo"; | 409 o.kind = "foo"; |
410 } | 410 } |
411 buildCounterPreferredDeals--; | 411 buildCounterPreferredDeals--; |
412 return o; | 412 return o; |
413 } | 413 } |
414 | 414 |
415 checkPreferredDeals(api.PreferredDeals o) { | 415 checkPreferredDeals(api.PreferredDeals o) { |
416 buildCounterPreferredDeals++; | 416 buildCounterPreferredDeals++; |
417 if (buildCounterPreferredDeals < 3) { | 417 if (buildCounterPreferredDeals < 3) { |
418 checkUnnamed285(o.items); | 418 checkUnnamed246(o.items); |
419 unittest.expect(o.kind, unittest.equals('foo')); | 419 unittest.expect(o.kind, unittest.equals('foo')); |
420 } | 420 } |
421 buildCounterPreferredDeals--; | 421 buildCounterPreferredDeals--; |
422 } | 422 } |
423 | 423 |
424 buildUnnamed286() { | 424 buildUnnamed247() { |
425 var o = new core.List<core.String>(); | 425 var o = new core.List<core.String>(); |
426 o.add("foo"); | 426 o.add("foo"); |
427 o.add("foo"); | 427 o.add("foo"); |
428 return o; | 428 return o; |
429 } | 429 } |
430 | 430 |
431 checkUnnamed286(core.List<core.String> o) { | 431 checkUnnamed247(core.List<core.String> o) { |
432 unittest.expect(o, unittest.hasLength(2)); | 432 unittest.expect(o, unittest.hasLength(2)); |
433 unittest.expect(o[0], unittest.equals('foo')); | 433 unittest.expect(o[0], unittest.equals('foo')); |
434 unittest.expect(o[1], unittest.equals('foo')); | 434 unittest.expect(o[1], unittest.equals('foo')); |
435 } | 435 } |
436 | 436 |
437 core.int buildCounterReportHeaders = 0; | 437 core.int buildCounterReportHeaders = 0; |
438 buildReportHeaders() { | 438 buildReportHeaders() { |
439 var o = new api.ReportHeaders(); | 439 var o = new api.ReportHeaders(); |
440 buildCounterReportHeaders++; | 440 buildCounterReportHeaders++; |
441 if (buildCounterReportHeaders < 3) { | 441 if (buildCounterReportHeaders < 3) { |
442 o.currency = "foo"; | 442 o.currency = "foo"; |
443 o.name = "foo"; | 443 o.name = "foo"; |
444 o.type = "foo"; | 444 o.type = "foo"; |
445 } | 445 } |
446 buildCounterReportHeaders--; | 446 buildCounterReportHeaders--; |
447 return o; | 447 return o; |
448 } | 448 } |
449 | 449 |
450 checkReportHeaders(api.ReportHeaders o) { | 450 checkReportHeaders(api.ReportHeaders o) { |
451 buildCounterReportHeaders++; | 451 buildCounterReportHeaders++; |
452 if (buildCounterReportHeaders < 3) { | 452 if (buildCounterReportHeaders < 3) { |
453 unittest.expect(o.currency, unittest.equals('foo')); | 453 unittest.expect(o.currency, unittest.equals('foo')); |
454 unittest.expect(o.name, unittest.equals('foo')); | 454 unittest.expect(o.name, unittest.equals('foo')); |
455 unittest.expect(o.type, unittest.equals('foo')); | 455 unittest.expect(o.type, unittest.equals('foo')); |
456 } | 456 } |
457 buildCounterReportHeaders--; | 457 buildCounterReportHeaders--; |
458 } | 458 } |
459 | 459 |
460 buildUnnamed287() { | 460 buildUnnamed248() { |
461 var o = new core.List<api.ReportHeaders>(); | 461 var o = new core.List<api.ReportHeaders>(); |
462 o.add(buildReportHeaders()); | 462 o.add(buildReportHeaders()); |
463 o.add(buildReportHeaders()); | 463 o.add(buildReportHeaders()); |
464 return o; | 464 return o; |
465 } | 465 } |
466 | 466 |
467 checkUnnamed287(core.List<api.ReportHeaders> o) { | 467 checkUnnamed248(core.List<api.ReportHeaders> o) { |
468 unittest.expect(o, unittest.hasLength(2)); | 468 unittest.expect(o, unittest.hasLength(2)); |
469 checkReportHeaders(o[0]); | 469 checkReportHeaders(o[0]); |
470 checkReportHeaders(o[1]); | 470 checkReportHeaders(o[1]); |
471 } | 471 } |
472 | 472 |
473 buildUnnamed288() { | 473 buildUnnamed249() { |
474 var o = new core.List<core.String>(); | 474 var o = new core.List<core.String>(); |
475 o.add("foo"); | 475 o.add("foo"); |
476 o.add("foo"); | 476 o.add("foo"); |
477 return o; | 477 return o; |
478 } | 478 } |
479 | 479 |
480 checkUnnamed288(core.List<core.String> o) { | 480 checkUnnamed249(core.List<core.String> o) { |
481 unittest.expect(o, unittest.hasLength(2)); | 481 unittest.expect(o, unittest.hasLength(2)); |
482 unittest.expect(o[0], unittest.equals('foo')); | 482 unittest.expect(o[0], unittest.equals('foo')); |
483 unittest.expect(o[1], unittest.equals('foo')); | 483 unittest.expect(o[1], unittest.equals('foo')); |
484 } | 484 } |
485 | 485 |
486 buildUnnamed289() { | 486 buildUnnamed250() { |
487 var o = new core.List<core.List<core.String>>(); | 487 var o = new core.List<core.List<core.String>>(); |
488 o.add(buildUnnamed288()); | 488 o.add(buildUnnamed249()); |
489 o.add(buildUnnamed288()); | 489 o.add(buildUnnamed249()); |
490 return o; | 490 return o; |
491 } | 491 } |
492 | 492 |
493 checkUnnamed289(core.List<core.List<core.String>> o) { | 493 checkUnnamed250(core.List<core.List<core.String>> o) { |
494 unittest.expect(o, unittest.hasLength(2)); | 494 unittest.expect(o, unittest.hasLength(2)); |
495 checkUnnamed288(o[0]); | 495 checkUnnamed249(o[0]); |
496 checkUnnamed288(o[1]); | 496 checkUnnamed249(o[1]); |
497 } | 497 } |
498 | 498 |
499 buildUnnamed290() { | 499 buildUnnamed251() { |
500 var o = new core.List<core.String>(); | 500 var o = new core.List<core.String>(); |
501 o.add("foo"); | 501 o.add("foo"); |
502 o.add("foo"); | 502 o.add("foo"); |
503 return o; | 503 return o; |
504 } | 504 } |
505 | 505 |
506 checkUnnamed290(core.List<core.String> o) { | 506 checkUnnamed251(core.List<core.String> o) { |
507 unittest.expect(o, unittest.hasLength(2)); | 507 unittest.expect(o, unittest.hasLength(2)); |
508 unittest.expect(o[0], unittest.equals('foo')); | 508 unittest.expect(o[0], unittest.equals('foo')); |
509 unittest.expect(o[1], unittest.equals('foo')); | 509 unittest.expect(o[1], unittest.equals('foo')); |
510 } | 510 } |
511 | 511 |
512 buildUnnamed291() { | 512 buildUnnamed252() { |
513 var o = new core.List<core.String>(); | 513 var o = new core.List<core.String>(); |
514 o.add("foo"); | 514 o.add("foo"); |
515 o.add("foo"); | 515 o.add("foo"); |
516 return o; | 516 return o; |
517 } | 517 } |
518 | 518 |
519 checkUnnamed291(core.List<core.String> o) { | 519 checkUnnamed252(core.List<core.String> o) { |
520 unittest.expect(o, unittest.hasLength(2)); | 520 unittest.expect(o, unittest.hasLength(2)); |
521 unittest.expect(o[0], unittest.equals('foo')); | 521 unittest.expect(o[0], unittest.equals('foo')); |
522 unittest.expect(o[1], unittest.equals('foo')); | 522 unittest.expect(o[1], unittest.equals('foo')); |
523 } | 523 } |
524 | 524 |
525 core.int buildCounterReport = 0; | 525 core.int buildCounterReport = 0; |
526 buildReport() { | 526 buildReport() { |
527 var o = new api.Report(); | 527 var o = new api.Report(); |
528 buildCounterReport++; | 528 buildCounterReport++; |
529 if (buildCounterReport < 3) { | 529 if (buildCounterReport < 3) { |
530 o.averages = buildUnnamed286(); | 530 o.averages = buildUnnamed247(); |
531 o.headers = buildUnnamed287(); | 531 o.headers = buildUnnamed248(); |
532 o.kind = "foo"; | 532 o.kind = "foo"; |
533 o.rows = buildUnnamed289(); | 533 o.rows = buildUnnamed250(); |
534 o.totalMatchedRows = "foo"; | 534 o.totalMatchedRows = "foo"; |
535 o.totals = buildUnnamed290(); | 535 o.totals = buildUnnamed251(); |
536 o.warnings = buildUnnamed291(); | 536 o.warnings = buildUnnamed252(); |
537 } | 537 } |
538 buildCounterReport--; | 538 buildCounterReport--; |
539 return o; | 539 return o; |
540 } | 540 } |
541 | 541 |
542 checkReport(api.Report o) { | 542 checkReport(api.Report o) { |
543 buildCounterReport++; | 543 buildCounterReport++; |
544 if (buildCounterReport < 3) { | 544 if (buildCounterReport < 3) { |
545 checkUnnamed286(o.averages); | 545 checkUnnamed247(o.averages); |
546 checkUnnamed287(o.headers); | 546 checkUnnamed248(o.headers); |
547 unittest.expect(o.kind, unittest.equals('foo')); | 547 unittest.expect(o.kind, unittest.equals('foo')); |
548 checkUnnamed289(o.rows); | 548 checkUnnamed250(o.rows); |
549 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 549 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
550 checkUnnamed290(o.totals); | 550 checkUnnamed251(o.totals); |
551 checkUnnamed291(o.warnings); | 551 checkUnnamed252(o.warnings); |
552 } | 552 } |
553 buildCounterReport--; | 553 buildCounterReport--; |
554 } | 554 } |
555 | 555 |
556 buildUnnamed292() { | 556 buildUnnamed253() { |
557 var o = new core.List<core.String>(); | 557 var o = new core.List<core.String>(); |
558 o.add("foo"); | 558 o.add("foo"); |
559 o.add("foo"); | 559 o.add("foo"); |
560 return o; | 560 return o; |
561 } | 561 } |
562 | 562 |
563 checkUnnamed292(core.List<core.String> o) { | 563 checkUnnamed253(core.List<core.String> o) { |
564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
565 unittest.expect(o[0], unittest.equals('foo')); | 565 unittest.expect(o[0], unittest.equals('foo')); |
566 unittest.expect(o[1], unittest.equals('foo')); | 566 unittest.expect(o[1], unittest.equals('foo')); |
567 } | 567 } |
568 | 568 |
569 buildUnnamed293() { | 569 buildUnnamed254() { |
570 var o = new core.List<core.String>(); | 570 var o = new core.List<core.String>(); |
571 o.add("foo"); | 571 o.add("foo"); |
572 o.add("foo"); | 572 o.add("foo"); |
573 return o; | 573 return o; |
574 } | 574 } |
575 | 575 |
576 checkUnnamed293(core.List<core.String> o) { | 576 checkUnnamed254(core.List<core.String> o) { |
577 unittest.expect(o, unittest.hasLength(2)); | 577 unittest.expect(o, unittest.hasLength(2)); |
578 unittest.expect(o[0], unittest.equals('foo')); | 578 unittest.expect(o[0], unittest.equals('foo')); |
579 unittest.expect(o[1], unittest.equals('foo')); | 579 unittest.expect(o[1], unittest.equals('foo')); |
580 } | 580 } |
581 | 581 |
582 buildUnnamed294() { | 582 buildUnnamed255() { |
583 var o = new core.List<core.String>(); | 583 var o = new core.List<core.String>(); |
584 o.add("foo"); | 584 o.add("foo"); |
585 o.add("foo"); | 585 o.add("foo"); |
586 return o; | 586 return o; |
587 } | 587 } |
588 | 588 |
589 checkUnnamed294(core.List<core.String> o) { | 589 checkUnnamed255(core.List<core.String> o) { |
590 unittest.expect(o, unittest.hasLength(2)); | 590 unittest.expect(o, unittest.hasLength(2)); |
591 unittest.expect(o[0], unittest.equals('foo')); | 591 unittest.expect(o[0], unittest.equals('foo')); |
592 unittest.expect(o[1], unittest.equals('foo')); | 592 unittest.expect(o[1], unittest.equals('foo')); |
593 } | 593 } |
594 | 594 |
595 buildUnnamed295() { | 595 buildUnnamed256() { |
596 var o = new core.List<core.String>(); | 596 var o = new core.List<core.String>(); |
597 o.add("foo"); | 597 o.add("foo"); |
598 o.add("foo"); | 598 o.add("foo"); |
599 return o; | 599 return o; |
600 } | 600 } |
601 | 601 |
602 checkUnnamed295(core.List<core.String> o) { | 602 checkUnnamed256(core.List<core.String> o) { |
603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
604 unittest.expect(o[0], unittest.equals('foo')); | 604 unittest.expect(o[0], unittest.equals('foo')); |
605 unittest.expect(o[1], unittest.equals('foo')); | 605 unittest.expect(o[1], unittest.equals('foo')); |
606 } | 606 } |
607 | 607 |
608 buildUnnamed296() { | 608 buildUnnamed257() { |
609 var o = new core.List<core.String>(); | 609 var o = new core.List<core.String>(); |
610 o.add("foo"); | 610 o.add("foo"); |
611 o.add("foo"); | 611 o.add("foo"); |
612 return o; | 612 return o; |
613 } | 613 } |
614 | 614 |
615 checkUnnamed296(core.List<core.String> o) { | 615 checkUnnamed257(core.List<core.String> o) { |
616 unittest.expect(o, unittest.hasLength(2)); | 616 unittest.expect(o, unittest.hasLength(2)); |
617 unittest.expect(o[0], unittest.equals('foo')); | 617 unittest.expect(o[0], unittest.equals('foo')); |
618 unittest.expect(o[1], unittest.equals('foo')); | 618 unittest.expect(o[1], unittest.equals('foo')); |
619 } | 619 } |
620 | 620 |
621 core.int buildCounterReportingMetadataEntry = 0; | 621 core.int buildCounterReportingMetadataEntry = 0; |
622 buildReportingMetadataEntry() { | 622 buildReportingMetadataEntry() { |
623 var o = new api.ReportingMetadataEntry(); | 623 var o = new api.ReportingMetadataEntry(); |
624 buildCounterReportingMetadataEntry++; | 624 buildCounterReportingMetadataEntry++; |
625 if (buildCounterReportingMetadataEntry < 3) { | 625 if (buildCounterReportingMetadataEntry < 3) { |
626 o.compatibleDimensions = buildUnnamed292(); | 626 o.compatibleDimensions = buildUnnamed253(); |
627 o.compatibleMetrics = buildUnnamed293(); | 627 o.compatibleMetrics = buildUnnamed254(); |
628 o.id = "foo"; | 628 o.id = "foo"; |
629 o.kind = "foo"; | 629 o.kind = "foo"; |
630 o.requiredDimensions = buildUnnamed294(); | 630 o.requiredDimensions = buildUnnamed255(); |
631 o.requiredMetrics = buildUnnamed295(); | 631 o.requiredMetrics = buildUnnamed256(); |
632 o.supportedProducts = buildUnnamed296(); | 632 o.supportedProducts = buildUnnamed257(); |
633 } | 633 } |
634 buildCounterReportingMetadataEntry--; | 634 buildCounterReportingMetadataEntry--; |
635 return o; | 635 return o; |
636 } | 636 } |
637 | 637 |
638 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 638 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
639 buildCounterReportingMetadataEntry++; | 639 buildCounterReportingMetadataEntry++; |
640 if (buildCounterReportingMetadataEntry < 3) { | 640 if (buildCounterReportingMetadataEntry < 3) { |
641 checkUnnamed292(o.compatibleDimensions); | 641 checkUnnamed253(o.compatibleDimensions); |
642 checkUnnamed293(o.compatibleMetrics); | 642 checkUnnamed254(o.compatibleMetrics); |
643 unittest.expect(o.id, unittest.equals('foo')); | 643 unittest.expect(o.id, unittest.equals('foo')); |
644 unittest.expect(o.kind, unittest.equals('foo')); | 644 unittest.expect(o.kind, unittest.equals('foo')); |
645 checkUnnamed294(o.requiredDimensions); | 645 checkUnnamed255(o.requiredDimensions); |
646 checkUnnamed295(o.requiredMetrics); | 646 checkUnnamed256(o.requiredMetrics); |
647 checkUnnamed296(o.supportedProducts); | 647 checkUnnamed257(o.supportedProducts); |
648 } | 648 } |
649 buildCounterReportingMetadataEntry--; | 649 buildCounterReportingMetadataEntry--; |
650 } | 650 } |
651 | 651 |
652 core.int buildCounterSavedReport = 0; | 652 core.int buildCounterSavedReport = 0; |
653 buildSavedReport() { | 653 buildSavedReport() { |
654 var o = new api.SavedReport(); | 654 var o = new api.SavedReport(); |
655 buildCounterSavedReport++; | 655 buildCounterSavedReport++; |
656 if (buildCounterSavedReport < 3) { | 656 if (buildCounterSavedReport < 3) { |
657 o.id = "foo"; | 657 o.id = "foo"; |
658 o.kind = "foo"; | 658 o.kind = "foo"; |
659 o.name = "foo"; | 659 o.name = "foo"; |
660 } | 660 } |
661 buildCounterSavedReport--; | 661 buildCounterSavedReport--; |
662 return o; | 662 return o; |
663 } | 663 } |
664 | 664 |
665 checkSavedReport(api.SavedReport o) { | 665 checkSavedReport(api.SavedReport o) { |
666 buildCounterSavedReport++; | 666 buildCounterSavedReport++; |
667 if (buildCounterSavedReport < 3) { | 667 if (buildCounterSavedReport < 3) { |
668 unittest.expect(o.id, unittest.equals('foo')); | 668 unittest.expect(o.id, unittest.equals('foo')); |
669 unittest.expect(o.kind, unittest.equals('foo')); | 669 unittest.expect(o.kind, unittest.equals('foo')); |
670 unittest.expect(o.name, unittest.equals('foo')); | 670 unittest.expect(o.name, unittest.equals('foo')); |
671 } | 671 } |
672 buildCounterSavedReport--; | 672 buildCounterSavedReport--; |
673 } | 673 } |
674 | 674 |
675 buildUnnamed297() { | 675 buildUnnamed258() { |
676 var o = new core.List<api.SavedReport>(); | 676 var o = new core.List<api.SavedReport>(); |
677 o.add(buildSavedReport()); | 677 o.add(buildSavedReport()); |
678 o.add(buildSavedReport()); | 678 o.add(buildSavedReport()); |
679 return o; | 679 return o; |
680 } | 680 } |
681 | 681 |
682 checkUnnamed297(core.List<api.SavedReport> o) { | 682 checkUnnamed258(core.List<api.SavedReport> o) { |
683 unittest.expect(o, unittest.hasLength(2)); | 683 unittest.expect(o, unittest.hasLength(2)); |
684 checkSavedReport(o[0]); | 684 checkSavedReport(o[0]); |
685 checkSavedReport(o[1]); | 685 checkSavedReport(o[1]); |
686 } | 686 } |
687 | 687 |
688 core.int buildCounterSavedReports = 0; | 688 core.int buildCounterSavedReports = 0; |
689 buildSavedReports() { | 689 buildSavedReports() { |
690 var o = new api.SavedReports(); | 690 var o = new api.SavedReports(); |
691 buildCounterSavedReports++; | 691 buildCounterSavedReports++; |
692 if (buildCounterSavedReports < 3) { | 692 if (buildCounterSavedReports < 3) { |
693 o.etag = "foo"; | 693 o.etag = "foo"; |
694 o.items = buildUnnamed297(); | 694 o.items = buildUnnamed258(); |
695 o.kind = "foo"; | 695 o.kind = "foo"; |
696 o.nextPageToken = "foo"; | 696 o.nextPageToken = "foo"; |
697 } | 697 } |
698 buildCounterSavedReports--; | 698 buildCounterSavedReports--; |
699 return o; | 699 return o; |
700 } | 700 } |
701 | 701 |
702 checkSavedReports(api.SavedReports o) { | 702 checkSavedReports(api.SavedReports o) { |
703 buildCounterSavedReports++; | 703 buildCounterSavedReports++; |
704 if (buildCounterSavedReports < 3) { | 704 if (buildCounterSavedReports < 3) { |
705 unittest.expect(o.etag, unittest.equals('foo')); | 705 unittest.expect(o.etag, unittest.equals('foo')); |
706 checkUnnamed297(o.items); | 706 checkUnnamed258(o.items); |
707 unittest.expect(o.kind, unittest.equals('foo')); | 707 unittest.expect(o.kind, unittest.equals('foo')); |
708 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 708 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
709 } | 709 } |
710 buildCounterSavedReports--; | 710 buildCounterSavedReports--; |
711 } | 711 } |
712 | 712 |
713 core.int buildCounterUrlChannel = 0; | 713 core.int buildCounterUrlChannel = 0; |
714 buildUrlChannel() { | 714 buildUrlChannel() { |
715 var o = new api.UrlChannel(); | 715 var o = new api.UrlChannel(); |
716 buildCounterUrlChannel++; | 716 buildCounterUrlChannel++; |
717 if (buildCounterUrlChannel < 3) { | 717 if (buildCounterUrlChannel < 3) { |
718 o.id = "foo"; | 718 o.id = "foo"; |
719 o.kind = "foo"; | 719 o.kind = "foo"; |
720 o.urlPattern = "foo"; | 720 o.urlPattern = "foo"; |
721 } | 721 } |
722 buildCounterUrlChannel--; | 722 buildCounterUrlChannel--; |
723 return o; | 723 return o; |
724 } | 724 } |
725 | 725 |
726 checkUrlChannel(api.UrlChannel o) { | 726 checkUrlChannel(api.UrlChannel o) { |
727 buildCounterUrlChannel++; | 727 buildCounterUrlChannel++; |
728 if (buildCounterUrlChannel < 3) { | 728 if (buildCounterUrlChannel < 3) { |
729 unittest.expect(o.id, unittest.equals('foo')); | 729 unittest.expect(o.id, unittest.equals('foo')); |
730 unittest.expect(o.kind, unittest.equals('foo')); | 730 unittest.expect(o.kind, unittest.equals('foo')); |
731 unittest.expect(o.urlPattern, unittest.equals('foo')); | 731 unittest.expect(o.urlPattern, unittest.equals('foo')); |
732 } | 732 } |
733 buildCounterUrlChannel--; | 733 buildCounterUrlChannel--; |
734 } | 734 } |
735 | 735 |
736 buildUnnamed298() { | 736 buildUnnamed259() { |
737 var o = new core.List<api.UrlChannel>(); | 737 var o = new core.List<api.UrlChannel>(); |
738 o.add(buildUrlChannel()); | 738 o.add(buildUrlChannel()); |
739 o.add(buildUrlChannel()); | 739 o.add(buildUrlChannel()); |
740 return o; | 740 return o; |
741 } | 741 } |
742 | 742 |
743 checkUnnamed298(core.List<api.UrlChannel> o) { | 743 checkUnnamed259(core.List<api.UrlChannel> o) { |
744 unittest.expect(o, unittest.hasLength(2)); | 744 unittest.expect(o, unittest.hasLength(2)); |
745 checkUrlChannel(o[0]); | 745 checkUrlChannel(o[0]); |
746 checkUrlChannel(o[1]); | 746 checkUrlChannel(o[1]); |
747 } | 747 } |
748 | 748 |
749 core.int buildCounterUrlChannels = 0; | 749 core.int buildCounterUrlChannels = 0; |
750 buildUrlChannels() { | 750 buildUrlChannels() { |
751 var o = new api.UrlChannels(); | 751 var o = new api.UrlChannels(); |
752 buildCounterUrlChannels++; | 752 buildCounterUrlChannels++; |
753 if (buildCounterUrlChannels < 3) { | 753 if (buildCounterUrlChannels < 3) { |
754 o.etag = "foo"; | 754 o.etag = "foo"; |
755 o.items = buildUnnamed298(); | 755 o.items = buildUnnamed259(); |
756 o.kind = "foo"; | 756 o.kind = "foo"; |
757 o.nextPageToken = "foo"; | 757 o.nextPageToken = "foo"; |
758 } | 758 } |
759 buildCounterUrlChannels--; | 759 buildCounterUrlChannels--; |
760 return o; | 760 return o; |
761 } | 761 } |
762 | 762 |
763 checkUrlChannels(api.UrlChannels o) { | 763 checkUrlChannels(api.UrlChannels o) { |
764 buildCounterUrlChannels++; | 764 buildCounterUrlChannels++; |
765 if (buildCounterUrlChannels < 3) { | 765 if (buildCounterUrlChannels < 3) { |
766 unittest.expect(o.etag, unittest.equals('foo')); | 766 unittest.expect(o.etag, unittest.equals('foo')); |
767 checkUnnamed298(o.items); | 767 checkUnnamed259(o.items); |
768 unittest.expect(o.kind, unittest.equals('foo')); | 768 unittest.expect(o.kind, unittest.equals('foo')); |
769 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 769 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
770 } | 770 } |
771 buildCounterUrlChannels--; | 771 buildCounterUrlChannels--; |
772 } | 772 } |
773 | 773 |
774 buildUnnamed299() { | 774 buildUnnamed260() { |
775 var o = new core.List<core.String>(); | 775 var o = new core.List<core.String>(); |
776 o.add("foo"); | 776 o.add("foo"); |
777 o.add("foo"); | 777 o.add("foo"); |
778 return o; | 778 return o; |
779 } | 779 } |
780 | 780 |
781 checkUnnamed299(core.List<core.String> o) { | 781 checkUnnamed260(core.List<core.String> o) { |
782 unittest.expect(o, unittest.hasLength(2)); | 782 unittest.expect(o, unittest.hasLength(2)); |
783 unittest.expect(o[0], unittest.equals('foo')); | 783 unittest.expect(o[0], unittest.equals('foo')); |
784 unittest.expect(o[1], unittest.equals('foo')); | 784 unittest.expect(o[1], unittest.equals('foo')); |
785 } | 785 } |
786 | 786 |
787 buildUnnamed300() { | 787 buildUnnamed261() { |
788 var o = new core.List<core.String>(); | 788 var o = new core.List<core.String>(); |
789 o.add("foo"); | 789 o.add("foo"); |
790 o.add("foo"); | 790 o.add("foo"); |
791 return o; | 791 return o; |
792 } | 792 } |
793 | 793 |
794 checkUnnamed300(core.List<core.String> o) { | 794 checkUnnamed261(core.List<core.String> o) { |
795 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
796 unittest.expect(o[0], unittest.equals('foo')); | 796 unittest.expect(o[0], unittest.equals('foo')); |
797 unittest.expect(o[1], unittest.equals('foo')); | 797 unittest.expect(o[1], unittest.equals('foo')); |
798 } | 798 } |
799 | 799 |
800 buildUnnamed301() { | 800 buildUnnamed262() { |
801 var o = new core.List<core.String>(); | 801 var o = new core.List<core.String>(); |
802 o.add("foo"); | 802 o.add("foo"); |
803 o.add("foo"); | 803 o.add("foo"); |
804 return o; | 804 return o; |
805 } | 805 } |
806 | 806 |
807 checkUnnamed301(core.List<core.String> o) { | 807 checkUnnamed262(core.List<core.String> o) { |
808 unittest.expect(o, unittest.hasLength(2)); | 808 unittest.expect(o, unittest.hasLength(2)); |
809 unittest.expect(o[0], unittest.equals('foo')); | 809 unittest.expect(o[0], unittest.equals('foo')); |
810 unittest.expect(o[1], unittest.equals('foo')); | 810 unittest.expect(o[1], unittest.equals('foo')); |
811 } | 811 } |
812 | 812 |
813 buildUnnamed302() { | 813 buildUnnamed263() { |
814 var o = new core.List<core.String>(); | 814 var o = new core.List<core.String>(); |
815 o.add("foo"); | 815 o.add("foo"); |
816 o.add("foo"); | 816 o.add("foo"); |
817 return o; | 817 return o; |
818 } | 818 } |
819 | 819 |
820 checkUnnamed302(core.List<core.String> o) { | 820 checkUnnamed263(core.List<core.String> o) { |
821 unittest.expect(o, unittest.hasLength(2)); | 821 unittest.expect(o, unittest.hasLength(2)); |
822 unittest.expect(o[0], unittest.equals('foo')); | 822 unittest.expect(o[0], unittest.equals('foo')); |
823 unittest.expect(o[1], unittest.equals('foo')); | 823 unittest.expect(o[1], unittest.equals('foo')); |
824 } | 824 } |
825 | 825 |
826 | 826 |
827 main() { | 827 main() { |
828 unittest.group("obj-schema-Account", () { | 828 unittest.group("obj-schema-Account", () { |
829 unittest.test("to-json--from-json", () { | 829 unittest.test("to-json--from-json", () { |
830 var o = buildAccount(); | 830 var o = buildAccount(); |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 | 1738 |
1739 unittest.group("resource-ReportsResourceApi", () { | 1739 unittest.group("resource-ReportsResourceApi", () { |
1740 unittest.test("method--generate", () { | 1740 unittest.test("method--generate", () { |
1741 // TODO: Implement tests for media upload; | 1741 // TODO: Implement tests for media upload; |
1742 // TODO: Implement tests for media download; | 1742 // TODO: Implement tests for media download; |
1743 | 1743 |
1744 var mock = new common_test.HttpServerMock(); | 1744 var mock = new common_test.HttpServerMock(); |
1745 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; | 1745 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; |
1746 var arg_startDate = "foo"; | 1746 var arg_startDate = "foo"; |
1747 var arg_endDate = "foo"; | 1747 var arg_endDate = "foo"; |
1748 var arg_dimension = buildUnnamed299(); | 1748 var arg_dimension = buildUnnamed260(); |
1749 var arg_filter = buildUnnamed300(); | 1749 var arg_filter = buildUnnamed261(); |
1750 var arg_locale = "foo"; | 1750 var arg_locale = "foo"; |
1751 var arg_maxResults = 42; | 1751 var arg_maxResults = 42; |
1752 var arg_metric = buildUnnamed301(); | 1752 var arg_metric = buildUnnamed262(); |
1753 var arg_sort = buildUnnamed302(); | 1753 var arg_sort = buildUnnamed263(); |
1754 var arg_startIndex = 42; | 1754 var arg_startIndex = 42; |
1755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1756 var path = (req.url).path; | 1756 var path = (req.url).path; |
1757 var pathOffset = 0; | 1757 var pathOffset = 0; |
1758 var index; | 1758 var index; |
1759 var subPart; | 1759 var subPart; |
1760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1761 pathOffset += 1; | 1761 pathOffset += 1; |
1762 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); | 1762 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); |
1763 pathOffset += 22; | 1763 pathOffset += 22; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { | 1969 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { |
1970 checkUrlChannels(response); | 1970 checkUrlChannels(response); |
1971 }))); | 1971 }))); |
1972 }); | 1972 }); |
1973 | 1973 |
1974 }); | 1974 }); |
1975 | 1975 |
1976 | 1976 |
1977 } | 1977 } |
1978 | 1978 |
OLD | NEW |