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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 checkApkListing(api.ApkListing o) { | 106 checkApkListing(api.ApkListing o) { |
107 buildCounterApkListing++; | 107 buildCounterApkListing++; |
108 if (buildCounterApkListing < 3) { | 108 if (buildCounterApkListing < 3) { |
109 unittest.expect(o.language, unittest.equals('foo')); | 109 unittest.expect(o.language, unittest.equals('foo')); |
110 unittest.expect(o.recentChanges, unittest.equals('foo')); | 110 unittest.expect(o.recentChanges, unittest.equals('foo')); |
111 } | 111 } |
112 buildCounterApkListing--; | 112 buildCounterApkListing--; |
113 } | 113 } |
114 | 114 |
115 buildUnnamed2929() { | 115 buildUnnamed3003() { |
116 var o = new core.List<api.ApkListing>(); | 116 var o = new core.List<api.ApkListing>(); |
117 o.add(buildApkListing()); | 117 o.add(buildApkListing()); |
118 o.add(buildApkListing()); | 118 o.add(buildApkListing()); |
119 return o; | 119 return o; |
120 } | 120 } |
121 | 121 |
122 checkUnnamed2929(core.List<api.ApkListing> o) { | 122 checkUnnamed3003(core.List<api.ApkListing> o) { |
123 unittest.expect(o, unittest.hasLength(2)); | 123 unittest.expect(o, unittest.hasLength(2)); |
124 checkApkListing(o[0]); | 124 checkApkListing(o[0]); |
125 checkApkListing(o[1]); | 125 checkApkListing(o[1]); |
126 } | 126 } |
127 | 127 |
128 core.int buildCounterApkListingsListResponse = 0; | 128 core.int buildCounterApkListingsListResponse = 0; |
129 buildApkListingsListResponse() { | 129 buildApkListingsListResponse() { |
130 var o = new api.ApkListingsListResponse(); | 130 var o = new api.ApkListingsListResponse(); |
131 buildCounterApkListingsListResponse++; | 131 buildCounterApkListingsListResponse++; |
132 if (buildCounterApkListingsListResponse < 3) { | 132 if (buildCounterApkListingsListResponse < 3) { |
133 o.kind = "foo"; | 133 o.kind = "foo"; |
134 o.listings = buildUnnamed2929(); | 134 o.listings = buildUnnamed3003(); |
135 } | 135 } |
136 buildCounterApkListingsListResponse--; | 136 buildCounterApkListingsListResponse--; |
137 return o; | 137 return o; |
138 } | 138 } |
139 | 139 |
140 checkApkListingsListResponse(api.ApkListingsListResponse o) { | 140 checkApkListingsListResponse(api.ApkListingsListResponse o) { |
141 buildCounterApkListingsListResponse++; | 141 buildCounterApkListingsListResponse++; |
142 if (buildCounterApkListingsListResponse < 3) { | 142 if (buildCounterApkListingsListResponse < 3) { |
143 unittest.expect(o.kind, unittest.equals('foo')); | 143 unittest.expect(o.kind, unittest.equals('foo')); |
144 checkUnnamed2929(o.listings); | 144 checkUnnamed3003(o.listings); |
145 } | 145 } |
146 buildCounterApkListingsListResponse--; | 146 buildCounterApkListingsListResponse--; |
147 } | 147 } |
148 | 148 |
149 core.int buildCounterApksAddExternallyHostedRequest = 0; | 149 core.int buildCounterApksAddExternallyHostedRequest = 0; |
150 buildApksAddExternallyHostedRequest() { | 150 buildApksAddExternallyHostedRequest() { |
151 var o = new api.ApksAddExternallyHostedRequest(); | 151 var o = new api.ApksAddExternallyHostedRequest(); |
152 buildCounterApksAddExternallyHostedRequest++; | 152 buildCounterApksAddExternallyHostedRequest++; |
153 if (buildCounterApksAddExternallyHostedRequest < 3) { | 153 if (buildCounterApksAddExternallyHostedRequest < 3) { |
154 o.externallyHostedApk = buildExternallyHostedApk(); | 154 o.externallyHostedApk = buildExternallyHostedApk(); |
(...skipping 22 matching lines...) Expand all Loading... |
177 } | 177 } |
178 | 178 |
179 checkApksAddExternallyHostedResponse(api.ApksAddExternallyHostedResponse o) { | 179 checkApksAddExternallyHostedResponse(api.ApksAddExternallyHostedResponse o) { |
180 buildCounterApksAddExternallyHostedResponse++; | 180 buildCounterApksAddExternallyHostedResponse++; |
181 if (buildCounterApksAddExternallyHostedResponse < 3) { | 181 if (buildCounterApksAddExternallyHostedResponse < 3) { |
182 checkExternallyHostedApk(o.externallyHostedApk); | 182 checkExternallyHostedApk(o.externallyHostedApk); |
183 } | 183 } |
184 buildCounterApksAddExternallyHostedResponse--; | 184 buildCounterApksAddExternallyHostedResponse--; |
185 } | 185 } |
186 | 186 |
187 buildUnnamed2930() { | 187 buildUnnamed3004() { |
188 var o = new core.List<api.Apk>(); | 188 var o = new core.List<api.Apk>(); |
189 o.add(buildApk()); | 189 o.add(buildApk()); |
190 o.add(buildApk()); | 190 o.add(buildApk()); |
191 return o; | 191 return o; |
192 } | 192 } |
193 | 193 |
194 checkUnnamed2930(core.List<api.Apk> o) { | 194 checkUnnamed3004(core.List<api.Apk> o) { |
195 unittest.expect(o, unittest.hasLength(2)); | 195 unittest.expect(o, unittest.hasLength(2)); |
196 checkApk(o[0]); | 196 checkApk(o[0]); |
197 checkApk(o[1]); | 197 checkApk(o[1]); |
198 } | 198 } |
199 | 199 |
200 core.int buildCounterApksListResponse = 0; | 200 core.int buildCounterApksListResponse = 0; |
201 buildApksListResponse() { | 201 buildApksListResponse() { |
202 var o = new api.ApksListResponse(); | 202 var o = new api.ApksListResponse(); |
203 buildCounterApksListResponse++; | 203 buildCounterApksListResponse++; |
204 if (buildCounterApksListResponse < 3) { | 204 if (buildCounterApksListResponse < 3) { |
205 o.apks = buildUnnamed2930(); | 205 o.apks = buildUnnamed3004(); |
206 o.kind = "foo"; | 206 o.kind = "foo"; |
207 } | 207 } |
208 buildCounterApksListResponse--; | 208 buildCounterApksListResponse--; |
209 return o; | 209 return o; |
210 } | 210 } |
211 | 211 |
212 checkApksListResponse(api.ApksListResponse o) { | 212 checkApksListResponse(api.ApksListResponse o) { |
213 buildCounterApksListResponse++; | 213 buildCounterApksListResponse++; |
214 if (buildCounterApksListResponse < 3) { | 214 if (buildCounterApksListResponse < 3) { |
215 checkUnnamed2930(o.apks); | 215 checkUnnamed3004(o.apks); |
216 unittest.expect(o.kind, unittest.equals('foo')); | 216 unittest.expect(o.kind, unittest.equals('foo')); |
217 } | 217 } |
218 buildCounterApksListResponse--; | 218 buildCounterApksListResponse--; |
219 } | 219 } |
220 | 220 |
221 core.int buildCounterAppDetails = 0; | 221 core.int buildCounterAppDetails = 0; |
222 buildAppDetails() { | 222 buildAppDetails() { |
223 var o = new api.AppDetails(); | 223 var o = new api.AppDetails(); |
224 buildCounterAppDetails++; | 224 buildCounterAppDetails++; |
225 if (buildCounterAppDetails < 3) { | 225 if (buildCounterAppDetails < 3) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 checkComment(api.Comment o) { | 279 checkComment(api.Comment o) { |
280 buildCounterComment++; | 280 buildCounterComment++; |
281 if (buildCounterComment < 3) { | 281 if (buildCounterComment < 3) { |
282 checkDeveloperComment(o.developerComment); | 282 checkDeveloperComment(o.developerComment); |
283 checkUserComment(o.userComment); | 283 checkUserComment(o.userComment); |
284 } | 284 } |
285 buildCounterComment--; | 285 buildCounterComment--; |
286 } | 286 } |
287 | 287 |
| 288 core.int buildCounterDeobfuscationFile = 0; |
| 289 buildDeobfuscationFile() { |
| 290 var o = new api.DeobfuscationFile(); |
| 291 buildCounterDeobfuscationFile++; |
| 292 if (buildCounterDeobfuscationFile < 3) { |
| 293 o.symbolType = "foo"; |
| 294 } |
| 295 buildCounterDeobfuscationFile--; |
| 296 return o; |
| 297 } |
| 298 |
| 299 checkDeobfuscationFile(api.DeobfuscationFile o) { |
| 300 buildCounterDeobfuscationFile++; |
| 301 if (buildCounterDeobfuscationFile < 3) { |
| 302 unittest.expect(o.symbolType, unittest.equals('foo')); |
| 303 } |
| 304 buildCounterDeobfuscationFile--; |
| 305 } |
| 306 |
| 307 core.int buildCounterDeobfuscationFilesUploadResponse = 0; |
| 308 buildDeobfuscationFilesUploadResponse() { |
| 309 var o = new api.DeobfuscationFilesUploadResponse(); |
| 310 buildCounterDeobfuscationFilesUploadResponse++; |
| 311 if (buildCounterDeobfuscationFilesUploadResponse < 3) { |
| 312 o.deobfuscationFile = buildDeobfuscationFile(); |
| 313 } |
| 314 buildCounterDeobfuscationFilesUploadResponse--; |
| 315 return o; |
| 316 } |
| 317 |
| 318 checkDeobfuscationFilesUploadResponse(api.DeobfuscationFilesUploadResponse o) { |
| 319 buildCounterDeobfuscationFilesUploadResponse++; |
| 320 if (buildCounterDeobfuscationFilesUploadResponse < 3) { |
| 321 checkDeobfuscationFile(o.deobfuscationFile); |
| 322 } |
| 323 buildCounterDeobfuscationFilesUploadResponse--; |
| 324 } |
| 325 |
288 core.int buildCounterDeveloperComment = 0; | 326 core.int buildCounterDeveloperComment = 0; |
289 buildDeveloperComment() { | 327 buildDeveloperComment() { |
290 var o = new api.DeveloperComment(); | 328 var o = new api.DeveloperComment(); |
291 buildCounterDeveloperComment++; | 329 buildCounterDeveloperComment++; |
292 if (buildCounterDeveloperComment < 3) { | 330 if (buildCounterDeveloperComment < 3) { |
293 o.lastModified = buildTimestamp(); | 331 o.lastModified = buildTimestamp(); |
294 o.text = "foo"; | 332 o.text = "foo"; |
295 } | 333 } |
296 buildCounterDeveloperComment--; | 334 buildCounterDeveloperComment--; |
297 return o; | 335 return o; |
(...skipping 26 matching lines...) Expand all Loading... |
324 buildCounterEntitlement++; | 362 buildCounterEntitlement++; |
325 if (buildCounterEntitlement < 3) { | 363 if (buildCounterEntitlement < 3) { |
326 unittest.expect(o.kind, unittest.equals('foo')); | 364 unittest.expect(o.kind, unittest.equals('foo')); |
327 unittest.expect(o.productId, unittest.equals('foo')); | 365 unittest.expect(o.productId, unittest.equals('foo')); |
328 unittest.expect(o.productType, unittest.equals('foo')); | 366 unittest.expect(o.productType, unittest.equals('foo')); |
329 unittest.expect(o.token, unittest.equals('foo')); | 367 unittest.expect(o.token, unittest.equals('foo')); |
330 } | 368 } |
331 buildCounterEntitlement--; | 369 buildCounterEntitlement--; |
332 } | 370 } |
333 | 371 |
334 buildUnnamed2931() { | 372 buildUnnamed3005() { |
335 var o = new core.List<api.Entitlement>(); | 373 var o = new core.List<api.Entitlement>(); |
336 o.add(buildEntitlement()); | 374 o.add(buildEntitlement()); |
337 o.add(buildEntitlement()); | 375 o.add(buildEntitlement()); |
338 return o; | 376 return o; |
339 } | 377 } |
340 | 378 |
341 checkUnnamed2931(core.List<api.Entitlement> o) { | 379 checkUnnamed3005(core.List<api.Entitlement> o) { |
342 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
343 checkEntitlement(o[0]); | 381 checkEntitlement(o[0]); |
344 checkEntitlement(o[1]); | 382 checkEntitlement(o[1]); |
345 } | 383 } |
346 | 384 |
347 core.int buildCounterEntitlementsListResponse = 0; | 385 core.int buildCounterEntitlementsListResponse = 0; |
348 buildEntitlementsListResponse() { | 386 buildEntitlementsListResponse() { |
349 var o = new api.EntitlementsListResponse(); | 387 var o = new api.EntitlementsListResponse(); |
350 buildCounterEntitlementsListResponse++; | 388 buildCounterEntitlementsListResponse++; |
351 if (buildCounterEntitlementsListResponse < 3) { | 389 if (buildCounterEntitlementsListResponse < 3) { |
352 o.pageInfo = buildPageInfo(); | 390 o.pageInfo = buildPageInfo(); |
353 o.resources = buildUnnamed2931(); | 391 o.resources = buildUnnamed3005(); |
354 o.tokenPagination = buildTokenPagination(); | 392 o.tokenPagination = buildTokenPagination(); |
355 } | 393 } |
356 buildCounterEntitlementsListResponse--; | 394 buildCounterEntitlementsListResponse--; |
357 return o; | 395 return o; |
358 } | 396 } |
359 | 397 |
360 checkEntitlementsListResponse(api.EntitlementsListResponse o) { | 398 checkEntitlementsListResponse(api.EntitlementsListResponse o) { |
361 buildCounterEntitlementsListResponse++; | 399 buildCounterEntitlementsListResponse++; |
362 if (buildCounterEntitlementsListResponse < 3) { | 400 if (buildCounterEntitlementsListResponse < 3) { |
363 checkPageInfo(o.pageInfo); | 401 checkPageInfo(o.pageInfo); |
364 checkUnnamed2931(o.resources); | 402 checkUnnamed3005(o.resources); |
365 checkTokenPagination(o.tokenPagination); | 403 checkTokenPagination(o.tokenPagination); |
366 } | 404 } |
367 buildCounterEntitlementsListResponse--; | 405 buildCounterEntitlementsListResponse--; |
368 } | 406 } |
369 | 407 |
370 core.int buildCounterExpansionFile = 0; | 408 core.int buildCounterExpansionFile = 0; |
371 buildExpansionFile() { | 409 buildExpansionFile() { |
372 var o = new api.ExpansionFile(); | 410 var o = new api.ExpansionFile(); |
373 buildCounterExpansionFile++; | 411 buildCounterExpansionFile++; |
374 if (buildCounterExpansionFile < 3) { | 412 if (buildCounterExpansionFile < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
400 } | 438 } |
401 | 439 |
402 checkExpansionFilesUploadResponse(api.ExpansionFilesUploadResponse o) { | 440 checkExpansionFilesUploadResponse(api.ExpansionFilesUploadResponse o) { |
403 buildCounterExpansionFilesUploadResponse++; | 441 buildCounterExpansionFilesUploadResponse++; |
404 if (buildCounterExpansionFilesUploadResponse < 3) { | 442 if (buildCounterExpansionFilesUploadResponse < 3) { |
405 checkExpansionFile(o.expansionFile); | 443 checkExpansionFile(o.expansionFile); |
406 } | 444 } |
407 buildCounterExpansionFilesUploadResponse--; | 445 buildCounterExpansionFilesUploadResponse--; |
408 } | 446 } |
409 | 447 |
410 buildUnnamed2932() { | 448 buildUnnamed3006() { |
411 var o = new core.List<core.String>(); | 449 var o = new core.List<core.String>(); |
412 o.add("foo"); | 450 o.add("foo"); |
413 o.add("foo"); | 451 o.add("foo"); |
414 return o; | 452 return o; |
415 } | 453 } |
416 | 454 |
417 checkUnnamed2932(core.List<core.String> o) { | 455 checkUnnamed3006(core.List<core.String> o) { |
418 unittest.expect(o, unittest.hasLength(2)); | 456 unittest.expect(o, unittest.hasLength(2)); |
419 unittest.expect(o[0], unittest.equals('foo')); | 457 unittest.expect(o[0], unittest.equals('foo')); |
420 unittest.expect(o[1], unittest.equals('foo')); | 458 unittest.expect(o[1], unittest.equals('foo')); |
421 } | 459 } |
422 | 460 |
423 buildUnnamed2933() { | 461 buildUnnamed3007() { |
424 var o = new core.List<core.String>(); | 462 var o = new core.List<core.String>(); |
425 o.add("foo"); | 463 o.add("foo"); |
426 o.add("foo"); | 464 o.add("foo"); |
427 return o; | 465 return o; |
428 } | 466 } |
429 | 467 |
430 checkUnnamed2933(core.List<core.String> o) { | 468 checkUnnamed3007(core.List<core.String> o) { |
431 unittest.expect(o, unittest.hasLength(2)); | 469 unittest.expect(o, unittest.hasLength(2)); |
432 unittest.expect(o[0], unittest.equals('foo')); | 470 unittest.expect(o[0], unittest.equals('foo')); |
433 unittest.expect(o[1], unittest.equals('foo')); | 471 unittest.expect(o[1], unittest.equals('foo')); |
434 } | 472 } |
435 | 473 |
436 buildUnnamed2934() { | 474 buildUnnamed3008() { |
437 var o = new core.List<core.String>(); | 475 var o = new core.List<core.String>(); |
438 o.add("foo"); | 476 o.add("foo"); |
439 o.add("foo"); | 477 o.add("foo"); |
440 return o; | 478 return o; |
441 } | 479 } |
442 | 480 |
443 checkUnnamed2934(core.List<core.String> o) { | 481 checkUnnamed3008(core.List<core.String> o) { |
444 unittest.expect(o, unittest.hasLength(2)); | 482 unittest.expect(o, unittest.hasLength(2)); |
445 unittest.expect(o[0], unittest.equals('foo')); | 483 unittest.expect(o[0], unittest.equals('foo')); |
446 unittest.expect(o[1], unittest.equals('foo')); | 484 unittest.expect(o[1], unittest.equals('foo')); |
447 } | 485 } |
448 | 486 |
449 buildUnnamed2935() { | 487 buildUnnamed3009() { |
450 var o = new core.List<api.ExternallyHostedApkUsesPermission>(); | 488 var o = new core.List<api.ExternallyHostedApkUsesPermission>(); |
451 o.add(buildExternallyHostedApkUsesPermission()); | 489 o.add(buildExternallyHostedApkUsesPermission()); |
452 o.add(buildExternallyHostedApkUsesPermission()); | 490 o.add(buildExternallyHostedApkUsesPermission()); |
453 return o; | 491 return o; |
454 } | 492 } |
455 | 493 |
456 checkUnnamed2935(core.List<api.ExternallyHostedApkUsesPermission> o) { | 494 checkUnnamed3009(core.List<api.ExternallyHostedApkUsesPermission> o) { |
457 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
458 checkExternallyHostedApkUsesPermission(o[0]); | 496 checkExternallyHostedApkUsesPermission(o[0]); |
459 checkExternallyHostedApkUsesPermission(o[1]); | 497 checkExternallyHostedApkUsesPermission(o[1]); |
460 } | 498 } |
461 | 499 |
462 core.int buildCounterExternallyHostedApk = 0; | 500 core.int buildCounterExternallyHostedApk = 0; |
463 buildExternallyHostedApk() { | 501 buildExternallyHostedApk() { |
464 var o = new api.ExternallyHostedApk(); | 502 var o = new api.ExternallyHostedApk(); |
465 buildCounterExternallyHostedApk++; | 503 buildCounterExternallyHostedApk++; |
466 if (buildCounterExternallyHostedApk < 3) { | 504 if (buildCounterExternallyHostedApk < 3) { |
467 o.applicationLabel = "foo"; | 505 o.applicationLabel = "foo"; |
468 o.certificateBase64s = buildUnnamed2932(); | 506 o.certificateBase64s = buildUnnamed3006(); |
469 o.externallyHostedUrl = "foo"; | 507 o.externallyHostedUrl = "foo"; |
470 o.fileSha1Base64 = "foo"; | 508 o.fileSha1Base64 = "foo"; |
471 o.fileSha256Base64 = "foo"; | 509 o.fileSha256Base64 = "foo"; |
472 o.fileSize = "foo"; | 510 o.fileSize = "foo"; |
473 o.iconBase64 = "foo"; | 511 o.iconBase64 = "foo"; |
474 o.maximumSdk = 42; | 512 o.maximumSdk = 42; |
475 o.minimumSdk = 42; | 513 o.minimumSdk = 42; |
476 o.nativeCodes = buildUnnamed2933(); | 514 o.nativeCodes = buildUnnamed3007(); |
477 o.packageName = "foo"; | 515 o.packageName = "foo"; |
478 o.usesFeatures = buildUnnamed2934(); | 516 o.usesFeatures = buildUnnamed3008(); |
479 o.usesPermissions = buildUnnamed2935(); | 517 o.usesPermissions = buildUnnamed3009(); |
480 o.versionCode = 42; | 518 o.versionCode = 42; |
481 o.versionName = "foo"; | 519 o.versionName = "foo"; |
482 } | 520 } |
483 buildCounterExternallyHostedApk--; | 521 buildCounterExternallyHostedApk--; |
484 return o; | 522 return o; |
485 } | 523 } |
486 | 524 |
487 checkExternallyHostedApk(api.ExternallyHostedApk o) { | 525 checkExternallyHostedApk(api.ExternallyHostedApk o) { |
488 buildCounterExternallyHostedApk++; | 526 buildCounterExternallyHostedApk++; |
489 if (buildCounterExternallyHostedApk < 3) { | 527 if (buildCounterExternallyHostedApk < 3) { |
490 unittest.expect(o.applicationLabel, unittest.equals('foo')); | 528 unittest.expect(o.applicationLabel, unittest.equals('foo')); |
491 checkUnnamed2932(o.certificateBase64s); | 529 checkUnnamed3006(o.certificateBase64s); |
492 unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); | 530 unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); |
493 unittest.expect(o.fileSha1Base64, unittest.equals('foo')); | 531 unittest.expect(o.fileSha1Base64, unittest.equals('foo')); |
494 unittest.expect(o.fileSha256Base64, unittest.equals('foo')); | 532 unittest.expect(o.fileSha256Base64, unittest.equals('foo')); |
495 unittest.expect(o.fileSize, unittest.equals('foo')); | 533 unittest.expect(o.fileSize, unittest.equals('foo')); |
496 unittest.expect(o.iconBase64, unittest.equals('foo')); | 534 unittest.expect(o.iconBase64, unittest.equals('foo')); |
497 unittest.expect(o.maximumSdk, unittest.equals(42)); | 535 unittest.expect(o.maximumSdk, unittest.equals(42)); |
498 unittest.expect(o.minimumSdk, unittest.equals(42)); | 536 unittest.expect(o.minimumSdk, unittest.equals(42)); |
499 checkUnnamed2933(o.nativeCodes); | 537 checkUnnamed3007(o.nativeCodes); |
500 unittest.expect(o.packageName, unittest.equals('foo')); | 538 unittest.expect(o.packageName, unittest.equals('foo')); |
501 checkUnnamed2934(o.usesFeatures); | 539 checkUnnamed3008(o.usesFeatures); |
502 checkUnnamed2935(o.usesPermissions); | 540 checkUnnamed3009(o.usesPermissions); |
503 unittest.expect(o.versionCode, unittest.equals(42)); | 541 unittest.expect(o.versionCode, unittest.equals(42)); |
504 unittest.expect(o.versionName, unittest.equals('foo')); | 542 unittest.expect(o.versionName, unittest.equals('foo')); |
505 } | 543 } |
506 buildCounterExternallyHostedApk--; | 544 buildCounterExternallyHostedApk--; |
507 } | 545 } |
508 | 546 |
509 core.int buildCounterExternallyHostedApkUsesPermission = 0; | 547 core.int buildCounterExternallyHostedApkUsesPermission = 0; |
510 buildExternallyHostedApkUsesPermission() { | 548 buildExternallyHostedApkUsesPermission() { |
511 var o = new api.ExternallyHostedApkUsesPermission(); | 549 var o = new api.ExternallyHostedApkUsesPermission(); |
512 buildCounterExternallyHostedApkUsesPermission++; | 550 buildCounterExternallyHostedApkUsesPermission++; |
(...skipping 30 matching lines...) Expand all Loading... |
543 checkImage(api.Image o) { | 581 checkImage(api.Image o) { |
544 buildCounterImage++; | 582 buildCounterImage++; |
545 if (buildCounterImage < 3) { | 583 if (buildCounterImage < 3) { |
546 unittest.expect(o.id, unittest.equals('foo')); | 584 unittest.expect(o.id, unittest.equals('foo')); |
547 unittest.expect(o.sha1, unittest.equals('foo')); | 585 unittest.expect(o.sha1, unittest.equals('foo')); |
548 unittest.expect(o.url, unittest.equals('foo')); | 586 unittest.expect(o.url, unittest.equals('foo')); |
549 } | 587 } |
550 buildCounterImage--; | 588 buildCounterImage--; |
551 } | 589 } |
552 | 590 |
553 buildUnnamed2936() { | 591 buildUnnamed3010() { |
554 var o = new core.List<api.Image>(); | 592 var o = new core.List<api.Image>(); |
555 o.add(buildImage()); | 593 o.add(buildImage()); |
556 o.add(buildImage()); | 594 o.add(buildImage()); |
557 return o; | 595 return o; |
558 } | 596 } |
559 | 597 |
560 checkUnnamed2936(core.List<api.Image> o) { | 598 checkUnnamed3010(core.List<api.Image> o) { |
561 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
562 checkImage(o[0]); | 600 checkImage(o[0]); |
563 checkImage(o[1]); | 601 checkImage(o[1]); |
564 } | 602 } |
565 | 603 |
566 core.int buildCounterImagesDeleteAllResponse = 0; | 604 core.int buildCounterImagesDeleteAllResponse = 0; |
567 buildImagesDeleteAllResponse() { | 605 buildImagesDeleteAllResponse() { |
568 var o = new api.ImagesDeleteAllResponse(); | 606 var o = new api.ImagesDeleteAllResponse(); |
569 buildCounterImagesDeleteAllResponse++; | 607 buildCounterImagesDeleteAllResponse++; |
570 if (buildCounterImagesDeleteAllResponse < 3) { | 608 if (buildCounterImagesDeleteAllResponse < 3) { |
571 o.deleted = buildUnnamed2936(); | 609 o.deleted = buildUnnamed3010(); |
572 } | 610 } |
573 buildCounterImagesDeleteAllResponse--; | 611 buildCounterImagesDeleteAllResponse--; |
574 return o; | 612 return o; |
575 } | 613 } |
576 | 614 |
577 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { | 615 checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { |
578 buildCounterImagesDeleteAllResponse++; | 616 buildCounterImagesDeleteAllResponse++; |
579 if (buildCounterImagesDeleteAllResponse < 3) { | 617 if (buildCounterImagesDeleteAllResponse < 3) { |
580 checkUnnamed2936(o.deleted); | 618 checkUnnamed3010(o.deleted); |
581 } | 619 } |
582 buildCounterImagesDeleteAllResponse--; | 620 buildCounterImagesDeleteAllResponse--; |
583 } | 621 } |
584 | 622 |
585 buildUnnamed2937() { | 623 buildUnnamed3011() { |
586 var o = new core.List<api.Image>(); | 624 var o = new core.List<api.Image>(); |
587 o.add(buildImage()); | 625 o.add(buildImage()); |
588 o.add(buildImage()); | 626 o.add(buildImage()); |
589 return o; | 627 return o; |
590 } | 628 } |
591 | 629 |
592 checkUnnamed2937(core.List<api.Image> o) { | 630 checkUnnamed3011(core.List<api.Image> o) { |
593 unittest.expect(o, unittest.hasLength(2)); | 631 unittest.expect(o, unittest.hasLength(2)); |
594 checkImage(o[0]); | 632 checkImage(o[0]); |
595 checkImage(o[1]); | 633 checkImage(o[1]); |
596 } | 634 } |
597 | 635 |
598 core.int buildCounterImagesListResponse = 0; | 636 core.int buildCounterImagesListResponse = 0; |
599 buildImagesListResponse() { | 637 buildImagesListResponse() { |
600 var o = new api.ImagesListResponse(); | 638 var o = new api.ImagesListResponse(); |
601 buildCounterImagesListResponse++; | 639 buildCounterImagesListResponse++; |
602 if (buildCounterImagesListResponse < 3) { | 640 if (buildCounterImagesListResponse < 3) { |
603 o.images = buildUnnamed2937(); | 641 o.images = buildUnnamed3011(); |
604 } | 642 } |
605 buildCounterImagesListResponse--; | 643 buildCounterImagesListResponse--; |
606 return o; | 644 return o; |
607 } | 645 } |
608 | 646 |
609 checkImagesListResponse(api.ImagesListResponse o) { | 647 checkImagesListResponse(api.ImagesListResponse o) { |
610 buildCounterImagesListResponse++; | 648 buildCounterImagesListResponse++; |
611 if (buildCounterImagesListResponse < 3) { | 649 if (buildCounterImagesListResponse < 3) { |
612 checkUnnamed2937(o.images); | 650 checkUnnamed3011(o.images); |
613 } | 651 } |
614 buildCounterImagesListResponse--; | 652 buildCounterImagesListResponse--; |
615 } | 653 } |
616 | 654 |
617 core.int buildCounterImagesUploadResponse = 0; | 655 core.int buildCounterImagesUploadResponse = 0; |
618 buildImagesUploadResponse() { | 656 buildImagesUploadResponse() { |
619 var o = new api.ImagesUploadResponse(); | 657 var o = new api.ImagesUploadResponse(); |
620 buildCounterImagesUploadResponse++; | 658 buildCounterImagesUploadResponse++; |
621 if (buildCounterImagesUploadResponse < 3) { | 659 if (buildCounterImagesUploadResponse < 3) { |
622 o.image = buildImage(); | 660 o.image = buildImage(); |
623 } | 661 } |
624 buildCounterImagesUploadResponse--; | 662 buildCounterImagesUploadResponse--; |
625 return o; | 663 return o; |
626 } | 664 } |
627 | 665 |
628 checkImagesUploadResponse(api.ImagesUploadResponse o) { | 666 checkImagesUploadResponse(api.ImagesUploadResponse o) { |
629 buildCounterImagesUploadResponse++; | 667 buildCounterImagesUploadResponse++; |
630 if (buildCounterImagesUploadResponse < 3) { | 668 if (buildCounterImagesUploadResponse < 3) { |
631 checkImage(o.image); | 669 checkImage(o.image); |
632 } | 670 } |
633 buildCounterImagesUploadResponse--; | 671 buildCounterImagesUploadResponse--; |
634 } | 672 } |
635 | 673 |
636 buildUnnamed2938() { | 674 buildUnnamed3012() { |
637 var o = new core.Map<core.String, api.InAppProductListing>(); | 675 var o = new core.Map<core.String, api.InAppProductListing>(); |
638 o["x"] = buildInAppProductListing(); | 676 o["x"] = buildInAppProductListing(); |
639 o["y"] = buildInAppProductListing(); | 677 o["y"] = buildInAppProductListing(); |
640 return o; | 678 return o; |
641 } | 679 } |
642 | 680 |
643 checkUnnamed2938(core.Map<core.String, api.InAppProductListing> o) { | 681 checkUnnamed3012(core.Map<core.String, api.InAppProductListing> o) { |
644 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
645 checkInAppProductListing(o["x"]); | 683 checkInAppProductListing(o["x"]); |
646 checkInAppProductListing(o["y"]); | 684 checkInAppProductListing(o["y"]); |
647 } | 685 } |
648 | 686 |
649 buildUnnamed2939() { | 687 buildUnnamed3013() { |
650 var o = new core.Map<core.String, api.Price>(); | 688 var o = new core.Map<core.String, api.Price>(); |
651 o["x"] = buildPrice(); | 689 o["x"] = buildPrice(); |
652 o["y"] = buildPrice(); | 690 o["y"] = buildPrice(); |
653 return o; | 691 return o; |
654 } | 692 } |
655 | 693 |
656 checkUnnamed2939(core.Map<core.String, api.Price> o) { | 694 checkUnnamed3013(core.Map<core.String, api.Price> o) { |
657 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
658 checkPrice(o["x"]); | 696 checkPrice(o["x"]); |
659 checkPrice(o["y"]); | 697 checkPrice(o["y"]); |
660 } | 698 } |
661 | 699 |
662 core.int buildCounterInAppProduct = 0; | 700 core.int buildCounterInAppProduct = 0; |
663 buildInAppProduct() { | 701 buildInAppProduct() { |
664 var o = new api.InAppProduct(); | 702 var o = new api.InAppProduct(); |
665 buildCounterInAppProduct++; | 703 buildCounterInAppProduct++; |
666 if (buildCounterInAppProduct < 3) { | 704 if (buildCounterInAppProduct < 3) { |
667 o.defaultLanguage = "foo"; | 705 o.defaultLanguage = "foo"; |
668 o.defaultPrice = buildPrice(); | 706 o.defaultPrice = buildPrice(); |
669 o.listings = buildUnnamed2938(); | 707 o.listings = buildUnnamed3012(); |
670 o.packageName = "foo"; | 708 o.packageName = "foo"; |
671 o.prices = buildUnnamed2939(); | 709 o.prices = buildUnnamed3013(); |
672 o.purchaseType = "foo"; | 710 o.purchaseType = "foo"; |
673 o.season = buildSeason(); | 711 o.season = buildSeason(); |
674 o.sku = "foo"; | 712 o.sku = "foo"; |
675 o.status = "foo"; | 713 o.status = "foo"; |
676 o.subscriptionPeriod = "foo"; | 714 o.subscriptionPeriod = "foo"; |
677 o.trialPeriod = "foo"; | 715 o.trialPeriod = "foo"; |
678 } | 716 } |
679 buildCounterInAppProduct--; | 717 buildCounterInAppProduct--; |
680 return o; | 718 return o; |
681 } | 719 } |
682 | 720 |
683 checkInAppProduct(api.InAppProduct o) { | 721 checkInAppProduct(api.InAppProduct o) { |
684 buildCounterInAppProduct++; | 722 buildCounterInAppProduct++; |
685 if (buildCounterInAppProduct < 3) { | 723 if (buildCounterInAppProduct < 3) { |
686 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 724 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
687 checkPrice(o.defaultPrice); | 725 checkPrice(o.defaultPrice); |
688 checkUnnamed2938(o.listings); | 726 checkUnnamed3012(o.listings); |
689 unittest.expect(o.packageName, unittest.equals('foo')); | 727 unittest.expect(o.packageName, unittest.equals('foo')); |
690 checkUnnamed2939(o.prices); | 728 checkUnnamed3013(o.prices); |
691 unittest.expect(o.purchaseType, unittest.equals('foo')); | 729 unittest.expect(o.purchaseType, unittest.equals('foo')); |
692 checkSeason(o.season); | 730 checkSeason(o.season); |
693 unittest.expect(o.sku, unittest.equals('foo')); | 731 unittest.expect(o.sku, unittest.equals('foo')); |
694 unittest.expect(o.status, unittest.equals('foo')); | 732 unittest.expect(o.status, unittest.equals('foo')); |
695 unittest.expect(o.subscriptionPeriod, unittest.equals('foo')); | 733 unittest.expect(o.subscriptionPeriod, unittest.equals('foo')); |
696 unittest.expect(o.trialPeriod, unittest.equals('foo')); | 734 unittest.expect(o.trialPeriod, unittest.equals('foo')); |
697 } | 735 } |
698 buildCounterInAppProduct--; | 736 buildCounterInAppProduct--; |
699 } | 737 } |
700 | 738 |
(...skipping 11 matching lines...) Expand all Loading... |
712 | 750 |
713 checkInAppProductListing(api.InAppProductListing o) { | 751 checkInAppProductListing(api.InAppProductListing o) { |
714 buildCounterInAppProductListing++; | 752 buildCounterInAppProductListing++; |
715 if (buildCounterInAppProductListing < 3) { | 753 if (buildCounterInAppProductListing < 3) { |
716 unittest.expect(o.description, unittest.equals('foo')); | 754 unittest.expect(o.description, unittest.equals('foo')); |
717 unittest.expect(o.title, unittest.equals('foo')); | 755 unittest.expect(o.title, unittest.equals('foo')); |
718 } | 756 } |
719 buildCounterInAppProductListing--; | 757 buildCounterInAppProductListing--; |
720 } | 758 } |
721 | 759 |
722 buildUnnamed2940() { | 760 buildUnnamed3014() { |
723 var o = new core.List<api.InappproductsBatchRequestEntry>(); | 761 var o = new core.List<api.InappproductsBatchRequestEntry>(); |
724 o.add(buildInappproductsBatchRequestEntry()); | 762 o.add(buildInappproductsBatchRequestEntry()); |
725 o.add(buildInappproductsBatchRequestEntry()); | 763 o.add(buildInappproductsBatchRequestEntry()); |
726 return o; | 764 return o; |
727 } | 765 } |
728 | 766 |
729 checkUnnamed2940(core.List<api.InappproductsBatchRequestEntry> o) { | 767 checkUnnamed3014(core.List<api.InappproductsBatchRequestEntry> o) { |
730 unittest.expect(o, unittest.hasLength(2)); | 768 unittest.expect(o, unittest.hasLength(2)); |
731 checkInappproductsBatchRequestEntry(o[0]); | 769 checkInappproductsBatchRequestEntry(o[0]); |
732 checkInappproductsBatchRequestEntry(o[1]); | 770 checkInappproductsBatchRequestEntry(o[1]); |
733 } | 771 } |
734 | 772 |
735 core.int buildCounterInappproductsBatchRequest = 0; | 773 core.int buildCounterInappproductsBatchRequest = 0; |
736 buildInappproductsBatchRequest() { | 774 buildInappproductsBatchRequest() { |
737 var o = new api.InappproductsBatchRequest(); | 775 var o = new api.InappproductsBatchRequest(); |
738 buildCounterInappproductsBatchRequest++; | 776 buildCounterInappproductsBatchRequest++; |
739 if (buildCounterInappproductsBatchRequest < 3) { | 777 if (buildCounterInappproductsBatchRequest < 3) { |
740 o.entrys = buildUnnamed2940(); | 778 o.entrys = buildUnnamed3014(); |
741 } | 779 } |
742 buildCounterInappproductsBatchRequest--; | 780 buildCounterInappproductsBatchRequest--; |
743 return o; | 781 return o; |
744 } | 782 } |
745 | 783 |
746 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { | 784 checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { |
747 buildCounterInappproductsBatchRequest++; | 785 buildCounterInappproductsBatchRequest++; |
748 if (buildCounterInappproductsBatchRequest < 3) { | 786 if (buildCounterInappproductsBatchRequest < 3) { |
749 checkUnnamed2940(o.entrys); | 787 checkUnnamed3014(o.entrys); |
750 } | 788 } |
751 buildCounterInappproductsBatchRequest--; | 789 buildCounterInappproductsBatchRequest--; |
752 } | 790 } |
753 | 791 |
754 core.int buildCounterInappproductsBatchRequestEntry = 0; | 792 core.int buildCounterInappproductsBatchRequestEntry = 0; |
755 buildInappproductsBatchRequestEntry() { | 793 buildInappproductsBatchRequestEntry() { |
756 var o = new api.InappproductsBatchRequestEntry(); | 794 var o = new api.InappproductsBatchRequestEntry(); |
757 buildCounterInappproductsBatchRequestEntry++; | 795 buildCounterInappproductsBatchRequestEntry++; |
758 if (buildCounterInappproductsBatchRequestEntry < 3) { | 796 if (buildCounterInappproductsBatchRequestEntry < 3) { |
759 o.batchId = 42; | 797 o.batchId = 42; |
760 o.inappproductsinsertrequest = buildInappproductsInsertRequest(); | 798 o.inappproductsinsertrequest = buildInappproductsInsertRequest(); |
761 o.inappproductsupdaterequest = buildInappproductsUpdateRequest(); | 799 o.inappproductsupdaterequest = buildInappproductsUpdateRequest(); |
762 o.methodName = "foo"; | 800 o.methodName = "foo"; |
763 } | 801 } |
764 buildCounterInappproductsBatchRequestEntry--; | 802 buildCounterInappproductsBatchRequestEntry--; |
765 return o; | 803 return o; |
766 } | 804 } |
767 | 805 |
768 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) { | 806 checkInappproductsBatchRequestEntry(api.InappproductsBatchRequestEntry o) { |
769 buildCounterInappproductsBatchRequestEntry++; | 807 buildCounterInappproductsBatchRequestEntry++; |
770 if (buildCounterInappproductsBatchRequestEntry < 3) { | 808 if (buildCounterInappproductsBatchRequestEntry < 3) { |
771 unittest.expect(o.batchId, unittest.equals(42)); | 809 unittest.expect(o.batchId, unittest.equals(42)); |
772 checkInappproductsInsertRequest(o.inappproductsinsertrequest); | 810 checkInappproductsInsertRequest(o.inappproductsinsertrequest); |
773 checkInappproductsUpdateRequest(o.inappproductsupdaterequest); | 811 checkInappproductsUpdateRequest(o.inappproductsupdaterequest); |
774 unittest.expect(o.methodName, unittest.equals('foo')); | 812 unittest.expect(o.methodName, unittest.equals('foo')); |
775 } | 813 } |
776 buildCounterInappproductsBatchRequestEntry--; | 814 buildCounterInappproductsBatchRequestEntry--; |
777 } | 815 } |
778 | 816 |
779 buildUnnamed2941() { | 817 buildUnnamed3015() { |
780 var o = new core.List<api.InappproductsBatchResponseEntry>(); | 818 var o = new core.List<api.InappproductsBatchResponseEntry>(); |
781 o.add(buildInappproductsBatchResponseEntry()); | 819 o.add(buildInappproductsBatchResponseEntry()); |
782 o.add(buildInappproductsBatchResponseEntry()); | 820 o.add(buildInappproductsBatchResponseEntry()); |
783 return o; | 821 return o; |
784 } | 822 } |
785 | 823 |
786 checkUnnamed2941(core.List<api.InappproductsBatchResponseEntry> o) { | 824 checkUnnamed3015(core.List<api.InappproductsBatchResponseEntry> o) { |
787 unittest.expect(o, unittest.hasLength(2)); | 825 unittest.expect(o, unittest.hasLength(2)); |
788 checkInappproductsBatchResponseEntry(o[0]); | 826 checkInappproductsBatchResponseEntry(o[0]); |
789 checkInappproductsBatchResponseEntry(o[1]); | 827 checkInappproductsBatchResponseEntry(o[1]); |
790 } | 828 } |
791 | 829 |
792 core.int buildCounterInappproductsBatchResponse = 0; | 830 core.int buildCounterInappproductsBatchResponse = 0; |
793 buildInappproductsBatchResponse() { | 831 buildInappproductsBatchResponse() { |
794 var o = new api.InappproductsBatchResponse(); | 832 var o = new api.InappproductsBatchResponse(); |
795 buildCounterInappproductsBatchResponse++; | 833 buildCounterInappproductsBatchResponse++; |
796 if (buildCounterInappproductsBatchResponse < 3) { | 834 if (buildCounterInappproductsBatchResponse < 3) { |
797 o.entrys = buildUnnamed2941(); | 835 o.entrys = buildUnnamed3015(); |
798 o.kind = "foo"; | 836 o.kind = "foo"; |
799 } | 837 } |
800 buildCounterInappproductsBatchResponse--; | 838 buildCounterInappproductsBatchResponse--; |
801 return o; | 839 return o; |
802 } | 840 } |
803 | 841 |
804 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { | 842 checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { |
805 buildCounterInappproductsBatchResponse++; | 843 buildCounterInappproductsBatchResponse++; |
806 if (buildCounterInappproductsBatchResponse < 3) { | 844 if (buildCounterInappproductsBatchResponse < 3) { |
807 checkUnnamed2941(o.entrys); | 845 checkUnnamed3015(o.entrys); |
808 unittest.expect(o.kind, unittest.equals('foo')); | 846 unittest.expect(o.kind, unittest.equals('foo')); |
809 } | 847 } |
810 buildCounterInappproductsBatchResponse--; | 848 buildCounterInappproductsBatchResponse--; |
811 } | 849 } |
812 | 850 |
813 core.int buildCounterInappproductsBatchResponseEntry = 0; | 851 core.int buildCounterInappproductsBatchResponseEntry = 0; |
814 buildInappproductsBatchResponseEntry() { | 852 buildInappproductsBatchResponseEntry() { |
815 var o = new api.InappproductsBatchResponseEntry(); | 853 var o = new api.InappproductsBatchResponseEntry(); |
816 buildCounterInappproductsBatchResponseEntry++; | 854 buildCounterInappproductsBatchResponseEntry++; |
817 if (buildCounterInappproductsBatchResponseEntry < 3) { | 855 if (buildCounterInappproductsBatchResponseEntry < 3) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 } | 902 } |
865 | 903 |
866 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) { | 904 checkInappproductsInsertResponse(api.InappproductsInsertResponse o) { |
867 buildCounterInappproductsInsertResponse++; | 905 buildCounterInappproductsInsertResponse++; |
868 if (buildCounterInappproductsInsertResponse < 3) { | 906 if (buildCounterInappproductsInsertResponse < 3) { |
869 checkInAppProduct(o.inappproduct); | 907 checkInAppProduct(o.inappproduct); |
870 } | 908 } |
871 buildCounterInappproductsInsertResponse--; | 909 buildCounterInappproductsInsertResponse--; |
872 } | 910 } |
873 | 911 |
874 buildUnnamed2942() { | 912 buildUnnamed3016() { |
875 var o = new core.List<api.InAppProduct>(); | 913 var o = new core.List<api.InAppProduct>(); |
876 o.add(buildInAppProduct()); | 914 o.add(buildInAppProduct()); |
877 o.add(buildInAppProduct()); | 915 o.add(buildInAppProduct()); |
878 return o; | 916 return o; |
879 } | 917 } |
880 | 918 |
881 checkUnnamed2942(core.List<api.InAppProduct> o) { | 919 checkUnnamed3016(core.List<api.InAppProduct> o) { |
882 unittest.expect(o, unittest.hasLength(2)); | 920 unittest.expect(o, unittest.hasLength(2)); |
883 checkInAppProduct(o[0]); | 921 checkInAppProduct(o[0]); |
884 checkInAppProduct(o[1]); | 922 checkInAppProduct(o[1]); |
885 } | 923 } |
886 | 924 |
887 core.int buildCounterInappproductsListResponse = 0; | 925 core.int buildCounterInappproductsListResponse = 0; |
888 buildInappproductsListResponse() { | 926 buildInappproductsListResponse() { |
889 var o = new api.InappproductsListResponse(); | 927 var o = new api.InappproductsListResponse(); |
890 buildCounterInappproductsListResponse++; | 928 buildCounterInappproductsListResponse++; |
891 if (buildCounterInappproductsListResponse < 3) { | 929 if (buildCounterInappproductsListResponse < 3) { |
892 o.inappproduct = buildUnnamed2942(); | 930 o.inappproduct = buildUnnamed3016(); |
893 o.kind = "foo"; | 931 o.kind = "foo"; |
894 o.pageInfo = buildPageInfo(); | 932 o.pageInfo = buildPageInfo(); |
895 o.tokenPagination = buildTokenPagination(); | 933 o.tokenPagination = buildTokenPagination(); |
896 } | 934 } |
897 buildCounterInappproductsListResponse--; | 935 buildCounterInappproductsListResponse--; |
898 return o; | 936 return o; |
899 } | 937 } |
900 | 938 |
901 checkInappproductsListResponse(api.InappproductsListResponse o) { | 939 checkInappproductsListResponse(api.InappproductsListResponse o) { |
902 buildCounterInappproductsListResponse++; | 940 buildCounterInappproductsListResponse++; |
903 if (buildCounterInappproductsListResponse < 3) { | 941 if (buildCounterInappproductsListResponse < 3) { |
904 checkUnnamed2942(o.inappproduct); | 942 checkUnnamed3016(o.inappproduct); |
905 unittest.expect(o.kind, unittest.equals('foo')); | 943 unittest.expect(o.kind, unittest.equals('foo')); |
906 checkPageInfo(o.pageInfo); | 944 checkPageInfo(o.pageInfo); |
907 checkTokenPagination(o.tokenPagination); | 945 checkTokenPagination(o.tokenPagination); |
908 } | 946 } |
909 buildCounterInappproductsListResponse--; | 947 buildCounterInappproductsListResponse--; |
910 } | 948 } |
911 | 949 |
912 core.int buildCounterInappproductsUpdateRequest = 0; | 950 core.int buildCounterInappproductsUpdateRequest = 0; |
913 buildInappproductsUpdateRequest() { | 951 buildInappproductsUpdateRequest() { |
914 var o = new api.InappproductsUpdateRequest(); | 952 var o = new api.InappproductsUpdateRequest(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 if (buildCounterListing < 3) { | 1005 if (buildCounterListing < 3) { |
968 unittest.expect(o.fullDescription, unittest.equals('foo')); | 1006 unittest.expect(o.fullDescription, unittest.equals('foo')); |
969 unittest.expect(o.language, unittest.equals('foo')); | 1007 unittest.expect(o.language, unittest.equals('foo')); |
970 unittest.expect(o.shortDescription, unittest.equals('foo')); | 1008 unittest.expect(o.shortDescription, unittest.equals('foo')); |
971 unittest.expect(o.title, unittest.equals('foo')); | 1009 unittest.expect(o.title, unittest.equals('foo')); |
972 unittest.expect(o.video, unittest.equals('foo')); | 1010 unittest.expect(o.video, unittest.equals('foo')); |
973 } | 1011 } |
974 buildCounterListing--; | 1012 buildCounterListing--; |
975 } | 1013 } |
976 | 1014 |
977 buildUnnamed2943() { | 1015 buildUnnamed3017() { |
978 var o = new core.List<api.Listing>(); | 1016 var o = new core.List<api.Listing>(); |
979 o.add(buildListing()); | 1017 o.add(buildListing()); |
980 o.add(buildListing()); | 1018 o.add(buildListing()); |
981 return o; | 1019 return o; |
982 } | 1020 } |
983 | 1021 |
984 checkUnnamed2943(core.List<api.Listing> o) { | 1022 checkUnnamed3017(core.List<api.Listing> o) { |
985 unittest.expect(o, unittest.hasLength(2)); | 1023 unittest.expect(o, unittest.hasLength(2)); |
986 checkListing(o[0]); | 1024 checkListing(o[0]); |
987 checkListing(o[1]); | 1025 checkListing(o[1]); |
988 } | 1026 } |
989 | 1027 |
990 core.int buildCounterListingsListResponse = 0; | 1028 core.int buildCounterListingsListResponse = 0; |
991 buildListingsListResponse() { | 1029 buildListingsListResponse() { |
992 var o = new api.ListingsListResponse(); | 1030 var o = new api.ListingsListResponse(); |
993 buildCounterListingsListResponse++; | 1031 buildCounterListingsListResponse++; |
994 if (buildCounterListingsListResponse < 3) { | 1032 if (buildCounterListingsListResponse < 3) { |
995 o.kind = "foo"; | 1033 o.kind = "foo"; |
996 o.listings = buildUnnamed2943(); | 1034 o.listings = buildUnnamed3017(); |
997 } | 1035 } |
998 buildCounterListingsListResponse--; | 1036 buildCounterListingsListResponse--; |
999 return o; | 1037 return o; |
1000 } | 1038 } |
1001 | 1039 |
1002 checkListingsListResponse(api.ListingsListResponse o) { | 1040 checkListingsListResponse(api.ListingsListResponse o) { |
1003 buildCounterListingsListResponse++; | 1041 buildCounterListingsListResponse++; |
1004 if (buildCounterListingsListResponse < 3) { | 1042 if (buildCounterListingsListResponse < 3) { |
1005 unittest.expect(o.kind, unittest.equals('foo')); | 1043 unittest.expect(o.kind, unittest.equals('foo')); |
1006 checkUnnamed2943(o.listings); | 1044 checkUnnamed3017(o.listings); |
1007 } | 1045 } |
1008 buildCounterListingsListResponse--; | 1046 buildCounterListingsListResponse--; |
1009 } | 1047 } |
1010 | 1048 |
1011 core.int buildCounterMonthDay = 0; | 1049 core.int buildCounterMonthDay = 0; |
1012 buildMonthDay() { | 1050 buildMonthDay() { |
1013 var o = new api.MonthDay(); | 1051 var o = new api.MonthDay(); |
1014 buildCounterMonthDay++; | 1052 buildCounterMonthDay++; |
1015 if (buildCounterMonthDay < 3) { | 1053 if (buildCounterMonthDay < 3) { |
1016 o.day = 42; | 1054 o.day = 42; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 | 1152 |
1115 checkProrate(api.Prorate o) { | 1153 checkProrate(api.Prorate o) { |
1116 buildCounterProrate++; | 1154 buildCounterProrate++; |
1117 if (buildCounterProrate < 3) { | 1155 if (buildCounterProrate < 3) { |
1118 checkPrice(o.defaultPrice); | 1156 checkPrice(o.defaultPrice); |
1119 checkMonthDay(o.start); | 1157 checkMonthDay(o.start); |
1120 } | 1158 } |
1121 buildCounterProrate--; | 1159 buildCounterProrate--; |
1122 } | 1160 } |
1123 | 1161 |
1124 buildUnnamed2944() { | 1162 buildUnnamed3018() { |
1125 var o = new core.List<api.Comment>(); | 1163 var o = new core.List<api.Comment>(); |
1126 o.add(buildComment()); | 1164 o.add(buildComment()); |
1127 o.add(buildComment()); | 1165 o.add(buildComment()); |
1128 return o; | 1166 return o; |
1129 } | 1167 } |
1130 | 1168 |
1131 checkUnnamed2944(core.List<api.Comment> o) { | 1169 checkUnnamed3018(core.List<api.Comment> o) { |
1132 unittest.expect(o, unittest.hasLength(2)); | 1170 unittest.expect(o, unittest.hasLength(2)); |
1133 checkComment(o[0]); | 1171 checkComment(o[0]); |
1134 checkComment(o[1]); | 1172 checkComment(o[1]); |
1135 } | 1173 } |
1136 | 1174 |
1137 core.int buildCounterReview = 0; | 1175 core.int buildCounterReview = 0; |
1138 buildReview() { | 1176 buildReview() { |
1139 var o = new api.Review(); | 1177 var o = new api.Review(); |
1140 buildCounterReview++; | 1178 buildCounterReview++; |
1141 if (buildCounterReview < 3) { | 1179 if (buildCounterReview < 3) { |
1142 o.authorName = "foo"; | 1180 o.authorName = "foo"; |
1143 o.comments = buildUnnamed2944(); | 1181 o.comments = buildUnnamed3018(); |
1144 o.reviewId = "foo"; | 1182 o.reviewId = "foo"; |
1145 } | 1183 } |
1146 buildCounterReview--; | 1184 buildCounterReview--; |
1147 return o; | 1185 return o; |
1148 } | 1186 } |
1149 | 1187 |
1150 checkReview(api.Review o) { | 1188 checkReview(api.Review o) { |
1151 buildCounterReview++; | 1189 buildCounterReview++; |
1152 if (buildCounterReview < 3) { | 1190 if (buildCounterReview < 3) { |
1153 unittest.expect(o.authorName, unittest.equals('foo')); | 1191 unittest.expect(o.authorName, unittest.equals('foo')); |
1154 checkUnnamed2944(o.comments); | 1192 checkUnnamed3018(o.comments); |
1155 unittest.expect(o.reviewId, unittest.equals('foo')); | 1193 unittest.expect(o.reviewId, unittest.equals('foo')); |
1156 } | 1194 } |
1157 buildCounterReview--; | 1195 buildCounterReview--; |
1158 } | 1196 } |
1159 | 1197 |
1160 core.int buildCounterReviewReplyResult = 0; | 1198 core.int buildCounterReviewReplyResult = 0; |
1161 buildReviewReplyResult() { | 1199 buildReviewReplyResult() { |
1162 var o = new api.ReviewReplyResult(); | 1200 var o = new api.ReviewReplyResult(); |
1163 buildCounterReviewReplyResult++; | 1201 buildCounterReviewReplyResult++; |
1164 if (buildCounterReviewReplyResult < 3) { | 1202 if (buildCounterReviewReplyResult < 3) { |
1165 o.lastEdited = buildTimestamp(); | 1203 o.lastEdited = buildTimestamp(); |
1166 o.replyText = "foo"; | 1204 o.replyText = "foo"; |
1167 } | 1205 } |
1168 buildCounterReviewReplyResult--; | 1206 buildCounterReviewReplyResult--; |
1169 return o; | 1207 return o; |
1170 } | 1208 } |
1171 | 1209 |
1172 checkReviewReplyResult(api.ReviewReplyResult o) { | 1210 checkReviewReplyResult(api.ReviewReplyResult o) { |
1173 buildCounterReviewReplyResult++; | 1211 buildCounterReviewReplyResult++; |
1174 if (buildCounterReviewReplyResult < 3) { | 1212 if (buildCounterReviewReplyResult < 3) { |
1175 checkTimestamp(o.lastEdited); | 1213 checkTimestamp(o.lastEdited); |
1176 unittest.expect(o.replyText, unittest.equals('foo')); | 1214 unittest.expect(o.replyText, unittest.equals('foo')); |
1177 } | 1215 } |
1178 buildCounterReviewReplyResult--; | 1216 buildCounterReviewReplyResult--; |
1179 } | 1217 } |
1180 | 1218 |
1181 buildUnnamed2945() { | 1219 buildUnnamed3019() { |
1182 var o = new core.List<api.Review>(); | 1220 var o = new core.List<api.Review>(); |
1183 o.add(buildReview()); | 1221 o.add(buildReview()); |
1184 o.add(buildReview()); | 1222 o.add(buildReview()); |
1185 return o; | 1223 return o; |
1186 } | 1224 } |
1187 | 1225 |
1188 checkUnnamed2945(core.List<api.Review> o) { | 1226 checkUnnamed3019(core.List<api.Review> o) { |
1189 unittest.expect(o, unittest.hasLength(2)); | 1227 unittest.expect(o, unittest.hasLength(2)); |
1190 checkReview(o[0]); | 1228 checkReview(o[0]); |
1191 checkReview(o[1]); | 1229 checkReview(o[1]); |
1192 } | 1230 } |
1193 | 1231 |
1194 core.int buildCounterReviewsListResponse = 0; | 1232 core.int buildCounterReviewsListResponse = 0; |
1195 buildReviewsListResponse() { | 1233 buildReviewsListResponse() { |
1196 var o = new api.ReviewsListResponse(); | 1234 var o = new api.ReviewsListResponse(); |
1197 buildCounterReviewsListResponse++; | 1235 buildCounterReviewsListResponse++; |
1198 if (buildCounterReviewsListResponse < 3) { | 1236 if (buildCounterReviewsListResponse < 3) { |
1199 o.pageInfo = buildPageInfo(); | 1237 o.pageInfo = buildPageInfo(); |
1200 o.reviews = buildUnnamed2945(); | 1238 o.reviews = buildUnnamed3019(); |
1201 o.tokenPagination = buildTokenPagination(); | 1239 o.tokenPagination = buildTokenPagination(); |
1202 } | 1240 } |
1203 buildCounterReviewsListResponse--; | 1241 buildCounterReviewsListResponse--; |
1204 return o; | 1242 return o; |
1205 } | 1243 } |
1206 | 1244 |
1207 checkReviewsListResponse(api.ReviewsListResponse o) { | 1245 checkReviewsListResponse(api.ReviewsListResponse o) { |
1208 buildCounterReviewsListResponse++; | 1246 buildCounterReviewsListResponse++; |
1209 if (buildCounterReviewsListResponse < 3) { | 1247 if (buildCounterReviewsListResponse < 3) { |
1210 checkPageInfo(o.pageInfo); | 1248 checkPageInfo(o.pageInfo); |
1211 checkUnnamed2945(o.reviews); | 1249 checkUnnamed3019(o.reviews); |
1212 checkTokenPagination(o.tokenPagination); | 1250 checkTokenPagination(o.tokenPagination); |
1213 } | 1251 } |
1214 buildCounterReviewsListResponse--; | 1252 buildCounterReviewsListResponse--; |
1215 } | 1253 } |
1216 | 1254 |
1217 core.int buildCounterReviewsReplyRequest = 0; | 1255 core.int buildCounterReviewsReplyRequest = 0; |
1218 buildReviewsReplyRequest() { | 1256 buildReviewsReplyRequest() { |
1219 var o = new api.ReviewsReplyRequest(); | 1257 var o = new api.ReviewsReplyRequest(); |
1220 buildCounterReviewsReplyRequest++; | 1258 buildCounterReviewsReplyRequest++; |
1221 if (buildCounterReviewsReplyRequest < 3) { | 1259 if (buildCounterReviewsReplyRequest < 3) { |
(...skipping 23 matching lines...) Expand all Loading... |
1245 } | 1283 } |
1246 | 1284 |
1247 checkReviewsReplyResponse(api.ReviewsReplyResponse o) { | 1285 checkReviewsReplyResponse(api.ReviewsReplyResponse o) { |
1248 buildCounterReviewsReplyResponse++; | 1286 buildCounterReviewsReplyResponse++; |
1249 if (buildCounterReviewsReplyResponse < 3) { | 1287 if (buildCounterReviewsReplyResponse < 3) { |
1250 checkReviewReplyResult(o.result); | 1288 checkReviewReplyResult(o.result); |
1251 } | 1289 } |
1252 buildCounterReviewsReplyResponse--; | 1290 buildCounterReviewsReplyResponse--; |
1253 } | 1291 } |
1254 | 1292 |
1255 buildUnnamed2946() { | 1293 buildUnnamed3020() { |
1256 var o = new core.List<api.Prorate>(); | 1294 var o = new core.List<api.Prorate>(); |
1257 o.add(buildProrate()); | 1295 o.add(buildProrate()); |
1258 o.add(buildProrate()); | 1296 o.add(buildProrate()); |
1259 return o; | 1297 return o; |
1260 } | 1298 } |
1261 | 1299 |
1262 checkUnnamed2946(core.List<api.Prorate> o) { | 1300 checkUnnamed3020(core.List<api.Prorate> o) { |
1263 unittest.expect(o, unittest.hasLength(2)); | 1301 unittest.expect(o, unittest.hasLength(2)); |
1264 checkProrate(o[0]); | 1302 checkProrate(o[0]); |
1265 checkProrate(o[1]); | 1303 checkProrate(o[1]); |
1266 } | 1304 } |
1267 | 1305 |
1268 core.int buildCounterSeason = 0; | 1306 core.int buildCounterSeason = 0; |
1269 buildSeason() { | 1307 buildSeason() { |
1270 var o = new api.Season(); | 1308 var o = new api.Season(); |
1271 buildCounterSeason++; | 1309 buildCounterSeason++; |
1272 if (buildCounterSeason < 3) { | 1310 if (buildCounterSeason < 3) { |
1273 o.end = buildMonthDay(); | 1311 o.end = buildMonthDay(); |
1274 o.prorations = buildUnnamed2946(); | 1312 o.prorations = buildUnnamed3020(); |
1275 o.start = buildMonthDay(); | 1313 o.start = buildMonthDay(); |
1276 } | 1314 } |
1277 buildCounterSeason--; | 1315 buildCounterSeason--; |
1278 return o; | 1316 return o; |
1279 } | 1317 } |
1280 | 1318 |
1281 checkSeason(api.Season o) { | 1319 checkSeason(api.Season o) { |
1282 buildCounterSeason++; | 1320 buildCounterSeason++; |
1283 if (buildCounterSeason < 3) { | 1321 if (buildCounterSeason < 3) { |
1284 checkMonthDay(o.end); | 1322 checkMonthDay(o.end); |
1285 checkUnnamed2946(o.prorations); | 1323 checkUnnamed3020(o.prorations); |
1286 checkMonthDay(o.start); | 1324 checkMonthDay(o.start); |
1287 } | 1325 } |
1288 buildCounterSeason--; | 1326 buildCounterSeason--; |
1289 } | 1327 } |
1290 | 1328 |
1291 core.int buildCounterSubscriptionDeferralInfo = 0; | 1329 core.int buildCounterSubscriptionDeferralInfo = 0; |
1292 buildSubscriptionDeferralInfo() { | 1330 buildSubscriptionDeferralInfo() { |
1293 var o = new api.SubscriptionDeferralInfo(); | 1331 var o = new api.SubscriptionDeferralInfo(); |
1294 buildCounterSubscriptionDeferralInfo++; | 1332 buildCounterSubscriptionDeferralInfo++; |
1295 if (buildCounterSubscriptionDeferralInfo < 3) { | 1333 if (buildCounterSubscriptionDeferralInfo < 3) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 } | 1415 } |
1378 | 1416 |
1379 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o
) { | 1417 checkSubscriptionPurchasesDeferResponse(api.SubscriptionPurchasesDeferResponse o
) { |
1380 buildCounterSubscriptionPurchasesDeferResponse++; | 1418 buildCounterSubscriptionPurchasesDeferResponse++; |
1381 if (buildCounterSubscriptionPurchasesDeferResponse < 3) { | 1419 if (buildCounterSubscriptionPurchasesDeferResponse < 3) { |
1382 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo')); | 1420 unittest.expect(o.newExpiryTimeMillis, unittest.equals('foo')); |
1383 } | 1421 } |
1384 buildCounterSubscriptionPurchasesDeferResponse--; | 1422 buildCounterSubscriptionPurchasesDeferResponse--; |
1385 } | 1423 } |
1386 | 1424 |
1387 buildUnnamed2947() { | 1425 buildUnnamed3021() { |
1388 var o = new core.List<core.String>(); | 1426 var o = new core.List<core.String>(); |
1389 o.add("foo"); | 1427 o.add("foo"); |
1390 o.add("foo"); | 1428 o.add("foo"); |
1391 return o; | 1429 return o; |
1392 } | 1430 } |
1393 | 1431 |
1394 checkUnnamed2947(core.List<core.String> o) { | 1432 checkUnnamed3021(core.List<core.String> o) { |
1395 unittest.expect(o, unittest.hasLength(2)); | 1433 unittest.expect(o, unittest.hasLength(2)); |
1396 unittest.expect(o[0], unittest.equals('foo')); | 1434 unittest.expect(o[0], unittest.equals('foo')); |
1397 unittest.expect(o[1], unittest.equals('foo')); | 1435 unittest.expect(o[1], unittest.equals('foo')); |
1398 } | 1436 } |
1399 | 1437 |
1400 buildUnnamed2948() { | 1438 buildUnnamed3022() { |
1401 var o = new core.List<core.String>(); | 1439 var o = new core.List<core.String>(); |
1402 o.add("foo"); | 1440 o.add("foo"); |
1403 o.add("foo"); | 1441 o.add("foo"); |
1404 return o; | 1442 return o; |
1405 } | 1443 } |
1406 | 1444 |
1407 checkUnnamed2948(core.List<core.String> o) { | 1445 checkUnnamed3022(core.List<core.String> o) { |
1408 unittest.expect(o, unittest.hasLength(2)); | 1446 unittest.expect(o, unittest.hasLength(2)); |
1409 unittest.expect(o[0], unittest.equals('foo')); | 1447 unittest.expect(o[0], unittest.equals('foo')); |
1410 unittest.expect(o[1], unittest.equals('foo')); | 1448 unittest.expect(o[1], unittest.equals('foo')); |
1411 } | 1449 } |
1412 | 1450 |
1413 core.int buildCounterTesters = 0; | 1451 core.int buildCounterTesters = 0; |
1414 buildTesters() { | 1452 buildTesters() { |
1415 var o = new api.Testers(); | 1453 var o = new api.Testers(); |
1416 buildCounterTesters++; | 1454 buildCounterTesters++; |
1417 if (buildCounterTesters < 3) { | 1455 if (buildCounterTesters < 3) { |
1418 o.googleGroups = buildUnnamed2947(); | 1456 o.googleGroups = buildUnnamed3021(); |
1419 o.googlePlusCommunities = buildUnnamed2948(); | 1457 o.googlePlusCommunities = buildUnnamed3022(); |
1420 } | 1458 } |
1421 buildCounterTesters--; | 1459 buildCounterTesters--; |
1422 return o; | 1460 return o; |
1423 } | 1461 } |
1424 | 1462 |
1425 checkTesters(api.Testers o) { | 1463 checkTesters(api.Testers o) { |
1426 buildCounterTesters++; | 1464 buildCounterTesters++; |
1427 if (buildCounterTesters < 3) { | 1465 if (buildCounterTesters < 3) { |
1428 checkUnnamed2947(o.googleGroups); | 1466 checkUnnamed3021(o.googleGroups); |
1429 checkUnnamed2948(o.googlePlusCommunities); | 1467 checkUnnamed3022(o.googlePlusCommunities); |
1430 } | 1468 } |
1431 buildCounterTesters--; | 1469 buildCounterTesters--; |
1432 } | 1470 } |
1433 | 1471 |
1434 core.int buildCounterTimestamp = 0; | 1472 core.int buildCounterTimestamp = 0; |
1435 buildTimestamp() { | 1473 buildTimestamp() { |
1436 var o = new api.Timestamp(); | 1474 var o = new api.Timestamp(); |
1437 buildCounterTimestamp++; | 1475 buildCounterTimestamp++; |
1438 if (buildCounterTimestamp < 3) { | 1476 if (buildCounterTimestamp < 3) { |
1439 o.nanos = 42; | 1477 o.nanos = 42; |
(...skipping 26 matching lines...) Expand all Loading... |
1466 | 1504 |
1467 checkTokenPagination(api.TokenPagination o) { | 1505 checkTokenPagination(api.TokenPagination o) { |
1468 buildCounterTokenPagination++; | 1506 buildCounterTokenPagination++; |
1469 if (buildCounterTokenPagination < 3) { | 1507 if (buildCounterTokenPagination < 3) { |
1470 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1508 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1471 unittest.expect(o.previousPageToken, unittest.equals('foo')); | 1509 unittest.expect(o.previousPageToken, unittest.equals('foo')); |
1472 } | 1510 } |
1473 buildCounterTokenPagination--; | 1511 buildCounterTokenPagination--; |
1474 } | 1512 } |
1475 | 1513 |
1476 buildUnnamed2949() { | 1514 buildUnnamed3023() { |
1477 var o = new core.List<core.int>(); | 1515 var o = new core.List<core.int>(); |
1478 o.add(42); | 1516 o.add(42); |
1479 o.add(42); | 1517 o.add(42); |
1480 return o; | 1518 return o; |
1481 } | 1519 } |
1482 | 1520 |
1483 checkUnnamed2949(core.List<core.int> o) { | 1521 checkUnnamed3023(core.List<core.int> o) { |
1484 unittest.expect(o, unittest.hasLength(2)); | 1522 unittest.expect(o, unittest.hasLength(2)); |
1485 unittest.expect(o[0], unittest.equals(42)); | 1523 unittest.expect(o[0], unittest.equals(42)); |
1486 unittest.expect(o[1], unittest.equals(42)); | 1524 unittest.expect(o[1], unittest.equals(42)); |
1487 } | 1525 } |
1488 | 1526 |
1489 core.int buildCounterTrack = 0; | 1527 core.int buildCounterTrack = 0; |
1490 buildTrack() { | 1528 buildTrack() { |
1491 var o = new api.Track(); | 1529 var o = new api.Track(); |
1492 buildCounterTrack++; | 1530 buildCounterTrack++; |
1493 if (buildCounterTrack < 3) { | 1531 if (buildCounterTrack < 3) { |
1494 o.track = "foo"; | 1532 o.track = "foo"; |
1495 o.userFraction = 42.0; | 1533 o.userFraction = 42.0; |
1496 o.versionCodes = buildUnnamed2949(); | 1534 o.versionCodes = buildUnnamed3023(); |
1497 } | 1535 } |
1498 buildCounterTrack--; | 1536 buildCounterTrack--; |
1499 return o; | 1537 return o; |
1500 } | 1538 } |
1501 | 1539 |
1502 checkTrack(api.Track o) { | 1540 checkTrack(api.Track o) { |
1503 buildCounterTrack++; | 1541 buildCounterTrack++; |
1504 if (buildCounterTrack < 3) { | 1542 if (buildCounterTrack < 3) { |
1505 unittest.expect(o.track, unittest.equals('foo')); | 1543 unittest.expect(o.track, unittest.equals('foo')); |
1506 unittest.expect(o.userFraction, unittest.equals(42.0)); | 1544 unittest.expect(o.userFraction, unittest.equals(42.0)); |
1507 checkUnnamed2949(o.versionCodes); | 1545 checkUnnamed3023(o.versionCodes); |
1508 } | 1546 } |
1509 buildCounterTrack--; | 1547 buildCounterTrack--; |
1510 } | 1548 } |
1511 | 1549 |
1512 buildUnnamed2950() { | 1550 buildUnnamed3024() { |
1513 var o = new core.List<api.Track>(); | 1551 var o = new core.List<api.Track>(); |
1514 o.add(buildTrack()); | 1552 o.add(buildTrack()); |
1515 o.add(buildTrack()); | 1553 o.add(buildTrack()); |
1516 return o; | 1554 return o; |
1517 } | 1555 } |
1518 | 1556 |
1519 checkUnnamed2950(core.List<api.Track> o) { | 1557 checkUnnamed3024(core.List<api.Track> o) { |
1520 unittest.expect(o, unittest.hasLength(2)); | 1558 unittest.expect(o, unittest.hasLength(2)); |
1521 checkTrack(o[0]); | 1559 checkTrack(o[0]); |
1522 checkTrack(o[1]); | 1560 checkTrack(o[1]); |
1523 } | 1561 } |
1524 | 1562 |
1525 core.int buildCounterTracksListResponse = 0; | 1563 core.int buildCounterTracksListResponse = 0; |
1526 buildTracksListResponse() { | 1564 buildTracksListResponse() { |
1527 var o = new api.TracksListResponse(); | 1565 var o = new api.TracksListResponse(); |
1528 buildCounterTracksListResponse++; | 1566 buildCounterTracksListResponse++; |
1529 if (buildCounterTracksListResponse < 3) { | 1567 if (buildCounterTracksListResponse < 3) { |
1530 o.kind = "foo"; | 1568 o.kind = "foo"; |
1531 o.tracks = buildUnnamed2950(); | 1569 o.tracks = buildUnnamed3024(); |
1532 } | 1570 } |
1533 buildCounterTracksListResponse--; | 1571 buildCounterTracksListResponse--; |
1534 return o; | 1572 return o; |
1535 } | 1573 } |
1536 | 1574 |
1537 checkTracksListResponse(api.TracksListResponse o) { | 1575 checkTracksListResponse(api.TracksListResponse o) { |
1538 buildCounterTracksListResponse++; | 1576 buildCounterTracksListResponse++; |
1539 if (buildCounterTracksListResponse < 3) { | 1577 if (buildCounterTracksListResponse < 3) { |
1540 unittest.expect(o.kind, unittest.equals('foo')); | 1578 unittest.expect(o.kind, unittest.equals('foo')); |
1541 checkUnnamed2950(o.tracks); | 1579 checkUnnamed3024(o.tracks); |
1542 } | 1580 } |
1543 buildCounterTracksListResponse--; | 1581 buildCounterTracksListResponse--; |
1544 } | 1582 } |
1545 | 1583 |
1546 core.int buildCounterUserComment = 0; | 1584 core.int buildCounterUserComment = 0; |
1547 buildUserComment() { | 1585 buildUserComment() { |
1548 var o = new api.UserComment(); | 1586 var o = new api.UserComment(); |
1549 buildCounterUserComment++; | 1587 buildCounterUserComment++; |
1550 if (buildCounterUserComment < 3) { | 1588 if (buildCounterUserComment < 3) { |
1551 o.androidOsVersion = 42; | 1589 o.androidOsVersion = 42; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 | 1699 |
1662 unittest.group("obj-schema-Comment", () { | 1700 unittest.group("obj-schema-Comment", () { |
1663 unittest.test("to-json--from-json", () { | 1701 unittest.test("to-json--from-json", () { |
1664 var o = buildComment(); | 1702 var o = buildComment(); |
1665 var od = new api.Comment.fromJson(o.toJson()); | 1703 var od = new api.Comment.fromJson(o.toJson()); |
1666 checkComment(od); | 1704 checkComment(od); |
1667 }); | 1705 }); |
1668 }); | 1706 }); |
1669 | 1707 |
1670 | 1708 |
| 1709 unittest.group("obj-schema-DeobfuscationFile", () { |
| 1710 unittest.test("to-json--from-json", () { |
| 1711 var o = buildDeobfuscationFile(); |
| 1712 var od = new api.DeobfuscationFile.fromJson(o.toJson()); |
| 1713 checkDeobfuscationFile(od); |
| 1714 }); |
| 1715 }); |
| 1716 |
| 1717 |
| 1718 unittest.group("obj-schema-DeobfuscationFilesUploadResponse", () { |
| 1719 unittest.test("to-json--from-json", () { |
| 1720 var o = buildDeobfuscationFilesUploadResponse(); |
| 1721 var od = new api.DeobfuscationFilesUploadResponse.fromJson(o.toJson()); |
| 1722 checkDeobfuscationFilesUploadResponse(od); |
| 1723 }); |
| 1724 }); |
| 1725 |
| 1726 |
1671 unittest.group("obj-schema-DeveloperComment", () { | 1727 unittest.group("obj-schema-DeveloperComment", () { |
1672 unittest.test("to-json--from-json", () { | 1728 unittest.test("to-json--from-json", () { |
1673 var o = buildDeveloperComment(); | 1729 var o = buildDeveloperComment(); |
1674 var od = new api.DeveloperComment.fromJson(o.toJson()); | 1730 var od = new api.DeveloperComment.fromJson(o.toJson()); |
1675 checkDeveloperComment(od); | 1731 checkDeveloperComment(od); |
1676 }); | 1732 }); |
1677 }); | 1733 }); |
1678 | 1734 |
1679 | 1735 |
1680 unittest.group("obj-schema-Entitlement", () { | 1736 unittest.group("obj-schema-Entitlement", () { |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2701 return new async.Future.value(stringResponse(200, h, resp)); | 2757 return new async.Future.value(stringResponse(200, h, resp)); |
2702 }), true); | 2758 }), true); |
2703 res.upload(arg_packageName, arg_editId).then(unittest.expectAsync(((api.Ap
k response) { | 2759 res.upload(arg_packageName, arg_editId).then(unittest.expectAsync(((api.Ap
k response) { |
2704 checkApk(response); | 2760 checkApk(response); |
2705 }))); | 2761 }))); |
2706 }); | 2762 }); |
2707 | 2763 |
2708 }); | 2764 }); |
2709 | 2765 |
2710 | 2766 |
| 2767 unittest.group("resource-EditsDeobfuscationfilesResourceApi", () { |
| 2768 unittest.test("method--upload", () { |
| 2769 // TODO: Implement tests for media upload; |
| 2770 // TODO: Implement tests for media download; |
| 2771 |
| 2772 var mock = new HttpServerMock(); |
| 2773 api.EditsDeobfuscationfilesResourceApi res = new api.AndroidpublisherApi(m
ock).edits.deobfuscationfiles; |
| 2774 var arg_packageName = "foo"; |
| 2775 var arg_editId = "foo"; |
| 2776 var arg_apkVersionCode = 42; |
| 2777 var arg_deobfuscationFileType = "foo"; |
| 2778 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2779 var path = (req.url).path; |
| 2780 var pathOffset = 0; |
| 2781 var index; |
| 2782 var subPart; |
| 2783 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2784 pathOffset += 1; |
| 2785 |
| 2786 var query = (req.url).query; |
| 2787 var queryOffset = 0; |
| 2788 var queryMap = {}; |
| 2789 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2790 parseBool(n) { |
| 2791 if (n == "true") return true; |
| 2792 if (n == "false") return false; |
| 2793 if (n == null) return null; |
| 2794 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2795 } |
| 2796 if (query.length > 0) { |
| 2797 for (var part in query.split("&")) { |
| 2798 var keyvalue = part.split("="); |
| 2799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2800 } |
| 2801 } |
| 2802 |
| 2803 |
| 2804 var h = { |
| 2805 "content-type" : "application/json; charset=utf-8", |
| 2806 }; |
| 2807 var resp = convert.JSON.encode(buildDeobfuscationFilesUploadResponse()); |
| 2808 return new async.Future.value(stringResponse(200, h, resp)); |
| 2809 }), true); |
| 2810 res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscat
ionFileType).then(unittest.expectAsync(((api.DeobfuscationFilesUploadResponse re
sponse) { |
| 2811 checkDeobfuscationFilesUploadResponse(response); |
| 2812 }))); |
| 2813 }); |
| 2814 |
| 2815 }); |
| 2816 |
| 2817 |
2711 unittest.group("resource-EditsDetailsResourceApi", () { | 2818 unittest.group("resource-EditsDetailsResourceApi", () { |
2712 unittest.test("method--get", () { | 2819 unittest.test("method--get", () { |
2713 | 2820 |
2714 var mock = new HttpServerMock(); | 2821 var mock = new HttpServerMock(); |
2715 api.EditsDetailsResourceApi res = new api.AndroidpublisherApi(mock).edits.
details; | 2822 api.EditsDetailsResourceApi res = new api.AndroidpublisherApi(mock).edits.
details; |
2716 var arg_packageName = "foo"; | 2823 var arg_packageName = "foo"; |
2717 var arg_editId = "foo"; | 2824 var arg_editId = "foo"; |
2718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2719 var path = (req.url).path; | 2826 var path = (req.url).path; |
2720 var pathOffset = 0; | 2827 var pathOffset = 0; |
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4621 res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expect
Async(((api.ReviewsReplyResponse response) { | 4728 res.reply(arg_request, arg_packageName, arg_reviewId).then(unittest.expect
Async(((api.ReviewsReplyResponse response) { |
4622 checkReviewsReplyResponse(response); | 4729 checkReviewsReplyResponse(response); |
4623 }))); | 4730 }))); |
4624 }); | 4731 }); |
4625 | 4732 |
4626 }); | 4733 }); |
4627 | 4734 |
4628 | 4735 |
4629 } | 4736 } |
4630 | 4737 |
OLD | NEW |