OLD | NEW |
1 library googleapis.androidpublisher.v2.test; | 1 library googleapis.androidpublisher.v2.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 checkApkListing(api.ApkListing o) { | 71 checkApkListing(api.ApkListing o) { |
72 buildCounterApkListing++; | 72 buildCounterApkListing++; |
73 if (buildCounterApkListing < 3) { | 73 if (buildCounterApkListing < 3) { |
74 unittest.expect(o.language, unittest.equals('foo')); | 74 unittest.expect(o.language, unittest.equals('foo')); |
75 unittest.expect(o.recentChanges, unittest.equals('foo')); | 75 unittest.expect(o.recentChanges, unittest.equals('foo')); |
76 } | 76 } |
77 buildCounterApkListing--; | 77 buildCounterApkListing--; |
78 } | 78 } |
79 | 79 |
80 buildUnnamed61() { | 80 buildUnnamed1029() { |
81 var o = new core.List<api.ApkListing>(); | 81 var o = new core.List<api.ApkListing>(); |
82 o.add(buildApkListing()); | 82 o.add(buildApkListing()); |
83 o.add(buildApkListing()); | 83 o.add(buildApkListing()); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed61(core.List<api.ApkListing> o) { | 87 checkUnnamed1029(core.List<api.ApkListing> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 checkApkListing(o[0]); | 89 checkApkListing(o[0]); |
90 checkApkListing(o[1]); | 90 checkApkListing(o[1]); |
91 } | 91 } |
92 | 92 |
93 core.int buildCounterApkListingsListResponse = 0; | 93 core.int buildCounterApkListingsListResponse = 0; |
94 buildApkListingsListResponse() { | 94 buildApkListingsListResponse() { |
95 var o = new api.ApkListingsListResponse(); | 95 var o = new api.ApkListingsListResponse(); |
96 buildCounterApkListingsListResponse++; | 96 buildCounterApkListingsListResponse++; |
97 if (buildCounterApkListingsListResponse < 3) { | 97 if (buildCounterApkListingsListResponse < 3) { |
98 o.kind = "foo"; | 98 o.kind = "foo"; |
99 o.listings = buildUnnamed61(); | 99 o.listings = buildUnnamed1029(); |
100 } | 100 } |
101 buildCounterApkListingsListResponse--; | 101 buildCounterApkListingsListResponse--; |
102 return o; | 102 return o; |
103 } | 103 } |
104 | 104 |
105 checkApkListingsListResponse(api.ApkListingsListResponse o) { | 105 checkApkListingsListResponse(api.ApkListingsListResponse o) { |
106 buildCounterApkListingsListResponse++; | 106 buildCounterApkListingsListResponse++; |
107 if (buildCounterApkListingsListResponse < 3) { | 107 if (buildCounterApkListingsListResponse < 3) { |
108 unittest.expect(o.kind, unittest.equals('foo')); | 108 unittest.expect(o.kind, unittest.equals('foo')); |
109 checkUnnamed61(o.listings); | 109 checkUnnamed1029(o.listings); |
110 } | 110 } |
111 buildCounterApkListingsListResponse--; | 111 buildCounterApkListingsListResponse--; |
112 } | 112 } |
113 | 113 |
114 buildUnnamed62() { | 114 buildUnnamed1030() { |
115 var o = new core.List<api.Apk>(); | 115 var o = new core.List<api.Apk>(); |
116 o.add(buildApk()); | 116 o.add(buildApk()); |
117 o.add(buildApk()); | 117 o.add(buildApk()); |
118 return o; | 118 return o; |
119 } | 119 } |
120 | 120 |
121 checkUnnamed62(core.List<api.Apk> o) { | 121 checkUnnamed1030(core.List<api.Apk> o) { |
122 unittest.expect(o, unittest.hasLength(2)); | 122 unittest.expect(o, unittest.hasLength(2)); |
123 checkApk(o[0]); | 123 checkApk(o[0]); |
124 checkApk(o[1]); | 124 checkApk(o[1]); |
125 } | 125 } |
126 | 126 |
127 core.int buildCounterApksListResponse = 0; | 127 core.int buildCounterApksListResponse = 0; |
128 buildApksListResponse() { | 128 buildApksListResponse() { |
129 var o = new api.ApksListResponse(); | 129 var o = new api.ApksListResponse(); |
130 buildCounterApksListResponse++; | 130 buildCounterApksListResponse++; |
131 if (buildCounterApksListResponse < 3) { | 131 if (buildCounterApksListResponse < 3) { |
132 o.apks = buildUnnamed62(); | 132 o.apks = buildUnnamed1030(); |
133 o.kind = "foo"; | 133 o.kind = "foo"; |
134 } | 134 } |
135 buildCounterApksListResponse--; | 135 buildCounterApksListResponse--; |
136 return o; | 136 return o; |
137 } | 137 } |
138 | 138 |
139 checkApksListResponse(api.ApksListResponse o) { | 139 checkApksListResponse(api.ApksListResponse o) { |
140 buildCounterApksListResponse++; | 140 buildCounterApksListResponse++; |
141 if (buildCounterApksListResponse < 3) { | 141 if (buildCounterApksListResponse < 3) { |
142 checkUnnamed62(o.apks); | 142 checkUnnamed1030(o.apks); |
143 unittest.expect(o.kind, unittest.equals('foo')); | 143 unittest.expect(o.kind, unittest.equals('foo')); |
144 } | 144 } |
145 buildCounterApksListResponse--; | 145 buildCounterApksListResponse--; |
146 } | 146 } |
147 | 147 |
148 core.int buildCounterAppDetails = 0; | 148 core.int buildCounterAppDetails = 0; |
149 buildAppDetails() { | 149 buildAppDetails() { |
150 var o = new api.AppDetails(); | 150 var o = new api.AppDetails(); |
151 buildCounterAppDetails++; | 151 buildCounterAppDetails++; |
152 if (buildCounterAppDetails < 3) { | 152 if (buildCounterAppDetails < 3) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 checkImage(api.Image o) { | 247 checkImage(api.Image o) { |
248 buildCounterImage++; | 248 buildCounterImage++; |
249 if (buildCounterImage < 3) { | 249 if (buildCounterImage < 3) { |
250 unittest.expect(o.id, unittest.equals('foo')); | 250 unittest.expect(o.id, unittest.equals('foo')); |
251 unittest.expect(o.sha1, unittest.equals('foo')); | 251 unittest.expect(o.sha1, unittest.equals('foo')); |
252 unittest.expect(o.url, unittest.equals('foo')); | 252 unittest.expect(o.url, unittest.equals('foo')); |
253 } | 253 } |
254 buildCounterImage--; | 254 buildCounterImage--; |
255 } | 255 } |
256 | 256 |
257 buildUnnamed63() { | 257 buildUnnamed1031() { |
258 var o = new core.List<api.Image>(); | 258 var o = new core.List<api.Image>(); |
259 o.add(buildImage()); | 259 o.add(buildImage()); |
260 o.add(buildImage()); | 260 o.add(buildImage()); |
261 return o; | 261 return o; |
262 } | 262 } |
263 | 263 |
264 checkUnnamed63(core.List<api.Image> o) { | 264 checkUnnamed1031(core.List<api.Image> o) { |
265 unittest.expect(o, unittest.hasLength(2)); | 265 unittest.expect(o, unittest.hasLength(2)); |
266 checkImage(o[0]); | 266 checkImage(o[0]); |
267 checkImage(o[1]); | 267 checkImage(o[1]); |
268 } | 268 } |
269 | 269 |
270 core.int buildCounterImagesDeleteAllResponse = 0; | 270 core.int buildCounterImagesDeleteAllResponse = 0; |
271 buildImagesDeleteAllResponse() { | 271 buildImagesDeleteAllResponse() { |
272 var o = new api.ImagesDeleteAllResponse(); | 272 var o = new api.ImagesDeleteAllResponse(); |
273 buildCounterImagesDeleteAllResponse++; | 273 buildCounterImagesDeleteAllResponse++; |
274 if (buildCounterImagesDeleteAllResponse < 3) { | 274 if (buildCounterImagesDeleteAllResponse < 3) { |
275 o.deleted = buildUnnamed63(); | 275 o.deleted = buildUnnamed1031(); |
276 } | 276 } |
277 buildCounterImagesDeleteAllResponse--; | 277 buildCounterImagesDeleteAllResponse--; |
278 return o; | 278 return o; |
279 } | 279 } |
280 | 280 |
281 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { | 281 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { |
282 buildCounterImagesDeleteAllResponse++; | 282 buildCounterImagesDeleteAllResponse++; |
283 if (buildCounterImagesDeleteAllResponse < 3) { | 283 if (buildCounterImagesDeleteAllResponse < 3) { |
284 checkUnnamed63(o.deleted); | 284 checkUnnamed1031(o.deleted); |
285 } | 285 } |
286 buildCounterImagesDeleteAllResponse--; | 286 buildCounterImagesDeleteAllResponse--; |
287 } | 287 } |
288 | 288 |
289 buildUnnamed64() { | 289 buildUnnamed1032() { |
290 var o = new core.List<api.Image>(); | 290 var o = new core.List<api.Image>(); |
291 o.add(buildImage()); | 291 o.add(buildImage()); |
292 o.add(buildImage()); | 292 o.add(buildImage()); |
293 return o; | 293 return o; |
294 } | 294 } |
295 | 295 |
296 checkUnnamed64(core.List<api.Image> o) { | 296 checkUnnamed1032(core.List<api.Image> o) { |
297 unittest.expect(o, unittest.hasLength(2)); | 297 unittest.expect(o, unittest.hasLength(2)); |
298 checkImage(o[0]); | 298 checkImage(o[0]); |
299 checkImage(o[1]); | 299 checkImage(o[1]); |
300 } | 300 } |
301 | 301 |
302 core.int buildCounterImagesListResponse = 0; | 302 core.int buildCounterImagesListResponse = 0; |
303 buildImagesListResponse() { | 303 buildImagesListResponse() { |
304 var o = new api.ImagesListResponse(); | 304 var o = new api.ImagesListResponse(); |
305 buildCounterImagesListResponse++; | 305 buildCounterImagesListResponse++; |
306 if (buildCounterImagesListResponse < 3) { | 306 if (buildCounterImagesListResponse < 3) { |
307 o.images = buildUnnamed64(); | 307 o.images = buildUnnamed1032(); |
308 } | 308 } |
309 buildCounterImagesListResponse--; | 309 buildCounterImagesListResponse--; |
310 return o; | 310 return o; |
311 } | 311 } |
312 | 312 |
313 checkImagesListResponse(api.ImagesListResponse o) { | 313 checkImagesListResponse(api.ImagesListResponse o) { |
314 buildCounterImagesListResponse++; | 314 buildCounterImagesListResponse++; |
315 if (buildCounterImagesListResponse < 3) { | 315 if (buildCounterImagesListResponse < 3) { |
316 checkUnnamed64(o.images); | 316 checkUnnamed1032(o.images); |
317 } | 317 } |
318 buildCounterImagesListResponse--; | 318 buildCounterImagesListResponse--; |
319 } | 319 } |
320 | 320 |
321 core.int buildCounterImagesUploadResponse = 0; | 321 core.int buildCounterImagesUploadResponse = 0; |
322 buildImagesUploadResponse() { | 322 buildImagesUploadResponse() { |
323 var o = new api.ImagesUploadResponse(); | 323 var o = new api.ImagesUploadResponse(); |
324 buildCounterImagesUploadResponse++; | 324 buildCounterImagesUploadResponse++; |
325 if (buildCounterImagesUploadResponse < 3) { | 325 if (buildCounterImagesUploadResponse < 3) { |
326 o.image = buildImage(); | 326 o.image = buildImage(); |
327 } | 327 } |
328 buildCounterImagesUploadResponse--; | 328 buildCounterImagesUploadResponse--; |
329 return o; | 329 return o; |
330 } | 330 } |
331 | 331 |
332 checkImagesUploadResponse(api.ImagesUploadResponse o) { | 332 checkImagesUploadResponse(api.ImagesUploadResponse o) { |
333 buildCounterImagesUploadResponse++; | 333 buildCounterImagesUploadResponse++; |
334 if (buildCounterImagesUploadResponse < 3) { | 334 if (buildCounterImagesUploadResponse < 3) { |
335 checkImage(o.image); | 335 checkImage(o.image); |
336 } | 336 } |
337 buildCounterImagesUploadResponse--; | 337 buildCounterImagesUploadResponse--; |
338 } | 338 } |
339 | 339 |
340 buildUnnamed65() { | 340 buildUnnamed1033() { |
341 var o = new core.Map<core.String, api.InAppProductListing>(); | 341 var o = new core.Map<core.String, api.InAppProductListing>(); |
342 o["x"] = buildInAppProductListing(); | 342 o["x"] = buildInAppProductListing(); |
343 o["y"] = buildInAppProductListing(); | 343 o["y"] = buildInAppProductListing(); |
344 return o; | 344 return o; |
345 } | 345 } |
346 | 346 |
347 checkUnnamed65(core.Map<core.String, api.InAppProductListing> o) { | 347 checkUnnamed1033(core.Map<core.String, api.InAppProductListing> o) { |
348 unittest.expect(o, unittest.hasLength(2)); | 348 unittest.expect(o, unittest.hasLength(2)); |
349 checkInAppProductListing(o["x"]); | 349 checkInAppProductListing(o["x"]); |
350 checkInAppProductListing(o["y"]); | 350 checkInAppProductListing(o["y"]); |
351 } | 351 } |
352 | 352 |
353 buildUnnamed66() { | 353 buildUnnamed1034() { |
354 var o = new core.Map<core.String, api.Price>(); | 354 var o = new core.Map<core.String, api.Price>(); |
355 o["x"] = buildPrice(); | 355 o["x"] = buildPrice(); |
356 o["y"] = buildPrice(); | 356 o["y"] = buildPrice(); |
357 return o; | 357 return o; |
358 } | 358 } |
359 | 359 |
360 checkUnnamed66(core.Map<core.String, api.Price> o) { | 360 checkUnnamed1034(core.Map<core.String, api.Price> o) { |
361 unittest.expect(o, unittest.hasLength(2)); | 361 unittest.expect(o, unittest.hasLength(2)); |
362 checkPrice(o["x"]); | 362 checkPrice(o["x"]); |
363 checkPrice(o["y"]); | 363 checkPrice(o["y"]); |
364 } | 364 } |
365 | 365 |
366 core.int buildCounterInAppProduct = 0; | 366 core.int buildCounterInAppProduct = 0; |
367 buildInAppProduct() { | 367 buildInAppProduct() { |
368 var o = new api.InAppProduct(); | 368 var o = new api.InAppProduct(); |
369 buildCounterInAppProduct++; | 369 buildCounterInAppProduct++; |
370 if (buildCounterInAppProduct < 3) { | 370 if (buildCounterInAppProduct < 3) { |
371 o.defaultLanguage = "foo"; | 371 o.defaultLanguage = "foo"; |
372 o.defaultPrice = buildPrice(); | 372 o.defaultPrice = buildPrice(); |
373 o.listings = buildUnnamed65(); | 373 o.listings = buildUnnamed1033(); |
374 o.packageName = "foo"; | 374 o.packageName = "foo"; |
375 o.prices = buildUnnamed66(); | 375 o.prices = buildUnnamed1034(); |
376 o.purchaseType = "foo"; | 376 o.purchaseType = "foo"; |
377 o.season = buildSeason(); | 377 o.season = buildSeason(); |
378 o.sku = "foo"; | 378 o.sku = "foo"; |
379 o.status = "foo"; | 379 o.status = "foo"; |
380 o.subscriptionPeriod = "foo"; | 380 o.subscriptionPeriod = "foo"; |
381 o.trialPeriod = "foo"; | 381 o.trialPeriod = "foo"; |
382 } | 382 } |
383 buildCounterInAppProduct--; | 383 buildCounterInAppProduct--; |
384 return o; | 384 return o; |
385 } | 385 } |
386 | 386 |
387 checkInAppProduct(api.InAppProduct o) { | 387 checkInAppProduct(api.InAppProduct o) { |
388 buildCounterInAppProduct++; | 388 buildCounterInAppProduct++; |
389 if (buildCounterInAppProduct < 3) { | 389 if (buildCounterInAppProduct < 3) { |
390 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 390 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
391 checkPrice(o.defaultPrice); | 391 checkPrice(o.defaultPrice); |
392 checkUnnamed65(o.listings); | 392 checkUnnamed1033(o.listings); |
393 unittest.expect(o.packageName, unittest.equals('foo')); | 393 unittest.expect(o.packageName, unittest.equals('foo')); |
394 checkUnnamed66(o.prices); | 394 checkUnnamed1034(o.prices); |
395 unittest.expect(o.purchaseType, unittest.equals('foo')); | 395 unittest.expect(o.purchaseType, unittest.equals('foo')); |
396 checkSeason(o.season); | 396 checkSeason(o.season); |
397 unittest.expect(o.sku, unittest.equals('foo')); | 397 unittest.expect(o.sku, unittest.equals('foo')); |
398 unittest.expect(o.status, unittest.equals('foo')); | 398 unittest.expect(o.status, unittest.equals('foo')); |
399 unittest.expect(o.subscriptionPeriod, unittest.equals('foo')); | 399 unittest.expect(o.subscriptionPeriod, unittest.equals('foo')); |
400 unittest.expect(o.trialPeriod, unittest.equals('foo')); | 400 unittest.expect(o.trialPeriod, unittest.equals('foo')); |
401 } | 401 } |
402 buildCounterInAppProduct--; | 402 buildCounterInAppProduct--; |
403 } | 403 } |
404 | 404 |
(...skipping 11 matching lines...) Expand all Loading... |
416 | 416 |
417 checkInAppProductListing(api.InAppProductListing o) { | 417 checkInAppProductListing(api.InAppProductListing o) { |
418 buildCounterInAppProductListing++; | 418 buildCounterInAppProductListing++; |
419 if (buildCounterInAppProductListing < 3) { | 419 if (buildCounterInAppProductListing < 3) { |
420 unittest.expect(o.description, unittest.equals('foo')); | 420 unittest.expect(o.description, unittest.equals('foo')); |
421 unittest.expect(o.title, unittest.equals('foo')); | 421 unittest.expect(o.title, unittest.equals('foo')); |
422 } | 422 } |
423 buildCounterInAppProductListing--; | 423 buildCounterInAppProductListing--; |
424 } | 424 } |
425 | 425 |
426 buildUnnamed67() { | 426 buildUnnamed1035() { |
427 var o = new core.List<api.InappproductsBatchRequestEntry>(); | 427 var o = new core.List<api.InappproductsBatchRequestEntry>(); |
428 o.add(buildInappproductsBatchRequestEntry()); | 428 o.add(buildInappproductsBatchRequestEntry()); |
429 o.add(buildInappproductsBatchRequestEntry()); | 429 o.add(buildInappproductsBatchRequestEntry()); |
430 return o; | 430 return o; |
431 } | 431 } |
432 | 432 |
433 checkUnnamed67(core.List<api.InappproductsBatchRequestEntry> o) { | 433 checkUnnamed1035(core.List<api.InappproductsBatchRequestEntry> o) { |
434 unittest.expect(o, unittest.hasLength(2)); | 434 unittest.expect(o, unittest.hasLength(2)); |
435 checkInappproductsBatchRequestEntry(o[0]); | 435 checkInappproductsBatchRequestEntry(o[0]); |
436 checkInappproductsBatchRequestEntry(o[1]); | 436 checkInappproductsBatchRequestEntry(o[1]); |
437 } | 437 } |
438 | 438 |
439 core.int buildCounterInappproductsBatchRequest = 0; | 439 core.int buildCounterInappproductsBatchRequest = 0; |
440 buildInappproductsBatchRequest() { | 440 buildInappproductsBatchRequest() { |
441 var o = new api.InappproductsBatchRequest(); | 441 var o = new api.InappproductsBatchRequest(); |
442 buildCounterInappproductsBatchRequest++; | 442 buildCounterInappproductsBatchRequest++; |
443 if (buildCounterInappproductsBatchRequest < 3) { | 443 if (buildCounterInappproductsBatchRequest < 3) { |
444 o.entrys = buildUnnamed67(); | 444 o.entrys = buildUnnamed1035(); |
445 } | 445 } |
446 buildCounterInappproductsBatchRequest--; | 446 buildCounterInappproductsBatchRequest--; |
447 return o; | 447 return o; |
448 } | 448 } |
449 | 449 |
450 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { | 450 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { |
451 buildCounterInappproductsBatchRequest++; | 451 buildCounterInappproductsBatchRequest++; |
452 if (buildCounterInappproductsBatchRequest < 3) { | 452 if (buildCounterInappproductsBatchRequest < 3) { |
453 checkUnnamed67(o.entrys); | 453 checkUnnamed1035(o.entrys); |
454 } | 454 } |
455 buildCounterInappproductsBatchRequest--; | 455 buildCounterInappproductsBatchRequest--; |
456 } | 456 } |
457 | 457 |
458 core.int buildCounterInappproductsBatchRequestEntry = 0; | 458 core.int buildCounterInappproductsBatchRequestEntry = 0; |
459 buildInappproductsBatchRequestEntry() { | 459 buildInappproductsBatchRequestEntry() { |
460 var o = new api.InappproductsBatchRequestEntry(); | 460 var o = new api.InappproductsBatchRequestEntry(); |
461 buildCounterInappproductsBatchRequestEntry++; | 461 buildCounterInappproductsBatchRequestEntry++; |
462 if (buildCounterInappproductsBatchRequestEntry < 3) { | 462 if (buildCounterInappproductsBatchRequestEntry < 3) { |
463 o.batchId = 42; | 463 o.batchId = 42; |
464 o.inappproductsinsertrequest = buildInappproductsInsertRequest(); | 464 o.inappproductsinsertrequest = buildInappproductsInsertRequest(); |
465 o.inappproductsupdaterequest = buildInappproductsUpdateRequest(); | 465 o.inappproductsupdaterequest = buildInappproductsUpdateRequest(); |
466 o.methodName = "foo"; | 466 o.methodName = "foo"; |
467 } | 467 } |
468 buildCounterInappproductsBatchRequestEntry--; | 468 buildCounterInappproductsBatchRequestEntry--; |
469 return o; | 469 return o; |
470 } | 470 } |
471 | 471 |
472 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) { | 472 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) { |
473 buildCounterInappproductsBatchRequestEntry++; | 473 buildCounterInappproductsBatchRequestEntry++; |
474 if (buildCounterInappproductsBatchRequestEntry < 3) { | 474 if (buildCounterInappproductsBatchRequestEntry < 3) { |
475 unittest.expect(o.batchId, unittest.equals(42)); | 475 unittest.expect(o.batchId, unittest.equals(42)); |
476 checkInappproductsInsertRequest(o.inappproductsinsertrequest); | 476 checkInappproductsInsertRequest(o.inappproductsinsertrequest); |
477 checkInappproductsUpdateRequest(o.inappproductsupdaterequest); | 477 checkInappproductsUpdateRequest(o.inappproductsupdaterequest); |
478 unittest.expect(o.methodName, unittest.equals('foo')); | 478 unittest.expect(o.methodName, unittest.equals('foo')); |
479 } | 479 } |
480 buildCounterInappproductsBatchRequestEntry--; | 480 buildCounterInappproductsBatchRequestEntry--; |
481 } | 481 } |
482 | 482 |
483 buildUnnamed68() { | 483 buildUnnamed1036() { |
484 var o = new core.List<api.InappproductsBatchResponseEntry>(); | 484 var o = new core.List<api.InappproductsBatchResponseEntry>(); |
485 o.add(buildInappproductsBatchResponseEntry()); | 485 o.add(buildInappproductsBatchResponseEntry()); |
486 o.add(buildInappproductsBatchResponseEntry()); | 486 o.add(buildInappproductsBatchResponseEntry()); |
487 return o; | 487 return o; |
488 } | 488 } |
489 | 489 |
490 checkUnnamed68(core.List<api.InappproductsBatchResponseEntry> o) { | 490 checkUnnamed1036(core.List<api.InappproductsBatchResponseEntry> o) { |
491 unittest.expect(o, unittest.hasLength(2)); | 491 unittest.expect(o, unittest.hasLength(2)); |
492 checkInappproductsBatchResponseEntry(o[0]); | 492 checkInappproductsBatchResponseEntry(o[0]); |
493 checkInappproductsBatchResponseEntry(o[1]); | 493 checkInappproductsBatchResponseEntry(o[1]); |
494 } | 494 } |
495 | 495 |
496 core.int buildCounterInappproductsBatchResponse = 0; | 496 core.int buildCounterInappproductsBatchResponse = 0; |
497 buildInappproductsBatchResponse() { | 497 buildInappproductsBatchResponse() { |
498 var o = new api.InappproductsBatchResponse(); | 498 var o = new api.InappproductsBatchResponse(); |
499 buildCounterInappproductsBatchResponse++; | 499 buildCounterInappproductsBatchResponse++; |
500 if (buildCounterInappproductsBatchResponse < 3) { | 500 if (buildCounterInappproductsBatchResponse < 3) { |
501 o.entrys = buildUnnamed68(); | 501 o.entrys = buildUnnamed1036(); |
502 o.kind = "foo"; | 502 o.kind = "foo"; |
503 } | 503 } |
504 buildCounterInappproductsBatchResponse--; | 504 buildCounterInappproductsBatchResponse--; |
505 return o; | 505 return o; |
506 } | 506 } |
507 | 507 |
508 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { | 508 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { |
509 buildCounterInappproductsBatchResponse++; | 509 buildCounterInappproductsBatchResponse++; |
510 if (buildCounterInappproductsBatchResponse < 3) { | 510 if (buildCounterInappproductsBatchResponse < 3) { |
511 checkUnnamed68(o.entrys); | 511 checkUnnamed1036(o.entrys); |
512 unittest.expect(o.kind, unittest.equals('foo')); | 512 unittest.expect(o.kind, unittest.equals('foo')); |
513 } | 513 } |
514 buildCounterInappproductsBatchResponse--; | 514 buildCounterInappproductsBatchResponse--; |
515 } | 515 } |
516 | 516 |
517 core.int buildCounterInappproductsBatchResponseEntry = 0; | 517 core.int buildCounterInappproductsBatchResponseEntry = 0; |
518 buildInappproductsBatchResponseEntry() { | 518 buildInappproductsBatchResponseEntry() { |
519 var o = new api.InappproductsBatchResponseEntry(); | 519 var o = new api.InappproductsBatchResponseEntry(); |
520 buildCounterInappproductsBatchResponseEntry++; | 520 buildCounterInappproductsBatchResponseEntry++; |
521 if (buildCounterInappproductsBatchResponseEntry < 3) { | 521 if (buildCounterInappproductsBatchResponseEntry < 3) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 } | 568 } |
569 | 569 |
570 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) { | 570 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) { |
571 buildCounterInappproductsInsertResponse++; | 571 buildCounterInappproductsInsertResponse++; |
572 if (buildCounterInappproductsInsertResponse < 3) { | 572 if (buildCounterInappproductsInsertResponse < 3) { |
573 checkInAppProduct(o.inappproduct); | 573 checkInAppProduct(o.inappproduct); |
574 } | 574 } |
575 buildCounterInappproductsInsertResponse--; | 575 buildCounterInappproductsInsertResponse--; |
576 } | 576 } |
577 | 577 |
578 buildUnnamed69() { | 578 buildUnnamed1037() { |
579 var o = new core.List<api.InAppProduct>(); | 579 var o = new core.List<api.InAppProduct>(); |
580 o.add(buildInAppProduct()); | 580 o.add(buildInAppProduct()); |
581 o.add(buildInAppProduct()); | 581 o.add(buildInAppProduct()); |
582 return o; | 582 return o; |
583 } | 583 } |
584 | 584 |
585 checkUnnamed69(core.List<api.InAppProduct> o) { | 585 checkUnnamed1037(core.List<api.InAppProduct> o) { |
586 unittest.expect(o, unittest.hasLength(2)); | 586 unittest.expect(o, unittest.hasLength(2)); |
587 checkInAppProduct(o[0]); | 587 checkInAppProduct(o[0]); |
588 checkInAppProduct(o[1]); | 588 checkInAppProduct(o[1]); |
589 } | 589 } |
590 | 590 |
591 core.int buildCounterInappproductsListResponse = 0; | 591 core.int buildCounterInappproductsListResponse = 0; |
592 buildInappproductsListResponse() { | 592 buildInappproductsListResponse() { |
593 var o = new api.InappproductsListResponse(); | 593 var o = new api.InappproductsListResponse(); |
594 buildCounterInappproductsListResponse++; | 594 buildCounterInappproductsListResponse++; |
595 if (buildCounterInappproductsListResponse < 3) { | 595 if (buildCounterInappproductsListResponse < 3) { |
596 o.inappproduct = buildUnnamed69(); | 596 o.inappproduct = buildUnnamed1037(); |
597 o.kind = "foo"; | 597 o.kind = "foo"; |
598 o.pageInfo = buildPageInfo(); | 598 o.pageInfo = buildPageInfo(); |
599 o.tokenPagination = buildTokenPagination(); | 599 o.tokenPagination = buildTokenPagination(); |
600 } | 600 } |
601 buildCounterInappproductsListResponse--; | 601 buildCounterInappproductsListResponse--; |
602 return o; | 602 return o; |
603 } | 603 } |
604 | 604 |
605 checkInappproductsListResponse(api.InappproductsListResponse o) { | 605 checkInappproductsListResponse(api.InappproductsListResponse o) { |
606 buildCounterInappproductsListResponse++; | 606 buildCounterInappproductsListResponse++; |
607 if (buildCounterInappproductsListResponse < 3) { | 607 if (buildCounterInappproductsListResponse < 3) { |
608 checkUnnamed69(o.inappproduct); | 608 checkUnnamed1037(o.inappproduct); |
609 unittest.expect(o.kind, unittest.equals('foo')); | 609 unittest.expect(o.kind, unittest.equals('foo')); |
610 checkPageInfo(o.pageInfo); | 610 checkPageInfo(o.pageInfo); |
611 checkTokenPagination(o.tokenPagination); | 611 checkTokenPagination(o.tokenPagination); |
612 } | 612 } |
613 buildCounterInappproductsListResponse--; | 613 buildCounterInappproductsListResponse--; |
614 } | 614 } |
615 | 615 |
616 core.int buildCounterInappproductsUpdateRequest = 0; | 616 core.int buildCounterInappproductsUpdateRequest = 0; |
617 buildInappproductsUpdateRequest() { | 617 buildInappproductsUpdateRequest() { |
618 var o = new api.InappproductsUpdateRequest(); | 618 var o = new api.InappproductsUpdateRequest(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 if (buildCounterListing < 3) { | 671 if (buildCounterListing < 3) { |
672 unittest.expect(o.fullDescription, unittest.equals('foo')); | 672 unittest.expect(o.fullDescription, unittest.equals('foo')); |
673 unittest.expect(o.language, unittest.equals('foo')); | 673 unittest.expect(o.language, unittest.equals('foo')); |
674 unittest.expect(o.shortDescription, unittest.equals('foo')); | 674 unittest.expect(o.shortDescription, unittest.equals('foo')); |
675 unittest.expect(o.title, unittest.equals('foo')); | 675 unittest.expect(o.title, unittest.equals('foo')); |
676 unittest.expect(o.video, unittest.equals('foo')); | 676 unittest.expect(o.video, unittest.equals('foo')); |
677 } | 677 } |
678 buildCounterListing--; | 678 buildCounterListing--; |
679 } | 679 } |
680 | 680 |
681 buildUnnamed70() { | 681 buildUnnamed1038() { |
682 var o = new core.List<api.Listing>(); | 682 var o = new core.List<api.Listing>(); |
683 o.add(buildListing()); | 683 o.add(buildListing()); |
684 o.add(buildListing()); | 684 o.add(buildListing()); |
685 return o; | 685 return o; |
686 } | 686 } |
687 | 687 |
688 checkUnnamed70(core.List<api.Listing> o) { | 688 checkUnnamed1038(core.List<api.Listing> o) { |
689 unittest.expect(o, unittest.hasLength(2)); | 689 unittest.expect(o, unittest.hasLength(2)); |
690 checkListing(o[0]); | 690 checkListing(o[0]); |
691 checkListing(o[1]); | 691 checkListing(o[1]); |
692 } | 692 } |
693 | 693 |
694 core.int buildCounterListingsListResponse = 0; | 694 core.int buildCounterListingsListResponse = 0; |
695 buildListingsListResponse() { | 695 buildListingsListResponse() { |
696 var o = new api.ListingsListResponse(); | 696 var o = new api.ListingsListResponse(); |
697 buildCounterListingsListResponse++; | 697 buildCounterListingsListResponse++; |
698 if (buildCounterListingsListResponse < 3) { | 698 if (buildCounterListingsListResponse < 3) { |
699 o.kind = "foo"; | 699 o.kind = "foo"; |
700 o.listings = buildUnnamed70(); | 700 o.listings = buildUnnamed1038(); |
701 } | 701 } |
702 buildCounterListingsListResponse--; | 702 buildCounterListingsListResponse--; |
703 return o; | 703 return o; |
704 } | 704 } |
705 | 705 |
706 checkListingsListResponse(api.ListingsListResponse o) { | 706 checkListingsListResponse(api.ListingsListResponse o) { |
707 buildCounterListingsListResponse++; | 707 buildCounterListingsListResponse++; |
708 if (buildCounterListingsListResponse < 3) { | 708 if (buildCounterListingsListResponse < 3) { |
709 unittest.expect(o.kind, unittest.equals('foo')); | 709 unittest.expect(o.kind, unittest.equals('foo')); |
710 checkUnnamed70(o.listings); | 710 checkUnnamed1038(o.listings); |
711 } | 711 } |
712 buildCounterListingsListResponse--; | 712 buildCounterListingsListResponse--; |
713 } | 713 } |
714 | 714 |
715 core.int buildCounterMonthDay = 0; | 715 core.int buildCounterMonthDay = 0; |
716 buildMonthDay() { | 716 buildMonthDay() { |
717 var o = new api.MonthDay(); | 717 var o = new api.MonthDay(); |
718 buildCounterMonthDay++; | 718 buildCounterMonthDay++; |
719 if (buildCounterMonthDay < 3) { | 719 if (buildCounterMonthDay < 3) { |
720 o.day = 42; | 720 o.day = 42; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } | 902 } |
903 | 903 |
904 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o
) { | 904 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o
) { |
905 buildCounterSubscriptionPurchasesDeferResponse++; | 905 buildCounterSubscriptionPurchasesDeferResponse++; |
906 if (buildCounterSubscriptionPurchasesDeferResponse < 3) { | 906 if (buildCounterSubscriptionPurchasesDeferResponse < 3) { |
907 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo')); | 907 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo')); |
908 } | 908 } |
909 buildCounterSubscriptionPurchasesDeferResponse--; | 909 buildCounterSubscriptionPurchasesDeferResponse--; |
910 } | 910 } |
911 | 911 |
912 buildUnnamed71() { | 912 buildUnnamed1039() { |
913 var o = new core.List<core.String>(); | 913 var o = new core.List<core.String>(); |
914 o.add("foo"); | 914 o.add("foo"); |
915 o.add("foo"); | 915 o.add("foo"); |
916 return o; | 916 return o; |
917 } | 917 } |
918 | 918 |
919 checkUnnamed71(core.List<core.String> o) { | 919 checkUnnamed1039(core.List<core.String> o) { |
920 unittest.expect(o, unittest.hasLength(2)); | 920 unittest.expect(o, unittest.hasLength(2)); |
921 unittest.expect(o[0], unittest.equals('foo')); | 921 unittest.expect(o[0], unittest.equals('foo')); |
922 unittest.expect(o[1], unittest.equals('foo')); | 922 unittest.expect(o[1], unittest.equals('foo')); |
923 } | 923 } |
924 | 924 |
925 buildUnnamed72() { | 925 buildUnnamed1040() { |
926 var o = new core.List<core.String>(); | 926 var o = new core.List<core.String>(); |
927 o.add("foo"); | 927 o.add("foo"); |
928 o.add("foo"); | 928 o.add("foo"); |
929 return o; | 929 return o; |
930 } | 930 } |
931 | 931 |
932 checkUnnamed72(core.List<core.String> o) { | 932 checkUnnamed1040(core.List<core.String> o) { |
933 unittest.expect(o, unittest.hasLength(2)); | 933 unittest.expect(o, unittest.hasLength(2)); |
934 unittest.expect(o[0], unittest.equals('foo')); | 934 unittest.expect(o[0], unittest.equals('foo')); |
935 unittest.expect(o[1], unittest.equals('foo')); | 935 unittest.expect(o[1], unittest.equals('foo')); |
936 } | 936 } |
937 | 937 |
938 core.int buildCounterTesters = 0; | 938 core.int buildCounterTesters = 0; |
939 buildTesters() { | 939 buildTesters() { |
940 var o = new api.Testers(); | 940 var o = new api.Testers(); |
941 buildCounterTesters++; | 941 buildCounterTesters++; |
942 if (buildCounterTesters < 3) { | 942 if (buildCounterTesters < 3) { |
943 o.googleGroups = buildUnnamed71(); | 943 o.googleGroups = buildUnnamed1039(); |
944 o.googlePlusCommunities = buildUnnamed72(); | 944 o.googlePlusCommunities = buildUnnamed1040(); |
945 } | 945 } |
946 buildCounterTesters--; | 946 buildCounterTesters--; |
947 return o; | 947 return o; |
948 } | 948 } |
949 | 949 |
950 checkTesters(api.Testers o) { | 950 checkTesters(api.Testers o) { |
951 buildCounterTesters++; | 951 buildCounterTesters++; |
952 if (buildCounterTesters < 3) { | 952 if (buildCounterTesters < 3) { |
953 checkUnnamed71(o.googleGroups); | 953 checkUnnamed1039(o.googleGroups); |
954 checkUnnamed72(o.googlePlusCommunities); | 954 checkUnnamed1040(o.googlePlusCommunities); |
955 } | 955 } |
956 buildCounterTesters--; | 956 buildCounterTesters--; |
957 } | 957 } |
958 | 958 |
959 core.int buildCounterTokenPagination = 0; | 959 core.int buildCounterTokenPagination = 0; |
960 buildTokenPagination() { | 960 buildTokenPagination() { |
961 var o = new api.TokenPagination(); | 961 var o = new api.TokenPagination(); |
962 buildCounterTokenPagination++; | 962 buildCounterTokenPagination++; |
963 if (buildCounterTokenPagination < 3) { | 963 if (buildCounterTokenPagination < 3) { |
964 o.nextPageToken = "foo"; | 964 o.nextPageToken = "foo"; |
965 o.previousPageToken = "foo"; | 965 o.previousPageToken = "foo"; |
966 } | 966 } |
967 buildCounterTokenPagination--; | 967 buildCounterTokenPagination--; |
968 return o; | 968 return o; |
969 } | 969 } |
970 | 970 |
971 checkTokenPagination(api.TokenPagination o) { | 971 checkTokenPagination(api.TokenPagination o) { |
972 buildCounterTokenPagination++; | 972 buildCounterTokenPagination++; |
973 if (buildCounterTokenPagination < 3) { | 973 if (buildCounterTokenPagination < 3) { |
974 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 974 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
975 unittest.expect(o.previousPageToken, unittest.equals('foo')); | 975 unittest.expect(o.previousPageToken, unittest.equals('foo')); |
976 } | 976 } |
977 buildCounterTokenPagination--; | 977 buildCounterTokenPagination--; |
978 } | 978 } |
979 | 979 |
980 buildUnnamed73() { | 980 buildUnnamed1041() { |
981 var o = new core.List<core.int>(); | 981 var o = new core.List<core.int>(); |
982 o.add(42); | 982 o.add(42); |
983 o.add(42); | 983 o.add(42); |
984 return o; | 984 return o; |
985 } | 985 } |
986 | 986 |
987 checkUnnamed73(core.List<core.int> o) { | 987 checkUnnamed1041(core.List<core.int> o) { |
988 unittest.expect(o, unittest.hasLength(2)); | 988 unittest.expect(o, unittest.hasLength(2)); |
989 unittest.expect(o[0], unittest.equals(42)); | 989 unittest.expect(o[0], unittest.equals(42)); |
990 unittest.expect(o[1], unittest.equals(42)); | 990 unittest.expect(o[1], unittest.equals(42)); |
991 } | 991 } |
992 | 992 |
993 core.int buildCounterTrack = 0; | 993 core.int buildCounterTrack = 0; |
994 buildTrack() { | 994 buildTrack() { |
995 var o = new api.Track(); | 995 var o = new api.Track(); |
996 buildCounterTrack++; | 996 buildCounterTrack++; |
997 if (buildCounterTrack < 3) { | 997 if (buildCounterTrack < 3) { |
998 o.track = "foo"; | 998 o.track = "foo"; |
999 o.userFraction = 42.0; | 999 o.userFraction = 42.0; |
1000 o.versionCodes = buildUnnamed73(); | 1000 o.versionCodes = buildUnnamed1041(); |
1001 } | 1001 } |
1002 buildCounterTrack--; | 1002 buildCounterTrack--; |
1003 return o; | 1003 return o; |
1004 } | 1004 } |
1005 | 1005 |
1006 checkTrack(api.Track o) { | 1006 checkTrack(api.Track o) { |
1007 buildCounterTrack++; | 1007 buildCounterTrack++; |
1008 if (buildCounterTrack < 3) { | 1008 if (buildCounterTrack < 3) { |
1009 unittest.expect(o.track, unittest.equals('foo')); | 1009 unittest.expect(o.track, unittest.equals('foo')); |
1010 unittest.expect(o.userFraction, unittest.equals(42.0)); | 1010 unittest.expect(o.userFraction, unittest.equals(42.0)); |
1011 checkUnnamed73(o.versionCodes); | 1011 checkUnnamed1041(o.versionCodes); |
1012 } | 1012 } |
1013 buildCounterTrack--; | 1013 buildCounterTrack--; |
1014 } | 1014 } |
1015 | 1015 |
1016 buildUnnamed74() { | 1016 buildUnnamed1042() { |
1017 var o = new core.List<api.Track>(); | 1017 var o = new core.List<api.Track>(); |
1018 o.add(buildTrack()); | 1018 o.add(buildTrack()); |
1019 o.add(buildTrack()); | 1019 o.add(buildTrack()); |
1020 return o; | 1020 return o; |
1021 } | 1021 } |
1022 | 1022 |
1023 checkUnnamed74(core.List<api.Track> o) { | 1023 checkUnnamed1042(core.List<api.Track> o) { |
1024 unittest.expect(o, unittest.hasLength(2)); | 1024 unittest.expect(o, unittest.hasLength(2)); |
1025 checkTrack(o[0]); | 1025 checkTrack(o[0]); |
1026 checkTrack(o[1]); | 1026 checkTrack(o[1]); |
1027 } | 1027 } |
1028 | 1028 |
1029 core.int buildCounterTracksListResponse = 0; | 1029 core.int buildCounterTracksListResponse = 0; |
1030 buildTracksListResponse() { | 1030 buildTracksListResponse() { |
1031 var o = new api.TracksListResponse(); | 1031 var o = new api.TracksListResponse(); |
1032 buildCounterTracksListResponse++; | 1032 buildCounterTracksListResponse++; |
1033 if (buildCounterTracksListResponse < 3) { | 1033 if (buildCounterTracksListResponse < 3) { |
1034 o.kind = "foo"; | 1034 o.kind = "foo"; |
1035 o.tracks = buildUnnamed74(); | 1035 o.tracks = buildUnnamed1042(); |
1036 } | 1036 } |
1037 buildCounterTracksListResponse--; | 1037 buildCounterTracksListResponse--; |
1038 return o; | 1038 return o; |
1039 } | 1039 } |
1040 | 1040 |
1041 checkTracksListResponse(api.TracksListResponse o) { | 1041 checkTracksListResponse(api.TracksListResponse o) { |
1042 buildCounterTracksListResponse++; | 1042 buildCounterTracksListResponse++; |
1043 if (buildCounterTracksListResponse < 3) { | 1043 if (buildCounterTracksListResponse < 3) { |
1044 unittest.expect(o.kind, unittest.equals('foo')); | 1044 unittest.expect(o.kind, unittest.equals('foo')); |
1045 checkUnnamed74(o.tracks); | 1045 checkUnnamed1042(o.tracks); |
1046 } | 1046 } |
1047 buildCounterTracksListResponse--; | 1047 buildCounterTracksListResponse--; |
1048 } | 1048 } |
1049 | 1049 |
1050 | 1050 |
1051 main() { | 1051 main() { |
1052 unittest.group("obj-schema-Apk", () { | 1052 unittest.group("obj-schema-Apk", () { |
1053 unittest.test("to-json--from-json", () { | 1053 unittest.test("to-json--from-json", () { |
1054 var o = buildApk(); | 1054 var o = buildApk(); |
1055 var od = new api.Apk.fromJson(o.toJson()); | 1055 var od = new api.Apk.fromJson(o.toJson()); |
(...skipping 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3705 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3705 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
3706 }), true); | 3706 }), true); |
3707 res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.e
xpectAsync((_) {})); | 3707 res.revoke(arg_packageName, arg_subscriptionId, arg_token).then(unittest.e
xpectAsync((_) {})); |
3708 }); | 3708 }); |
3709 | 3709 |
3710 }); | 3710 }); |
3711 | 3711 |
3712 | 3712 |
3713 } | 3713 } |
3714 | 3714 |
OLD | NEW |