| OLD | NEW |
| 1 library googleapis.games.v1.test; | 1 library googleapis.games.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/games/v1.dart' as api; | 12 import 'package:googleapis/games/v1.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 core.int buildCounterAchievementDefinition = 0; | 54 core.int buildCounterAchievementDefinition = 0; |
| 55 buildAchievementDefinition() { | 55 buildAchievementDefinition() { |
| 56 var o = new api.AchievementDefinition(); | 56 var o = new api.AchievementDefinition(); |
| 57 buildCounterAchievementDefinition++; | 57 buildCounterAchievementDefinition++; |
| 58 if (buildCounterAchievementDefinition < 3) { | 58 if (buildCounterAchievementDefinition < 3) { |
| 59 o.achievementType = "foo"; | 59 o.achievementType = "foo"; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 87 unittest.expect(o.isUnlockedIconUrlDefault, unittest.isTrue); | 87 unittest.expect(o.isUnlockedIconUrlDefault, unittest.isTrue); |
| 88 unittest.expect(o.kind, unittest.equals('foo')); | 88 unittest.expect(o.kind, unittest.equals('foo')); |
| 89 unittest.expect(o.name, unittest.equals('foo')); | 89 unittest.expect(o.name, unittest.equals('foo')); |
| 90 unittest.expect(o.revealedIconUrl, unittest.equals('foo')); | 90 unittest.expect(o.revealedIconUrl, unittest.equals('foo')); |
| 91 unittest.expect(o.totalSteps, unittest.equals(42)); | 91 unittest.expect(o.totalSteps, unittest.equals(42)); |
| 92 unittest.expect(o.unlockedIconUrl, unittest.equals('foo')); | 92 unittest.expect(o.unlockedIconUrl, unittest.equals('foo')); |
| 93 } | 93 } |
| 94 buildCounterAchievementDefinition--; | 94 buildCounterAchievementDefinition--; |
| 95 } | 95 } |
| 96 | 96 |
| 97 buildUnnamed52() { | 97 buildUnnamed54() { |
| 98 var o = new core.List<api.AchievementDefinition>(); | 98 var o = new core.List<api.AchievementDefinition>(); |
| 99 o.add(buildAchievementDefinition()); | 99 o.add(buildAchievementDefinition()); |
| 100 o.add(buildAchievementDefinition()); | 100 o.add(buildAchievementDefinition()); |
| 101 return o; | 101 return o; |
| 102 } | 102 } |
| 103 | 103 |
| 104 checkUnnamed52(core.List<api.AchievementDefinition> o) { | 104 checkUnnamed54(core.List<api.AchievementDefinition> o) { |
| 105 unittest.expect(o, unittest.hasLength(2)); | 105 unittest.expect(o, unittest.hasLength(2)); |
| 106 checkAchievementDefinition(o[0]); | 106 checkAchievementDefinition(o[0]); |
| 107 checkAchievementDefinition(o[1]); | 107 checkAchievementDefinition(o[1]); |
| 108 } | 108 } |
| 109 | 109 |
| 110 core.int buildCounterAchievementDefinitionsListResponse = 0; | 110 core.int buildCounterAchievementDefinitionsListResponse = 0; |
| 111 buildAchievementDefinitionsListResponse() { | 111 buildAchievementDefinitionsListResponse() { |
| 112 var o = new api.AchievementDefinitionsListResponse(); | 112 var o = new api.AchievementDefinitionsListResponse(); |
| 113 buildCounterAchievementDefinitionsListResponse++; | 113 buildCounterAchievementDefinitionsListResponse++; |
| 114 if (buildCounterAchievementDefinitionsListResponse < 3) { | 114 if (buildCounterAchievementDefinitionsListResponse < 3) { |
| 115 o.items = buildUnnamed52(); | 115 o.items = buildUnnamed54(); |
| 116 o.kind = "foo"; | 116 o.kind = "foo"; |
| 117 o.nextPageToken = "foo"; | 117 o.nextPageToken = "foo"; |
| 118 } | 118 } |
| 119 buildCounterAchievementDefinitionsListResponse--; | 119 buildCounterAchievementDefinitionsListResponse--; |
| 120 return o; | 120 return o; |
| 121 } | 121 } |
| 122 | 122 |
| 123 checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o
) { | 123 checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o
) { |
| 124 buildCounterAchievementDefinitionsListResponse++; | 124 buildCounterAchievementDefinitionsListResponse++; |
| 125 if (buildCounterAchievementDefinitionsListResponse < 3) { | 125 if (buildCounterAchievementDefinitionsListResponse < 3) { |
| 126 checkUnnamed52(o.items); | 126 checkUnnamed54(o.items); |
| 127 unittest.expect(o.kind, unittest.equals('foo')); | 127 unittest.expect(o.kind, unittest.equals('foo')); |
| 128 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 128 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 129 } | 129 } |
| 130 buildCounterAchievementDefinitionsListResponse--; | 130 buildCounterAchievementDefinitionsListResponse--; |
| 131 } | 131 } |
| 132 | 132 |
| 133 core.int buildCounterAchievementIncrementResponse = 0; | 133 core.int buildCounterAchievementIncrementResponse = 0; |
| 134 buildAchievementIncrementResponse() { | 134 buildAchievementIncrementResponse() { |
| 135 var o = new api.AchievementIncrementResponse(); | 135 var o = new api.AchievementIncrementResponse(); |
| 136 buildCounterAchievementIncrementResponse++; | 136 buildCounterAchievementIncrementResponse++; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 checkAchievementUnlockResponse(api.AchievementUnlockResponse o) { | 212 checkAchievementUnlockResponse(api.AchievementUnlockResponse o) { |
| 213 buildCounterAchievementUnlockResponse++; | 213 buildCounterAchievementUnlockResponse++; |
| 214 if (buildCounterAchievementUnlockResponse < 3) { | 214 if (buildCounterAchievementUnlockResponse < 3) { |
| 215 unittest.expect(o.kind, unittest.equals('foo')); | 215 unittest.expect(o.kind, unittest.equals('foo')); |
| 216 unittest.expect(o.newlyUnlocked, unittest.isTrue); | 216 unittest.expect(o.newlyUnlocked, unittest.isTrue); |
| 217 } | 217 } |
| 218 buildCounterAchievementUnlockResponse--; | 218 buildCounterAchievementUnlockResponse--; |
| 219 } | 219 } |
| 220 | 220 |
| 221 buildUnnamed53() { | 221 buildUnnamed55() { |
| 222 var o = new core.List<api.AchievementUpdateRequest>(); | 222 var o = new core.List<api.AchievementUpdateRequest>(); |
| 223 o.add(buildAchievementUpdateRequest()); | 223 o.add(buildAchievementUpdateRequest()); |
| 224 o.add(buildAchievementUpdateRequest()); | 224 o.add(buildAchievementUpdateRequest()); |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkUnnamed53(core.List<api.AchievementUpdateRequest> o) { | 228 checkUnnamed55(core.List<api.AchievementUpdateRequest> o) { |
| 229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
| 230 checkAchievementUpdateRequest(o[0]); | 230 checkAchievementUpdateRequest(o[0]); |
| 231 checkAchievementUpdateRequest(o[1]); | 231 checkAchievementUpdateRequest(o[1]); |
| 232 } | 232 } |
| 233 | 233 |
| 234 core.int buildCounterAchievementUpdateMultipleRequest = 0; | 234 core.int buildCounterAchievementUpdateMultipleRequest = 0; |
| 235 buildAchievementUpdateMultipleRequest() { | 235 buildAchievementUpdateMultipleRequest() { |
| 236 var o = new api.AchievementUpdateMultipleRequest(); | 236 var o = new api.AchievementUpdateMultipleRequest(); |
| 237 buildCounterAchievementUpdateMultipleRequest++; | 237 buildCounterAchievementUpdateMultipleRequest++; |
| 238 if (buildCounterAchievementUpdateMultipleRequest < 3) { | 238 if (buildCounterAchievementUpdateMultipleRequest < 3) { |
| 239 o.kind = "foo"; | 239 o.kind = "foo"; |
| 240 o.updates = buildUnnamed53(); | 240 o.updates = buildUnnamed55(); |
| 241 } | 241 } |
| 242 buildCounterAchievementUpdateMultipleRequest--; | 242 buildCounterAchievementUpdateMultipleRequest--; |
| 243 return o; | 243 return o; |
| 244 } | 244 } |
| 245 | 245 |
| 246 checkAchievementUpdateMultipleRequest(api.AchievementUpdateMultipleRequest o) { | 246 checkAchievementUpdateMultipleRequest(api.AchievementUpdateMultipleRequest o) { |
| 247 buildCounterAchievementUpdateMultipleRequest++; | 247 buildCounterAchievementUpdateMultipleRequest++; |
| 248 if (buildCounterAchievementUpdateMultipleRequest < 3) { | 248 if (buildCounterAchievementUpdateMultipleRequest < 3) { |
| 249 unittest.expect(o.kind, unittest.equals('foo')); | 249 unittest.expect(o.kind, unittest.equals('foo')); |
| 250 checkUnnamed53(o.updates); | 250 checkUnnamed55(o.updates); |
| 251 } | 251 } |
| 252 buildCounterAchievementUpdateMultipleRequest--; | 252 buildCounterAchievementUpdateMultipleRequest--; |
| 253 } | 253 } |
| 254 | 254 |
| 255 buildUnnamed54() { | 255 buildUnnamed56() { |
| 256 var o = new core.List<api.AchievementUpdateResponse>(); | 256 var o = new core.List<api.AchievementUpdateResponse>(); |
| 257 o.add(buildAchievementUpdateResponse()); | 257 o.add(buildAchievementUpdateResponse()); |
| 258 o.add(buildAchievementUpdateResponse()); | 258 o.add(buildAchievementUpdateResponse()); |
| 259 return o; | 259 return o; |
| 260 } | 260 } |
| 261 | 261 |
| 262 checkUnnamed54(core.List<api.AchievementUpdateResponse> o) { | 262 checkUnnamed56(core.List<api.AchievementUpdateResponse> o) { |
| 263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
| 264 checkAchievementUpdateResponse(o[0]); | 264 checkAchievementUpdateResponse(o[0]); |
| 265 checkAchievementUpdateResponse(o[1]); | 265 checkAchievementUpdateResponse(o[1]); |
| 266 } | 266 } |
| 267 | 267 |
| 268 core.int buildCounterAchievementUpdateMultipleResponse = 0; | 268 core.int buildCounterAchievementUpdateMultipleResponse = 0; |
| 269 buildAchievementUpdateMultipleResponse() { | 269 buildAchievementUpdateMultipleResponse() { |
| 270 var o = new api.AchievementUpdateMultipleResponse(); | 270 var o = new api.AchievementUpdateMultipleResponse(); |
| 271 buildCounterAchievementUpdateMultipleResponse++; | 271 buildCounterAchievementUpdateMultipleResponse++; |
| 272 if (buildCounterAchievementUpdateMultipleResponse < 3) { | 272 if (buildCounterAchievementUpdateMultipleResponse < 3) { |
| 273 o.kind = "foo"; | 273 o.kind = "foo"; |
| 274 o.updatedAchievements = buildUnnamed54(); | 274 o.updatedAchievements = buildUnnamed56(); |
| 275 } | 275 } |
| 276 buildCounterAchievementUpdateMultipleResponse--; | 276 buildCounterAchievementUpdateMultipleResponse--; |
| 277 return o; | 277 return o; |
| 278 } | 278 } |
| 279 | 279 |
| 280 checkAchievementUpdateMultipleResponse(api.AchievementUpdateMultipleResponse o)
{ | 280 checkAchievementUpdateMultipleResponse(api.AchievementUpdateMultipleResponse o)
{ |
| 281 buildCounterAchievementUpdateMultipleResponse++; | 281 buildCounterAchievementUpdateMultipleResponse++; |
| 282 if (buildCounterAchievementUpdateMultipleResponse < 3) { | 282 if (buildCounterAchievementUpdateMultipleResponse < 3) { |
| 283 unittest.expect(o.kind, unittest.equals('foo')); | 283 unittest.expect(o.kind, unittest.equals('foo')); |
| 284 checkUnnamed54(o.updatedAchievements); | 284 checkUnnamed56(o.updatedAchievements); |
| 285 } | 285 } |
| 286 buildCounterAchievementUpdateMultipleResponse--; | 286 buildCounterAchievementUpdateMultipleResponse--; |
| 287 } | 287 } |
| 288 | 288 |
| 289 core.int buildCounterAchievementUpdateRequest = 0; | 289 core.int buildCounterAchievementUpdateRequest = 0; |
| 290 buildAchievementUpdateRequest() { | 290 buildAchievementUpdateRequest() { |
| 291 var o = new api.AchievementUpdateRequest(); | 291 var o = new api.AchievementUpdateRequest(); |
| 292 buildCounterAchievementUpdateRequest++; | 292 buildCounterAchievementUpdateRequest++; |
| 293 if (buildCounterAchievementUpdateRequest < 3) { | 293 if (buildCounterAchievementUpdateRequest < 3) { |
| 294 o.achievementId = "foo"; | 294 o.achievementId = "foo"; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 checkAnonymousPlayer(api.AnonymousPlayer o) { | 385 checkAnonymousPlayer(api.AnonymousPlayer o) { |
| 386 buildCounterAnonymousPlayer++; | 386 buildCounterAnonymousPlayer++; |
| 387 if (buildCounterAnonymousPlayer < 3) { | 387 if (buildCounterAnonymousPlayer < 3) { |
| 388 unittest.expect(o.avatarImageUrl, unittest.equals('foo')); | 388 unittest.expect(o.avatarImageUrl, unittest.equals('foo')); |
| 389 unittest.expect(o.displayName, unittest.equals('foo')); | 389 unittest.expect(o.displayName, unittest.equals('foo')); |
| 390 unittest.expect(o.kind, unittest.equals('foo')); | 390 unittest.expect(o.kind, unittest.equals('foo')); |
| 391 } | 391 } |
| 392 buildCounterAnonymousPlayer--; | 392 buildCounterAnonymousPlayer--; |
| 393 } | 393 } |
| 394 | 394 |
| 395 buildUnnamed55() { | 395 buildUnnamed57() { |
| 396 var o = new core.List<api.ImageAsset>(); | 396 var o = new core.List<api.ImageAsset>(); |
| 397 o.add(buildImageAsset()); | 397 o.add(buildImageAsset()); |
| 398 o.add(buildImageAsset()); | 398 o.add(buildImageAsset()); |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkUnnamed55(core.List<api.ImageAsset> o) { | 402 checkUnnamed57(core.List<api.ImageAsset> o) { |
| 403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 404 checkImageAsset(o[0]); | 404 checkImageAsset(o[0]); |
| 405 checkImageAsset(o[1]); | 405 checkImageAsset(o[1]); |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed56() { | 408 buildUnnamed58() { |
| 409 var o = new core.List<core.String>(); | 409 var o = new core.List<core.String>(); |
| 410 o.add("foo"); | 410 o.add("foo"); |
| 411 o.add("foo"); | 411 o.add("foo"); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed56(core.List<core.String> o) { | 415 checkUnnamed58(core.List<core.String> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 unittest.expect(o[0], unittest.equals('foo')); | 417 unittest.expect(o[0], unittest.equals('foo')); |
| 418 unittest.expect(o[1], unittest.equals('foo')); | 418 unittest.expect(o[1], unittest.equals('foo')); |
| 419 } | 419 } |
| 420 | 420 |
| 421 buildUnnamed57() { | 421 buildUnnamed59() { |
| 422 var o = new core.List<api.Instance>(); | 422 var o = new core.List<api.Instance>(); |
| 423 o.add(buildInstance()); | 423 o.add(buildInstance()); |
| 424 o.add(buildInstance()); | 424 o.add(buildInstance()); |
| 425 return o; | 425 return o; |
| 426 } | 426 } |
| 427 | 427 |
| 428 checkUnnamed57(core.List<api.Instance> o) { | 428 checkUnnamed59(core.List<api.Instance> o) { |
| 429 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 430 checkInstance(o[0]); | 430 checkInstance(o[0]); |
| 431 checkInstance(o[1]); | 431 checkInstance(o[1]); |
| 432 } | 432 } |
| 433 | 433 |
| 434 core.int buildCounterApplication = 0; | 434 core.int buildCounterApplication = 0; |
| 435 buildApplication() { | 435 buildApplication() { |
| 436 var o = new api.Application(); | 436 var o = new api.Application(); |
| 437 buildCounterApplication++; | 437 buildCounterApplication++; |
| 438 if (buildCounterApplication < 3) { | 438 if (buildCounterApplication < 3) { |
| 439 o.achievementCount = 42; | 439 o.achievementCount = 42; |
| 440 o.assets = buildUnnamed55(); | 440 o.assets = buildUnnamed57(); |
| 441 o.author = "foo"; | 441 o.author = "foo"; |
| 442 o.category = buildApplicationCategory(); | 442 o.category = buildApplicationCategory(); |
| 443 o.description = "foo"; | 443 o.description = "foo"; |
| 444 o.enabledFeatures = buildUnnamed56(); | 444 o.enabledFeatures = buildUnnamed58(); |
| 445 o.id = "foo"; | 445 o.id = "foo"; |
| 446 o.instances = buildUnnamed57(); | 446 o.instances = buildUnnamed59(); |
| 447 o.kind = "foo"; | 447 o.kind = "foo"; |
| 448 o.lastUpdatedTimestamp = "foo"; | 448 o.lastUpdatedTimestamp = "foo"; |
| 449 o.leaderboardCount = 42; | 449 o.leaderboardCount = 42; |
| 450 o.name = "foo"; | 450 o.name = "foo"; |
| 451 o.themeColor = "foo"; | 451 o.themeColor = "foo"; |
| 452 } | 452 } |
| 453 buildCounterApplication--; | 453 buildCounterApplication--; |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkApplication(api.Application o) { | 457 checkApplication(api.Application o) { |
| 458 buildCounterApplication++; | 458 buildCounterApplication++; |
| 459 if (buildCounterApplication < 3) { | 459 if (buildCounterApplication < 3) { |
| 460 unittest.expect(o.achievementCount, unittest.equals(42)); | 460 unittest.expect(o.achievementCount, unittest.equals(42)); |
| 461 checkUnnamed55(o.assets); | 461 checkUnnamed57(o.assets); |
| 462 unittest.expect(o.author, unittest.equals('foo')); | 462 unittest.expect(o.author, unittest.equals('foo')); |
| 463 checkApplicationCategory(o.category); | 463 checkApplicationCategory(o.category); |
| 464 unittest.expect(o.description, unittest.equals('foo')); | 464 unittest.expect(o.description, unittest.equals('foo')); |
| 465 checkUnnamed56(o.enabledFeatures); | 465 checkUnnamed58(o.enabledFeatures); |
| 466 unittest.expect(o.id, unittest.equals('foo')); | 466 unittest.expect(o.id, unittest.equals('foo')); |
| 467 checkUnnamed57(o.instances); | 467 checkUnnamed59(o.instances); |
| 468 unittest.expect(o.kind, unittest.equals('foo')); | 468 unittest.expect(o.kind, unittest.equals('foo')); |
| 469 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); | 469 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); |
| 470 unittest.expect(o.leaderboardCount, unittest.equals(42)); | 470 unittest.expect(o.leaderboardCount, unittest.equals(42)); |
| 471 unittest.expect(o.name, unittest.equals('foo')); | 471 unittest.expect(o.name, unittest.equals('foo')); |
| 472 unittest.expect(o.themeColor, unittest.equals('foo')); | 472 unittest.expect(o.themeColor, unittest.equals('foo')); |
| 473 } | 473 } |
| 474 buildCounterApplication--; | 474 buildCounterApplication--; |
| 475 } | 475 } |
| 476 | 476 |
| 477 core.int buildCounterApplicationCategory = 0; | 477 core.int buildCounterApplicationCategory = 0; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 checkCategory(api.Category o) { | 536 checkCategory(api.Category o) { |
| 537 buildCounterCategory++; | 537 buildCounterCategory++; |
| 538 if (buildCounterCategory < 3) { | 538 if (buildCounterCategory < 3) { |
| 539 unittest.expect(o.category, unittest.equals('foo')); | 539 unittest.expect(o.category, unittest.equals('foo')); |
| 540 unittest.expect(o.experiencePoints, unittest.equals('foo')); | 540 unittest.expect(o.experiencePoints, unittest.equals('foo')); |
| 541 unittest.expect(o.kind, unittest.equals('foo')); | 541 unittest.expect(o.kind, unittest.equals('foo')); |
| 542 } | 542 } |
| 543 buildCounterCategory--; | 543 buildCounterCategory--; |
| 544 } | 544 } |
| 545 | 545 |
| 546 buildUnnamed58() { | 546 buildUnnamed60() { |
| 547 var o = new core.List<api.Category>(); | 547 var o = new core.List<api.Category>(); |
| 548 o.add(buildCategory()); | 548 o.add(buildCategory()); |
| 549 o.add(buildCategory()); | 549 o.add(buildCategory()); |
| 550 return o; | 550 return o; |
| 551 } | 551 } |
| 552 | 552 |
| 553 checkUnnamed58(core.List<api.Category> o) { | 553 checkUnnamed60(core.List<api.Category> o) { |
| 554 unittest.expect(o, unittest.hasLength(2)); | 554 unittest.expect(o, unittest.hasLength(2)); |
| 555 checkCategory(o[0]); | 555 checkCategory(o[0]); |
| 556 checkCategory(o[1]); | 556 checkCategory(o[1]); |
| 557 } | 557 } |
| 558 | 558 |
| 559 core.int buildCounterCategoryListResponse = 0; | 559 core.int buildCounterCategoryListResponse = 0; |
| 560 buildCategoryListResponse() { | 560 buildCategoryListResponse() { |
| 561 var o = new api.CategoryListResponse(); | 561 var o = new api.CategoryListResponse(); |
| 562 buildCounterCategoryListResponse++; | 562 buildCounterCategoryListResponse++; |
| 563 if (buildCounterCategoryListResponse < 3) { | 563 if (buildCounterCategoryListResponse < 3) { |
| 564 o.items = buildUnnamed58(); | 564 o.items = buildUnnamed60(); |
| 565 o.kind = "foo"; | 565 o.kind = "foo"; |
| 566 o.nextPageToken = "foo"; | 566 o.nextPageToken = "foo"; |
| 567 } | 567 } |
| 568 buildCounterCategoryListResponse--; | 568 buildCounterCategoryListResponse--; |
| 569 return o; | 569 return o; |
| 570 } | 570 } |
| 571 | 571 |
| 572 checkCategoryListResponse(api.CategoryListResponse o) { | 572 checkCategoryListResponse(api.CategoryListResponse o) { |
| 573 buildCounterCategoryListResponse++; | 573 buildCounterCategoryListResponse++; |
| 574 if (buildCounterCategoryListResponse < 3) { | 574 if (buildCounterCategoryListResponse < 3) { |
| 575 checkUnnamed58(o.items); | 575 checkUnnamed60(o.items); |
| 576 unittest.expect(o.kind, unittest.equals('foo')); | 576 unittest.expect(o.kind, unittest.equals('foo')); |
| 577 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 577 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 578 } | 578 } |
| 579 buildCounterCategoryListResponse--; | 579 buildCounterCategoryListResponse--; |
| 580 } | 580 } |
| 581 | 581 |
| 582 core.int buildCounterEventBatchRecordFailure = 0; | 582 core.int buildCounterEventBatchRecordFailure = 0; |
| 583 buildEventBatchRecordFailure() { | 583 buildEventBatchRecordFailure() { |
| 584 var o = new api.EventBatchRecordFailure(); | 584 var o = new api.EventBatchRecordFailure(); |
| 585 buildCounterEventBatchRecordFailure++; | 585 buildCounterEventBatchRecordFailure++; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 616 | 616 |
| 617 checkEventChild(api.EventChild o) { | 617 checkEventChild(api.EventChild o) { |
| 618 buildCounterEventChild++; | 618 buildCounterEventChild++; |
| 619 if (buildCounterEventChild < 3) { | 619 if (buildCounterEventChild < 3) { |
| 620 unittest.expect(o.childId, unittest.equals('foo')); | 620 unittest.expect(o.childId, unittest.equals('foo')); |
| 621 unittest.expect(o.kind, unittest.equals('foo')); | 621 unittest.expect(o.kind, unittest.equals('foo')); |
| 622 } | 622 } |
| 623 buildCounterEventChild--; | 623 buildCounterEventChild--; |
| 624 } | 624 } |
| 625 | 625 |
| 626 buildUnnamed59() { | 626 buildUnnamed61() { |
| 627 var o = new core.List<api.EventChild>(); | 627 var o = new core.List<api.EventChild>(); |
| 628 o.add(buildEventChild()); | 628 o.add(buildEventChild()); |
| 629 o.add(buildEventChild()); | 629 o.add(buildEventChild()); |
| 630 return o; | 630 return o; |
| 631 } | 631 } |
| 632 | 632 |
| 633 checkUnnamed59(core.List<api.EventChild> o) { | 633 checkUnnamed61(core.List<api.EventChild> o) { |
| 634 unittest.expect(o, unittest.hasLength(2)); | 634 unittest.expect(o, unittest.hasLength(2)); |
| 635 checkEventChild(o[0]); | 635 checkEventChild(o[0]); |
| 636 checkEventChild(o[1]); | 636 checkEventChild(o[1]); |
| 637 } | 637 } |
| 638 | 638 |
| 639 core.int buildCounterEventDefinition = 0; | 639 core.int buildCounterEventDefinition = 0; |
| 640 buildEventDefinition() { | 640 buildEventDefinition() { |
| 641 var o = new api.EventDefinition(); | 641 var o = new api.EventDefinition(); |
| 642 buildCounterEventDefinition++; | 642 buildCounterEventDefinition++; |
| 643 if (buildCounterEventDefinition < 3) { | 643 if (buildCounterEventDefinition < 3) { |
| 644 o.childEvents = buildUnnamed59(); | 644 o.childEvents = buildUnnamed61(); |
| 645 o.description = "foo"; | 645 o.description = "foo"; |
| 646 o.displayName = "foo"; | 646 o.displayName = "foo"; |
| 647 o.id = "foo"; | 647 o.id = "foo"; |
| 648 o.imageUrl = "foo"; | 648 o.imageUrl = "foo"; |
| 649 o.isDefaultImageUrl = true; | 649 o.isDefaultImageUrl = true; |
| 650 o.kind = "foo"; | 650 o.kind = "foo"; |
| 651 o.visibility = "foo"; | 651 o.visibility = "foo"; |
| 652 } | 652 } |
| 653 buildCounterEventDefinition--; | 653 buildCounterEventDefinition--; |
| 654 return o; | 654 return o; |
| 655 } | 655 } |
| 656 | 656 |
| 657 checkEventDefinition(api.EventDefinition o) { | 657 checkEventDefinition(api.EventDefinition o) { |
| 658 buildCounterEventDefinition++; | 658 buildCounterEventDefinition++; |
| 659 if (buildCounterEventDefinition < 3) { | 659 if (buildCounterEventDefinition < 3) { |
| 660 checkUnnamed59(o.childEvents); | 660 checkUnnamed61(o.childEvents); |
| 661 unittest.expect(o.description, unittest.equals('foo')); | 661 unittest.expect(o.description, unittest.equals('foo')); |
| 662 unittest.expect(o.displayName, unittest.equals('foo')); | 662 unittest.expect(o.displayName, unittest.equals('foo')); |
| 663 unittest.expect(o.id, unittest.equals('foo')); | 663 unittest.expect(o.id, unittest.equals('foo')); |
| 664 unittest.expect(o.imageUrl, unittest.equals('foo')); | 664 unittest.expect(o.imageUrl, unittest.equals('foo')); |
| 665 unittest.expect(o.isDefaultImageUrl, unittest.isTrue); | 665 unittest.expect(o.isDefaultImageUrl, unittest.isTrue); |
| 666 unittest.expect(o.kind, unittest.equals('foo')); | 666 unittest.expect(o.kind, unittest.equals('foo')); |
| 667 unittest.expect(o.visibility, unittest.equals('foo')); | 667 unittest.expect(o.visibility, unittest.equals('foo')); |
| 668 } | 668 } |
| 669 buildCounterEventDefinition--; | 669 buildCounterEventDefinition--; |
| 670 } | 670 } |
| 671 | 671 |
| 672 buildUnnamed60() { | 672 buildUnnamed62() { |
| 673 var o = new core.List<api.EventDefinition>(); | 673 var o = new core.List<api.EventDefinition>(); |
| 674 o.add(buildEventDefinition()); | 674 o.add(buildEventDefinition()); |
| 675 o.add(buildEventDefinition()); | 675 o.add(buildEventDefinition()); |
| 676 return o; | 676 return o; |
| 677 } | 677 } |
| 678 | 678 |
| 679 checkUnnamed60(core.List<api.EventDefinition> o) { | 679 checkUnnamed62(core.List<api.EventDefinition> o) { |
| 680 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
| 681 checkEventDefinition(o[0]); | 681 checkEventDefinition(o[0]); |
| 682 checkEventDefinition(o[1]); | 682 checkEventDefinition(o[1]); |
| 683 } | 683 } |
| 684 | 684 |
| 685 core.int buildCounterEventDefinitionListResponse = 0; | 685 core.int buildCounterEventDefinitionListResponse = 0; |
| 686 buildEventDefinitionListResponse() { | 686 buildEventDefinitionListResponse() { |
| 687 var o = new api.EventDefinitionListResponse(); | 687 var o = new api.EventDefinitionListResponse(); |
| 688 buildCounterEventDefinitionListResponse++; | 688 buildCounterEventDefinitionListResponse++; |
| 689 if (buildCounterEventDefinitionListResponse < 3) { | 689 if (buildCounterEventDefinitionListResponse < 3) { |
| 690 o.items = buildUnnamed60(); | 690 o.items = buildUnnamed62(); |
| 691 o.kind = "foo"; | 691 o.kind = "foo"; |
| 692 o.nextPageToken = "foo"; | 692 o.nextPageToken = "foo"; |
| 693 } | 693 } |
| 694 buildCounterEventDefinitionListResponse--; | 694 buildCounterEventDefinitionListResponse--; |
| 695 return o; | 695 return o; |
| 696 } | 696 } |
| 697 | 697 |
| 698 checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { | 698 checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { |
| 699 buildCounterEventDefinitionListResponse++; | 699 buildCounterEventDefinitionListResponse++; |
| 700 if (buildCounterEventDefinitionListResponse < 3) { | 700 if (buildCounterEventDefinitionListResponse < 3) { |
| 701 checkUnnamed60(o.items); | 701 checkUnnamed62(o.items); |
| 702 unittest.expect(o.kind, unittest.equals('foo')); | 702 unittest.expect(o.kind, unittest.equals('foo')); |
| 703 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 703 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 704 } | 704 } |
| 705 buildCounterEventDefinitionListResponse--; | 705 buildCounterEventDefinitionListResponse--; |
| 706 } | 706 } |
| 707 | 707 |
| 708 core.int buildCounterEventPeriodRange = 0; | 708 core.int buildCounterEventPeriodRange = 0; |
| 709 buildEventPeriodRange() { | 709 buildEventPeriodRange() { |
| 710 var o = new api.EventPeriodRange(); | 710 var o = new api.EventPeriodRange(); |
| 711 buildCounterEventPeriodRange++; | 711 buildCounterEventPeriodRange++; |
| 712 if (buildCounterEventPeriodRange < 3) { | 712 if (buildCounterEventPeriodRange < 3) { |
| 713 o.kind = "foo"; | 713 o.kind = "foo"; |
| 714 o.periodEndMillis = "foo"; | 714 o.periodEndMillis = "foo"; |
| 715 o.periodStartMillis = "foo"; | 715 o.periodStartMillis = "foo"; |
| 716 } | 716 } |
| 717 buildCounterEventPeriodRange--; | 717 buildCounterEventPeriodRange--; |
| 718 return o; | 718 return o; |
| 719 } | 719 } |
| 720 | 720 |
| 721 checkEventPeriodRange(api.EventPeriodRange o) { | 721 checkEventPeriodRange(api.EventPeriodRange o) { |
| 722 buildCounterEventPeriodRange++; | 722 buildCounterEventPeriodRange++; |
| 723 if (buildCounterEventPeriodRange < 3) { | 723 if (buildCounterEventPeriodRange < 3) { |
| 724 unittest.expect(o.kind, unittest.equals('foo')); | 724 unittest.expect(o.kind, unittest.equals('foo')); |
| 725 unittest.expect(o.periodEndMillis, unittest.equals('foo')); | 725 unittest.expect(o.periodEndMillis, unittest.equals('foo')); |
| 726 unittest.expect(o.periodStartMillis, unittest.equals('foo')); | 726 unittest.expect(o.periodStartMillis, unittest.equals('foo')); |
| 727 } | 727 } |
| 728 buildCounterEventPeriodRange--; | 728 buildCounterEventPeriodRange--; |
| 729 } | 729 } |
| 730 | 730 |
| 731 buildUnnamed61() { | 731 buildUnnamed63() { |
| 732 var o = new core.List<api.EventUpdateRequest>(); | 732 var o = new core.List<api.EventUpdateRequest>(); |
| 733 o.add(buildEventUpdateRequest()); | 733 o.add(buildEventUpdateRequest()); |
| 734 o.add(buildEventUpdateRequest()); | 734 o.add(buildEventUpdateRequest()); |
| 735 return o; | 735 return o; |
| 736 } | 736 } |
| 737 | 737 |
| 738 checkUnnamed61(core.List<api.EventUpdateRequest> o) { | 738 checkUnnamed63(core.List<api.EventUpdateRequest> o) { |
| 739 unittest.expect(o, unittest.hasLength(2)); | 739 unittest.expect(o, unittest.hasLength(2)); |
| 740 checkEventUpdateRequest(o[0]); | 740 checkEventUpdateRequest(o[0]); |
| 741 checkEventUpdateRequest(o[1]); | 741 checkEventUpdateRequest(o[1]); |
| 742 } | 742 } |
| 743 | 743 |
| 744 core.int buildCounterEventPeriodUpdate = 0; | 744 core.int buildCounterEventPeriodUpdate = 0; |
| 745 buildEventPeriodUpdate() { | 745 buildEventPeriodUpdate() { |
| 746 var o = new api.EventPeriodUpdate(); | 746 var o = new api.EventPeriodUpdate(); |
| 747 buildCounterEventPeriodUpdate++; | 747 buildCounterEventPeriodUpdate++; |
| 748 if (buildCounterEventPeriodUpdate < 3) { | 748 if (buildCounterEventPeriodUpdate < 3) { |
| 749 o.kind = "foo"; | 749 o.kind = "foo"; |
| 750 o.timePeriod = buildEventPeriodRange(); | 750 o.timePeriod = buildEventPeriodRange(); |
| 751 o.updates = buildUnnamed61(); | 751 o.updates = buildUnnamed63(); |
| 752 } | 752 } |
| 753 buildCounterEventPeriodUpdate--; | 753 buildCounterEventPeriodUpdate--; |
| 754 return o; | 754 return o; |
| 755 } | 755 } |
| 756 | 756 |
| 757 checkEventPeriodUpdate(api.EventPeriodUpdate o) { | 757 checkEventPeriodUpdate(api.EventPeriodUpdate o) { |
| 758 buildCounterEventPeriodUpdate++; | 758 buildCounterEventPeriodUpdate++; |
| 759 if (buildCounterEventPeriodUpdate < 3) { | 759 if (buildCounterEventPeriodUpdate < 3) { |
| 760 unittest.expect(o.kind, unittest.equals('foo')); | 760 unittest.expect(o.kind, unittest.equals('foo')); |
| 761 checkEventPeriodRange(o.timePeriod); | 761 checkEventPeriodRange(o.timePeriod); |
| 762 checkUnnamed61(o.updates); | 762 checkUnnamed63(o.updates); |
| 763 } | 763 } |
| 764 buildCounterEventPeriodUpdate--; | 764 buildCounterEventPeriodUpdate--; |
| 765 } | 765 } |
| 766 | 766 |
| 767 core.int buildCounterEventRecordFailure = 0; | 767 core.int buildCounterEventRecordFailure = 0; |
| 768 buildEventRecordFailure() { | 768 buildEventRecordFailure() { |
| 769 var o = new api.EventRecordFailure(); | 769 var o = new api.EventRecordFailure(); |
| 770 buildCounterEventRecordFailure++; | 770 buildCounterEventRecordFailure++; |
| 771 if (buildCounterEventRecordFailure < 3) { | 771 if (buildCounterEventRecordFailure < 3) { |
| 772 o.eventId = "foo"; | 772 o.eventId = "foo"; |
| 773 o.failureCause = "foo"; | 773 o.failureCause = "foo"; |
| 774 o.kind = "foo"; | 774 o.kind = "foo"; |
| 775 } | 775 } |
| 776 buildCounterEventRecordFailure--; | 776 buildCounterEventRecordFailure--; |
| 777 return o; | 777 return o; |
| 778 } | 778 } |
| 779 | 779 |
| 780 checkEventRecordFailure(api.EventRecordFailure o) { | 780 checkEventRecordFailure(api.EventRecordFailure o) { |
| 781 buildCounterEventRecordFailure++; | 781 buildCounterEventRecordFailure++; |
| 782 if (buildCounterEventRecordFailure < 3) { | 782 if (buildCounterEventRecordFailure < 3) { |
| 783 unittest.expect(o.eventId, unittest.equals('foo')); | 783 unittest.expect(o.eventId, unittest.equals('foo')); |
| 784 unittest.expect(o.failureCause, unittest.equals('foo')); | 784 unittest.expect(o.failureCause, unittest.equals('foo')); |
| 785 unittest.expect(o.kind, unittest.equals('foo')); | 785 unittest.expect(o.kind, unittest.equals('foo')); |
| 786 } | 786 } |
| 787 buildCounterEventRecordFailure--; | 787 buildCounterEventRecordFailure--; |
| 788 } | 788 } |
| 789 | 789 |
| 790 buildUnnamed62() { | 790 buildUnnamed64() { |
| 791 var o = new core.List<api.EventPeriodUpdate>(); | 791 var o = new core.List<api.EventPeriodUpdate>(); |
| 792 o.add(buildEventPeriodUpdate()); | 792 o.add(buildEventPeriodUpdate()); |
| 793 o.add(buildEventPeriodUpdate()); | 793 o.add(buildEventPeriodUpdate()); |
| 794 return o; | 794 return o; |
| 795 } | 795 } |
| 796 | 796 |
| 797 checkUnnamed62(core.List<api.EventPeriodUpdate> o) { | 797 checkUnnamed64(core.List<api.EventPeriodUpdate> o) { |
| 798 unittest.expect(o, unittest.hasLength(2)); | 798 unittest.expect(o, unittest.hasLength(2)); |
| 799 checkEventPeriodUpdate(o[0]); | 799 checkEventPeriodUpdate(o[0]); |
| 800 checkEventPeriodUpdate(o[1]); | 800 checkEventPeriodUpdate(o[1]); |
| 801 } | 801 } |
| 802 | 802 |
| 803 core.int buildCounterEventRecordRequest = 0; | 803 core.int buildCounterEventRecordRequest = 0; |
| 804 buildEventRecordRequest() { | 804 buildEventRecordRequest() { |
| 805 var o = new api.EventRecordRequest(); | 805 var o = new api.EventRecordRequest(); |
| 806 buildCounterEventRecordRequest++; | 806 buildCounterEventRecordRequest++; |
| 807 if (buildCounterEventRecordRequest < 3) { | 807 if (buildCounterEventRecordRequest < 3) { |
| 808 o.currentTimeMillis = "foo"; | 808 o.currentTimeMillis = "foo"; |
| 809 o.kind = "foo"; | 809 o.kind = "foo"; |
| 810 o.requestId = "foo"; | 810 o.requestId = "foo"; |
| 811 o.timePeriods = buildUnnamed62(); | 811 o.timePeriods = buildUnnamed64(); |
| 812 } | 812 } |
| 813 buildCounterEventRecordRequest--; | 813 buildCounterEventRecordRequest--; |
| 814 return o; | 814 return o; |
| 815 } | 815 } |
| 816 | 816 |
| 817 checkEventRecordRequest(api.EventRecordRequest o) { | 817 checkEventRecordRequest(api.EventRecordRequest o) { |
| 818 buildCounterEventRecordRequest++; | 818 buildCounterEventRecordRequest++; |
| 819 if (buildCounterEventRecordRequest < 3) { | 819 if (buildCounterEventRecordRequest < 3) { |
| 820 unittest.expect(o.currentTimeMillis, unittest.equals('foo')); | 820 unittest.expect(o.currentTimeMillis, unittest.equals('foo')); |
| 821 unittest.expect(o.kind, unittest.equals('foo')); | 821 unittest.expect(o.kind, unittest.equals('foo')); |
| 822 unittest.expect(o.requestId, unittest.equals('foo')); | 822 unittest.expect(o.requestId, unittest.equals('foo')); |
| 823 checkUnnamed62(o.timePeriods); | 823 checkUnnamed64(o.timePeriods); |
| 824 } | 824 } |
| 825 buildCounterEventRecordRequest--; | 825 buildCounterEventRecordRequest--; |
| 826 } | 826 } |
| 827 | 827 |
| 828 core.int buildCounterEventUpdateRequest = 0; | 828 core.int buildCounterEventUpdateRequest = 0; |
| 829 buildEventUpdateRequest() { | 829 buildEventUpdateRequest() { |
| 830 var o = new api.EventUpdateRequest(); | 830 var o = new api.EventUpdateRequest(); |
| 831 buildCounterEventUpdateRequest++; | 831 buildCounterEventUpdateRequest++; |
| 832 if (buildCounterEventUpdateRequest < 3) { | 832 if (buildCounterEventUpdateRequest < 3) { |
| 833 o.definitionId = "foo"; | 833 o.definitionId = "foo"; |
| 834 o.kind = "foo"; | 834 o.kind = "foo"; |
| 835 o.updateCount = "foo"; | 835 o.updateCount = "foo"; |
| 836 } | 836 } |
| 837 buildCounterEventUpdateRequest--; | 837 buildCounterEventUpdateRequest--; |
| 838 return o; | 838 return o; |
| 839 } | 839 } |
| 840 | 840 |
| 841 checkEventUpdateRequest(api.EventUpdateRequest o) { | 841 checkEventUpdateRequest(api.EventUpdateRequest o) { |
| 842 buildCounterEventUpdateRequest++; | 842 buildCounterEventUpdateRequest++; |
| 843 if (buildCounterEventUpdateRequest < 3) { | 843 if (buildCounterEventUpdateRequest < 3) { |
| 844 unittest.expect(o.definitionId, unittest.equals('foo')); | 844 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 845 unittest.expect(o.kind, unittest.equals('foo')); | 845 unittest.expect(o.kind, unittest.equals('foo')); |
| 846 unittest.expect(o.updateCount, unittest.equals('foo')); | 846 unittest.expect(o.updateCount, unittest.equals('foo')); |
| 847 } | 847 } |
| 848 buildCounterEventUpdateRequest--; | 848 buildCounterEventUpdateRequest--; |
| 849 } | 849 } |
| 850 | 850 |
| 851 buildUnnamed63() { | 851 buildUnnamed65() { |
| 852 var o = new core.List<api.EventBatchRecordFailure>(); | 852 var o = new core.List<api.EventBatchRecordFailure>(); |
| 853 o.add(buildEventBatchRecordFailure()); | 853 o.add(buildEventBatchRecordFailure()); |
| 854 o.add(buildEventBatchRecordFailure()); | 854 o.add(buildEventBatchRecordFailure()); |
| 855 return o; | 855 return o; |
| 856 } | 856 } |
| 857 | 857 |
| 858 checkUnnamed63(core.List<api.EventBatchRecordFailure> o) { | 858 checkUnnamed65(core.List<api.EventBatchRecordFailure> o) { |
| 859 unittest.expect(o, unittest.hasLength(2)); | 859 unittest.expect(o, unittest.hasLength(2)); |
| 860 checkEventBatchRecordFailure(o[0]); | 860 checkEventBatchRecordFailure(o[0]); |
| 861 checkEventBatchRecordFailure(o[1]); | 861 checkEventBatchRecordFailure(o[1]); |
| 862 } | 862 } |
| 863 | 863 |
| 864 buildUnnamed64() { | 864 buildUnnamed66() { |
| 865 var o = new core.List<api.EventRecordFailure>(); | 865 var o = new core.List<api.EventRecordFailure>(); |
| 866 o.add(buildEventRecordFailure()); | 866 o.add(buildEventRecordFailure()); |
| 867 o.add(buildEventRecordFailure()); | 867 o.add(buildEventRecordFailure()); |
| 868 return o; | 868 return o; |
| 869 } | 869 } |
| 870 | 870 |
| 871 checkUnnamed64(core.List<api.EventRecordFailure> o) { | 871 checkUnnamed66(core.List<api.EventRecordFailure> o) { |
| 872 unittest.expect(o, unittest.hasLength(2)); | 872 unittest.expect(o, unittest.hasLength(2)); |
| 873 checkEventRecordFailure(o[0]); | 873 checkEventRecordFailure(o[0]); |
| 874 checkEventRecordFailure(o[1]); | 874 checkEventRecordFailure(o[1]); |
| 875 } | 875 } |
| 876 | 876 |
| 877 buildUnnamed65() { | 877 buildUnnamed67() { |
| 878 var o = new core.List<api.PlayerEvent>(); | 878 var o = new core.List<api.PlayerEvent>(); |
| 879 o.add(buildPlayerEvent()); | 879 o.add(buildPlayerEvent()); |
| 880 o.add(buildPlayerEvent()); | 880 o.add(buildPlayerEvent()); |
| 881 return o; | 881 return o; |
| 882 } | 882 } |
| 883 | 883 |
| 884 checkUnnamed65(core.List<api.PlayerEvent> o) { | 884 checkUnnamed67(core.List<api.PlayerEvent> o) { |
| 885 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
| 886 checkPlayerEvent(o[0]); | 886 checkPlayerEvent(o[0]); |
| 887 checkPlayerEvent(o[1]); | 887 checkPlayerEvent(o[1]); |
| 888 } | 888 } |
| 889 | 889 |
| 890 core.int buildCounterEventUpdateResponse = 0; | 890 core.int buildCounterEventUpdateResponse = 0; |
| 891 buildEventUpdateResponse() { | 891 buildEventUpdateResponse() { |
| 892 var o = new api.EventUpdateResponse(); | 892 var o = new api.EventUpdateResponse(); |
| 893 buildCounterEventUpdateResponse++; | 893 buildCounterEventUpdateResponse++; |
| 894 if (buildCounterEventUpdateResponse < 3) { | 894 if (buildCounterEventUpdateResponse < 3) { |
| 895 o.batchFailures = buildUnnamed63(); | 895 o.batchFailures = buildUnnamed65(); |
| 896 o.eventFailures = buildUnnamed64(); | 896 o.eventFailures = buildUnnamed66(); |
| 897 o.kind = "foo"; | 897 o.kind = "foo"; |
| 898 o.playerEvents = buildUnnamed65(); | 898 o.playerEvents = buildUnnamed67(); |
| 899 } | 899 } |
| 900 buildCounterEventUpdateResponse--; | 900 buildCounterEventUpdateResponse--; |
| 901 return o; | 901 return o; |
| 902 } | 902 } |
| 903 | 903 |
| 904 checkEventUpdateResponse(api.EventUpdateResponse o) { | 904 checkEventUpdateResponse(api.EventUpdateResponse o) { |
| 905 buildCounterEventUpdateResponse++; | 905 buildCounterEventUpdateResponse++; |
| 906 if (buildCounterEventUpdateResponse < 3) { | 906 if (buildCounterEventUpdateResponse < 3) { |
| 907 checkUnnamed63(o.batchFailures); | 907 checkUnnamed65(o.batchFailures); |
| 908 checkUnnamed64(o.eventFailures); | 908 checkUnnamed66(o.eventFailures); |
| 909 unittest.expect(o.kind, unittest.equals('foo')); | 909 unittest.expect(o.kind, unittest.equals('foo')); |
| 910 checkUnnamed65(o.playerEvents); | 910 checkUnnamed67(o.playerEvents); |
| 911 } | 911 } |
| 912 buildCounterEventUpdateResponse--; | 912 buildCounterEventUpdateResponse--; |
| 913 } | 913 } |
| 914 | 914 |
| 915 core.int buildCounterGamesAchievementIncrement = 0; | 915 core.int buildCounterGamesAchievementIncrement = 0; |
| 916 buildGamesAchievementIncrement() { | 916 buildGamesAchievementIncrement() { |
| 917 var o = new api.GamesAchievementIncrement(); | 917 var o = new api.GamesAchievementIncrement(); |
| 918 buildCounterGamesAchievementIncrement++; | 918 buildCounterGamesAchievementIncrement++; |
| 919 if (buildCounterGamesAchievementIncrement < 3) { | 919 if (buildCounterGamesAchievementIncrement < 3) { |
| 920 o.kind = "foo"; | 920 o.kind = "foo"; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 checkPlayer(o.player); | 1154 checkPlayer(o.player); |
| 1155 unittest.expect(o.scoreRank, unittest.equals('foo')); | 1155 unittest.expect(o.scoreRank, unittest.equals('foo')); |
| 1156 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1156 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1157 unittest.expect(o.scoreValue, unittest.equals('foo')); | 1157 unittest.expect(o.scoreValue, unittest.equals('foo')); |
| 1158 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1158 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1159 unittest.expect(o.writeTimestampMillis, unittest.equals('foo')); | 1159 unittest.expect(o.writeTimestampMillis, unittest.equals('foo')); |
| 1160 } | 1160 } |
| 1161 buildCounterLeaderboardEntry--; | 1161 buildCounterLeaderboardEntry--; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 buildUnnamed66() { | 1164 buildUnnamed68() { |
| 1165 var o = new core.List<api.Leaderboard>(); | 1165 var o = new core.List<api.Leaderboard>(); |
| 1166 o.add(buildLeaderboard()); | 1166 o.add(buildLeaderboard()); |
| 1167 o.add(buildLeaderboard()); | 1167 o.add(buildLeaderboard()); |
| 1168 return o; | 1168 return o; |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 checkUnnamed66(core.List<api.Leaderboard> o) { | 1171 checkUnnamed68(core.List<api.Leaderboard> o) { |
| 1172 unittest.expect(o, unittest.hasLength(2)); | 1172 unittest.expect(o, unittest.hasLength(2)); |
| 1173 checkLeaderboard(o[0]); | 1173 checkLeaderboard(o[0]); |
| 1174 checkLeaderboard(o[1]); | 1174 checkLeaderboard(o[1]); |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 core.int buildCounterLeaderboardListResponse = 0; | 1177 core.int buildCounterLeaderboardListResponse = 0; |
| 1178 buildLeaderboardListResponse() { | 1178 buildLeaderboardListResponse() { |
| 1179 var o = new api.LeaderboardListResponse(); | 1179 var o = new api.LeaderboardListResponse(); |
| 1180 buildCounterLeaderboardListResponse++; | 1180 buildCounterLeaderboardListResponse++; |
| 1181 if (buildCounterLeaderboardListResponse < 3) { | 1181 if (buildCounterLeaderboardListResponse < 3) { |
| 1182 o.items = buildUnnamed66(); | 1182 o.items = buildUnnamed68(); |
| 1183 o.kind = "foo"; | 1183 o.kind = "foo"; |
| 1184 o.nextPageToken = "foo"; | 1184 o.nextPageToken = "foo"; |
| 1185 } | 1185 } |
| 1186 buildCounterLeaderboardListResponse--; | 1186 buildCounterLeaderboardListResponse--; |
| 1187 return o; | 1187 return o; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 checkLeaderboardListResponse(api.LeaderboardListResponse o) { | 1190 checkLeaderboardListResponse(api.LeaderboardListResponse o) { |
| 1191 buildCounterLeaderboardListResponse++; | 1191 buildCounterLeaderboardListResponse++; |
| 1192 if (buildCounterLeaderboardListResponse < 3) { | 1192 if (buildCounterLeaderboardListResponse < 3) { |
| 1193 checkUnnamed66(o.items); | 1193 checkUnnamed68(o.items); |
| 1194 unittest.expect(o.kind, unittest.equals('foo')); | 1194 unittest.expect(o.kind, unittest.equals('foo')); |
| 1195 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1195 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1196 } | 1196 } |
| 1197 buildCounterLeaderboardListResponse--; | 1197 buildCounterLeaderboardListResponse--; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 core.int buildCounterLeaderboardScoreRank = 0; | 1200 core.int buildCounterLeaderboardScoreRank = 0; |
| 1201 buildLeaderboardScoreRank() { | 1201 buildLeaderboardScoreRank() { |
| 1202 var o = new api.LeaderboardScoreRank(); | 1202 var o = new api.LeaderboardScoreRank(); |
| 1203 buildCounterLeaderboardScoreRank++; | 1203 buildCounterLeaderboardScoreRank++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1217 if (buildCounterLeaderboardScoreRank < 3) { | 1217 if (buildCounterLeaderboardScoreRank < 3) { |
| 1218 unittest.expect(o.formattedNumScores, unittest.equals('foo')); | 1218 unittest.expect(o.formattedNumScores, unittest.equals('foo')); |
| 1219 unittest.expect(o.formattedRank, unittest.equals('foo')); | 1219 unittest.expect(o.formattedRank, unittest.equals('foo')); |
| 1220 unittest.expect(o.kind, unittest.equals('foo')); | 1220 unittest.expect(o.kind, unittest.equals('foo')); |
| 1221 unittest.expect(o.numScores, unittest.equals('foo')); | 1221 unittest.expect(o.numScores, unittest.equals('foo')); |
| 1222 unittest.expect(o.rank, unittest.equals('foo')); | 1222 unittest.expect(o.rank, unittest.equals('foo')); |
| 1223 } | 1223 } |
| 1224 buildCounterLeaderboardScoreRank--; | 1224 buildCounterLeaderboardScoreRank--; |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 buildUnnamed67() { | 1227 buildUnnamed69() { |
| 1228 var o = new core.List<api.LeaderboardEntry>(); | 1228 var o = new core.List<api.LeaderboardEntry>(); |
| 1229 o.add(buildLeaderboardEntry()); | 1229 o.add(buildLeaderboardEntry()); |
| 1230 o.add(buildLeaderboardEntry()); | 1230 o.add(buildLeaderboardEntry()); |
| 1231 return o; | 1231 return o; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 checkUnnamed67(core.List<api.LeaderboardEntry> o) { | 1234 checkUnnamed69(core.List<api.LeaderboardEntry> o) { |
| 1235 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
| 1236 checkLeaderboardEntry(o[0]); | 1236 checkLeaderboardEntry(o[0]); |
| 1237 checkLeaderboardEntry(o[1]); | 1237 checkLeaderboardEntry(o[1]); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 core.int buildCounterLeaderboardScores = 0; | 1240 core.int buildCounterLeaderboardScores = 0; |
| 1241 buildLeaderboardScores() { | 1241 buildLeaderboardScores() { |
| 1242 var o = new api.LeaderboardScores(); | 1242 var o = new api.LeaderboardScores(); |
| 1243 buildCounterLeaderboardScores++; | 1243 buildCounterLeaderboardScores++; |
| 1244 if (buildCounterLeaderboardScores < 3) { | 1244 if (buildCounterLeaderboardScores < 3) { |
| 1245 o.items = buildUnnamed67(); | 1245 o.items = buildUnnamed69(); |
| 1246 o.kind = "foo"; | 1246 o.kind = "foo"; |
| 1247 o.nextPageToken = "foo"; | 1247 o.nextPageToken = "foo"; |
| 1248 o.numScores = "foo"; | 1248 o.numScores = "foo"; |
| 1249 o.playerScore = buildLeaderboardEntry(); | 1249 o.playerScore = buildLeaderboardEntry(); |
| 1250 o.prevPageToken = "foo"; | 1250 o.prevPageToken = "foo"; |
| 1251 } | 1251 } |
| 1252 buildCounterLeaderboardScores--; | 1252 buildCounterLeaderboardScores--; |
| 1253 return o; | 1253 return o; |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 checkLeaderboardScores(api.LeaderboardScores o) { | 1256 checkLeaderboardScores(api.LeaderboardScores o) { |
| 1257 buildCounterLeaderboardScores++; | 1257 buildCounterLeaderboardScores++; |
| 1258 if (buildCounterLeaderboardScores < 3) { | 1258 if (buildCounterLeaderboardScores < 3) { |
| 1259 checkUnnamed67(o.items); | 1259 checkUnnamed69(o.items); |
| 1260 unittest.expect(o.kind, unittest.equals('foo')); | 1260 unittest.expect(o.kind, unittest.equals('foo')); |
| 1261 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1261 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1262 unittest.expect(o.numScores, unittest.equals('foo')); | 1262 unittest.expect(o.numScores, unittest.equals('foo')); |
| 1263 checkLeaderboardEntry(o.playerScore); | 1263 checkLeaderboardEntry(o.playerScore); |
| 1264 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1264 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 1265 } | 1265 } |
| 1266 buildCounterLeaderboardScores--; | 1266 buildCounterLeaderboardScores--; |
| 1267 } | 1267 } |
| 1268 | 1268 |
| 1269 buildUnnamed68() { | 1269 buildUnnamed70() { |
| 1270 var o = new core.List<api.PlayerLevel>(); | 1270 var o = new core.List<api.PlayerLevel>(); |
| 1271 o.add(buildPlayerLevel()); | 1271 o.add(buildPlayerLevel()); |
| 1272 o.add(buildPlayerLevel()); | 1272 o.add(buildPlayerLevel()); |
| 1273 return o; | 1273 return o; |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 checkUnnamed68(core.List<api.PlayerLevel> o) { | 1276 checkUnnamed70(core.List<api.PlayerLevel> o) { |
| 1277 unittest.expect(o, unittest.hasLength(2)); | 1277 unittest.expect(o, unittest.hasLength(2)); |
| 1278 checkPlayerLevel(o[0]); | 1278 checkPlayerLevel(o[0]); |
| 1279 checkPlayerLevel(o[1]); | 1279 checkPlayerLevel(o[1]); |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 core.int buildCounterMetagameConfig = 0; | 1282 core.int buildCounterMetagameConfig = 0; |
| 1283 buildMetagameConfig() { | 1283 buildMetagameConfig() { |
| 1284 var o = new api.MetagameConfig(); | 1284 var o = new api.MetagameConfig(); |
| 1285 buildCounterMetagameConfig++; | 1285 buildCounterMetagameConfig++; |
| 1286 if (buildCounterMetagameConfig < 3) { | 1286 if (buildCounterMetagameConfig < 3) { |
| 1287 o.currentVersion = 42; | 1287 o.currentVersion = 42; |
| 1288 o.kind = "foo"; | 1288 o.kind = "foo"; |
| 1289 o.playerLevels = buildUnnamed68(); | 1289 o.playerLevels = buildUnnamed70(); |
| 1290 } | 1290 } |
| 1291 buildCounterMetagameConfig--; | 1291 buildCounterMetagameConfig--; |
| 1292 return o; | 1292 return o; |
| 1293 } | 1293 } |
| 1294 | 1294 |
| 1295 checkMetagameConfig(api.MetagameConfig o) { | 1295 checkMetagameConfig(api.MetagameConfig o) { |
| 1296 buildCounterMetagameConfig++; | 1296 buildCounterMetagameConfig++; |
| 1297 if (buildCounterMetagameConfig < 3) { | 1297 if (buildCounterMetagameConfig < 3) { |
| 1298 unittest.expect(o.currentVersion, unittest.equals(42)); | 1298 unittest.expect(o.currentVersion, unittest.equals(42)); |
| 1299 unittest.expect(o.kind, unittest.equals('foo')); | 1299 unittest.expect(o.kind, unittest.equals('foo')); |
| 1300 checkUnnamed68(o.playerLevels); | 1300 checkUnnamed70(o.playerLevels); |
| 1301 } | 1301 } |
| 1302 buildCounterMetagameConfig--; | 1302 buildCounterMetagameConfig--; |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 core.int buildCounterNetworkDiagnostics = 0; | 1305 core.int buildCounterNetworkDiagnostics = 0; |
| 1306 buildNetworkDiagnostics() { | 1306 buildNetworkDiagnostics() { |
| 1307 var o = new api.NetworkDiagnostics(); | 1307 var o = new api.NetworkDiagnostics(); |
| 1308 buildCounterNetworkDiagnostics++; | 1308 buildCounterNetworkDiagnostics++; |
| 1309 if (buildCounterNetworkDiagnostics < 3) { | 1309 if (buildCounterNetworkDiagnostics < 3) { |
| 1310 o.androidNetworkSubtype = 42; | 1310 o.androidNetworkSubtype = 42; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 unittest.expect(o.currentSteps, unittest.equals(42)); | 1527 unittest.expect(o.currentSteps, unittest.equals(42)); |
| 1528 unittest.expect(o.experiencePoints, unittest.equals('foo')); | 1528 unittest.expect(o.experiencePoints, unittest.equals('foo')); |
| 1529 unittest.expect(o.formattedCurrentStepsString, unittest.equals('foo')); | 1529 unittest.expect(o.formattedCurrentStepsString, unittest.equals('foo')); |
| 1530 unittest.expect(o.id, unittest.equals('foo')); | 1530 unittest.expect(o.id, unittest.equals('foo')); |
| 1531 unittest.expect(o.kind, unittest.equals('foo')); | 1531 unittest.expect(o.kind, unittest.equals('foo')); |
| 1532 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); | 1532 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); |
| 1533 } | 1533 } |
| 1534 buildCounterPlayerAchievement--; | 1534 buildCounterPlayerAchievement--; |
| 1535 } | 1535 } |
| 1536 | 1536 |
| 1537 buildUnnamed69() { | 1537 buildUnnamed71() { |
| 1538 var o = new core.List<api.PlayerAchievement>(); | 1538 var o = new core.List<api.PlayerAchievement>(); |
| 1539 o.add(buildPlayerAchievement()); | 1539 o.add(buildPlayerAchievement()); |
| 1540 o.add(buildPlayerAchievement()); | 1540 o.add(buildPlayerAchievement()); |
| 1541 return o; | 1541 return o; |
| 1542 } | 1542 } |
| 1543 | 1543 |
| 1544 checkUnnamed69(core.List<api.PlayerAchievement> o) { | 1544 checkUnnamed71(core.List<api.PlayerAchievement> o) { |
| 1545 unittest.expect(o, unittest.hasLength(2)); | 1545 unittest.expect(o, unittest.hasLength(2)); |
| 1546 checkPlayerAchievement(o[0]); | 1546 checkPlayerAchievement(o[0]); |
| 1547 checkPlayerAchievement(o[1]); | 1547 checkPlayerAchievement(o[1]); |
| 1548 } | 1548 } |
| 1549 | 1549 |
| 1550 core.int buildCounterPlayerAchievementListResponse = 0; | 1550 core.int buildCounterPlayerAchievementListResponse = 0; |
| 1551 buildPlayerAchievementListResponse() { | 1551 buildPlayerAchievementListResponse() { |
| 1552 var o = new api.PlayerAchievementListResponse(); | 1552 var o = new api.PlayerAchievementListResponse(); |
| 1553 buildCounterPlayerAchievementListResponse++; | 1553 buildCounterPlayerAchievementListResponse++; |
| 1554 if (buildCounterPlayerAchievementListResponse < 3) { | 1554 if (buildCounterPlayerAchievementListResponse < 3) { |
| 1555 o.items = buildUnnamed69(); | 1555 o.items = buildUnnamed71(); |
| 1556 o.kind = "foo"; | 1556 o.kind = "foo"; |
| 1557 o.nextPageToken = "foo"; | 1557 o.nextPageToken = "foo"; |
| 1558 } | 1558 } |
| 1559 buildCounterPlayerAchievementListResponse--; | 1559 buildCounterPlayerAchievementListResponse--; |
| 1560 return o; | 1560 return o; |
| 1561 } | 1561 } |
| 1562 | 1562 |
| 1563 checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { | 1563 checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { |
| 1564 buildCounterPlayerAchievementListResponse++; | 1564 buildCounterPlayerAchievementListResponse++; |
| 1565 if (buildCounterPlayerAchievementListResponse < 3) { | 1565 if (buildCounterPlayerAchievementListResponse < 3) { |
| 1566 checkUnnamed69(o.items); | 1566 checkUnnamed71(o.items); |
| 1567 unittest.expect(o.kind, unittest.equals('foo')); | 1567 unittest.expect(o.kind, unittest.equals('foo')); |
| 1568 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1568 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1569 } | 1569 } |
| 1570 buildCounterPlayerAchievementListResponse--; | 1570 buildCounterPlayerAchievementListResponse--; |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 core.int buildCounterPlayerEvent = 0; | 1573 core.int buildCounterPlayerEvent = 0; |
| 1574 buildPlayerEvent() { | 1574 buildPlayerEvent() { |
| 1575 var o = new api.PlayerEvent(); | 1575 var o = new api.PlayerEvent(); |
| 1576 buildCounterPlayerEvent++; | 1576 buildCounterPlayerEvent++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1590 if (buildCounterPlayerEvent < 3) { | 1590 if (buildCounterPlayerEvent < 3) { |
| 1591 unittest.expect(o.definitionId, unittest.equals('foo')); | 1591 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 1592 unittest.expect(o.formattedNumEvents, unittest.equals('foo')); | 1592 unittest.expect(o.formattedNumEvents, unittest.equals('foo')); |
| 1593 unittest.expect(o.kind, unittest.equals('foo')); | 1593 unittest.expect(o.kind, unittest.equals('foo')); |
| 1594 unittest.expect(o.numEvents, unittest.equals('foo')); | 1594 unittest.expect(o.numEvents, unittest.equals('foo')); |
| 1595 unittest.expect(o.playerId, unittest.equals('foo')); | 1595 unittest.expect(o.playerId, unittest.equals('foo')); |
| 1596 } | 1596 } |
| 1597 buildCounterPlayerEvent--; | 1597 buildCounterPlayerEvent--; |
| 1598 } | 1598 } |
| 1599 | 1599 |
| 1600 buildUnnamed70() { | 1600 buildUnnamed72() { |
| 1601 var o = new core.List<api.PlayerEvent>(); | 1601 var o = new core.List<api.PlayerEvent>(); |
| 1602 o.add(buildPlayerEvent()); | 1602 o.add(buildPlayerEvent()); |
| 1603 o.add(buildPlayerEvent()); | 1603 o.add(buildPlayerEvent()); |
| 1604 return o; | 1604 return o; |
| 1605 } | 1605 } |
| 1606 | 1606 |
| 1607 checkUnnamed70(core.List<api.PlayerEvent> o) { | 1607 checkUnnamed72(core.List<api.PlayerEvent> o) { |
| 1608 unittest.expect(o, unittest.hasLength(2)); | 1608 unittest.expect(o, unittest.hasLength(2)); |
| 1609 checkPlayerEvent(o[0]); | 1609 checkPlayerEvent(o[0]); |
| 1610 checkPlayerEvent(o[1]); | 1610 checkPlayerEvent(o[1]); |
| 1611 } | 1611 } |
| 1612 | 1612 |
| 1613 core.int buildCounterPlayerEventListResponse = 0; | 1613 core.int buildCounterPlayerEventListResponse = 0; |
| 1614 buildPlayerEventListResponse() { | 1614 buildPlayerEventListResponse() { |
| 1615 var o = new api.PlayerEventListResponse(); | 1615 var o = new api.PlayerEventListResponse(); |
| 1616 buildCounterPlayerEventListResponse++; | 1616 buildCounterPlayerEventListResponse++; |
| 1617 if (buildCounterPlayerEventListResponse < 3) { | 1617 if (buildCounterPlayerEventListResponse < 3) { |
| 1618 o.items = buildUnnamed70(); | 1618 o.items = buildUnnamed72(); |
| 1619 o.kind = "foo"; | 1619 o.kind = "foo"; |
| 1620 o.nextPageToken = "foo"; | 1620 o.nextPageToken = "foo"; |
| 1621 } | 1621 } |
| 1622 buildCounterPlayerEventListResponse--; | 1622 buildCounterPlayerEventListResponse--; |
| 1623 return o; | 1623 return o; |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 checkPlayerEventListResponse(api.PlayerEventListResponse o) { | 1626 checkPlayerEventListResponse(api.PlayerEventListResponse o) { |
| 1627 buildCounterPlayerEventListResponse++; | 1627 buildCounterPlayerEventListResponse++; |
| 1628 if (buildCounterPlayerEventListResponse < 3) { | 1628 if (buildCounterPlayerEventListResponse < 3) { |
| 1629 checkUnnamed70(o.items); | 1629 checkUnnamed72(o.items); |
| 1630 unittest.expect(o.kind, unittest.equals('foo')); | 1630 unittest.expect(o.kind, unittest.equals('foo')); |
| 1631 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1631 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1632 } | 1632 } |
| 1633 buildCounterPlayerEventListResponse--; | 1633 buildCounterPlayerEventListResponse--; |
| 1634 } | 1634 } |
| 1635 | 1635 |
| 1636 core.int buildCounterPlayerExperienceInfo = 0; | 1636 core.int buildCounterPlayerExperienceInfo = 0; |
| 1637 buildPlayerExperienceInfo() { | 1637 buildPlayerExperienceInfo() { |
| 1638 var o = new api.PlayerExperienceInfo(); | 1638 var o = new api.PlayerExperienceInfo(); |
| 1639 buildCounterPlayerExperienceInfo++; | 1639 buildCounterPlayerExperienceInfo++; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 unittest.expect(o.scoreString, unittest.equals('foo')); | 1688 unittest.expect(o.scoreString, unittest.equals('foo')); |
| 1689 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1689 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1690 unittest.expect(o.scoreValue, unittest.equals('foo')); | 1690 unittest.expect(o.scoreValue, unittest.equals('foo')); |
| 1691 checkLeaderboardScoreRank(o.socialRank); | 1691 checkLeaderboardScoreRank(o.socialRank); |
| 1692 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1692 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1693 unittest.expect(o.writeTimestamp, unittest.equals('foo')); | 1693 unittest.expect(o.writeTimestamp, unittest.equals('foo')); |
| 1694 } | 1694 } |
| 1695 buildCounterPlayerLeaderboardScore--; | 1695 buildCounterPlayerLeaderboardScore--; |
| 1696 } | 1696 } |
| 1697 | 1697 |
| 1698 buildUnnamed71() { | 1698 buildUnnamed73() { |
| 1699 var o = new core.List<api.PlayerLeaderboardScore>(); | 1699 var o = new core.List<api.PlayerLeaderboardScore>(); |
| 1700 o.add(buildPlayerLeaderboardScore()); | 1700 o.add(buildPlayerLeaderboardScore()); |
| 1701 o.add(buildPlayerLeaderboardScore()); | 1701 o.add(buildPlayerLeaderboardScore()); |
| 1702 return o; | 1702 return o; |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 checkUnnamed71(core.List<api.PlayerLeaderboardScore> o) { | 1705 checkUnnamed73(core.List<api.PlayerLeaderboardScore> o) { |
| 1706 unittest.expect(o, unittest.hasLength(2)); | 1706 unittest.expect(o, unittest.hasLength(2)); |
| 1707 checkPlayerLeaderboardScore(o[0]); | 1707 checkPlayerLeaderboardScore(o[0]); |
| 1708 checkPlayerLeaderboardScore(o[1]); | 1708 checkPlayerLeaderboardScore(o[1]); |
| 1709 } | 1709 } |
| 1710 | 1710 |
| 1711 core.int buildCounterPlayerLeaderboardScoreListResponse = 0; | 1711 core.int buildCounterPlayerLeaderboardScoreListResponse = 0; |
| 1712 buildPlayerLeaderboardScoreListResponse() { | 1712 buildPlayerLeaderboardScoreListResponse() { |
| 1713 var o = new api.PlayerLeaderboardScoreListResponse(); | 1713 var o = new api.PlayerLeaderboardScoreListResponse(); |
| 1714 buildCounterPlayerLeaderboardScoreListResponse++; | 1714 buildCounterPlayerLeaderboardScoreListResponse++; |
| 1715 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { | 1715 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { |
| 1716 o.items = buildUnnamed71(); | 1716 o.items = buildUnnamed73(); |
| 1717 o.kind = "foo"; | 1717 o.kind = "foo"; |
| 1718 o.nextPageToken = "foo"; | 1718 o.nextPageToken = "foo"; |
| 1719 o.player = buildPlayer(); | 1719 o.player = buildPlayer(); |
| 1720 } | 1720 } |
| 1721 buildCounterPlayerLeaderboardScoreListResponse--; | 1721 buildCounterPlayerLeaderboardScoreListResponse--; |
| 1722 return o; | 1722 return o; |
| 1723 } | 1723 } |
| 1724 | 1724 |
| 1725 checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o
) { | 1725 checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o
) { |
| 1726 buildCounterPlayerLeaderboardScoreListResponse++; | 1726 buildCounterPlayerLeaderboardScoreListResponse++; |
| 1727 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { | 1727 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { |
| 1728 checkUnnamed71(o.items); | 1728 checkUnnamed73(o.items); |
| 1729 unittest.expect(o.kind, unittest.equals('foo')); | 1729 unittest.expect(o.kind, unittest.equals('foo')); |
| 1730 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1730 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1731 checkPlayer(o.player); | 1731 checkPlayer(o.player); |
| 1732 } | 1732 } |
| 1733 buildCounterPlayerLeaderboardScoreListResponse--; | 1733 buildCounterPlayerLeaderboardScoreListResponse--; |
| 1734 } | 1734 } |
| 1735 | 1735 |
| 1736 core.int buildCounterPlayerLevel = 0; | 1736 core.int buildCounterPlayerLevel = 0; |
| 1737 buildPlayerLevel() { | 1737 buildPlayerLevel() { |
| 1738 var o = new api.PlayerLevel(); | 1738 var o = new api.PlayerLevel(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1751 buildCounterPlayerLevel++; | 1751 buildCounterPlayerLevel++; |
| 1752 if (buildCounterPlayerLevel < 3) { | 1752 if (buildCounterPlayerLevel < 3) { |
| 1753 unittest.expect(o.kind, unittest.equals('foo')); | 1753 unittest.expect(o.kind, unittest.equals('foo')); |
| 1754 unittest.expect(o.level, unittest.equals(42)); | 1754 unittest.expect(o.level, unittest.equals(42)); |
| 1755 unittest.expect(o.maxExperiencePoints, unittest.equals('foo')); | 1755 unittest.expect(o.maxExperiencePoints, unittest.equals('foo')); |
| 1756 unittest.expect(o.minExperiencePoints, unittest.equals('foo')); | 1756 unittest.expect(o.minExperiencePoints, unittest.equals('foo')); |
| 1757 } | 1757 } |
| 1758 buildCounterPlayerLevel--; | 1758 buildCounterPlayerLevel--; |
| 1759 } | 1759 } |
| 1760 | 1760 |
| 1761 buildUnnamed72() { | 1761 buildUnnamed74() { |
| 1762 var o = new core.List<api.Player>(); | 1762 var o = new core.List<api.Player>(); |
| 1763 o.add(buildPlayer()); | 1763 o.add(buildPlayer()); |
| 1764 o.add(buildPlayer()); | 1764 o.add(buildPlayer()); |
| 1765 return o; | 1765 return o; |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 checkUnnamed72(core.List<api.Player> o) { | 1768 checkUnnamed74(core.List<api.Player> o) { |
| 1769 unittest.expect(o, unittest.hasLength(2)); | 1769 unittest.expect(o, unittest.hasLength(2)); |
| 1770 checkPlayer(o[0]); | 1770 checkPlayer(o[0]); |
| 1771 checkPlayer(o[1]); | 1771 checkPlayer(o[1]); |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 core.int buildCounterPlayerListResponse = 0; | 1774 core.int buildCounterPlayerListResponse = 0; |
| 1775 buildPlayerListResponse() { | 1775 buildPlayerListResponse() { |
| 1776 var o = new api.PlayerListResponse(); | 1776 var o = new api.PlayerListResponse(); |
| 1777 buildCounterPlayerListResponse++; | 1777 buildCounterPlayerListResponse++; |
| 1778 if (buildCounterPlayerListResponse < 3) { | 1778 if (buildCounterPlayerListResponse < 3) { |
| 1779 o.items = buildUnnamed72(); | 1779 o.items = buildUnnamed74(); |
| 1780 o.kind = "foo"; | 1780 o.kind = "foo"; |
| 1781 o.nextPageToken = "foo"; | 1781 o.nextPageToken = "foo"; |
| 1782 } | 1782 } |
| 1783 buildCounterPlayerListResponse--; | 1783 buildCounterPlayerListResponse--; |
| 1784 return o; | 1784 return o; |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 checkPlayerListResponse(api.PlayerListResponse o) { | 1787 checkPlayerListResponse(api.PlayerListResponse o) { |
| 1788 buildCounterPlayerListResponse++; | 1788 buildCounterPlayerListResponse++; |
| 1789 if (buildCounterPlayerListResponse < 3) { | 1789 if (buildCounterPlayerListResponse < 3) { |
| 1790 checkUnnamed72(o.items); | 1790 checkUnnamed74(o.items); |
| 1791 unittest.expect(o.kind, unittest.equals('foo')); | 1791 unittest.expect(o.kind, unittest.equals('foo')); |
| 1792 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1792 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1793 } | 1793 } |
| 1794 buildCounterPlayerListResponse--; | 1794 buildCounterPlayerListResponse--; |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 core.int buildCounterPlayerScore = 0; | 1797 core.int buildCounterPlayerScore = 0; |
| 1798 buildPlayerScore() { | 1798 buildPlayerScore() { |
| 1799 var o = new api.PlayerScore(); | 1799 var o = new api.PlayerScore(); |
| 1800 buildCounterPlayerScore++; | 1800 buildCounterPlayerScore++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1814 if (buildCounterPlayerScore < 3) { | 1814 if (buildCounterPlayerScore < 3) { |
| 1815 unittest.expect(o.formattedScore, unittest.equals('foo')); | 1815 unittest.expect(o.formattedScore, unittest.equals('foo')); |
| 1816 unittest.expect(o.kind, unittest.equals('foo')); | 1816 unittest.expect(o.kind, unittest.equals('foo')); |
| 1817 unittest.expect(o.score, unittest.equals('foo')); | 1817 unittest.expect(o.score, unittest.equals('foo')); |
| 1818 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1818 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1819 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1819 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1820 } | 1820 } |
| 1821 buildCounterPlayerScore--; | 1821 buildCounterPlayerScore--; |
| 1822 } | 1822 } |
| 1823 | 1823 |
| 1824 buildUnnamed73() { | 1824 buildUnnamed75() { |
| 1825 var o = new core.List<api.PlayerScoreResponse>(); | 1825 var o = new core.List<api.PlayerScoreResponse>(); |
| 1826 o.add(buildPlayerScoreResponse()); | 1826 o.add(buildPlayerScoreResponse()); |
| 1827 o.add(buildPlayerScoreResponse()); | 1827 o.add(buildPlayerScoreResponse()); |
| 1828 return o; | 1828 return o; |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 checkUnnamed73(core.List<api.PlayerScoreResponse> o) { | 1831 checkUnnamed75(core.List<api.PlayerScoreResponse> o) { |
| 1832 unittest.expect(o, unittest.hasLength(2)); | 1832 unittest.expect(o, unittest.hasLength(2)); |
| 1833 checkPlayerScoreResponse(o[0]); | 1833 checkPlayerScoreResponse(o[0]); |
| 1834 checkPlayerScoreResponse(o[1]); | 1834 checkPlayerScoreResponse(o[1]); |
| 1835 } | 1835 } |
| 1836 | 1836 |
| 1837 core.int buildCounterPlayerScoreListResponse = 0; | 1837 core.int buildCounterPlayerScoreListResponse = 0; |
| 1838 buildPlayerScoreListResponse() { | 1838 buildPlayerScoreListResponse() { |
| 1839 var o = new api.PlayerScoreListResponse(); | 1839 var o = new api.PlayerScoreListResponse(); |
| 1840 buildCounterPlayerScoreListResponse++; | 1840 buildCounterPlayerScoreListResponse++; |
| 1841 if (buildCounterPlayerScoreListResponse < 3) { | 1841 if (buildCounterPlayerScoreListResponse < 3) { |
| 1842 o.kind = "foo"; | 1842 o.kind = "foo"; |
| 1843 o.submittedScores = buildUnnamed73(); | 1843 o.submittedScores = buildUnnamed75(); |
| 1844 } | 1844 } |
| 1845 buildCounterPlayerScoreListResponse--; | 1845 buildCounterPlayerScoreListResponse--; |
| 1846 return o; | 1846 return o; |
| 1847 } | 1847 } |
| 1848 | 1848 |
| 1849 checkPlayerScoreListResponse(api.PlayerScoreListResponse o) { | 1849 checkPlayerScoreListResponse(api.PlayerScoreListResponse o) { |
| 1850 buildCounterPlayerScoreListResponse++; | 1850 buildCounterPlayerScoreListResponse++; |
| 1851 if (buildCounterPlayerScoreListResponse < 3) { | 1851 if (buildCounterPlayerScoreListResponse < 3) { |
| 1852 unittest.expect(o.kind, unittest.equals('foo')); | 1852 unittest.expect(o.kind, unittest.equals('foo')); |
| 1853 checkUnnamed73(o.submittedScores); | 1853 checkUnnamed75(o.submittedScores); |
| 1854 } | 1854 } |
| 1855 buildCounterPlayerScoreListResponse--; | 1855 buildCounterPlayerScoreListResponse--; |
| 1856 } | 1856 } |
| 1857 | 1857 |
| 1858 buildUnnamed74() { | 1858 buildUnnamed76() { |
| 1859 var o = new core.List<core.String>(); | 1859 var o = new core.List<core.String>(); |
| 1860 o.add("foo"); | 1860 o.add("foo"); |
| 1861 o.add("foo"); | 1861 o.add("foo"); |
| 1862 return o; | 1862 return o; |
| 1863 } | 1863 } |
| 1864 | 1864 |
| 1865 checkUnnamed74(core.List<core.String> o) { | 1865 checkUnnamed76(core.List<core.String> o) { |
| 1866 unittest.expect(o, unittest.hasLength(2)); | 1866 unittest.expect(o, unittest.hasLength(2)); |
| 1867 unittest.expect(o[0], unittest.equals('foo')); | 1867 unittest.expect(o[0], unittest.equals('foo')); |
| 1868 unittest.expect(o[1], unittest.equals('foo')); | 1868 unittest.expect(o[1], unittest.equals('foo')); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 buildUnnamed75() { | 1871 buildUnnamed77() { |
| 1872 var o = new core.List<api.PlayerScore>(); | 1872 var o = new core.List<api.PlayerScore>(); |
| 1873 o.add(buildPlayerScore()); | 1873 o.add(buildPlayerScore()); |
| 1874 o.add(buildPlayerScore()); | 1874 o.add(buildPlayerScore()); |
| 1875 return o; | 1875 return o; |
| 1876 } | 1876 } |
| 1877 | 1877 |
| 1878 checkUnnamed75(core.List<api.PlayerScore> o) { | 1878 checkUnnamed77(core.List<api.PlayerScore> o) { |
| 1879 unittest.expect(o, unittest.hasLength(2)); | 1879 unittest.expect(o, unittest.hasLength(2)); |
| 1880 checkPlayerScore(o[0]); | 1880 checkPlayerScore(o[0]); |
| 1881 checkPlayerScore(o[1]); | 1881 checkPlayerScore(o[1]); |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 core.int buildCounterPlayerScoreResponse = 0; | 1884 core.int buildCounterPlayerScoreResponse = 0; |
| 1885 buildPlayerScoreResponse() { | 1885 buildPlayerScoreResponse() { |
| 1886 var o = new api.PlayerScoreResponse(); | 1886 var o = new api.PlayerScoreResponse(); |
| 1887 buildCounterPlayerScoreResponse++; | 1887 buildCounterPlayerScoreResponse++; |
| 1888 if (buildCounterPlayerScoreResponse < 3) { | 1888 if (buildCounterPlayerScoreResponse < 3) { |
| 1889 o.beatenScoreTimeSpans = buildUnnamed74(); | 1889 o.beatenScoreTimeSpans = buildUnnamed76(); |
| 1890 o.formattedScore = "foo"; | 1890 o.formattedScore = "foo"; |
| 1891 o.kind = "foo"; | 1891 o.kind = "foo"; |
| 1892 o.leaderboardId = "foo"; | 1892 o.leaderboardId = "foo"; |
| 1893 o.scoreTag = "foo"; | 1893 o.scoreTag = "foo"; |
| 1894 o.unbeatenScores = buildUnnamed75(); | 1894 o.unbeatenScores = buildUnnamed77(); |
| 1895 } | 1895 } |
| 1896 buildCounterPlayerScoreResponse--; | 1896 buildCounterPlayerScoreResponse--; |
| 1897 return o; | 1897 return o; |
| 1898 } | 1898 } |
| 1899 | 1899 |
| 1900 checkPlayerScoreResponse(api.PlayerScoreResponse o) { | 1900 checkPlayerScoreResponse(api.PlayerScoreResponse o) { |
| 1901 buildCounterPlayerScoreResponse++; | 1901 buildCounterPlayerScoreResponse++; |
| 1902 if (buildCounterPlayerScoreResponse < 3) { | 1902 if (buildCounterPlayerScoreResponse < 3) { |
| 1903 checkUnnamed74(o.beatenScoreTimeSpans); | 1903 checkUnnamed76(o.beatenScoreTimeSpans); |
| 1904 unittest.expect(o.formattedScore, unittest.equals('foo')); | 1904 unittest.expect(o.formattedScore, unittest.equals('foo')); |
| 1905 unittest.expect(o.kind, unittest.equals('foo')); | 1905 unittest.expect(o.kind, unittest.equals('foo')); |
| 1906 unittest.expect(o.leaderboardId, unittest.equals('foo')); | 1906 unittest.expect(o.leaderboardId, unittest.equals('foo')); |
| 1907 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1907 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1908 checkUnnamed75(o.unbeatenScores); | 1908 checkUnnamed77(o.unbeatenScores); |
| 1909 } | 1909 } |
| 1910 buildCounterPlayerScoreResponse--; | 1910 buildCounterPlayerScoreResponse--; |
| 1911 } | 1911 } |
| 1912 | 1912 |
| 1913 buildUnnamed76() { | 1913 buildUnnamed78() { |
| 1914 var o = new core.List<api.ScoreSubmission>(); | 1914 var o = new core.List<api.ScoreSubmission>(); |
| 1915 o.add(buildScoreSubmission()); | 1915 o.add(buildScoreSubmission()); |
| 1916 o.add(buildScoreSubmission()); | 1916 o.add(buildScoreSubmission()); |
| 1917 return o; | 1917 return o; |
| 1918 } | 1918 } |
| 1919 | 1919 |
| 1920 checkUnnamed76(core.List<api.ScoreSubmission> o) { | 1920 checkUnnamed78(core.List<api.ScoreSubmission> o) { |
| 1921 unittest.expect(o, unittest.hasLength(2)); | 1921 unittest.expect(o, unittest.hasLength(2)); |
| 1922 checkScoreSubmission(o[0]); | 1922 checkScoreSubmission(o[0]); |
| 1923 checkScoreSubmission(o[1]); | 1923 checkScoreSubmission(o[1]); |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 core.int buildCounterPlayerScoreSubmissionList = 0; | 1926 core.int buildCounterPlayerScoreSubmissionList = 0; |
| 1927 buildPlayerScoreSubmissionList() { | 1927 buildPlayerScoreSubmissionList() { |
| 1928 var o = new api.PlayerScoreSubmissionList(); | 1928 var o = new api.PlayerScoreSubmissionList(); |
| 1929 buildCounterPlayerScoreSubmissionList++; | 1929 buildCounterPlayerScoreSubmissionList++; |
| 1930 if (buildCounterPlayerScoreSubmissionList < 3) { | 1930 if (buildCounterPlayerScoreSubmissionList < 3) { |
| 1931 o.kind = "foo"; | 1931 o.kind = "foo"; |
| 1932 o.scores = buildUnnamed76(); | 1932 o.scores = buildUnnamed78(); |
| 1933 } | 1933 } |
| 1934 buildCounterPlayerScoreSubmissionList--; | 1934 buildCounterPlayerScoreSubmissionList--; |
| 1935 return o; | 1935 return o; |
| 1936 } | 1936 } |
| 1937 | 1937 |
| 1938 checkPlayerScoreSubmissionList(api.PlayerScoreSubmissionList o) { | 1938 checkPlayerScoreSubmissionList(api.PlayerScoreSubmissionList o) { |
| 1939 buildCounterPlayerScoreSubmissionList++; | 1939 buildCounterPlayerScoreSubmissionList++; |
| 1940 if (buildCounterPlayerScoreSubmissionList < 3) { | 1940 if (buildCounterPlayerScoreSubmissionList < 3) { |
| 1941 unittest.expect(o.kind, unittest.equals('foo')); | 1941 unittest.expect(o.kind, unittest.equals('foo')); |
| 1942 checkUnnamed76(o.scores); | 1942 checkUnnamed78(o.scores); |
| 1943 } | 1943 } |
| 1944 buildCounterPlayerScoreSubmissionList--; | 1944 buildCounterPlayerScoreSubmissionList--; |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 core.int buildCounterProfileSettings = 0; | 1947 core.int buildCounterProfileSettings = 0; |
| 1948 buildProfileSettings() { | 1948 buildProfileSettings() { |
| 1949 var o = new api.ProfileSettings(); | 1949 var o = new api.ProfileSettings(); |
| 1950 buildCounterProfileSettings++; | 1950 buildCounterProfileSettings++; |
| 1951 if (buildCounterProfileSettings < 3) { | 1951 if (buildCounterProfileSettings < 3) { |
| 1952 o.kind = "foo"; | 1952 o.kind = "foo"; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2025 | 2025 |
| 2026 checkPushTokenId(api.PushTokenId o) { | 2026 checkPushTokenId(api.PushTokenId o) { |
| 2027 buildCounterPushTokenId++; | 2027 buildCounterPushTokenId++; |
| 2028 if (buildCounterPushTokenId < 3) { | 2028 if (buildCounterPushTokenId < 3) { |
| 2029 checkPushTokenIdIos(o.ios); | 2029 checkPushTokenIdIos(o.ios); |
| 2030 unittest.expect(o.kind, unittest.equals('foo')); | 2030 unittest.expect(o.kind, unittest.equals('foo')); |
| 2031 } | 2031 } |
| 2032 buildCounterPushTokenId--; | 2032 buildCounterPushTokenId--; |
| 2033 } | 2033 } |
| 2034 | 2034 |
| 2035 buildUnnamed77() { | 2035 buildUnnamed79() { |
| 2036 var o = new core.List<api.QuestMilestone>(); | 2036 var o = new core.List<api.QuestMilestone>(); |
| 2037 o.add(buildQuestMilestone()); | 2037 o.add(buildQuestMilestone()); |
| 2038 o.add(buildQuestMilestone()); | 2038 o.add(buildQuestMilestone()); |
| 2039 return o; | 2039 return o; |
| 2040 } | 2040 } |
| 2041 | 2041 |
| 2042 checkUnnamed77(core.List<api.QuestMilestone> o) { | 2042 checkUnnamed79(core.List<api.QuestMilestone> o) { |
| 2043 unittest.expect(o, unittest.hasLength(2)); | 2043 unittest.expect(o, unittest.hasLength(2)); |
| 2044 checkQuestMilestone(o[0]); | 2044 checkQuestMilestone(o[0]); |
| 2045 checkQuestMilestone(o[1]); | 2045 checkQuestMilestone(o[1]); |
| 2046 } | 2046 } |
| 2047 | 2047 |
| 2048 core.int buildCounterQuest = 0; | 2048 core.int buildCounterQuest = 0; |
| 2049 buildQuest() { | 2049 buildQuest() { |
| 2050 var o = new api.Quest(); | 2050 var o = new api.Quest(); |
| 2051 buildCounterQuest++; | 2051 buildCounterQuest++; |
| 2052 if (buildCounterQuest < 3) { | 2052 if (buildCounterQuest < 3) { |
| 2053 o.acceptedTimestampMillis = "foo"; | 2053 o.acceptedTimestampMillis = "foo"; |
| 2054 o.applicationId = "foo"; | 2054 o.applicationId = "foo"; |
| 2055 o.bannerUrl = "foo"; | 2055 o.bannerUrl = "foo"; |
| 2056 o.description = "foo"; | 2056 o.description = "foo"; |
| 2057 o.endTimestampMillis = "foo"; | 2057 o.endTimestampMillis = "foo"; |
| 2058 o.iconUrl = "foo"; | 2058 o.iconUrl = "foo"; |
| 2059 o.id = "foo"; | 2059 o.id = "foo"; |
| 2060 o.isDefaultBannerUrl = true; | 2060 o.isDefaultBannerUrl = true; |
| 2061 o.isDefaultIconUrl = true; | 2061 o.isDefaultIconUrl = true; |
| 2062 o.kind = "foo"; | 2062 o.kind = "foo"; |
| 2063 o.lastUpdatedTimestampMillis = "foo"; | 2063 o.lastUpdatedTimestampMillis = "foo"; |
| 2064 o.milestones = buildUnnamed77(); | 2064 o.milestones = buildUnnamed79(); |
| 2065 o.name = "foo"; | 2065 o.name = "foo"; |
| 2066 o.notifyTimestampMillis = "foo"; | 2066 o.notifyTimestampMillis = "foo"; |
| 2067 o.startTimestampMillis = "foo"; | 2067 o.startTimestampMillis = "foo"; |
| 2068 o.state = "foo"; | 2068 o.state = "foo"; |
| 2069 } | 2069 } |
| 2070 buildCounterQuest--; | 2070 buildCounterQuest--; |
| 2071 return o; | 2071 return o; |
| 2072 } | 2072 } |
| 2073 | 2073 |
| 2074 checkQuest(api.Quest o) { | 2074 checkQuest(api.Quest o) { |
| 2075 buildCounterQuest++; | 2075 buildCounterQuest++; |
| 2076 if (buildCounterQuest < 3) { | 2076 if (buildCounterQuest < 3) { |
| 2077 unittest.expect(o.acceptedTimestampMillis, unittest.equals('foo')); | 2077 unittest.expect(o.acceptedTimestampMillis, unittest.equals('foo')); |
| 2078 unittest.expect(o.applicationId, unittest.equals('foo')); | 2078 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 2079 unittest.expect(o.bannerUrl, unittest.equals('foo')); | 2079 unittest.expect(o.bannerUrl, unittest.equals('foo')); |
| 2080 unittest.expect(o.description, unittest.equals('foo')); | 2080 unittest.expect(o.description, unittest.equals('foo')); |
| 2081 unittest.expect(o.endTimestampMillis, unittest.equals('foo')); | 2081 unittest.expect(o.endTimestampMillis, unittest.equals('foo')); |
| 2082 unittest.expect(o.iconUrl, unittest.equals('foo')); | 2082 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 2083 unittest.expect(o.id, unittest.equals('foo')); | 2083 unittest.expect(o.id, unittest.equals('foo')); |
| 2084 unittest.expect(o.isDefaultBannerUrl, unittest.isTrue); | 2084 unittest.expect(o.isDefaultBannerUrl, unittest.isTrue); |
| 2085 unittest.expect(o.isDefaultIconUrl, unittest.isTrue); | 2085 unittest.expect(o.isDefaultIconUrl, unittest.isTrue); |
| 2086 unittest.expect(o.kind, unittest.equals('foo')); | 2086 unittest.expect(o.kind, unittest.equals('foo')); |
| 2087 unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); | 2087 unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); |
| 2088 checkUnnamed77(o.milestones); | 2088 checkUnnamed79(o.milestones); |
| 2089 unittest.expect(o.name, unittest.equals('foo')); | 2089 unittest.expect(o.name, unittest.equals('foo')); |
| 2090 unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); | 2090 unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); |
| 2091 unittest.expect(o.startTimestampMillis, unittest.equals('foo')); | 2091 unittest.expect(o.startTimestampMillis, unittest.equals('foo')); |
| 2092 unittest.expect(o.state, unittest.equals('foo')); | 2092 unittest.expect(o.state, unittest.equals('foo')); |
| 2093 } | 2093 } |
| 2094 buildCounterQuest--; | 2094 buildCounterQuest--; |
| 2095 } | 2095 } |
| 2096 | 2096 |
| 2097 core.int buildCounterQuestContribution = 0; | 2097 core.int buildCounterQuestContribution = 0; |
| 2098 buildQuestContribution() { | 2098 buildQuestContribution() { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2137 if (buildCounterQuestCriterion < 3) { | 2137 if (buildCounterQuestCriterion < 3) { |
| 2138 checkQuestContribution(o.completionContribution); | 2138 checkQuestContribution(o.completionContribution); |
| 2139 checkQuestContribution(o.currentContribution); | 2139 checkQuestContribution(o.currentContribution); |
| 2140 unittest.expect(o.eventId, unittest.equals('foo')); | 2140 unittest.expect(o.eventId, unittest.equals('foo')); |
| 2141 checkQuestContribution(o.initialPlayerProgress); | 2141 checkQuestContribution(o.initialPlayerProgress); |
| 2142 unittest.expect(o.kind, unittest.equals('foo')); | 2142 unittest.expect(o.kind, unittest.equals('foo')); |
| 2143 } | 2143 } |
| 2144 buildCounterQuestCriterion--; | 2144 buildCounterQuestCriterion--; |
| 2145 } | 2145 } |
| 2146 | 2146 |
| 2147 buildUnnamed78() { | 2147 buildUnnamed80() { |
| 2148 var o = new core.List<api.Quest>(); | 2148 var o = new core.List<api.Quest>(); |
| 2149 o.add(buildQuest()); | 2149 o.add(buildQuest()); |
| 2150 o.add(buildQuest()); | 2150 o.add(buildQuest()); |
| 2151 return o; | 2151 return o; |
| 2152 } | 2152 } |
| 2153 | 2153 |
| 2154 checkUnnamed78(core.List<api.Quest> o) { | 2154 checkUnnamed80(core.List<api.Quest> o) { |
| 2155 unittest.expect(o, unittest.hasLength(2)); | 2155 unittest.expect(o, unittest.hasLength(2)); |
| 2156 checkQuest(o[0]); | 2156 checkQuest(o[0]); |
| 2157 checkQuest(o[1]); | 2157 checkQuest(o[1]); |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 core.int buildCounterQuestListResponse = 0; | 2160 core.int buildCounterQuestListResponse = 0; |
| 2161 buildQuestListResponse() { | 2161 buildQuestListResponse() { |
| 2162 var o = new api.QuestListResponse(); | 2162 var o = new api.QuestListResponse(); |
| 2163 buildCounterQuestListResponse++; | 2163 buildCounterQuestListResponse++; |
| 2164 if (buildCounterQuestListResponse < 3) { | 2164 if (buildCounterQuestListResponse < 3) { |
| 2165 o.items = buildUnnamed78(); | 2165 o.items = buildUnnamed80(); |
| 2166 o.kind = "foo"; | 2166 o.kind = "foo"; |
| 2167 o.nextPageToken = "foo"; | 2167 o.nextPageToken = "foo"; |
| 2168 } | 2168 } |
| 2169 buildCounterQuestListResponse--; | 2169 buildCounterQuestListResponse--; |
| 2170 return o; | 2170 return o; |
| 2171 } | 2171 } |
| 2172 | 2172 |
| 2173 checkQuestListResponse(api.QuestListResponse o) { | 2173 checkQuestListResponse(api.QuestListResponse o) { |
| 2174 buildCounterQuestListResponse++; | 2174 buildCounterQuestListResponse++; |
| 2175 if (buildCounterQuestListResponse < 3) { | 2175 if (buildCounterQuestListResponse < 3) { |
| 2176 checkUnnamed78(o.items); | 2176 checkUnnamed80(o.items); |
| 2177 unittest.expect(o.kind, unittest.equals('foo')); | 2177 unittest.expect(o.kind, unittest.equals('foo')); |
| 2178 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2178 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2179 } | 2179 } |
| 2180 buildCounterQuestListResponse--; | 2180 buildCounterQuestListResponse--; |
| 2181 } | 2181 } |
| 2182 | 2182 |
| 2183 buildUnnamed79() { | 2183 buildUnnamed81() { |
| 2184 var o = new core.List<api.QuestCriterion>(); | 2184 var o = new core.List<api.QuestCriterion>(); |
| 2185 o.add(buildQuestCriterion()); | 2185 o.add(buildQuestCriterion()); |
| 2186 o.add(buildQuestCriterion()); | 2186 o.add(buildQuestCriterion()); |
| 2187 return o; | 2187 return o; |
| 2188 } | 2188 } |
| 2189 | 2189 |
| 2190 checkUnnamed79(core.List<api.QuestCriterion> o) { | 2190 checkUnnamed81(core.List<api.QuestCriterion> o) { |
| 2191 unittest.expect(o, unittest.hasLength(2)); | 2191 unittest.expect(o, unittest.hasLength(2)); |
| 2192 checkQuestCriterion(o[0]); | 2192 checkQuestCriterion(o[0]); |
| 2193 checkQuestCriterion(o[1]); | 2193 checkQuestCriterion(o[1]); |
| 2194 } | 2194 } |
| 2195 | 2195 |
| 2196 core.int buildCounterQuestMilestone = 0; | 2196 core.int buildCounterQuestMilestone = 0; |
| 2197 buildQuestMilestone() { | 2197 buildQuestMilestone() { |
| 2198 var o = new api.QuestMilestone(); | 2198 var o = new api.QuestMilestone(); |
| 2199 buildCounterQuestMilestone++; | 2199 buildCounterQuestMilestone++; |
| 2200 if (buildCounterQuestMilestone < 3) { | 2200 if (buildCounterQuestMilestone < 3) { |
| 2201 o.completionRewardData = "foo"; | 2201 o.completionRewardData = "foo"; |
| 2202 o.criteria = buildUnnamed79(); | 2202 o.criteria = buildUnnamed81(); |
| 2203 o.id = "foo"; | 2203 o.id = "foo"; |
| 2204 o.kind = "foo"; | 2204 o.kind = "foo"; |
| 2205 o.state = "foo"; | 2205 o.state = "foo"; |
| 2206 } | 2206 } |
| 2207 buildCounterQuestMilestone--; | 2207 buildCounterQuestMilestone--; |
| 2208 return o; | 2208 return o; |
| 2209 } | 2209 } |
| 2210 | 2210 |
| 2211 checkQuestMilestone(api.QuestMilestone o) { | 2211 checkQuestMilestone(api.QuestMilestone o) { |
| 2212 buildCounterQuestMilestone++; | 2212 buildCounterQuestMilestone++; |
| 2213 if (buildCounterQuestMilestone < 3) { | 2213 if (buildCounterQuestMilestone < 3) { |
| 2214 unittest.expect(o.completionRewardData, unittest.equals('foo')); | 2214 unittest.expect(o.completionRewardData, unittest.equals('foo')); |
| 2215 checkUnnamed79(o.criteria); | 2215 checkUnnamed81(o.criteria); |
| 2216 unittest.expect(o.id, unittest.equals('foo')); | 2216 unittest.expect(o.id, unittest.equals('foo')); |
| 2217 unittest.expect(o.kind, unittest.equals('foo')); | 2217 unittest.expect(o.kind, unittest.equals('foo')); |
| 2218 unittest.expect(o.state, unittest.equals('foo')); | 2218 unittest.expect(o.state, unittest.equals('foo')); |
| 2219 } | 2219 } |
| 2220 buildCounterQuestMilestone--; | 2220 buildCounterQuestMilestone--; |
| 2221 } | 2221 } |
| 2222 | 2222 |
| 2223 core.int buildCounterRevisionCheckResponse = 0; | 2223 core.int buildCounterRevisionCheckResponse = 0; |
| 2224 buildRevisionCheckResponse() { | 2224 buildRevisionCheckResponse() { |
| 2225 var o = new api.RevisionCheckResponse(); | 2225 var o = new api.RevisionCheckResponse(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2236 checkRevisionCheckResponse(api.RevisionCheckResponse o) { | 2236 checkRevisionCheckResponse(api.RevisionCheckResponse o) { |
| 2237 buildCounterRevisionCheckResponse++; | 2237 buildCounterRevisionCheckResponse++; |
| 2238 if (buildCounterRevisionCheckResponse < 3) { | 2238 if (buildCounterRevisionCheckResponse < 3) { |
| 2239 unittest.expect(o.apiVersion, unittest.equals('foo')); | 2239 unittest.expect(o.apiVersion, unittest.equals('foo')); |
| 2240 unittest.expect(o.kind, unittest.equals('foo')); | 2240 unittest.expect(o.kind, unittest.equals('foo')); |
| 2241 unittest.expect(o.revisionStatus, unittest.equals('foo')); | 2241 unittest.expect(o.revisionStatus, unittest.equals('foo')); |
| 2242 } | 2242 } |
| 2243 buildCounterRevisionCheckResponse--; | 2243 buildCounterRevisionCheckResponse--; |
| 2244 } | 2244 } |
| 2245 | 2245 |
| 2246 buildUnnamed80() { | 2246 buildUnnamed82() { |
| 2247 var o = new core.List<api.RoomParticipant>(); | 2247 var o = new core.List<api.RoomParticipant>(); |
| 2248 o.add(buildRoomParticipant()); | 2248 o.add(buildRoomParticipant()); |
| 2249 o.add(buildRoomParticipant()); | 2249 o.add(buildRoomParticipant()); |
| 2250 return o; | 2250 return o; |
| 2251 } | 2251 } |
| 2252 | 2252 |
| 2253 checkUnnamed80(core.List<api.RoomParticipant> o) { | 2253 checkUnnamed82(core.List<api.RoomParticipant> o) { |
| 2254 unittest.expect(o, unittest.hasLength(2)); | 2254 unittest.expect(o, unittest.hasLength(2)); |
| 2255 checkRoomParticipant(o[0]); | 2255 checkRoomParticipant(o[0]); |
| 2256 checkRoomParticipant(o[1]); | 2256 checkRoomParticipant(o[1]); |
| 2257 } | 2257 } |
| 2258 | 2258 |
| 2259 core.int buildCounterRoom = 0; | 2259 core.int buildCounterRoom = 0; |
| 2260 buildRoom() { | 2260 buildRoom() { |
| 2261 var o = new api.Room(); | 2261 var o = new api.Room(); |
| 2262 buildCounterRoom++; | 2262 buildCounterRoom++; |
| 2263 if (buildCounterRoom < 3) { | 2263 if (buildCounterRoom < 3) { |
| 2264 o.applicationId = "foo"; | 2264 o.applicationId = "foo"; |
| 2265 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); | 2265 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); |
| 2266 o.autoMatchingStatus = buildRoomAutoMatchStatus(); | 2266 o.autoMatchingStatus = buildRoomAutoMatchStatus(); |
| 2267 o.creationDetails = buildRoomModification(); | 2267 o.creationDetails = buildRoomModification(); |
| 2268 o.description = "foo"; | 2268 o.description = "foo"; |
| 2269 o.inviterId = "foo"; | 2269 o.inviterId = "foo"; |
| 2270 o.kind = "foo"; | 2270 o.kind = "foo"; |
| 2271 o.lastUpdateDetails = buildRoomModification(); | 2271 o.lastUpdateDetails = buildRoomModification(); |
| 2272 o.participants = buildUnnamed80(); | 2272 o.participants = buildUnnamed82(); |
| 2273 o.roomId = "foo"; | 2273 o.roomId = "foo"; |
| 2274 o.roomStatusVersion = 42; | 2274 o.roomStatusVersion = 42; |
| 2275 o.status = "foo"; | 2275 o.status = "foo"; |
| 2276 o.variant = 42; | 2276 o.variant = 42; |
| 2277 } | 2277 } |
| 2278 buildCounterRoom--; | 2278 buildCounterRoom--; |
| 2279 return o; | 2279 return o; |
| 2280 } | 2280 } |
| 2281 | 2281 |
| 2282 checkRoom(api.Room o) { | 2282 checkRoom(api.Room o) { |
| 2283 buildCounterRoom++; | 2283 buildCounterRoom++; |
| 2284 if (buildCounterRoom < 3) { | 2284 if (buildCounterRoom < 3) { |
| 2285 unittest.expect(o.applicationId, unittest.equals('foo')); | 2285 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 2286 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); | 2286 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2287 checkRoomAutoMatchStatus(o.autoMatchingStatus); | 2287 checkRoomAutoMatchStatus(o.autoMatchingStatus); |
| 2288 checkRoomModification(o.creationDetails); | 2288 checkRoomModification(o.creationDetails); |
| 2289 unittest.expect(o.description, unittest.equals('foo')); | 2289 unittest.expect(o.description, unittest.equals('foo')); |
| 2290 unittest.expect(o.inviterId, unittest.equals('foo')); | 2290 unittest.expect(o.inviterId, unittest.equals('foo')); |
| 2291 unittest.expect(o.kind, unittest.equals('foo')); | 2291 unittest.expect(o.kind, unittest.equals('foo')); |
| 2292 checkRoomModification(o.lastUpdateDetails); | 2292 checkRoomModification(o.lastUpdateDetails); |
| 2293 checkUnnamed80(o.participants); | 2293 checkUnnamed82(o.participants); |
| 2294 unittest.expect(o.roomId, unittest.equals('foo')); | 2294 unittest.expect(o.roomId, unittest.equals('foo')); |
| 2295 unittest.expect(o.roomStatusVersion, unittest.equals(42)); | 2295 unittest.expect(o.roomStatusVersion, unittest.equals(42)); |
| 2296 unittest.expect(o.status, unittest.equals('foo')); | 2296 unittest.expect(o.status, unittest.equals('foo')); |
| 2297 unittest.expect(o.variant, unittest.equals(42)); | 2297 unittest.expect(o.variant, unittest.equals(42)); |
| 2298 } | 2298 } |
| 2299 buildCounterRoom--; | 2299 buildCounterRoom--; |
| 2300 } | 2300 } |
| 2301 | 2301 |
| 2302 core.int buildCounterRoomAutoMatchStatus = 0; | 2302 core.int buildCounterRoomAutoMatchStatus = 0; |
| 2303 buildRoomAutoMatchStatus() { | 2303 buildRoomAutoMatchStatus() { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 | 2359 |
| 2360 checkRoomClientAddress(api.RoomClientAddress o) { | 2360 checkRoomClientAddress(api.RoomClientAddress o) { |
| 2361 buildCounterRoomClientAddress++; | 2361 buildCounterRoomClientAddress++; |
| 2362 if (buildCounterRoomClientAddress < 3) { | 2362 if (buildCounterRoomClientAddress < 3) { |
| 2363 unittest.expect(o.kind, unittest.equals('foo')); | 2363 unittest.expect(o.kind, unittest.equals('foo')); |
| 2364 unittest.expect(o.xmppAddress, unittest.equals('foo')); | 2364 unittest.expect(o.xmppAddress, unittest.equals('foo')); |
| 2365 } | 2365 } |
| 2366 buildCounterRoomClientAddress--; | 2366 buildCounterRoomClientAddress--; |
| 2367 } | 2367 } |
| 2368 | 2368 |
| 2369 buildUnnamed81() { | 2369 buildUnnamed83() { |
| 2370 var o = new core.List<core.String>(); | 2370 var o = new core.List<core.String>(); |
| 2371 o.add("foo"); | 2371 o.add("foo"); |
| 2372 o.add("foo"); | 2372 o.add("foo"); |
| 2373 return o; | 2373 return o; |
| 2374 } | 2374 } |
| 2375 | 2375 |
| 2376 checkUnnamed81(core.List<core.String> o) { | 2376 checkUnnamed83(core.List<core.String> o) { |
| 2377 unittest.expect(o, unittest.hasLength(2)); | 2377 unittest.expect(o, unittest.hasLength(2)); |
| 2378 unittest.expect(o[0], unittest.equals('foo')); | 2378 unittest.expect(o[0], unittest.equals('foo')); |
| 2379 unittest.expect(o[1], unittest.equals('foo')); | 2379 unittest.expect(o[1], unittest.equals('foo')); |
| 2380 } | 2380 } |
| 2381 | 2381 |
| 2382 buildUnnamed82() { | 2382 buildUnnamed84() { |
| 2383 var o = new core.List<core.String>(); | 2383 var o = new core.List<core.String>(); |
| 2384 o.add("foo"); | 2384 o.add("foo"); |
| 2385 o.add("foo"); | 2385 o.add("foo"); |
| 2386 return o; | 2386 return o; |
| 2387 } | 2387 } |
| 2388 | 2388 |
| 2389 checkUnnamed82(core.List<core.String> o) { | 2389 checkUnnamed84(core.List<core.String> o) { |
| 2390 unittest.expect(o, unittest.hasLength(2)); | 2390 unittest.expect(o, unittest.hasLength(2)); |
| 2391 unittest.expect(o[0], unittest.equals('foo')); | 2391 unittest.expect(o[0], unittest.equals('foo')); |
| 2392 unittest.expect(o[1], unittest.equals('foo')); | 2392 unittest.expect(o[1], unittest.equals('foo')); |
| 2393 } | 2393 } |
| 2394 | 2394 |
| 2395 core.int buildCounterRoomCreateRequest = 0; | 2395 core.int buildCounterRoomCreateRequest = 0; |
| 2396 buildRoomCreateRequest() { | 2396 buildRoomCreateRequest() { |
| 2397 var o = new api.RoomCreateRequest(); | 2397 var o = new api.RoomCreateRequest(); |
| 2398 buildCounterRoomCreateRequest++; | 2398 buildCounterRoomCreateRequest++; |
| 2399 if (buildCounterRoomCreateRequest < 3) { | 2399 if (buildCounterRoomCreateRequest < 3) { |
| 2400 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); | 2400 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); |
| 2401 o.capabilities = buildUnnamed81(); | 2401 o.capabilities = buildUnnamed83(); |
| 2402 o.clientAddress = buildRoomClientAddress(); | 2402 o.clientAddress = buildRoomClientAddress(); |
| 2403 o.invitedPlayerIds = buildUnnamed82(); | 2403 o.invitedPlayerIds = buildUnnamed84(); |
| 2404 o.kind = "foo"; | 2404 o.kind = "foo"; |
| 2405 o.networkDiagnostics = buildNetworkDiagnostics(); | 2405 o.networkDiagnostics = buildNetworkDiagnostics(); |
| 2406 o.requestId = "foo"; | 2406 o.requestId = "foo"; |
| 2407 o.variant = 42; | 2407 o.variant = 42; |
| 2408 } | 2408 } |
| 2409 buildCounterRoomCreateRequest--; | 2409 buildCounterRoomCreateRequest--; |
| 2410 return o; | 2410 return o; |
| 2411 } | 2411 } |
| 2412 | 2412 |
| 2413 checkRoomCreateRequest(api.RoomCreateRequest o) { | 2413 checkRoomCreateRequest(api.RoomCreateRequest o) { |
| 2414 buildCounterRoomCreateRequest++; | 2414 buildCounterRoomCreateRequest++; |
| 2415 if (buildCounterRoomCreateRequest < 3) { | 2415 if (buildCounterRoomCreateRequest < 3) { |
| 2416 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); | 2416 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2417 checkUnnamed81(o.capabilities); | 2417 checkUnnamed83(o.capabilities); |
| 2418 checkRoomClientAddress(o.clientAddress); | 2418 checkRoomClientAddress(o.clientAddress); |
| 2419 checkUnnamed82(o.invitedPlayerIds); | 2419 checkUnnamed84(o.invitedPlayerIds); |
| 2420 unittest.expect(o.kind, unittest.equals('foo')); | 2420 unittest.expect(o.kind, unittest.equals('foo')); |
| 2421 checkNetworkDiagnostics(o.networkDiagnostics); | 2421 checkNetworkDiagnostics(o.networkDiagnostics); |
| 2422 unittest.expect(o.requestId, unittest.equals('foo')); | 2422 unittest.expect(o.requestId, unittest.equals('foo')); |
| 2423 unittest.expect(o.variant, unittest.equals(42)); | 2423 unittest.expect(o.variant, unittest.equals(42)); |
| 2424 } | 2424 } |
| 2425 buildCounterRoomCreateRequest--; | 2425 buildCounterRoomCreateRequest--; |
| 2426 } | 2426 } |
| 2427 | 2427 |
| 2428 buildUnnamed83() { | 2428 buildUnnamed85() { |
| 2429 var o = new core.List<core.String>(); | 2429 var o = new core.List<core.String>(); |
| 2430 o.add("foo"); | 2430 o.add("foo"); |
| 2431 o.add("foo"); | 2431 o.add("foo"); |
| 2432 return o; | 2432 return o; |
| 2433 } | 2433 } |
| 2434 | 2434 |
| 2435 checkUnnamed83(core.List<core.String> o) { | 2435 checkUnnamed85(core.List<core.String> o) { |
| 2436 unittest.expect(o, unittest.hasLength(2)); | 2436 unittest.expect(o, unittest.hasLength(2)); |
| 2437 unittest.expect(o[0], unittest.equals('foo')); | 2437 unittest.expect(o[0], unittest.equals('foo')); |
| 2438 unittest.expect(o[1], unittest.equals('foo')); | 2438 unittest.expect(o[1], unittest.equals('foo')); |
| 2439 } | 2439 } |
| 2440 | 2440 |
| 2441 core.int buildCounterRoomJoinRequest = 0; | 2441 core.int buildCounterRoomJoinRequest = 0; |
| 2442 buildRoomJoinRequest() { | 2442 buildRoomJoinRequest() { |
| 2443 var o = new api.RoomJoinRequest(); | 2443 var o = new api.RoomJoinRequest(); |
| 2444 buildCounterRoomJoinRequest++; | 2444 buildCounterRoomJoinRequest++; |
| 2445 if (buildCounterRoomJoinRequest < 3) { | 2445 if (buildCounterRoomJoinRequest < 3) { |
| 2446 o.capabilities = buildUnnamed83(); | 2446 o.capabilities = buildUnnamed85(); |
| 2447 o.clientAddress = buildRoomClientAddress(); | 2447 o.clientAddress = buildRoomClientAddress(); |
| 2448 o.kind = "foo"; | 2448 o.kind = "foo"; |
| 2449 o.networkDiagnostics = buildNetworkDiagnostics(); | 2449 o.networkDiagnostics = buildNetworkDiagnostics(); |
| 2450 } | 2450 } |
| 2451 buildCounterRoomJoinRequest--; | 2451 buildCounterRoomJoinRequest--; |
| 2452 return o; | 2452 return o; |
| 2453 } | 2453 } |
| 2454 | 2454 |
| 2455 checkRoomJoinRequest(api.RoomJoinRequest o) { | 2455 checkRoomJoinRequest(api.RoomJoinRequest o) { |
| 2456 buildCounterRoomJoinRequest++; | 2456 buildCounterRoomJoinRequest++; |
| 2457 if (buildCounterRoomJoinRequest < 3) { | 2457 if (buildCounterRoomJoinRequest < 3) { |
| 2458 checkUnnamed83(o.capabilities); | 2458 checkUnnamed85(o.capabilities); |
| 2459 checkRoomClientAddress(o.clientAddress); | 2459 checkRoomClientAddress(o.clientAddress); |
| 2460 unittest.expect(o.kind, unittest.equals('foo')); | 2460 unittest.expect(o.kind, unittest.equals('foo')); |
| 2461 checkNetworkDiagnostics(o.networkDiagnostics); | 2461 checkNetworkDiagnostics(o.networkDiagnostics); |
| 2462 } | 2462 } |
| 2463 buildCounterRoomJoinRequest--; | 2463 buildCounterRoomJoinRequest--; |
| 2464 } | 2464 } |
| 2465 | 2465 |
| 2466 buildUnnamed84() { | 2466 buildUnnamed86() { |
| 2467 var o = new core.List<api.PeerSessionDiagnostics>(); | 2467 var o = new core.List<api.PeerSessionDiagnostics>(); |
| 2468 o.add(buildPeerSessionDiagnostics()); | 2468 o.add(buildPeerSessionDiagnostics()); |
| 2469 o.add(buildPeerSessionDiagnostics()); | 2469 o.add(buildPeerSessionDiagnostics()); |
| 2470 return o; | 2470 return o; |
| 2471 } | 2471 } |
| 2472 | 2472 |
| 2473 checkUnnamed84(core.List<api.PeerSessionDiagnostics> o) { | 2473 checkUnnamed86(core.List<api.PeerSessionDiagnostics> o) { |
| 2474 unittest.expect(o, unittest.hasLength(2)); | 2474 unittest.expect(o, unittest.hasLength(2)); |
| 2475 checkPeerSessionDiagnostics(o[0]); | 2475 checkPeerSessionDiagnostics(o[0]); |
| 2476 checkPeerSessionDiagnostics(o[1]); | 2476 checkPeerSessionDiagnostics(o[1]); |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 core.int buildCounterRoomLeaveDiagnostics = 0; | 2479 core.int buildCounterRoomLeaveDiagnostics = 0; |
| 2480 buildRoomLeaveDiagnostics() { | 2480 buildRoomLeaveDiagnostics() { |
| 2481 var o = new api.RoomLeaveDiagnostics(); | 2481 var o = new api.RoomLeaveDiagnostics(); |
| 2482 buildCounterRoomLeaveDiagnostics++; | 2482 buildCounterRoomLeaveDiagnostics++; |
| 2483 if (buildCounterRoomLeaveDiagnostics < 3) { | 2483 if (buildCounterRoomLeaveDiagnostics < 3) { |
| 2484 o.androidNetworkSubtype = 42; | 2484 o.androidNetworkSubtype = 42; |
| 2485 o.androidNetworkType = 42; | 2485 o.androidNetworkType = 42; |
| 2486 o.iosNetworkType = 42; | 2486 o.iosNetworkType = 42; |
| 2487 o.kind = "foo"; | 2487 o.kind = "foo"; |
| 2488 o.networkOperatorCode = "foo"; | 2488 o.networkOperatorCode = "foo"; |
| 2489 o.networkOperatorName = "foo"; | 2489 o.networkOperatorName = "foo"; |
| 2490 o.peerSession = buildUnnamed84(); | 2490 o.peerSession = buildUnnamed86(); |
| 2491 o.socketsUsed = true; | 2491 o.socketsUsed = true; |
| 2492 } | 2492 } |
| 2493 buildCounterRoomLeaveDiagnostics--; | 2493 buildCounterRoomLeaveDiagnostics--; |
| 2494 return o; | 2494 return o; |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 checkRoomLeaveDiagnostics(api.RoomLeaveDiagnostics o) { | 2497 checkRoomLeaveDiagnostics(api.RoomLeaveDiagnostics o) { |
| 2498 buildCounterRoomLeaveDiagnostics++; | 2498 buildCounterRoomLeaveDiagnostics++; |
| 2499 if (buildCounterRoomLeaveDiagnostics < 3) { | 2499 if (buildCounterRoomLeaveDiagnostics < 3) { |
| 2500 unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); | 2500 unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); |
| 2501 unittest.expect(o.androidNetworkType, unittest.equals(42)); | 2501 unittest.expect(o.androidNetworkType, unittest.equals(42)); |
| 2502 unittest.expect(o.iosNetworkType, unittest.equals(42)); | 2502 unittest.expect(o.iosNetworkType, unittest.equals(42)); |
| 2503 unittest.expect(o.kind, unittest.equals('foo')); | 2503 unittest.expect(o.kind, unittest.equals('foo')); |
| 2504 unittest.expect(o.networkOperatorCode, unittest.equals('foo')); | 2504 unittest.expect(o.networkOperatorCode, unittest.equals('foo')); |
| 2505 unittest.expect(o.networkOperatorName, unittest.equals('foo')); | 2505 unittest.expect(o.networkOperatorName, unittest.equals('foo')); |
| 2506 checkUnnamed84(o.peerSession); | 2506 checkUnnamed86(o.peerSession); |
| 2507 unittest.expect(o.socketsUsed, unittest.isTrue); | 2507 unittest.expect(o.socketsUsed, unittest.isTrue); |
| 2508 } | 2508 } |
| 2509 buildCounterRoomLeaveDiagnostics--; | 2509 buildCounterRoomLeaveDiagnostics--; |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 core.int buildCounterRoomLeaveRequest = 0; | 2512 core.int buildCounterRoomLeaveRequest = 0; |
| 2513 buildRoomLeaveRequest() { | 2513 buildRoomLeaveRequest() { |
| 2514 var o = new api.RoomLeaveRequest(); | 2514 var o = new api.RoomLeaveRequest(); |
| 2515 buildCounterRoomLeaveRequest++; | 2515 buildCounterRoomLeaveRequest++; |
| 2516 if (buildCounterRoomLeaveRequest < 3) { | 2516 if (buildCounterRoomLeaveRequest < 3) { |
| 2517 o.kind = "foo"; | 2517 o.kind = "foo"; |
| 2518 o.leaveDiagnostics = buildRoomLeaveDiagnostics(); | 2518 o.leaveDiagnostics = buildRoomLeaveDiagnostics(); |
| 2519 o.reason = "foo"; | 2519 o.reason = "foo"; |
| 2520 } | 2520 } |
| 2521 buildCounterRoomLeaveRequest--; | 2521 buildCounterRoomLeaveRequest--; |
| 2522 return o; | 2522 return o; |
| 2523 } | 2523 } |
| 2524 | 2524 |
| 2525 checkRoomLeaveRequest(api.RoomLeaveRequest o) { | 2525 checkRoomLeaveRequest(api.RoomLeaveRequest o) { |
| 2526 buildCounterRoomLeaveRequest++; | 2526 buildCounterRoomLeaveRequest++; |
| 2527 if (buildCounterRoomLeaveRequest < 3) { | 2527 if (buildCounterRoomLeaveRequest < 3) { |
| 2528 unittest.expect(o.kind, unittest.equals('foo')); | 2528 unittest.expect(o.kind, unittest.equals('foo')); |
| 2529 checkRoomLeaveDiagnostics(o.leaveDiagnostics); | 2529 checkRoomLeaveDiagnostics(o.leaveDiagnostics); |
| 2530 unittest.expect(o.reason, unittest.equals('foo')); | 2530 unittest.expect(o.reason, unittest.equals('foo')); |
| 2531 } | 2531 } |
| 2532 buildCounterRoomLeaveRequest--; | 2532 buildCounterRoomLeaveRequest--; |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 buildUnnamed85() { | 2535 buildUnnamed87() { |
| 2536 var o = new core.List<api.Room>(); | 2536 var o = new core.List<api.Room>(); |
| 2537 o.add(buildRoom()); | 2537 o.add(buildRoom()); |
| 2538 o.add(buildRoom()); | 2538 o.add(buildRoom()); |
| 2539 return o; | 2539 return o; |
| 2540 } | 2540 } |
| 2541 | 2541 |
| 2542 checkUnnamed85(core.List<api.Room> o) { | 2542 checkUnnamed87(core.List<api.Room> o) { |
| 2543 unittest.expect(o, unittest.hasLength(2)); | 2543 unittest.expect(o, unittest.hasLength(2)); |
| 2544 checkRoom(o[0]); | 2544 checkRoom(o[0]); |
| 2545 checkRoom(o[1]); | 2545 checkRoom(o[1]); |
| 2546 } | 2546 } |
| 2547 | 2547 |
| 2548 core.int buildCounterRoomList = 0; | 2548 core.int buildCounterRoomList = 0; |
| 2549 buildRoomList() { | 2549 buildRoomList() { |
| 2550 var o = new api.RoomList(); | 2550 var o = new api.RoomList(); |
| 2551 buildCounterRoomList++; | 2551 buildCounterRoomList++; |
| 2552 if (buildCounterRoomList < 3) { | 2552 if (buildCounterRoomList < 3) { |
| 2553 o.items = buildUnnamed85(); | 2553 o.items = buildUnnamed87(); |
| 2554 o.kind = "foo"; | 2554 o.kind = "foo"; |
| 2555 o.nextPageToken = "foo"; | 2555 o.nextPageToken = "foo"; |
| 2556 } | 2556 } |
| 2557 buildCounterRoomList--; | 2557 buildCounterRoomList--; |
| 2558 return o; | 2558 return o; |
| 2559 } | 2559 } |
| 2560 | 2560 |
| 2561 checkRoomList(api.RoomList o) { | 2561 checkRoomList(api.RoomList o) { |
| 2562 buildCounterRoomList++; | 2562 buildCounterRoomList++; |
| 2563 if (buildCounterRoomList < 3) { | 2563 if (buildCounterRoomList < 3) { |
| 2564 checkUnnamed85(o.items); | 2564 checkUnnamed87(o.items); |
| 2565 unittest.expect(o.kind, unittest.equals('foo')); | 2565 unittest.expect(o.kind, unittest.equals('foo')); |
| 2566 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2566 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2567 } | 2567 } |
| 2568 buildCounterRoomList--; | 2568 buildCounterRoomList--; |
| 2569 } | 2569 } |
| 2570 | 2570 |
| 2571 core.int buildCounterRoomModification = 0; | 2571 core.int buildCounterRoomModification = 0; |
| 2572 buildRoomModification() { | 2572 buildRoomModification() { |
| 2573 var o = new api.RoomModification(); | 2573 var o = new api.RoomModification(); |
| 2574 buildCounterRoomModification++; | 2574 buildCounterRoomModification++; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2615 unittest.expect(o.error, unittest.equals('foo')); | 2615 unittest.expect(o.error, unittest.equals('foo')); |
| 2616 unittest.expect(o.errorReason, unittest.equals('foo')); | 2616 unittest.expect(o.errorReason, unittest.equals('foo')); |
| 2617 unittest.expect(o.kind, unittest.equals('foo')); | 2617 unittest.expect(o.kind, unittest.equals('foo')); |
| 2618 unittest.expect(o.participantId, unittest.equals('foo')); | 2618 unittest.expect(o.participantId, unittest.equals('foo')); |
| 2619 unittest.expect(o.status, unittest.equals('foo')); | 2619 unittest.expect(o.status, unittest.equals('foo')); |
| 2620 unittest.expect(o.unreliableRoundtripLatencyMillis, unittest.equals(42)); | 2620 unittest.expect(o.unreliableRoundtripLatencyMillis, unittest.equals(42)); |
| 2621 } | 2621 } |
| 2622 buildCounterRoomP2PStatus--; | 2622 buildCounterRoomP2PStatus--; |
| 2623 } | 2623 } |
| 2624 | 2624 |
| 2625 buildUnnamed86() { | 2625 buildUnnamed88() { |
| 2626 var o = new core.List<api.RoomP2PStatus>(); | 2626 var o = new core.List<api.RoomP2PStatus>(); |
| 2627 o.add(buildRoomP2PStatus()); | 2627 o.add(buildRoomP2PStatus()); |
| 2628 o.add(buildRoomP2PStatus()); | 2628 o.add(buildRoomP2PStatus()); |
| 2629 return o; | 2629 return o; |
| 2630 } | 2630 } |
| 2631 | 2631 |
| 2632 checkUnnamed86(core.List<api.RoomP2PStatus> o) { | 2632 checkUnnamed88(core.List<api.RoomP2PStatus> o) { |
| 2633 unittest.expect(o, unittest.hasLength(2)); | 2633 unittest.expect(o, unittest.hasLength(2)); |
| 2634 checkRoomP2PStatus(o[0]); | 2634 checkRoomP2PStatus(o[0]); |
| 2635 checkRoomP2PStatus(o[1]); | 2635 checkRoomP2PStatus(o[1]); |
| 2636 } | 2636 } |
| 2637 | 2637 |
| 2638 core.int buildCounterRoomP2PStatuses = 0; | 2638 core.int buildCounterRoomP2PStatuses = 0; |
| 2639 buildRoomP2PStatuses() { | 2639 buildRoomP2PStatuses() { |
| 2640 var o = new api.RoomP2PStatuses(); | 2640 var o = new api.RoomP2PStatuses(); |
| 2641 buildCounterRoomP2PStatuses++; | 2641 buildCounterRoomP2PStatuses++; |
| 2642 if (buildCounterRoomP2PStatuses < 3) { | 2642 if (buildCounterRoomP2PStatuses < 3) { |
| 2643 o.kind = "foo"; | 2643 o.kind = "foo"; |
| 2644 o.updates = buildUnnamed86(); | 2644 o.updates = buildUnnamed88(); |
| 2645 } | 2645 } |
| 2646 buildCounterRoomP2PStatuses--; | 2646 buildCounterRoomP2PStatuses--; |
| 2647 return o; | 2647 return o; |
| 2648 } | 2648 } |
| 2649 | 2649 |
| 2650 checkRoomP2PStatuses(api.RoomP2PStatuses o) { | 2650 checkRoomP2PStatuses(api.RoomP2PStatuses o) { |
| 2651 buildCounterRoomP2PStatuses++; | 2651 buildCounterRoomP2PStatuses++; |
| 2652 if (buildCounterRoomP2PStatuses < 3) { | 2652 if (buildCounterRoomP2PStatuses < 3) { |
| 2653 unittest.expect(o.kind, unittest.equals('foo')); | 2653 unittest.expect(o.kind, unittest.equals('foo')); |
| 2654 checkUnnamed86(o.updates); | 2654 checkUnnamed88(o.updates); |
| 2655 } | 2655 } |
| 2656 buildCounterRoomP2PStatuses--; | 2656 buildCounterRoomP2PStatuses--; |
| 2657 } | 2657 } |
| 2658 | 2658 |
| 2659 buildUnnamed87() { | 2659 buildUnnamed89() { |
| 2660 var o = new core.List<core.String>(); | 2660 var o = new core.List<core.String>(); |
| 2661 o.add("foo"); | 2661 o.add("foo"); |
| 2662 o.add("foo"); | 2662 o.add("foo"); |
| 2663 return o; | 2663 return o; |
| 2664 } | 2664 } |
| 2665 | 2665 |
| 2666 checkUnnamed87(core.List<core.String> o) { | 2666 checkUnnamed89(core.List<core.String> o) { |
| 2667 unittest.expect(o, unittest.hasLength(2)); | 2667 unittest.expect(o, unittest.hasLength(2)); |
| 2668 unittest.expect(o[0], unittest.equals('foo')); | 2668 unittest.expect(o[0], unittest.equals('foo')); |
| 2669 unittest.expect(o[1], unittest.equals('foo')); | 2669 unittest.expect(o[1], unittest.equals('foo')); |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 core.int buildCounterRoomParticipant = 0; | 2672 core.int buildCounterRoomParticipant = 0; |
| 2673 buildRoomParticipant() { | 2673 buildRoomParticipant() { |
| 2674 var o = new api.RoomParticipant(); | 2674 var o = new api.RoomParticipant(); |
| 2675 buildCounterRoomParticipant++; | 2675 buildCounterRoomParticipant++; |
| 2676 if (buildCounterRoomParticipant < 3) { | 2676 if (buildCounterRoomParticipant < 3) { |
| 2677 o.autoMatched = true; | 2677 o.autoMatched = true; |
| 2678 o.autoMatchedPlayer = buildAnonymousPlayer(); | 2678 o.autoMatchedPlayer = buildAnonymousPlayer(); |
| 2679 o.capabilities = buildUnnamed87(); | 2679 o.capabilities = buildUnnamed89(); |
| 2680 o.clientAddress = buildRoomClientAddress(); | 2680 o.clientAddress = buildRoomClientAddress(); |
| 2681 o.connected = true; | 2681 o.connected = true; |
| 2682 o.id = "foo"; | 2682 o.id = "foo"; |
| 2683 o.kind = "foo"; | 2683 o.kind = "foo"; |
| 2684 o.leaveReason = "foo"; | 2684 o.leaveReason = "foo"; |
| 2685 o.player = buildPlayer(); | 2685 o.player = buildPlayer(); |
| 2686 o.status = "foo"; | 2686 o.status = "foo"; |
| 2687 } | 2687 } |
| 2688 buildCounterRoomParticipant--; | 2688 buildCounterRoomParticipant--; |
| 2689 return o; | 2689 return o; |
| 2690 } | 2690 } |
| 2691 | 2691 |
| 2692 checkRoomParticipant(api.RoomParticipant o) { | 2692 checkRoomParticipant(api.RoomParticipant o) { |
| 2693 buildCounterRoomParticipant++; | 2693 buildCounterRoomParticipant++; |
| 2694 if (buildCounterRoomParticipant < 3) { | 2694 if (buildCounterRoomParticipant < 3) { |
| 2695 unittest.expect(o.autoMatched, unittest.isTrue); | 2695 unittest.expect(o.autoMatched, unittest.isTrue); |
| 2696 checkAnonymousPlayer(o.autoMatchedPlayer); | 2696 checkAnonymousPlayer(o.autoMatchedPlayer); |
| 2697 checkUnnamed87(o.capabilities); | 2697 checkUnnamed89(o.capabilities); |
| 2698 checkRoomClientAddress(o.clientAddress); | 2698 checkRoomClientAddress(o.clientAddress); |
| 2699 unittest.expect(o.connected, unittest.isTrue); | 2699 unittest.expect(o.connected, unittest.isTrue); |
| 2700 unittest.expect(o.id, unittest.equals('foo')); | 2700 unittest.expect(o.id, unittest.equals('foo')); |
| 2701 unittest.expect(o.kind, unittest.equals('foo')); | 2701 unittest.expect(o.kind, unittest.equals('foo')); |
| 2702 unittest.expect(o.leaveReason, unittest.equals('foo')); | 2702 unittest.expect(o.leaveReason, unittest.equals('foo')); |
| 2703 checkPlayer(o.player); | 2703 checkPlayer(o.player); |
| 2704 unittest.expect(o.status, unittest.equals('foo')); | 2704 unittest.expect(o.status, unittest.equals('foo')); |
| 2705 } | 2705 } |
| 2706 buildCounterRoomParticipant--; | 2706 buildCounterRoomParticipant--; |
| 2707 } | 2707 } |
| 2708 | 2708 |
| 2709 buildUnnamed88() { | 2709 buildUnnamed90() { |
| 2710 var o = new core.List<api.RoomParticipant>(); | 2710 var o = new core.List<api.RoomParticipant>(); |
| 2711 o.add(buildRoomParticipant()); | 2711 o.add(buildRoomParticipant()); |
| 2712 o.add(buildRoomParticipant()); | 2712 o.add(buildRoomParticipant()); |
| 2713 return o; | 2713 return o; |
| 2714 } | 2714 } |
| 2715 | 2715 |
| 2716 checkUnnamed88(core.List<api.RoomParticipant> o) { | 2716 checkUnnamed90(core.List<api.RoomParticipant> o) { |
| 2717 unittest.expect(o, unittest.hasLength(2)); | 2717 unittest.expect(o, unittest.hasLength(2)); |
| 2718 checkRoomParticipant(o[0]); | 2718 checkRoomParticipant(o[0]); |
| 2719 checkRoomParticipant(o[1]); | 2719 checkRoomParticipant(o[1]); |
| 2720 } | 2720 } |
| 2721 | 2721 |
| 2722 core.int buildCounterRoomStatus = 0; | 2722 core.int buildCounterRoomStatus = 0; |
| 2723 buildRoomStatus() { | 2723 buildRoomStatus() { |
| 2724 var o = new api.RoomStatus(); | 2724 var o = new api.RoomStatus(); |
| 2725 buildCounterRoomStatus++; | 2725 buildCounterRoomStatus++; |
| 2726 if (buildCounterRoomStatus < 3) { | 2726 if (buildCounterRoomStatus < 3) { |
| 2727 o.autoMatchingStatus = buildRoomAutoMatchStatus(); | 2727 o.autoMatchingStatus = buildRoomAutoMatchStatus(); |
| 2728 o.kind = "foo"; | 2728 o.kind = "foo"; |
| 2729 o.participants = buildUnnamed88(); | 2729 o.participants = buildUnnamed90(); |
| 2730 o.roomId = "foo"; | 2730 o.roomId = "foo"; |
| 2731 o.status = "foo"; | 2731 o.status = "foo"; |
| 2732 o.statusVersion = 42; | 2732 o.statusVersion = 42; |
| 2733 } | 2733 } |
| 2734 buildCounterRoomStatus--; | 2734 buildCounterRoomStatus--; |
| 2735 return o; | 2735 return o; |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 checkRoomStatus(api.RoomStatus o) { | 2738 checkRoomStatus(api.RoomStatus o) { |
| 2739 buildCounterRoomStatus++; | 2739 buildCounterRoomStatus++; |
| 2740 if (buildCounterRoomStatus < 3) { | 2740 if (buildCounterRoomStatus < 3) { |
| 2741 checkRoomAutoMatchStatus(o.autoMatchingStatus); | 2741 checkRoomAutoMatchStatus(o.autoMatchingStatus); |
| 2742 unittest.expect(o.kind, unittest.equals('foo')); | 2742 unittest.expect(o.kind, unittest.equals('foo')); |
| 2743 checkUnnamed88(o.participants); | 2743 checkUnnamed90(o.participants); |
| 2744 unittest.expect(o.roomId, unittest.equals('foo')); | 2744 unittest.expect(o.roomId, unittest.equals('foo')); |
| 2745 unittest.expect(o.status, unittest.equals('foo')); | 2745 unittest.expect(o.status, unittest.equals('foo')); |
| 2746 unittest.expect(o.statusVersion, unittest.equals(42)); | 2746 unittest.expect(o.statusVersion, unittest.equals(42)); |
| 2747 } | 2747 } |
| 2748 buildCounterRoomStatus--; | 2748 buildCounterRoomStatus--; |
| 2749 } | 2749 } |
| 2750 | 2750 |
| 2751 core.int buildCounterScoreSubmission = 0; | 2751 core.int buildCounterScoreSubmission = 0; |
| 2752 buildScoreSubmission() { | 2752 buildScoreSubmission() { |
| 2753 var o = new api.ScoreSubmission(); | 2753 var o = new api.ScoreSubmission(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2834 if (buildCounterSnapshotImage < 3) { | 2834 if (buildCounterSnapshotImage < 3) { |
| 2835 unittest.expect(o.height, unittest.equals(42)); | 2835 unittest.expect(o.height, unittest.equals(42)); |
| 2836 unittest.expect(o.kind, unittest.equals('foo')); | 2836 unittest.expect(o.kind, unittest.equals('foo')); |
| 2837 unittest.expect(o.mimeType, unittest.equals('foo')); | 2837 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 2838 unittest.expect(o.url, unittest.equals('foo')); | 2838 unittest.expect(o.url, unittest.equals('foo')); |
| 2839 unittest.expect(o.width, unittest.equals(42)); | 2839 unittest.expect(o.width, unittest.equals(42)); |
| 2840 } | 2840 } |
| 2841 buildCounterSnapshotImage--; | 2841 buildCounterSnapshotImage--; |
| 2842 } | 2842 } |
| 2843 | 2843 |
| 2844 buildUnnamed89() { | 2844 buildUnnamed91() { |
| 2845 var o = new core.List<api.Snapshot>(); | 2845 var o = new core.List<api.Snapshot>(); |
| 2846 o.add(buildSnapshot()); | 2846 o.add(buildSnapshot()); |
| 2847 o.add(buildSnapshot()); | 2847 o.add(buildSnapshot()); |
| 2848 return o; | 2848 return o; |
| 2849 } | 2849 } |
| 2850 | 2850 |
| 2851 checkUnnamed89(core.List<api.Snapshot> o) { | 2851 checkUnnamed91(core.List<api.Snapshot> o) { |
| 2852 unittest.expect(o, unittest.hasLength(2)); | 2852 unittest.expect(o, unittest.hasLength(2)); |
| 2853 checkSnapshot(o[0]); | 2853 checkSnapshot(o[0]); |
| 2854 checkSnapshot(o[1]); | 2854 checkSnapshot(o[1]); |
| 2855 } | 2855 } |
| 2856 | 2856 |
| 2857 core.int buildCounterSnapshotListResponse = 0; | 2857 core.int buildCounterSnapshotListResponse = 0; |
| 2858 buildSnapshotListResponse() { | 2858 buildSnapshotListResponse() { |
| 2859 var o = new api.SnapshotListResponse(); | 2859 var o = new api.SnapshotListResponse(); |
| 2860 buildCounterSnapshotListResponse++; | 2860 buildCounterSnapshotListResponse++; |
| 2861 if (buildCounterSnapshotListResponse < 3) { | 2861 if (buildCounterSnapshotListResponse < 3) { |
| 2862 o.items = buildUnnamed89(); | 2862 o.items = buildUnnamed91(); |
| 2863 o.kind = "foo"; | 2863 o.kind = "foo"; |
| 2864 o.nextPageToken = "foo"; | 2864 o.nextPageToken = "foo"; |
| 2865 } | 2865 } |
| 2866 buildCounterSnapshotListResponse--; | 2866 buildCounterSnapshotListResponse--; |
| 2867 return o; | 2867 return o; |
| 2868 } | 2868 } |
| 2869 | 2869 |
| 2870 checkSnapshotListResponse(api.SnapshotListResponse o) { | 2870 checkSnapshotListResponse(api.SnapshotListResponse o) { |
| 2871 buildCounterSnapshotListResponse++; | 2871 buildCounterSnapshotListResponse++; |
| 2872 if (buildCounterSnapshotListResponse < 3) { | 2872 if (buildCounterSnapshotListResponse < 3) { |
| 2873 checkUnnamed89(o.items); | 2873 checkUnnamed91(o.items); |
| 2874 unittest.expect(o.kind, unittest.equals('foo')); | 2874 unittest.expect(o.kind, unittest.equals('foo')); |
| 2875 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2875 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2876 } | 2876 } |
| 2877 buildCounterSnapshotListResponse--; | 2877 buildCounterSnapshotListResponse--; |
| 2878 } | 2878 } |
| 2879 | 2879 |
| 2880 core.int buildCounterTurnBasedAutoMatchingCriteria = 0; | 2880 core.int buildCounterTurnBasedAutoMatchingCriteria = 0; |
| 2881 buildTurnBasedAutoMatchingCriteria() { | 2881 buildTurnBasedAutoMatchingCriteria() { |
| 2882 var o = new api.TurnBasedAutoMatchingCriteria(); | 2882 var o = new api.TurnBasedAutoMatchingCriteria(); |
| 2883 buildCounterTurnBasedAutoMatchingCriteria++; | 2883 buildCounterTurnBasedAutoMatchingCriteria++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2895 buildCounterTurnBasedAutoMatchingCriteria++; | 2895 buildCounterTurnBasedAutoMatchingCriteria++; |
| 2896 if (buildCounterTurnBasedAutoMatchingCriteria < 3) { | 2896 if (buildCounterTurnBasedAutoMatchingCriteria < 3) { |
| 2897 unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); | 2897 unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); |
| 2898 unittest.expect(o.kind, unittest.equals('foo')); | 2898 unittest.expect(o.kind, unittest.equals('foo')); |
| 2899 unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); | 2899 unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); |
| 2900 unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); | 2900 unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); |
| 2901 } | 2901 } |
| 2902 buildCounterTurnBasedAutoMatchingCriteria--; | 2902 buildCounterTurnBasedAutoMatchingCriteria--; |
| 2903 } | 2903 } |
| 2904 | 2904 |
| 2905 buildUnnamed90() { | 2905 buildUnnamed92() { |
| 2906 var o = new core.List<api.TurnBasedMatchParticipant>(); | 2906 var o = new core.List<api.TurnBasedMatchParticipant>(); |
| 2907 o.add(buildTurnBasedMatchParticipant()); | 2907 o.add(buildTurnBasedMatchParticipant()); |
| 2908 o.add(buildTurnBasedMatchParticipant()); | 2908 o.add(buildTurnBasedMatchParticipant()); |
| 2909 return o; | 2909 return o; |
| 2910 } | 2910 } |
| 2911 | 2911 |
| 2912 checkUnnamed90(core.List<api.TurnBasedMatchParticipant> o) { | 2912 checkUnnamed92(core.List<api.TurnBasedMatchParticipant> o) { |
| 2913 unittest.expect(o, unittest.hasLength(2)); | 2913 unittest.expect(o, unittest.hasLength(2)); |
| 2914 checkTurnBasedMatchParticipant(o[0]); | 2914 checkTurnBasedMatchParticipant(o[0]); |
| 2915 checkTurnBasedMatchParticipant(o[1]); | 2915 checkTurnBasedMatchParticipant(o[1]); |
| 2916 } | 2916 } |
| 2917 | 2917 |
| 2918 buildUnnamed91() { | 2918 buildUnnamed93() { |
| 2919 var o = new core.List<api.ParticipantResult>(); | 2919 var o = new core.List<api.ParticipantResult>(); |
| 2920 o.add(buildParticipantResult()); | 2920 o.add(buildParticipantResult()); |
| 2921 o.add(buildParticipantResult()); | 2921 o.add(buildParticipantResult()); |
| 2922 return o; | 2922 return o; |
| 2923 } | 2923 } |
| 2924 | 2924 |
| 2925 checkUnnamed91(core.List<api.ParticipantResult> o) { | 2925 checkUnnamed93(core.List<api.ParticipantResult> o) { |
| 2926 unittest.expect(o, unittest.hasLength(2)); | 2926 unittest.expect(o, unittest.hasLength(2)); |
| 2927 checkParticipantResult(o[0]); | 2927 checkParticipantResult(o[0]); |
| 2928 checkParticipantResult(o[1]); | 2928 checkParticipantResult(o[1]); |
| 2929 } | 2929 } |
| 2930 | 2930 |
| 2931 core.int buildCounterTurnBasedMatch = 0; | 2931 core.int buildCounterTurnBasedMatch = 0; |
| 2932 buildTurnBasedMatch() { | 2932 buildTurnBasedMatch() { |
| 2933 var o = new api.TurnBasedMatch(); | 2933 var o = new api.TurnBasedMatch(); |
| 2934 buildCounterTurnBasedMatch++; | 2934 buildCounterTurnBasedMatch++; |
| 2935 if (buildCounterTurnBasedMatch < 3) { | 2935 if (buildCounterTurnBasedMatch < 3) { |
| 2936 o.applicationId = "foo"; | 2936 o.applicationId = "foo"; |
| 2937 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); | 2937 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); |
| 2938 o.creationDetails = buildTurnBasedMatchModification(); | 2938 o.creationDetails = buildTurnBasedMatchModification(); |
| 2939 o.data = buildTurnBasedMatchData(); | 2939 o.data = buildTurnBasedMatchData(); |
| 2940 o.description = "foo"; | 2940 o.description = "foo"; |
| 2941 o.inviterId = "foo"; | 2941 o.inviterId = "foo"; |
| 2942 o.kind = "foo"; | 2942 o.kind = "foo"; |
| 2943 o.lastUpdateDetails = buildTurnBasedMatchModification(); | 2943 o.lastUpdateDetails = buildTurnBasedMatchModification(); |
| 2944 o.matchId = "foo"; | 2944 o.matchId = "foo"; |
| 2945 o.matchNumber = 42; | 2945 o.matchNumber = 42; |
| 2946 o.matchVersion = 42; | 2946 o.matchVersion = 42; |
| 2947 o.participants = buildUnnamed90(); | 2947 o.participants = buildUnnamed92(); |
| 2948 o.pendingParticipantId = "foo"; | 2948 o.pendingParticipantId = "foo"; |
| 2949 o.previousMatchData = buildTurnBasedMatchData(); | 2949 o.previousMatchData = buildTurnBasedMatchData(); |
| 2950 o.rematchId = "foo"; | 2950 o.rematchId = "foo"; |
| 2951 o.results = buildUnnamed91(); | 2951 o.results = buildUnnamed93(); |
| 2952 o.status = "foo"; | 2952 o.status = "foo"; |
| 2953 o.userMatchStatus = "foo"; | 2953 o.userMatchStatus = "foo"; |
| 2954 o.variant = 42; | 2954 o.variant = 42; |
| 2955 o.withParticipantId = "foo"; | 2955 o.withParticipantId = "foo"; |
| 2956 } | 2956 } |
| 2957 buildCounterTurnBasedMatch--; | 2957 buildCounterTurnBasedMatch--; |
| 2958 return o; | 2958 return o; |
| 2959 } | 2959 } |
| 2960 | 2960 |
| 2961 checkTurnBasedMatch(api.TurnBasedMatch o) { | 2961 checkTurnBasedMatch(api.TurnBasedMatch o) { |
| 2962 buildCounterTurnBasedMatch++; | 2962 buildCounterTurnBasedMatch++; |
| 2963 if (buildCounterTurnBasedMatch < 3) { | 2963 if (buildCounterTurnBasedMatch < 3) { |
| 2964 unittest.expect(o.applicationId, unittest.equals('foo')); | 2964 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 2965 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); | 2965 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2966 checkTurnBasedMatchModification(o.creationDetails); | 2966 checkTurnBasedMatchModification(o.creationDetails); |
| 2967 checkTurnBasedMatchData(o.data); | 2967 checkTurnBasedMatchData(o.data); |
| 2968 unittest.expect(o.description, unittest.equals('foo')); | 2968 unittest.expect(o.description, unittest.equals('foo')); |
| 2969 unittest.expect(o.inviterId, unittest.equals('foo')); | 2969 unittest.expect(o.inviterId, unittest.equals('foo')); |
| 2970 unittest.expect(o.kind, unittest.equals('foo')); | 2970 unittest.expect(o.kind, unittest.equals('foo')); |
| 2971 checkTurnBasedMatchModification(o.lastUpdateDetails); | 2971 checkTurnBasedMatchModification(o.lastUpdateDetails); |
| 2972 unittest.expect(o.matchId, unittest.equals('foo')); | 2972 unittest.expect(o.matchId, unittest.equals('foo')); |
| 2973 unittest.expect(o.matchNumber, unittest.equals(42)); | 2973 unittest.expect(o.matchNumber, unittest.equals(42)); |
| 2974 unittest.expect(o.matchVersion, unittest.equals(42)); | 2974 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 2975 checkUnnamed90(o.participants); | 2975 checkUnnamed92(o.participants); |
| 2976 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); | 2976 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); |
| 2977 checkTurnBasedMatchData(o.previousMatchData); | 2977 checkTurnBasedMatchData(o.previousMatchData); |
| 2978 unittest.expect(o.rematchId, unittest.equals('foo')); | 2978 unittest.expect(o.rematchId, unittest.equals('foo')); |
| 2979 checkUnnamed91(o.results); | 2979 checkUnnamed93(o.results); |
| 2980 unittest.expect(o.status, unittest.equals('foo')); | 2980 unittest.expect(o.status, unittest.equals('foo')); |
| 2981 unittest.expect(o.userMatchStatus, unittest.equals('foo')); | 2981 unittest.expect(o.userMatchStatus, unittest.equals('foo')); |
| 2982 unittest.expect(o.variant, unittest.equals(42)); | 2982 unittest.expect(o.variant, unittest.equals(42)); |
| 2983 unittest.expect(o.withParticipantId, unittest.equals('foo')); | 2983 unittest.expect(o.withParticipantId, unittest.equals('foo')); |
| 2984 } | 2984 } |
| 2985 buildCounterTurnBasedMatch--; | 2985 buildCounterTurnBasedMatch--; |
| 2986 } | 2986 } |
| 2987 | 2987 |
| 2988 buildUnnamed92() { | 2988 buildUnnamed94() { |
| 2989 var o = new core.List<core.String>(); | 2989 var o = new core.List<core.String>(); |
| 2990 o.add("foo"); | 2990 o.add("foo"); |
| 2991 o.add("foo"); | 2991 o.add("foo"); |
| 2992 return o; | 2992 return o; |
| 2993 } | 2993 } |
| 2994 | 2994 |
| 2995 checkUnnamed92(core.List<core.String> o) { | 2995 checkUnnamed94(core.List<core.String> o) { |
| 2996 unittest.expect(o, unittest.hasLength(2)); | 2996 unittest.expect(o, unittest.hasLength(2)); |
| 2997 unittest.expect(o[0], unittest.equals('foo')); | 2997 unittest.expect(o[0], unittest.equals('foo')); |
| 2998 unittest.expect(o[1], unittest.equals('foo')); | 2998 unittest.expect(o[1], unittest.equals('foo')); |
| 2999 } | 2999 } |
| 3000 | 3000 |
| 3001 core.int buildCounterTurnBasedMatchCreateRequest = 0; | 3001 core.int buildCounterTurnBasedMatchCreateRequest = 0; |
| 3002 buildTurnBasedMatchCreateRequest() { | 3002 buildTurnBasedMatchCreateRequest() { |
| 3003 var o = new api.TurnBasedMatchCreateRequest(); | 3003 var o = new api.TurnBasedMatchCreateRequest(); |
| 3004 buildCounterTurnBasedMatchCreateRequest++; | 3004 buildCounterTurnBasedMatchCreateRequest++; |
| 3005 if (buildCounterTurnBasedMatchCreateRequest < 3) { | 3005 if (buildCounterTurnBasedMatchCreateRequest < 3) { |
| 3006 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); | 3006 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); |
| 3007 o.invitedPlayerIds = buildUnnamed92(); | 3007 o.invitedPlayerIds = buildUnnamed94(); |
| 3008 o.kind = "foo"; | 3008 o.kind = "foo"; |
| 3009 o.requestId = "foo"; | 3009 o.requestId = "foo"; |
| 3010 o.variant = 42; | 3010 o.variant = 42; |
| 3011 } | 3011 } |
| 3012 buildCounterTurnBasedMatchCreateRequest--; | 3012 buildCounterTurnBasedMatchCreateRequest--; |
| 3013 return o; | 3013 return o; |
| 3014 } | 3014 } |
| 3015 | 3015 |
| 3016 checkTurnBasedMatchCreateRequest(api.TurnBasedMatchCreateRequest o) { | 3016 checkTurnBasedMatchCreateRequest(api.TurnBasedMatchCreateRequest o) { |
| 3017 buildCounterTurnBasedMatchCreateRequest++; | 3017 buildCounterTurnBasedMatchCreateRequest++; |
| 3018 if (buildCounterTurnBasedMatchCreateRequest < 3) { | 3018 if (buildCounterTurnBasedMatchCreateRequest < 3) { |
| 3019 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); | 3019 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); |
| 3020 checkUnnamed92(o.invitedPlayerIds); | 3020 checkUnnamed94(o.invitedPlayerIds); |
| 3021 unittest.expect(o.kind, unittest.equals('foo')); | 3021 unittest.expect(o.kind, unittest.equals('foo')); |
| 3022 unittest.expect(o.requestId, unittest.equals('foo')); | 3022 unittest.expect(o.requestId, unittest.equals('foo')); |
| 3023 unittest.expect(o.variant, unittest.equals(42)); | 3023 unittest.expect(o.variant, unittest.equals(42)); |
| 3024 } | 3024 } |
| 3025 buildCounterTurnBasedMatchCreateRequest--; | 3025 buildCounterTurnBasedMatchCreateRequest--; |
| 3026 } | 3026 } |
| 3027 | 3027 |
| 3028 core.int buildCounterTurnBasedMatchData = 0; | 3028 core.int buildCounterTurnBasedMatchData = 0; |
| 3029 buildTurnBasedMatchData() { | 3029 buildTurnBasedMatchData() { |
| 3030 var o = new api.TurnBasedMatchData(); | 3030 var o = new api.TurnBasedMatchData(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3062 | 3062 |
| 3063 checkTurnBasedMatchDataRequest(api.TurnBasedMatchDataRequest o) { | 3063 checkTurnBasedMatchDataRequest(api.TurnBasedMatchDataRequest o) { |
| 3064 buildCounterTurnBasedMatchDataRequest++; | 3064 buildCounterTurnBasedMatchDataRequest++; |
| 3065 if (buildCounterTurnBasedMatchDataRequest < 3) { | 3065 if (buildCounterTurnBasedMatchDataRequest < 3) { |
| 3066 unittest.expect(o.data, unittest.equals('foo')); | 3066 unittest.expect(o.data, unittest.equals('foo')); |
| 3067 unittest.expect(o.kind, unittest.equals('foo')); | 3067 unittest.expect(o.kind, unittest.equals('foo')); |
| 3068 } | 3068 } |
| 3069 buildCounterTurnBasedMatchDataRequest--; | 3069 buildCounterTurnBasedMatchDataRequest--; |
| 3070 } | 3070 } |
| 3071 | 3071 |
| 3072 buildUnnamed93() { | 3072 buildUnnamed95() { |
| 3073 var o = new core.List<api.TurnBasedMatch>(); | 3073 var o = new core.List<api.TurnBasedMatch>(); |
| 3074 o.add(buildTurnBasedMatch()); | 3074 o.add(buildTurnBasedMatch()); |
| 3075 o.add(buildTurnBasedMatch()); | 3075 o.add(buildTurnBasedMatch()); |
| 3076 return o; | 3076 return o; |
| 3077 } | 3077 } |
| 3078 | 3078 |
| 3079 checkUnnamed93(core.List<api.TurnBasedMatch> o) { | 3079 checkUnnamed95(core.List<api.TurnBasedMatch> o) { |
| 3080 unittest.expect(o, unittest.hasLength(2)); | 3080 unittest.expect(o, unittest.hasLength(2)); |
| 3081 checkTurnBasedMatch(o[0]); | 3081 checkTurnBasedMatch(o[0]); |
| 3082 checkTurnBasedMatch(o[1]); | 3082 checkTurnBasedMatch(o[1]); |
| 3083 } | 3083 } |
| 3084 | 3084 |
| 3085 core.int buildCounterTurnBasedMatchList = 0; | 3085 core.int buildCounterTurnBasedMatchList = 0; |
| 3086 buildTurnBasedMatchList() { | 3086 buildTurnBasedMatchList() { |
| 3087 var o = new api.TurnBasedMatchList(); | 3087 var o = new api.TurnBasedMatchList(); |
| 3088 buildCounterTurnBasedMatchList++; | 3088 buildCounterTurnBasedMatchList++; |
| 3089 if (buildCounterTurnBasedMatchList < 3) { | 3089 if (buildCounterTurnBasedMatchList < 3) { |
| 3090 o.items = buildUnnamed93(); | 3090 o.items = buildUnnamed95(); |
| 3091 o.kind = "foo"; | 3091 o.kind = "foo"; |
| 3092 o.nextPageToken = "foo"; | 3092 o.nextPageToken = "foo"; |
| 3093 } | 3093 } |
| 3094 buildCounterTurnBasedMatchList--; | 3094 buildCounterTurnBasedMatchList--; |
| 3095 return o; | 3095 return o; |
| 3096 } | 3096 } |
| 3097 | 3097 |
| 3098 checkTurnBasedMatchList(api.TurnBasedMatchList o) { | 3098 checkTurnBasedMatchList(api.TurnBasedMatchList o) { |
| 3099 buildCounterTurnBasedMatchList++; | 3099 buildCounterTurnBasedMatchList++; |
| 3100 if (buildCounterTurnBasedMatchList < 3) { | 3100 if (buildCounterTurnBasedMatchList < 3) { |
| 3101 checkUnnamed93(o.items); | 3101 checkUnnamed95(o.items); |
| 3102 unittest.expect(o.kind, unittest.equals('foo')); | 3102 unittest.expect(o.kind, unittest.equals('foo')); |
| 3103 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3103 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3104 } | 3104 } |
| 3105 buildCounterTurnBasedMatchList--; | 3105 buildCounterTurnBasedMatchList--; |
| 3106 } | 3106 } |
| 3107 | 3107 |
| 3108 core.int buildCounterTurnBasedMatchModification = 0; | 3108 core.int buildCounterTurnBasedMatchModification = 0; |
| 3109 buildTurnBasedMatchModification() { | 3109 buildTurnBasedMatchModification() { |
| 3110 var o = new api.TurnBasedMatchModification(); | 3110 var o = new api.TurnBasedMatchModification(); |
| 3111 buildCounterTurnBasedMatchModification++; | 3111 buildCounterTurnBasedMatchModification++; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3173 checkTurnBasedMatchRematch(api.TurnBasedMatchRematch o) { | 3173 checkTurnBasedMatchRematch(api.TurnBasedMatchRematch o) { |
| 3174 buildCounterTurnBasedMatchRematch++; | 3174 buildCounterTurnBasedMatchRematch++; |
| 3175 if (buildCounterTurnBasedMatchRematch < 3) { | 3175 if (buildCounterTurnBasedMatchRematch < 3) { |
| 3176 unittest.expect(o.kind, unittest.equals('foo')); | 3176 unittest.expect(o.kind, unittest.equals('foo')); |
| 3177 checkTurnBasedMatch(o.previousMatch); | 3177 checkTurnBasedMatch(o.previousMatch); |
| 3178 checkTurnBasedMatch(o.rematch); | 3178 checkTurnBasedMatch(o.rematch); |
| 3179 } | 3179 } |
| 3180 buildCounterTurnBasedMatchRematch--; | 3180 buildCounterTurnBasedMatchRematch--; |
| 3181 } | 3181 } |
| 3182 | 3182 |
| 3183 buildUnnamed94() { | 3183 buildUnnamed96() { |
| 3184 var o = new core.List<api.ParticipantResult>(); | 3184 var o = new core.List<api.ParticipantResult>(); |
| 3185 o.add(buildParticipantResult()); | 3185 o.add(buildParticipantResult()); |
| 3186 o.add(buildParticipantResult()); | 3186 o.add(buildParticipantResult()); |
| 3187 return o; | 3187 return o; |
| 3188 } | 3188 } |
| 3189 | 3189 |
| 3190 checkUnnamed94(core.List<api.ParticipantResult> o) { | 3190 checkUnnamed96(core.List<api.ParticipantResult> o) { |
| 3191 unittest.expect(o, unittest.hasLength(2)); | 3191 unittest.expect(o, unittest.hasLength(2)); |
| 3192 checkParticipantResult(o[0]); | 3192 checkParticipantResult(o[0]); |
| 3193 checkParticipantResult(o[1]); | 3193 checkParticipantResult(o[1]); |
| 3194 } | 3194 } |
| 3195 | 3195 |
| 3196 core.int buildCounterTurnBasedMatchResults = 0; | 3196 core.int buildCounterTurnBasedMatchResults = 0; |
| 3197 buildTurnBasedMatchResults() { | 3197 buildTurnBasedMatchResults() { |
| 3198 var o = new api.TurnBasedMatchResults(); | 3198 var o = new api.TurnBasedMatchResults(); |
| 3199 buildCounterTurnBasedMatchResults++; | 3199 buildCounterTurnBasedMatchResults++; |
| 3200 if (buildCounterTurnBasedMatchResults < 3) { | 3200 if (buildCounterTurnBasedMatchResults < 3) { |
| 3201 o.data = buildTurnBasedMatchDataRequest(); | 3201 o.data = buildTurnBasedMatchDataRequest(); |
| 3202 o.kind = "foo"; | 3202 o.kind = "foo"; |
| 3203 o.matchVersion = 42; | 3203 o.matchVersion = 42; |
| 3204 o.results = buildUnnamed94(); | 3204 o.results = buildUnnamed96(); |
| 3205 } | 3205 } |
| 3206 buildCounterTurnBasedMatchResults--; | 3206 buildCounterTurnBasedMatchResults--; |
| 3207 return o; | 3207 return o; |
| 3208 } | 3208 } |
| 3209 | 3209 |
| 3210 checkTurnBasedMatchResults(api.TurnBasedMatchResults o) { | 3210 checkTurnBasedMatchResults(api.TurnBasedMatchResults o) { |
| 3211 buildCounterTurnBasedMatchResults++; | 3211 buildCounterTurnBasedMatchResults++; |
| 3212 if (buildCounterTurnBasedMatchResults < 3) { | 3212 if (buildCounterTurnBasedMatchResults < 3) { |
| 3213 checkTurnBasedMatchDataRequest(o.data); | 3213 checkTurnBasedMatchDataRequest(o.data); |
| 3214 unittest.expect(o.kind, unittest.equals('foo')); | 3214 unittest.expect(o.kind, unittest.equals('foo')); |
| 3215 unittest.expect(o.matchVersion, unittest.equals(42)); | 3215 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 3216 checkUnnamed94(o.results); | 3216 checkUnnamed96(o.results); |
| 3217 } | 3217 } |
| 3218 buildCounterTurnBasedMatchResults--; | 3218 buildCounterTurnBasedMatchResults--; |
| 3219 } | 3219 } |
| 3220 | 3220 |
| 3221 buildUnnamed95() { | 3221 buildUnnamed97() { |
| 3222 var o = new core.List<api.TurnBasedMatch>(); | 3222 var o = new core.List<api.TurnBasedMatch>(); |
| 3223 o.add(buildTurnBasedMatch()); | 3223 o.add(buildTurnBasedMatch()); |
| 3224 o.add(buildTurnBasedMatch()); | 3224 o.add(buildTurnBasedMatch()); |
| 3225 return o; | 3225 return o; |
| 3226 } | 3226 } |
| 3227 | 3227 |
| 3228 checkUnnamed95(core.List<api.TurnBasedMatch> o) { | 3228 checkUnnamed97(core.List<api.TurnBasedMatch> o) { |
| 3229 unittest.expect(o, unittest.hasLength(2)); | 3229 unittest.expect(o, unittest.hasLength(2)); |
| 3230 checkTurnBasedMatch(o[0]); | 3230 checkTurnBasedMatch(o[0]); |
| 3231 checkTurnBasedMatch(o[1]); | 3231 checkTurnBasedMatch(o[1]); |
| 3232 } | 3232 } |
| 3233 | 3233 |
| 3234 core.int buildCounterTurnBasedMatchSync = 0; | 3234 core.int buildCounterTurnBasedMatchSync = 0; |
| 3235 buildTurnBasedMatchSync() { | 3235 buildTurnBasedMatchSync() { |
| 3236 var o = new api.TurnBasedMatchSync(); | 3236 var o = new api.TurnBasedMatchSync(); |
| 3237 buildCounterTurnBasedMatchSync++; | 3237 buildCounterTurnBasedMatchSync++; |
| 3238 if (buildCounterTurnBasedMatchSync < 3) { | 3238 if (buildCounterTurnBasedMatchSync < 3) { |
| 3239 o.items = buildUnnamed95(); | 3239 o.items = buildUnnamed97(); |
| 3240 o.kind = "foo"; | 3240 o.kind = "foo"; |
| 3241 o.moreAvailable = true; | 3241 o.moreAvailable = true; |
| 3242 o.nextPageToken = "foo"; | 3242 o.nextPageToken = "foo"; |
| 3243 } | 3243 } |
| 3244 buildCounterTurnBasedMatchSync--; | 3244 buildCounterTurnBasedMatchSync--; |
| 3245 return o; | 3245 return o; |
| 3246 } | 3246 } |
| 3247 | 3247 |
| 3248 checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { | 3248 checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { |
| 3249 buildCounterTurnBasedMatchSync++; | 3249 buildCounterTurnBasedMatchSync++; |
| 3250 if (buildCounterTurnBasedMatchSync < 3) { | 3250 if (buildCounterTurnBasedMatchSync < 3) { |
| 3251 checkUnnamed95(o.items); | 3251 checkUnnamed97(o.items); |
| 3252 unittest.expect(o.kind, unittest.equals('foo')); | 3252 unittest.expect(o.kind, unittest.equals('foo')); |
| 3253 unittest.expect(o.moreAvailable, unittest.isTrue); | 3253 unittest.expect(o.moreAvailable, unittest.isTrue); |
| 3254 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3254 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3255 } | 3255 } |
| 3256 buildCounterTurnBasedMatchSync--; | 3256 buildCounterTurnBasedMatchSync--; |
| 3257 } | 3257 } |
| 3258 | 3258 |
| 3259 buildUnnamed96() { | 3259 buildUnnamed98() { |
| 3260 var o = new core.List<api.ParticipantResult>(); | 3260 var o = new core.List<api.ParticipantResult>(); |
| 3261 o.add(buildParticipantResult()); | 3261 o.add(buildParticipantResult()); |
| 3262 o.add(buildParticipantResult()); | 3262 o.add(buildParticipantResult()); |
| 3263 return o; | 3263 return o; |
| 3264 } | 3264 } |
| 3265 | 3265 |
| 3266 checkUnnamed96(core.List<api.ParticipantResult> o) { | 3266 checkUnnamed98(core.List<api.ParticipantResult> o) { |
| 3267 unittest.expect(o, unittest.hasLength(2)); | 3267 unittest.expect(o, unittest.hasLength(2)); |
| 3268 checkParticipantResult(o[0]); | 3268 checkParticipantResult(o[0]); |
| 3269 checkParticipantResult(o[1]); | 3269 checkParticipantResult(o[1]); |
| 3270 } | 3270 } |
| 3271 | 3271 |
| 3272 core.int buildCounterTurnBasedMatchTurn = 0; | 3272 core.int buildCounterTurnBasedMatchTurn = 0; |
| 3273 buildTurnBasedMatchTurn() { | 3273 buildTurnBasedMatchTurn() { |
| 3274 var o = new api.TurnBasedMatchTurn(); | 3274 var o = new api.TurnBasedMatchTurn(); |
| 3275 buildCounterTurnBasedMatchTurn++; | 3275 buildCounterTurnBasedMatchTurn++; |
| 3276 if (buildCounterTurnBasedMatchTurn < 3) { | 3276 if (buildCounterTurnBasedMatchTurn < 3) { |
| 3277 o.data = buildTurnBasedMatchDataRequest(); | 3277 o.data = buildTurnBasedMatchDataRequest(); |
| 3278 o.kind = "foo"; | 3278 o.kind = "foo"; |
| 3279 o.matchVersion = 42; | 3279 o.matchVersion = 42; |
| 3280 o.pendingParticipantId = "foo"; | 3280 o.pendingParticipantId = "foo"; |
| 3281 o.results = buildUnnamed96(); | 3281 o.results = buildUnnamed98(); |
| 3282 } | 3282 } |
| 3283 buildCounterTurnBasedMatchTurn--; | 3283 buildCounterTurnBasedMatchTurn--; |
| 3284 return o; | 3284 return o; |
| 3285 } | 3285 } |
| 3286 | 3286 |
| 3287 checkTurnBasedMatchTurn(api.TurnBasedMatchTurn o) { | 3287 checkTurnBasedMatchTurn(api.TurnBasedMatchTurn o) { |
| 3288 buildCounterTurnBasedMatchTurn++; | 3288 buildCounterTurnBasedMatchTurn++; |
| 3289 if (buildCounterTurnBasedMatchTurn < 3) { | 3289 if (buildCounterTurnBasedMatchTurn < 3) { |
| 3290 checkTurnBasedMatchDataRequest(o.data); | 3290 checkTurnBasedMatchDataRequest(o.data); |
| 3291 unittest.expect(o.kind, unittest.equals('foo')); | 3291 unittest.expect(o.kind, unittest.equals('foo')); |
| 3292 unittest.expect(o.matchVersion, unittest.equals(42)); | 3292 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 3293 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); | 3293 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); |
| 3294 checkUnnamed96(o.results); | 3294 checkUnnamed98(o.results); |
| 3295 } | 3295 } |
| 3296 buildCounterTurnBasedMatchTurn--; | 3296 buildCounterTurnBasedMatchTurn--; |
| 3297 } | 3297 } |
| 3298 | 3298 |
| 3299 | 3299 |
| 3300 main() { | 3300 main() { |
| 3301 unittest.group("obj-schema-AchievementDefinition", () { | 3301 unittest.group("obj-schema-AchievementDefinition", () { |
| 3302 unittest.test("to-json--from-json", () { | 3302 unittest.test("to-json--from-json", () { |
| 3303 var o = buildAchievementDefinition(); | 3303 var o = buildAchievementDefinition(); |
| 3304 var od = new api.AchievementDefinition.fromJson(o.toJson()); | 3304 var od = new api.AchievementDefinition.fromJson(o.toJson()); |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4200 | 4200 |
| 4201 unittest.group("resource-AchievementDefinitionsResourceApi", () { | 4201 unittest.group("resource-AchievementDefinitionsResourceApi", () { |
| 4202 unittest.test("method--list", () { | 4202 unittest.test("method--list", () { |
| 4203 | 4203 |
| 4204 var mock = new HttpServerMock(); | 4204 var mock = new HttpServerMock(); |
| 4205 api.AchievementDefinitionsResourceApi res = new api.GamesApi(mock).achieve
mentDefinitions; | 4205 api.AchievementDefinitionsResourceApi res = new api.GamesApi(mock).achieve
mentDefinitions; |
| 4206 var arg_consistencyToken = "foo"; | 4206 var arg_consistencyToken = "foo"; |
| 4207 var arg_language = "foo"; | 4207 var arg_language = "foo"; |
| 4208 var arg_maxResults = 42; | 4208 var arg_maxResults = 42; |
| 4209 var arg_pageToken = "foo"; | 4209 var arg_pageToken = "foo"; |
| 4210 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4210 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4211 var path = (req.url).path; | 4211 var path = (req.url).path; |
| 4212 var pathOffset = 0; | 4212 var pathOffset = 0; |
| 4213 var index; | 4213 var index; |
| 4214 var subPart; | 4214 var subPart; |
| 4215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4216 pathOffset += 1; | 4216 pathOffset += 1; |
| 4217 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4217 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4218 pathOffset += 9; | 4218 pathOffset += 9; |
| 4219 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("achievements")); | 4219 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("achievements")); |
| 4220 pathOffset += 12; | 4220 pathOffset += 12; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4240 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4240 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4241 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4241 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4242 | 4242 |
| 4243 | 4243 |
| 4244 var h = { | 4244 var h = { |
| 4245 "content-type" : "application/json; charset=utf-8", | 4245 "content-type" : "application/json; charset=utf-8", |
| 4246 }; | 4246 }; |
| 4247 var resp = convert.JSON.encode(buildAchievementDefinitionsListResponse()
); | 4247 var resp = convert.JSON.encode(buildAchievementDefinitionsListResponse()
); |
| 4248 return new async.Future.value(stringResponse(200, h, resp)); | 4248 return new async.Future.value(stringResponse(200, h, resp)); |
| 4249 }), true); | 4249 }), true); |
| 4250 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync((
(api.AchievementDefinitionsListResponse response) { | 4250 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(
((api.AchievementDefinitionsListResponse response) { |
| 4251 checkAchievementDefinitionsListResponse(response); | 4251 checkAchievementDefinitionsListResponse(response); |
| 4252 }))); | 4252 }))); |
| 4253 }); | 4253 }); |
| 4254 | 4254 |
| 4255 }); | 4255 }); |
| 4256 | 4256 |
| 4257 | 4257 |
| 4258 unittest.group("resource-AchievementsResourceApi", () { | 4258 unittest.group("resource-AchievementsResourceApi", () { |
| 4259 unittest.test("method--increment", () { | 4259 unittest.test("method--increment", () { |
| 4260 | 4260 |
| 4261 var mock = new HttpServerMock(); | 4261 var mock = new HttpServerMock(); |
| 4262 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4262 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4263 var arg_achievementId = "foo"; | 4263 var arg_achievementId = "foo"; |
| 4264 var arg_stepsToIncrement = 42; | 4264 var arg_stepsToIncrement = 42; |
| 4265 var arg_consistencyToken = "foo"; | 4265 var arg_consistencyToken = "foo"; |
| 4266 var arg_requestId = "foo"; | 4266 var arg_requestId = "foo"; |
| 4267 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4267 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4268 var path = (req.url).path; | 4268 var path = (req.url).path; |
| 4269 var pathOffset = 0; | 4269 var pathOffset = 0; |
| 4270 var index; | 4270 var index; |
| 4271 var subPart; | 4271 var subPart; |
| 4272 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4272 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4273 pathOffset += 1; | 4273 pathOffset += 1; |
| 4274 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4274 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4275 pathOffset += 9; | 4275 pathOffset += 9; |
| 4276 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); | 4276 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); |
| 4277 pathOffset += 13; | 4277 pathOffset += 13; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4303 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4303 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4304 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 4304 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 4305 | 4305 |
| 4306 | 4306 |
| 4307 var h = { | 4307 var h = { |
| 4308 "content-type" : "application/json; charset=utf-8", | 4308 "content-type" : "application/json; charset=utf-8", |
| 4309 }; | 4309 }; |
| 4310 var resp = convert.JSON.encode(buildAchievementIncrementResponse()); | 4310 var resp = convert.JSON.encode(buildAchievementIncrementResponse()); |
| 4311 return new async.Future.value(stringResponse(200, h, resp)); | 4311 return new async.Future.value(stringResponse(200, h, resp)); |
| 4312 }), true); | 4312 }), true); |
| 4313 res.increment(arg_achievementId, arg_stepsToIncrement, consistencyToken: a
rg_consistencyToken, requestId: arg_requestId).then(unittest.expectAsync(((api.A
chievementIncrementResponse response) { | 4313 res.increment(arg_achievementId, arg_stepsToIncrement, consistencyToken: a
rg_consistencyToken, requestId: arg_requestId).then(unittest.expectAsync1(((api.
AchievementIncrementResponse response) { |
| 4314 checkAchievementIncrementResponse(response); | 4314 checkAchievementIncrementResponse(response); |
| 4315 }))); | 4315 }))); |
| 4316 }); | 4316 }); |
| 4317 | 4317 |
| 4318 unittest.test("method--list", () { | 4318 unittest.test("method--list", () { |
| 4319 | 4319 |
| 4320 var mock = new HttpServerMock(); | 4320 var mock = new HttpServerMock(); |
| 4321 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4321 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4322 var arg_playerId = "foo"; | 4322 var arg_playerId = "foo"; |
| 4323 var arg_consistencyToken = "foo"; | 4323 var arg_consistencyToken = "foo"; |
| 4324 var arg_language = "foo"; | 4324 var arg_language = "foo"; |
| 4325 var arg_maxResults = 42; | 4325 var arg_maxResults = 42; |
| 4326 var arg_pageToken = "foo"; | 4326 var arg_pageToken = "foo"; |
| 4327 var arg_state = "foo"; | 4327 var arg_state = "foo"; |
| 4328 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4328 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4329 var path = (req.url).path; | 4329 var path = (req.url).path; |
| 4330 var pathOffset = 0; | 4330 var pathOffset = 0; |
| 4331 var index; | 4331 var index; |
| 4332 var subPart; | 4332 var subPart; |
| 4333 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4333 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4334 pathOffset += 1; | 4334 pathOffset += 1; |
| 4335 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4335 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4336 pathOffset += 9; | 4336 pathOffset += 9; |
| 4337 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 4337 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 4338 pathOffset += 8; | 4338 pathOffset += 8; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4366 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4366 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4367 unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); | 4367 unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); |
| 4368 | 4368 |
| 4369 | 4369 |
| 4370 var h = { | 4370 var h = { |
| 4371 "content-type" : "application/json; charset=utf-8", | 4371 "content-type" : "application/json; charset=utf-8", |
| 4372 }; | 4372 }; |
| 4373 var resp = convert.JSON.encode(buildPlayerAchievementListResponse()); | 4373 var resp = convert.JSON.encode(buildPlayerAchievementListResponse()); |
| 4374 return new async.Future.value(stringResponse(200, h, resp)); | 4374 return new async.Future.value(stringResponse(200, h, resp)); |
| 4375 }), true); | 4375 }), true); |
| 4376 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, state: arg_st
ate).then(unittest.expectAsync(((api.PlayerAchievementListResponse response) { | 4376 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, state: arg_st
ate).then(unittest.expectAsync1(((api.PlayerAchievementListResponse response) { |
| 4377 checkPlayerAchievementListResponse(response); | 4377 checkPlayerAchievementListResponse(response); |
| 4378 }))); | 4378 }))); |
| 4379 }); | 4379 }); |
| 4380 | 4380 |
| 4381 unittest.test("method--reveal", () { | 4381 unittest.test("method--reveal", () { |
| 4382 | 4382 |
| 4383 var mock = new HttpServerMock(); | 4383 var mock = new HttpServerMock(); |
| 4384 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4384 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4385 var arg_achievementId = "foo"; | 4385 var arg_achievementId = "foo"; |
| 4386 var arg_consistencyToken = "foo"; | 4386 var arg_consistencyToken = "foo"; |
| 4387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4388 var path = (req.url).path; | 4388 var path = (req.url).path; |
| 4389 var pathOffset = 0; | 4389 var pathOffset = 0; |
| 4390 var index; | 4390 var index; |
| 4391 var subPart; | 4391 var subPart; |
| 4392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4393 pathOffset += 1; | 4393 pathOffset += 1; |
| 4394 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4394 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4395 pathOffset += 9; | 4395 pathOffset += 9; |
| 4396 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); | 4396 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); |
| 4397 pathOffset += 13; | 4397 pathOffset += 13; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4421 } | 4421 } |
| 4422 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4422 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4423 | 4423 |
| 4424 | 4424 |
| 4425 var h = { | 4425 var h = { |
| 4426 "content-type" : "application/json; charset=utf-8", | 4426 "content-type" : "application/json; charset=utf-8", |
| 4427 }; | 4427 }; |
| 4428 var resp = convert.JSON.encode(buildAchievementRevealResponse()); | 4428 var resp = convert.JSON.encode(buildAchievementRevealResponse()); |
| 4429 return new async.Future.value(stringResponse(200, h, resp)); | 4429 return new async.Future.value(stringResponse(200, h, resp)); |
| 4430 }), true); | 4430 }), true); |
| 4431 res.reveal(arg_achievementId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync(((api.AchievementRevealResponse response) { | 4431 res.reveal(arg_achievementId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync1(((api.AchievementRevealResponse response) { |
| 4432 checkAchievementRevealResponse(response); | 4432 checkAchievementRevealResponse(response); |
| 4433 }))); | 4433 }))); |
| 4434 }); | 4434 }); |
| 4435 | 4435 |
| 4436 unittest.test("method--setStepsAtLeast", () { | 4436 unittest.test("method--setStepsAtLeast", () { |
| 4437 | 4437 |
| 4438 var mock = new HttpServerMock(); | 4438 var mock = new HttpServerMock(); |
| 4439 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4439 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4440 var arg_achievementId = "foo"; | 4440 var arg_achievementId = "foo"; |
| 4441 var arg_steps = 42; | 4441 var arg_steps = 42; |
| 4442 var arg_consistencyToken = "foo"; | 4442 var arg_consistencyToken = "foo"; |
| 4443 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4443 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4444 var path = (req.url).path; | 4444 var path = (req.url).path; |
| 4445 var pathOffset = 0; | 4445 var pathOffset = 0; |
| 4446 var index; | 4446 var index; |
| 4447 var subPart; | 4447 var subPart; |
| 4448 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4448 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4449 pathOffset += 1; | 4449 pathOffset += 1; |
| 4450 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4450 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4451 pathOffset += 9; | 4451 pathOffset += 9; |
| 4452 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); | 4452 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); |
| 4453 pathOffset += 13; | 4453 pathOffset += 13; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4478 unittest.expect(core.int.parse(queryMap["steps"].first), unittest.equals
(arg_steps)); | 4478 unittest.expect(core.int.parse(queryMap["steps"].first), unittest.equals
(arg_steps)); |
| 4479 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4479 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4480 | 4480 |
| 4481 | 4481 |
| 4482 var h = { | 4482 var h = { |
| 4483 "content-type" : "application/json; charset=utf-8", | 4483 "content-type" : "application/json; charset=utf-8", |
| 4484 }; | 4484 }; |
| 4485 var resp = convert.JSON.encode(buildAchievementSetStepsAtLeastResponse()
); | 4485 var resp = convert.JSON.encode(buildAchievementSetStepsAtLeastResponse()
); |
| 4486 return new async.Future.value(stringResponse(200, h, resp)); | 4486 return new async.Future.value(stringResponse(200, h, resp)); |
| 4487 }), true); | 4487 }), true); |
| 4488 res.setStepsAtLeast(arg_achievementId, arg_steps, consistencyToken: arg_co
nsistencyToken).then(unittest.expectAsync(((api.AchievementSetStepsAtLeastRespon
se response) { | 4488 res.setStepsAtLeast(arg_achievementId, arg_steps, consistencyToken: arg_co
nsistencyToken).then(unittest.expectAsync1(((api.AchievementSetStepsAtLeastRespo
nse response) { |
| 4489 checkAchievementSetStepsAtLeastResponse(response); | 4489 checkAchievementSetStepsAtLeastResponse(response); |
| 4490 }))); | 4490 }))); |
| 4491 }); | 4491 }); |
| 4492 | 4492 |
| 4493 unittest.test("method--unlock", () { | 4493 unittest.test("method--unlock", () { |
| 4494 | 4494 |
| 4495 var mock = new HttpServerMock(); | 4495 var mock = new HttpServerMock(); |
| 4496 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4496 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4497 var arg_achievementId = "foo"; | 4497 var arg_achievementId = "foo"; |
| 4498 var arg_consistencyToken = "foo"; | 4498 var arg_consistencyToken = "foo"; |
| 4499 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4499 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4500 var path = (req.url).path; | 4500 var path = (req.url).path; |
| 4501 var pathOffset = 0; | 4501 var pathOffset = 0; |
| 4502 var index; | 4502 var index; |
| 4503 var subPart; | 4503 var subPart; |
| 4504 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4504 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4505 pathOffset += 1; | 4505 pathOffset += 1; |
| 4506 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4506 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4507 pathOffset += 9; | 4507 pathOffset += 9; |
| 4508 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); | 4508 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("achievements/")); |
| 4509 pathOffset += 13; | 4509 pathOffset += 13; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4533 } | 4533 } |
| 4534 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4534 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4535 | 4535 |
| 4536 | 4536 |
| 4537 var h = { | 4537 var h = { |
| 4538 "content-type" : "application/json; charset=utf-8", | 4538 "content-type" : "application/json; charset=utf-8", |
| 4539 }; | 4539 }; |
| 4540 var resp = convert.JSON.encode(buildAchievementUnlockResponse()); | 4540 var resp = convert.JSON.encode(buildAchievementUnlockResponse()); |
| 4541 return new async.Future.value(stringResponse(200, h, resp)); | 4541 return new async.Future.value(stringResponse(200, h, resp)); |
| 4542 }), true); | 4542 }), true); |
| 4543 res.unlock(arg_achievementId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync(((api.AchievementUnlockResponse response) { | 4543 res.unlock(arg_achievementId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync1(((api.AchievementUnlockResponse response) { |
| 4544 checkAchievementUnlockResponse(response); | 4544 checkAchievementUnlockResponse(response); |
| 4545 }))); | 4545 }))); |
| 4546 }); | 4546 }); |
| 4547 | 4547 |
| 4548 unittest.test("method--updateMultiple", () { | 4548 unittest.test("method--updateMultiple", () { |
| 4549 | 4549 |
| 4550 var mock = new HttpServerMock(); | 4550 var mock = new HttpServerMock(); |
| 4551 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4551 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4552 var arg_request = buildAchievementUpdateMultipleRequest(); | 4552 var arg_request = buildAchievementUpdateMultipleRequest(); |
| 4553 var arg_consistencyToken = "foo"; | 4553 var arg_consistencyToken = "foo"; |
| 4554 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4554 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4555 var obj = new api.AchievementUpdateMultipleRequest.fromJson(json); | 4555 var obj = new api.AchievementUpdateMultipleRequest.fromJson(json); |
| 4556 checkAchievementUpdateMultipleRequest(obj); | 4556 checkAchievementUpdateMultipleRequest(obj); |
| 4557 | 4557 |
| 4558 var path = (req.url).path; | 4558 var path = (req.url).path; |
| 4559 var pathOffset = 0; | 4559 var pathOffset = 0; |
| 4560 var index; | 4560 var index; |
| 4561 var subPart; | 4561 var subPart; |
| 4562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4563 pathOffset += 1; | 4563 pathOffset += 1; |
| 4564 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4564 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4584 } | 4584 } |
| 4585 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4585 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4586 | 4586 |
| 4587 | 4587 |
| 4588 var h = { | 4588 var h = { |
| 4589 "content-type" : "application/json; charset=utf-8", | 4589 "content-type" : "application/json; charset=utf-8", |
| 4590 }; | 4590 }; |
| 4591 var resp = convert.JSON.encode(buildAchievementUpdateMultipleResponse())
; | 4591 var resp = convert.JSON.encode(buildAchievementUpdateMultipleResponse())
; |
| 4592 return new async.Future.value(stringResponse(200, h, resp)); | 4592 return new async.Future.value(stringResponse(200, h, resp)); |
| 4593 }), true); | 4593 }), true); |
| 4594 res.updateMultiple(arg_request, consistencyToken: arg_consistencyToken).th
en(unittest.expectAsync(((api.AchievementUpdateMultipleResponse response) { | 4594 res.updateMultiple(arg_request, consistencyToken: arg_consistencyToken).th
en(unittest.expectAsync1(((api.AchievementUpdateMultipleResponse response) { |
| 4595 checkAchievementUpdateMultipleResponse(response); | 4595 checkAchievementUpdateMultipleResponse(response); |
| 4596 }))); | 4596 }))); |
| 4597 }); | 4597 }); |
| 4598 | 4598 |
| 4599 }); | 4599 }); |
| 4600 | 4600 |
| 4601 | 4601 |
| 4602 unittest.group("resource-ApplicationsResourceApi", () { | 4602 unittest.group("resource-ApplicationsResourceApi", () { |
| 4603 unittest.test("method--get", () { | 4603 unittest.test("method--get", () { |
| 4604 | 4604 |
| 4605 var mock = new HttpServerMock(); | 4605 var mock = new HttpServerMock(); |
| 4606 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; | 4606 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; |
| 4607 var arg_applicationId = "foo"; | 4607 var arg_applicationId = "foo"; |
| 4608 var arg_consistencyToken = "foo"; | 4608 var arg_consistencyToken = "foo"; |
| 4609 var arg_language = "foo"; | 4609 var arg_language = "foo"; |
| 4610 var arg_platformType = "foo"; | 4610 var arg_platformType = "foo"; |
| 4611 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4611 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4612 var path = (req.url).path; | 4612 var path = (req.url).path; |
| 4613 var pathOffset = 0; | 4613 var pathOffset = 0; |
| 4614 var index; | 4614 var index; |
| 4615 var subPart; | 4615 var subPart; |
| 4616 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4616 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4617 pathOffset += 1; | 4617 pathOffset += 1; |
| 4618 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4618 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4619 pathOffset += 9; | 4619 pathOffset += 9; |
| 4620 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("applications/")); | 4620 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("applications/")); |
| 4621 pathOffset += 13; | 4621 pathOffset += 13; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4643 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4643 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4644 unittest.expect(queryMap["platformType"].first, unittest.equals(arg_plat
formType)); | 4644 unittest.expect(queryMap["platformType"].first, unittest.equals(arg_plat
formType)); |
| 4645 | 4645 |
| 4646 | 4646 |
| 4647 var h = { | 4647 var h = { |
| 4648 "content-type" : "application/json; charset=utf-8", | 4648 "content-type" : "application/json; charset=utf-8", |
| 4649 }; | 4649 }; |
| 4650 var resp = convert.JSON.encode(buildApplication()); | 4650 var resp = convert.JSON.encode(buildApplication()); |
| 4651 return new async.Future.value(stringResponse(200, h, resp)); | 4651 return new async.Future.value(stringResponse(200, h, resp)); |
| 4652 }), true); | 4652 }), true); |
| 4653 res.get(arg_applicationId, consistencyToken: arg_consistencyToken, languag
e: arg_language, platformType: arg_platformType).then(unittest.expectAsync(((api
.Application response) { | 4653 res.get(arg_applicationId, consistencyToken: arg_consistencyToken, languag
e: arg_language, platformType: arg_platformType).then(unittest.expectAsync1(((ap
i.Application response) { |
| 4654 checkApplication(response); | 4654 checkApplication(response); |
| 4655 }))); | 4655 }))); |
| 4656 }); | 4656 }); |
| 4657 | 4657 |
| 4658 unittest.test("method--played", () { | 4658 unittest.test("method--played", () { |
| 4659 | 4659 |
| 4660 var mock = new HttpServerMock(); | 4660 var mock = new HttpServerMock(); |
| 4661 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; | 4661 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; |
| 4662 var arg_consistencyToken = "foo"; | 4662 var arg_consistencyToken = "foo"; |
| 4663 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4663 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4664 var path = (req.url).path; | 4664 var path = (req.url).path; |
| 4665 var pathOffset = 0; | 4665 var pathOffset = 0; |
| 4666 var index; | 4666 var index; |
| 4667 var subPart; | 4667 var subPart; |
| 4668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4669 pathOffset += 1; | 4669 pathOffset += 1; |
| 4670 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4670 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4671 pathOffset += 9; | 4671 pathOffset += 9; |
| 4672 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("applications/played")); | 4672 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("applications/played")); |
| 4673 pathOffset += 19; | 4673 pathOffset += 19; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4690 } | 4690 } |
| 4691 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4691 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4692 | 4692 |
| 4693 | 4693 |
| 4694 var h = { | 4694 var h = { |
| 4695 "content-type" : "application/json; charset=utf-8", | 4695 "content-type" : "application/json; charset=utf-8", |
| 4696 }; | 4696 }; |
| 4697 var resp = ""; | 4697 var resp = ""; |
| 4698 return new async.Future.value(stringResponse(200, h, resp)); | 4698 return new async.Future.value(stringResponse(200, h, resp)); |
| 4699 }), true); | 4699 }), true); |
| 4700 res.played(consistencyToken: arg_consistencyToken).then(unittest.expectAsy
nc((_) {})); | 4700 res.played(consistencyToken: arg_consistencyToken).then(unittest.expectAsy
nc1((_) {})); |
| 4701 }); | 4701 }); |
| 4702 | 4702 |
| 4703 unittest.test("method--verify", () { | 4703 unittest.test("method--verify", () { |
| 4704 | 4704 |
| 4705 var mock = new HttpServerMock(); | 4705 var mock = new HttpServerMock(); |
| 4706 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; | 4706 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; |
| 4707 var arg_applicationId = "foo"; | 4707 var arg_applicationId = "foo"; |
| 4708 var arg_consistencyToken = "foo"; | 4708 var arg_consistencyToken = "foo"; |
| 4709 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4709 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4710 var path = (req.url).path; | 4710 var path = (req.url).path; |
| 4711 var pathOffset = 0; | 4711 var pathOffset = 0; |
| 4712 var index; | 4712 var index; |
| 4713 var subPart; | 4713 var subPart; |
| 4714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4715 pathOffset += 1; | 4715 pathOffset += 1; |
| 4716 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4716 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4717 pathOffset += 9; | 4717 pathOffset += 9; |
| 4718 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("applications/")); | 4718 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("applications/")); |
| 4719 pathOffset += 13; | 4719 pathOffset += 13; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4743 } | 4743 } |
| 4744 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4744 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4745 | 4745 |
| 4746 | 4746 |
| 4747 var h = { | 4747 var h = { |
| 4748 "content-type" : "application/json; charset=utf-8", | 4748 "content-type" : "application/json; charset=utf-8", |
| 4749 }; | 4749 }; |
| 4750 var resp = convert.JSON.encode(buildApplicationVerifyResponse()); | 4750 var resp = convert.JSON.encode(buildApplicationVerifyResponse()); |
| 4751 return new async.Future.value(stringResponse(200, h, resp)); | 4751 return new async.Future.value(stringResponse(200, h, resp)); |
| 4752 }), true); | 4752 }), true); |
| 4753 res.verify(arg_applicationId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync(((api.ApplicationVerifyResponse response) { | 4753 res.verify(arg_applicationId, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync1(((api.ApplicationVerifyResponse response) { |
| 4754 checkApplicationVerifyResponse(response); | 4754 checkApplicationVerifyResponse(response); |
| 4755 }))); | 4755 }))); |
| 4756 }); | 4756 }); |
| 4757 | 4757 |
| 4758 }); | 4758 }); |
| 4759 | 4759 |
| 4760 | 4760 |
| 4761 unittest.group("resource-EventsResourceApi", () { | 4761 unittest.group("resource-EventsResourceApi", () { |
| 4762 unittest.test("method--listByPlayer", () { | 4762 unittest.test("method--listByPlayer", () { |
| 4763 | 4763 |
| 4764 var mock = new HttpServerMock(); | 4764 var mock = new HttpServerMock(); |
| 4765 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4765 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4766 var arg_consistencyToken = "foo"; | 4766 var arg_consistencyToken = "foo"; |
| 4767 var arg_language = "foo"; | 4767 var arg_language = "foo"; |
| 4768 var arg_maxResults = 42; | 4768 var arg_maxResults = 42; |
| 4769 var arg_pageToken = "foo"; | 4769 var arg_pageToken = "foo"; |
| 4770 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4770 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4771 var path = (req.url).path; | 4771 var path = (req.url).path; |
| 4772 var pathOffset = 0; | 4772 var pathOffset = 0; |
| 4773 var index; | 4773 var index; |
| 4774 var subPart; | 4774 var subPart; |
| 4775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4776 pathOffset += 1; | 4776 pathOffset += 1; |
| 4777 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4777 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4778 pathOffset += 9; | 4778 pathOffset += 9; |
| 4779 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("events")); | 4779 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("events")); |
| 4780 pathOffset += 6; | 4780 pathOffset += 6; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4800 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4800 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4801 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4801 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4802 | 4802 |
| 4803 | 4803 |
| 4804 var h = { | 4804 var h = { |
| 4805 "content-type" : "application/json; charset=utf-8", | 4805 "content-type" : "application/json; charset=utf-8", |
| 4806 }; | 4806 }; |
| 4807 var resp = convert.JSON.encode(buildPlayerEventListResponse()); | 4807 var resp = convert.JSON.encode(buildPlayerEventListResponse()); |
| 4808 return new async.Future.value(stringResponse(200, h, resp)); | 4808 return new async.Future.value(stringResponse(200, h, resp)); |
| 4809 }), true); | 4809 }), true); |
| 4810 res.listByPlayer(consistencyToken: arg_consistencyToken, language: arg_lan
guage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expec
tAsync(((api.PlayerEventListResponse response) { | 4810 res.listByPlayer(consistencyToken: arg_consistencyToken, language: arg_lan
guage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expec
tAsync1(((api.PlayerEventListResponse response) { |
| 4811 checkPlayerEventListResponse(response); | 4811 checkPlayerEventListResponse(response); |
| 4812 }))); | 4812 }))); |
| 4813 }); | 4813 }); |
| 4814 | 4814 |
| 4815 unittest.test("method--listDefinitions", () { | 4815 unittest.test("method--listDefinitions", () { |
| 4816 | 4816 |
| 4817 var mock = new HttpServerMock(); | 4817 var mock = new HttpServerMock(); |
| 4818 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4818 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4819 var arg_consistencyToken = "foo"; | 4819 var arg_consistencyToken = "foo"; |
| 4820 var arg_language = "foo"; | 4820 var arg_language = "foo"; |
| 4821 var arg_maxResults = 42; | 4821 var arg_maxResults = 42; |
| 4822 var arg_pageToken = "foo"; | 4822 var arg_pageToken = "foo"; |
| 4823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4823 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4824 var path = (req.url).path; | 4824 var path = (req.url).path; |
| 4825 var pathOffset = 0; | 4825 var pathOffset = 0; |
| 4826 var index; | 4826 var index; |
| 4827 var subPart; | 4827 var subPart; |
| 4828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4829 pathOffset += 1; | 4829 pathOffset += 1; |
| 4830 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4830 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4831 pathOffset += 9; | 4831 pathOffset += 9; |
| 4832 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("eventDefinitions")); | 4832 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("eventDefinitions")); |
| 4833 pathOffset += 16; | 4833 pathOffset += 16; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4853 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4853 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4854 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4854 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4855 | 4855 |
| 4856 | 4856 |
| 4857 var h = { | 4857 var h = { |
| 4858 "content-type" : "application/json; charset=utf-8", | 4858 "content-type" : "application/json; charset=utf-8", |
| 4859 }; | 4859 }; |
| 4860 var resp = convert.JSON.encode(buildEventDefinitionListResponse()); | 4860 var resp = convert.JSON.encode(buildEventDefinitionListResponse()); |
| 4861 return new async.Future.value(stringResponse(200, h, resp)); | 4861 return new async.Future.value(stringResponse(200, h, resp)); |
| 4862 }), true); | 4862 }), true); |
| 4863 res.listDefinitions(consistencyToken: arg_consistencyToken, language: arg_
language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.ex
pectAsync(((api.EventDefinitionListResponse response) { | 4863 res.listDefinitions(consistencyToken: arg_consistencyToken, language: arg_
language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.ex
pectAsync1(((api.EventDefinitionListResponse response) { |
| 4864 checkEventDefinitionListResponse(response); | 4864 checkEventDefinitionListResponse(response); |
| 4865 }))); | 4865 }))); |
| 4866 }); | 4866 }); |
| 4867 | 4867 |
| 4868 unittest.test("method--record", () { | 4868 unittest.test("method--record", () { |
| 4869 | 4869 |
| 4870 var mock = new HttpServerMock(); | 4870 var mock = new HttpServerMock(); |
| 4871 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4871 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4872 var arg_request = buildEventRecordRequest(); | 4872 var arg_request = buildEventRecordRequest(); |
| 4873 var arg_consistencyToken = "foo"; | 4873 var arg_consistencyToken = "foo"; |
| 4874 var arg_language = "foo"; | 4874 var arg_language = "foo"; |
| 4875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4875 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4876 var obj = new api.EventRecordRequest.fromJson(json); | 4876 var obj = new api.EventRecordRequest.fromJson(json); |
| 4877 checkEventRecordRequest(obj); | 4877 checkEventRecordRequest(obj); |
| 4878 | 4878 |
| 4879 var path = (req.url).path; | 4879 var path = (req.url).path; |
| 4880 var pathOffset = 0; | 4880 var pathOffset = 0; |
| 4881 var index; | 4881 var index; |
| 4882 var subPart; | 4882 var subPart; |
| 4883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4884 pathOffset += 1; | 4884 pathOffset += 1; |
| 4885 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4885 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4906 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4906 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4907 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4907 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4908 | 4908 |
| 4909 | 4909 |
| 4910 var h = { | 4910 var h = { |
| 4911 "content-type" : "application/json; charset=utf-8", | 4911 "content-type" : "application/json; charset=utf-8", |
| 4912 }; | 4912 }; |
| 4913 var resp = convert.JSON.encode(buildEventUpdateResponse()); | 4913 var resp = convert.JSON.encode(buildEventUpdateResponse()); |
| 4914 return new async.Future.value(stringResponse(200, h, resp)); | 4914 return new async.Future.value(stringResponse(200, h, resp)); |
| 4915 }), true); | 4915 }), true); |
| 4916 res.record(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.EventUpdateResponse response) { | 4916 res.record(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.EventUpdateResponse response) { |
| 4917 checkEventUpdateResponse(response); | 4917 checkEventUpdateResponse(response); |
| 4918 }))); | 4918 }))); |
| 4919 }); | 4919 }); |
| 4920 | 4920 |
| 4921 }); | 4921 }); |
| 4922 | 4922 |
| 4923 | 4923 |
| 4924 unittest.group("resource-LeaderboardsResourceApi", () { | 4924 unittest.group("resource-LeaderboardsResourceApi", () { |
| 4925 unittest.test("method--get", () { | 4925 unittest.test("method--get", () { |
| 4926 | 4926 |
| 4927 var mock = new HttpServerMock(); | 4927 var mock = new HttpServerMock(); |
| 4928 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; | 4928 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; |
| 4929 var arg_leaderboardId = "foo"; | 4929 var arg_leaderboardId = "foo"; |
| 4930 var arg_consistencyToken = "foo"; | 4930 var arg_consistencyToken = "foo"; |
| 4931 var arg_language = "foo"; | 4931 var arg_language = "foo"; |
| 4932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4932 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4933 var path = (req.url).path; | 4933 var path = (req.url).path; |
| 4934 var pathOffset = 0; | 4934 var pathOffset = 0; |
| 4935 var index; | 4935 var index; |
| 4936 var subPart; | 4936 var subPart; |
| 4937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4938 pathOffset += 1; | 4938 pathOffset += 1; |
| 4939 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4939 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4940 pathOffset += 9; | 4940 pathOffset += 9; |
| 4941 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); | 4941 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); |
| 4942 pathOffset += 13; | 4942 pathOffset += 13; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4963 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 4963 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 4964 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4964 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4965 | 4965 |
| 4966 | 4966 |
| 4967 var h = { | 4967 var h = { |
| 4968 "content-type" : "application/json; charset=utf-8", | 4968 "content-type" : "application/json; charset=utf-8", |
| 4969 }; | 4969 }; |
| 4970 var resp = convert.JSON.encode(buildLeaderboard()); | 4970 var resp = convert.JSON.encode(buildLeaderboard()); |
| 4971 return new async.Future.value(stringResponse(200, h, resp)); | 4971 return new async.Future.value(stringResponse(200, h, resp)); |
| 4972 }), true); | 4972 }), true); |
| 4973 res.get(arg_leaderboardId, consistencyToken: arg_consistencyToken, languag
e: arg_language).then(unittest.expectAsync(((api.Leaderboard response) { | 4973 res.get(arg_leaderboardId, consistencyToken: arg_consistencyToken, languag
e: arg_language).then(unittest.expectAsync1(((api.Leaderboard response) { |
| 4974 checkLeaderboard(response); | 4974 checkLeaderboard(response); |
| 4975 }))); | 4975 }))); |
| 4976 }); | 4976 }); |
| 4977 | 4977 |
| 4978 unittest.test("method--list", () { | 4978 unittest.test("method--list", () { |
| 4979 | 4979 |
| 4980 var mock = new HttpServerMock(); | 4980 var mock = new HttpServerMock(); |
| 4981 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; | 4981 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; |
| 4982 var arg_consistencyToken = "foo"; | 4982 var arg_consistencyToken = "foo"; |
| 4983 var arg_language = "foo"; | 4983 var arg_language = "foo"; |
| 4984 var arg_maxResults = 42; | 4984 var arg_maxResults = 42; |
| 4985 var arg_pageToken = "foo"; | 4985 var arg_pageToken = "foo"; |
| 4986 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4986 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4987 var path = (req.url).path; | 4987 var path = (req.url).path; |
| 4988 var pathOffset = 0; | 4988 var pathOffset = 0; |
| 4989 var index; | 4989 var index; |
| 4990 var subPart; | 4990 var subPart; |
| 4991 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4991 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4992 pathOffset += 1; | 4992 pathOffset += 1; |
| 4993 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4993 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4994 pathOffset += 9; | 4994 pathOffset += 9; |
| 4995 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("leaderboards")); | 4995 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("leaderboards")); |
| 4996 pathOffset += 12; | 4996 pathOffset += 12; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5016 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5016 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5017 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5017 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5018 | 5018 |
| 5019 | 5019 |
| 5020 var h = { | 5020 var h = { |
| 5021 "content-type" : "application/json; charset=utf-8", | 5021 "content-type" : "application/json; charset=utf-8", |
| 5022 }; | 5022 }; |
| 5023 var resp = convert.JSON.encode(buildLeaderboardListResponse()); | 5023 var resp = convert.JSON.encode(buildLeaderboardListResponse()); |
| 5024 return new async.Future.value(stringResponse(200, h, resp)); | 5024 return new async.Future.value(stringResponse(200, h, resp)); |
| 5025 }), true); | 5025 }), true); |
| 5026 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync((
(api.LeaderboardListResponse response) { | 5026 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(
((api.LeaderboardListResponse response) { |
| 5027 checkLeaderboardListResponse(response); | 5027 checkLeaderboardListResponse(response); |
| 5028 }))); | 5028 }))); |
| 5029 }); | 5029 }); |
| 5030 | 5030 |
| 5031 }); | 5031 }); |
| 5032 | 5032 |
| 5033 | 5033 |
| 5034 unittest.group("resource-MetagameResourceApi", () { | 5034 unittest.group("resource-MetagameResourceApi", () { |
| 5035 unittest.test("method--getMetagameConfig", () { | 5035 unittest.test("method--getMetagameConfig", () { |
| 5036 | 5036 |
| 5037 var mock = new HttpServerMock(); | 5037 var mock = new HttpServerMock(); |
| 5038 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; | 5038 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; |
| 5039 var arg_consistencyToken = "foo"; | 5039 var arg_consistencyToken = "foo"; |
| 5040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5040 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5041 var path = (req.url).path; | 5041 var path = (req.url).path; |
| 5042 var pathOffset = 0; | 5042 var pathOffset = 0; |
| 5043 var index; | 5043 var index; |
| 5044 var subPart; | 5044 var subPart; |
| 5045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5046 pathOffset += 1; | 5046 pathOffset += 1; |
| 5047 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5047 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5048 pathOffset += 9; | 5048 pathOffset += 9; |
| 5049 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("metagameConfig")); | 5049 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("metagameConfig")); |
| 5050 pathOffset += 14; | 5050 pathOffset += 14; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5067 } | 5067 } |
| 5068 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5068 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5069 | 5069 |
| 5070 | 5070 |
| 5071 var h = { | 5071 var h = { |
| 5072 "content-type" : "application/json; charset=utf-8", | 5072 "content-type" : "application/json; charset=utf-8", |
| 5073 }; | 5073 }; |
| 5074 var resp = convert.JSON.encode(buildMetagameConfig()); | 5074 var resp = convert.JSON.encode(buildMetagameConfig()); |
| 5075 return new async.Future.value(stringResponse(200, h, resp)); | 5075 return new async.Future.value(stringResponse(200, h, resp)); |
| 5076 }), true); | 5076 }), true); |
| 5077 res.getMetagameConfig(consistencyToken: arg_consistencyToken).then(unittes
t.expectAsync(((api.MetagameConfig response) { | 5077 res.getMetagameConfig(consistencyToken: arg_consistencyToken).then(unittes
t.expectAsync1(((api.MetagameConfig response) { |
| 5078 checkMetagameConfig(response); | 5078 checkMetagameConfig(response); |
| 5079 }))); | 5079 }))); |
| 5080 }); | 5080 }); |
| 5081 | 5081 |
| 5082 unittest.test("method--listCategoriesByPlayer", () { | 5082 unittest.test("method--listCategoriesByPlayer", () { |
| 5083 | 5083 |
| 5084 var mock = new HttpServerMock(); | 5084 var mock = new HttpServerMock(); |
| 5085 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; | 5085 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; |
| 5086 var arg_playerId = "foo"; | 5086 var arg_playerId = "foo"; |
| 5087 var arg_collection = "foo"; | 5087 var arg_collection = "foo"; |
| 5088 var arg_consistencyToken = "foo"; | 5088 var arg_consistencyToken = "foo"; |
| 5089 var arg_language = "foo"; | 5089 var arg_language = "foo"; |
| 5090 var arg_maxResults = 42; | 5090 var arg_maxResults = 42; |
| 5091 var arg_pageToken = "foo"; | 5091 var arg_pageToken = "foo"; |
| 5092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5092 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5093 var path = (req.url).path; | 5093 var path = (req.url).path; |
| 5094 var pathOffset = 0; | 5094 var pathOffset = 0; |
| 5095 var index; | 5095 var index; |
| 5096 var subPart; | 5096 var subPart; |
| 5097 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5097 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5098 pathOffset += 1; | 5098 pathOffset += 1; |
| 5099 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5099 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5100 pathOffset += 9; | 5100 pathOffset += 9; |
| 5101 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 5101 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 5102 pathOffset += 8; | 5102 pathOffset += 8; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 5132 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5132 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5133 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5133 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5134 | 5134 |
| 5135 | 5135 |
| 5136 var h = { | 5136 var h = { |
| 5137 "content-type" : "application/json; charset=utf-8", | 5137 "content-type" : "application/json; charset=utf-8", |
| 5138 }; | 5138 }; |
| 5139 var resp = convert.JSON.encode(buildCategoryListResponse()); | 5139 var resp = convert.JSON.encode(buildCategoryListResponse()); |
| 5140 return new async.Future.value(stringResponse(200, h, resp)); | 5140 return new async.Future.value(stringResponse(200, h, resp)); |
| 5141 }), true); | 5141 }), true); |
| 5142 res.listCategoriesByPlayer(arg_playerId, arg_collection, consistencyToken:
arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageT
oken: arg_pageToken).then(unittest.expectAsync(((api.CategoryListResponse respon
se) { | 5142 res.listCategoriesByPlayer(arg_playerId, arg_collection, consistencyToken:
arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, pageT
oken: arg_pageToken).then(unittest.expectAsync1(((api.CategoryListResponse respo
nse) { |
| 5143 checkCategoryListResponse(response); | 5143 checkCategoryListResponse(response); |
| 5144 }))); | 5144 }))); |
| 5145 }); | 5145 }); |
| 5146 | 5146 |
| 5147 }); | 5147 }); |
| 5148 | 5148 |
| 5149 | 5149 |
| 5150 unittest.group("resource-PlayersResourceApi", () { | 5150 unittest.group("resource-PlayersResourceApi", () { |
| 5151 unittest.test("method--get", () { | 5151 unittest.test("method--get", () { |
| 5152 | 5152 |
| 5153 var mock = new HttpServerMock(); | 5153 var mock = new HttpServerMock(); |
| 5154 api.PlayersResourceApi res = new api.GamesApi(mock).players; | 5154 api.PlayersResourceApi res = new api.GamesApi(mock).players; |
| 5155 var arg_playerId = "foo"; | 5155 var arg_playerId = "foo"; |
| 5156 var arg_consistencyToken = "foo"; | 5156 var arg_consistencyToken = "foo"; |
| 5157 var arg_language = "foo"; | 5157 var arg_language = "foo"; |
| 5158 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5158 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5159 var path = (req.url).path; | 5159 var path = (req.url).path; |
| 5160 var pathOffset = 0; | 5160 var pathOffset = 0; |
| 5161 var index; | 5161 var index; |
| 5162 var subPart; | 5162 var subPart; |
| 5163 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5163 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5164 pathOffset += 1; | 5164 pathOffset += 1; |
| 5165 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5165 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5166 pathOffset += 9; | 5166 pathOffset += 9; |
| 5167 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 5167 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 5168 pathOffset += 8; | 5168 pathOffset += 8; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5189 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5189 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5190 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5190 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5191 | 5191 |
| 5192 | 5192 |
| 5193 var h = { | 5193 var h = { |
| 5194 "content-type" : "application/json; charset=utf-8", | 5194 "content-type" : "application/json; charset=utf-8", |
| 5195 }; | 5195 }; |
| 5196 var resp = convert.JSON.encode(buildPlayer()); | 5196 var resp = convert.JSON.encode(buildPlayer()); |
| 5197 return new async.Future.value(stringResponse(200, h, resp)); | 5197 return new async.Future.value(stringResponse(200, h, resp)); |
| 5198 }), true); | 5198 }), true); |
| 5199 res.get(arg_playerId, consistencyToken: arg_consistencyToken, language: ar
g_language).then(unittest.expectAsync(((api.Player response) { | 5199 res.get(arg_playerId, consistencyToken: arg_consistencyToken, language: ar
g_language).then(unittest.expectAsync1(((api.Player response) { |
| 5200 checkPlayer(response); | 5200 checkPlayer(response); |
| 5201 }))); | 5201 }))); |
| 5202 }); | 5202 }); |
| 5203 | 5203 |
| 5204 unittest.test("method--list", () { | 5204 unittest.test("method--list", () { |
| 5205 | 5205 |
| 5206 var mock = new HttpServerMock(); | 5206 var mock = new HttpServerMock(); |
| 5207 api.PlayersResourceApi res = new api.GamesApi(mock).players; | 5207 api.PlayersResourceApi res = new api.GamesApi(mock).players; |
| 5208 var arg_collection = "foo"; | 5208 var arg_collection = "foo"; |
| 5209 var arg_consistencyToken = "foo"; | 5209 var arg_consistencyToken = "foo"; |
| 5210 var arg_language = "foo"; | 5210 var arg_language = "foo"; |
| 5211 var arg_maxResults = 42; | 5211 var arg_maxResults = 42; |
| 5212 var arg_pageToken = "foo"; | 5212 var arg_pageToken = "foo"; |
| 5213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5213 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5214 var path = (req.url).path; | 5214 var path = (req.url).path; |
| 5215 var pathOffset = 0; | 5215 var pathOffset = 0; |
| 5216 var index; | 5216 var index; |
| 5217 var subPart; | 5217 var subPart; |
| 5218 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5218 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5219 pathOffset += 1; | 5219 pathOffset += 1; |
| 5220 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5220 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5221 pathOffset += 9; | 5221 pathOffset += 9; |
| 5222 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("players/me/players/")); | 5222 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("players/me/players/")); |
| 5223 pathOffset += 19; | 5223 pathOffset += 19; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 5246 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5246 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5247 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5247 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5248 | 5248 |
| 5249 | 5249 |
| 5250 var h = { | 5250 var h = { |
| 5251 "content-type" : "application/json; charset=utf-8", | 5251 "content-type" : "application/json; charset=utf-8", |
| 5252 }; | 5252 }; |
| 5253 var resp = convert.JSON.encode(buildPlayerListResponse()); | 5253 var resp = convert.JSON.encode(buildPlayerListResponse()); |
| 5254 return new async.Future.value(stringResponse(200, h, resp)); | 5254 return new async.Future.value(stringResponse(200, h, resp)); |
| 5255 }), true); | 5255 }), true); |
| 5256 res.list(arg_collection, consistencyToken: arg_consistencyToken, language:
arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unitte
st.expectAsync(((api.PlayerListResponse response) { | 5256 res.list(arg_collection, consistencyToken: arg_consistencyToken, language:
arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unitte
st.expectAsync1(((api.PlayerListResponse response) { |
| 5257 checkPlayerListResponse(response); | 5257 checkPlayerListResponse(response); |
| 5258 }))); | 5258 }))); |
| 5259 }); | 5259 }); |
| 5260 | 5260 |
| 5261 }); | 5261 }); |
| 5262 | 5262 |
| 5263 | 5263 |
| 5264 unittest.group("resource-PushtokensResourceApi", () { | 5264 unittest.group("resource-PushtokensResourceApi", () { |
| 5265 unittest.test("method--remove", () { | 5265 unittest.test("method--remove", () { |
| 5266 | 5266 |
| 5267 var mock = new HttpServerMock(); | 5267 var mock = new HttpServerMock(); |
| 5268 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; | 5268 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; |
| 5269 var arg_request = buildPushTokenId(); | 5269 var arg_request = buildPushTokenId(); |
| 5270 var arg_consistencyToken = "foo"; | 5270 var arg_consistencyToken = "foo"; |
| 5271 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5271 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5272 var obj = new api.PushTokenId.fromJson(json); | 5272 var obj = new api.PushTokenId.fromJson(json); |
| 5273 checkPushTokenId(obj); | 5273 checkPushTokenId(obj); |
| 5274 | 5274 |
| 5275 var path = (req.url).path; | 5275 var path = (req.url).path; |
| 5276 var pathOffset = 0; | 5276 var pathOffset = 0; |
| 5277 var index; | 5277 var index; |
| 5278 var subPart; | 5278 var subPart; |
| 5279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5280 pathOffset += 1; | 5280 pathOffset += 1; |
| 5281 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5281 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5301 } | 5301 } |
| 5302 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5302 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5303 | 5303 |
| 5304 | 5304 |
| 5305 var h = { | 5305 var h = { |
| 5306 "content-type" : "application/json; charset=utf-8", | 5306 "content-type" : "application/json; charset=utf-8", |
| 5307 }; | 5307 }; |
| 5308 var resp = ""; | 5308 var resp = ""; |
| 5309 return new async.Future.value(stringResponse(200, h, resp)); | 5309 return new async.Future.value(stringResponse(200, h, resp)); |
| 5310 }), true); | 5310 }), true); |
| 5311 res.remove(arg_request, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync((_) {})); | 5311 res.remove(arg_request, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync1((_) {})); |
| 5312 }); | 5312 }); |
| 5313 | 5313 |
| 5314 unittest.test("method--update", () { | 5314 unittest.test("method--update", () { |
| 5315 | 5315 |
| 5316 var mock = new HttpServerMock(); | 5316 var mock = new HttpServerMock(); |
| 5317 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; | 5317 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; |
| 5318 var arg_request = buildPushToken(); | 5318 var arg_request = buildPushToken(); |
| 5319 var arg_consistencyToken = "foo"; | 5319 var arg_consistencyToken = "foo"; |
| 5320 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5320 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5321 var obj = new api.PushToken.fromJson(json); | 5321 var obj = new api.PushToken.fromJson(json); |
| 5322 checkPushToken(obj); | 5322 checkPushToken(obj); |
| 5323 | 5323 |
| 5324 var path = (req.url).path; | 5324 var path = (req.url).path; |
| 5325 var pathOffset = 0; | 5325 var pathOffset = 0; |
| 5326 var index; | 5326 var index; |
| 5327 var subPart; | 5327 var subPart; |
| 5328 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5328 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5329 pathOffset += 1; | 5329 pathOffset += 1; |
| 5330 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5330 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5350 } | 5350 } |
| 5351 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5351 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5352 | 5352 |
| 5353 | 5353 |
| 5354 var h = { | 5354 var h = { |
| 5355 "content-type" : "application/json; charset=utf-8", | 5355 "content-type" : "application/json; charset=utf-8", |
| 5356 }; | 5356 }; |
| 5357 var resp = ""; | 5357 var resp = ""; |
| 5358 return new async.Future.value(stringResponse(200, h, resp)); | 5358 return new async.Future.value(stringResponse(200, h, resp)); |
| 5359 }), true); | 5359 }), true); |
| 5360 res.update(arg_request, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync((_) {})); | 5360 res.update(arg_request, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync1((_) {})); |
| 5361 }); | 5361 }); |
| 5362 | 5362 |
| 5363 }); | 5363 }); |
| 5364 | 5364 |
| 5365 | 5365 |
| 5366 unittest.group("resource-QuestMilestonesResourceApi", () { | 5366 unittest.group("resource-QuestMilestonesResourceApi", () { |
| 5367 unittest.test("method--claim", () { | 5367 unittest.test("method--claim", () { |
| 5368 | 5368 |
| 5369 var mock = new HttpServerMock(); | 5369 var mock = new HttpServerMock(); |
| 5370 api.QuestMilestonesResourceApi res = new api.GamesApi(mock).questMilestone
s; | 5370 api.QuestMilestonesResourceApi res = new api.GamesApi(mock).questMilestone
s; |
| 5371 var arg_questId = "foo"; | 5371 var arg_questId = "foo"; |
| 5372 var arg_milestoneId = "foo"; | 5372 var arg_milestoneId = "foo"; |
| 5373 var arg_requestId = "foo"; | 5373 var arg_requestId = "foo"; |
| 5374 var arg_consistencyToken = "foo"; | 5374 var arg_consistencyToken = "foo"; |
| 5375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5375 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5376 var path = (req.url).path; | 5376 var path = (req.url).path; |
| 5377 var pathOffset = 0; | 5377 var pathOffset = 0; |
| 5378 var index; | 5378 var index; |
| 5379 var subPart; | 5379 var subPart; |
| 5380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5381 pathOffset += 1; | 5381 pathOffset += 1; |
| 5382 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5382 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5383 pathOffset += 9; | 5383 pathOffset += 9; |
| 5384 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("quests/")); | 5384 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("quests/")); |
| 5385 pathOffset += 7; | 5385 pathOffset += 7; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5417 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 5417 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 5418 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5418 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5419 | 5419 |
| 5420 | 5420 |
| 5421 var h = { | 5421 var h = { |
| 5422 "content-type" : "application/json; charset=utf-8", | 5422 "content-type" : "application/json; charset=utf-8", |
| 5423 }; | 5423 }; |
| 5424 var resp = ""; | 5424 var resp = ""; |
| 5425 return new async.Future.value(stringResponse(200, h, resp)); | 5425 return new async.Future.value(stringResponse(200, h, resp)); |
| 5426 }), true); | 5426 }), true); |
| 5427 res.claim(arg_questId, arg_milestoneId, arg_requestId, consistencyToken: a
rg_consistencyToken).then(unittest.expectAsync((_) {})); | 5427 res.claim(arg_questId, arg_milestoneId, arg_requestId, consistencyToken: a
rg_consistencyToken).then(unittest.expectAsync1((_) {})); |
| 5428 }); | 5428 }); |
| 5429 | 5429 |
| 5430 }); | 5430 }); |
| 5431 | 5431 |
| 5432 | 5432 |
| 5433 unittest.group("resource-QuestsResourceApi", () { | 5433 unittest.group("resource-QuestsResourceApi", () { |
| 5434 unittest.test("method--accept", () { | 5434 unittest.test("method--accept", () { |
| 5435 | 5435 |
| 5436 var mock = new HttpServerMock(); | 5436 var mock = new HttpServerMock(); |
| 5437 api.QuestsResourceApi res = new api.GamesApi(mock).quests; | 5437 api.QuestsResourceApi res = new api.GamesApi(mock).quests; |
| 5438 var arg_questId = "foo"; | 5438 var arg_questId = "foo"; |
| 5439 var arg_consistencyToken = "foo"; | 5439 var arg_consistencyToken = "foo"; |
| 5440 var arg_language = "foo"; | 5440 var arg_language = "foo"; |
| 5441 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5441 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5442 var path = (req.url).path; | 5442 var path = (req.url).path; |
| 5443 var pathOffset = 0; | 5443 var pathOffset = 0; |
| 5444 var index; | 5444 var index; |
| 5445 var subPart; | 5445 var subPart; |
| 5446 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5446 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5447 pathOffset += 1; | 5447 pathOffset += 1; |
| 5448 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5448 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5449 pathOffset += 9; | 5449 pathOffset += 9; |
| 5450 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("quests/")); | 5450 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("quests/")); |
| 5451 pathOffset += 7; | 5451 pathOffset += 7; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5476 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5476 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5477 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5477 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5478 | 5478 |
| 5479 | 5479 |
| 5480 var h = { | 5480 var h = { |
| 5481 "content-type" : "application/json; charset=utf-8", | 5481 "content-type" : "application/json; charset=utf-8", |
| 5482 }; | 5482 }; |
| 5483 var resp = convert.JSON.encode(buildQuest()); | 5483 var resp = convert.JSON.encode(buildQuest()); |
| 5484 return new async.Future.value(stringResponse(200, h, resp)); | 5484 return new async.Future.value(stringResponse(200, h, resp)); |
| 5485 }), true); | 5485 }), true); |
| 5486 res.accept(arg_questId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.Quest response) { | 5486 res.accept(arg_questId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.Quest response) { |
| 5487 checkQuest(response); | 5487 checkQuest(response); |
| 5488 }))); | 5488 }))); |
| 5489 }); | 5489 }); |
| 5490 | 5490 |
| 5491 unittest.test("method--list", () { | 5491 unittest.test("method--list", () { |
| 5492 | 5492 |
| 5493 var mock = new HttpServerMock(); | 5493 var mock = new HttpServerMock(); |
| 5494 api.QuestsResourceApi res = new api.GamesApi(mock).quests; | 5494 api.QuestsResourceApi res = new api.GamesApi(mock).quests; |
| 5495 var arg_playerId = "foo"; | 5495 var arg_playerId = "foo"; |
| 5496 var arg_consistencyToken = "foo"; | 5496 var arg_consistencyToken = "foo"; |
| 5497 var arg_language = "foo"; | 5497 var arg_language = "foo"; |
| 5498 var arg_maxResults = 42; | 5498 var arg_maxResults = 42; |
| 5499 var arg_pageToken = "foo"; | 5499 var arg_pageToken = "foo"; |
| 5500 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5500 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5501 var path = (req.url).path; | 5501 var path = (req.url).path; |
| 5502 var pathOffset = 0; | 5502 var pathOffset = 0; |
| 5503 var index; | 5503 var index; |
| 5504 var subPart; | 5504 var subPart; |
| 5505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5506 pathOffset += 1; | 5506 pathOffset += 1; |
| 5507 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5507 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5508 pathOffset += 9; | 5508 pathOffset += 9; |
| 5509 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 5509 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 5510 pathOffset += 8; | 5510 pathOffset += 8; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 5537 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5537 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5538 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5538 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5539 | 5539 |
| 5540 | 5540 |
| 5541 var h = { | 5541 var h = { |
| 5542 "content-type" : "application/json; charset=utf-8", | 5542 "content-type" : "application/json; charset=utf-8", |
| 5543 }; | 5543 }; |
| 5544 var resp = convert.JSON.encode(buildQuestListResponse()); | 5544 var resp = convert.JSON.encode(buildQuestListResponse()); |
| 5545 return new async.Future.value(stringResponse(200, h, resp)); | 5545 return new async.Future.value(stringResponse(200, h, resp)); |
| 5546 }), true); | 5546 }), true); |
| 5547 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest
.expectAsync(((api.QuestListResponse response) { | 5547 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest
.expectAsync1(((api.QuestListResponse response) { |
| 5548 checkQuestListResponse(response); | 5548 checkQuestListResponse(response); |
| 5549 }))); | 5549 }))); |
| 5550 }); | 5550 }); |
| 5551 | 5551 |
| 5552 }); | 5552 }); |
| 5553 | 5553 |
| 5554 | 5554 |
| 5555 unittest.group("resource-RevisionsResourceApi", () { | 5555 unittest.group("resource-RevisionsResourceApi", () { |
| 5556 unittest.test("method--check", () { | 5556 unittest.test("method--check", () { |
| 5557 | 5557 |
| 5558 var mock = new HttpServerMock(); | 5558 var mock = new HttpServerMock(); |
| 5559 api.RevisionsResourceApi res = new api.GamesApi(mock).revisions; | 5559 api.RevisionsResourceApi res = new api.GamesApi(mock).revisions; |
| 5560 var arg_clientRevision = "foo"; | 5560 var arg_clientRevision = "foo"; |
| 5561 var arg_consistencyToken = "foo"; | 5561 var arg_consistencyToken = "foo"; |
| 5562 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5562 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5563 var path = (req.url).path; | 5563 var path = (req.url).path; |
| 5564 var pathOffset = 0; | 5564 var pathOffset = 0; |
| 5565 var index; | 5565 var index; |
| 5566 var subPart; | 5566 var subPart; |
| 5567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5568 pathOffset += 1; | 5568 pathOffset += 1; |
| 5569 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5569 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5570 pathOffset += 9; | 5570 pathOffset += 9; |
| 5571 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("revisions/check")); | 5571 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("revisions/check")); |
| 5572 pathOffset += 15; | 5572 pathOffset += 15; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5590 unittest.expect(queryMap["clientRevision"].first, unittest.equals(arg_cl
ientRevision)); | 5590 unittest.expect(queryMap["clientRevision"].first, unittest.equals(arg_cl
ientRevision)); |
| 5591 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5591 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5592 | 5592 |
| 5593 | 5593 |
| 5594 var h = { | 5594 var h = { |
| 5595 "content-type" : "application/json; charset=utf-8", | 5595 "content-type" : "application/json; charset=utf-8", |
| 5596 }; | 5596 }; |
| 5597 var resp = convert.JSON.encode(buildRevisionCheckResponse()); | 5597 var resp = convert.JSON.encode(buildRevisionCheckResponse()); |
| 5598 return new async.Future.value(stringResponse(200, h, resp)); | 5598 return new async.Future.value(stringResponse(200, h, resp)); |
| 5599 }), true); | 5599 }), true); |
| 5600 res.check(arg_clientRevision, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync(((api.RevisionCheckResponse response) { | 5600 res.check(arg_clientRevision, consistencyToken: arg_consistencyToken).then
(unittest.expectAsync1(((api.RevisionCheckResponse response) { |
| 5601 checkRevisionCheckResponse(response); | 5601 checkRevisionCheckResponse(response); |
| 5602 }))); | 5602 }))); |
| 5603 }); | 5603 }); |
| 5604 | 5604 |
| 5605 }); | 5605 }); |
| 5606 | 5606 |
| 5607 | 5607 |
| 5608 unittest.group("resource-RoomsResourceApi", () { | 5608 unittest.group("resource-RoomsResourceApi", () { |
| 5609 unittest.test("method--create", () { | 5609 unittest.test("method--create", () { |
| 5610 | 5610 |
| 5611 var mock = new HttpServerMock(); | 5611 var mock = new HttpServerMock(); |
| 5612 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5612 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5613 var arg_request = buildRoomCreateRequest(); | 5613 var arg_request = buildRoomCreateRequest(); |
| 5614 var arg_consistencyToken = "foo"; | 5614 var arg_consistencyToken = "foo"; |
| 5615 var arg_language = "foo"; | 5615 var arg_language = "foo"; |
| 5616 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5616 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5617 var obj = new api.RoomCreateRequest.fromJson(json); | 5617 var obj = new api.RoomCreateRequest.fromJson(json); |
| 5618 checkRoomCreateRequest(obj); | 5618 checkRoomCreateRequest(obj); |
| 5619 | 5619 |
| 5620 var path = (req.url).path; | 5620 var path = (req.url).path; |
| 5621 var pathOffset = 0; | 5621 var pathOffset = 0; |
| 5622 var index; | 5622 var index; |
| 5623 var subPart; | 5623 var subPart; |
| 5624 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5624 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5625 pathOffset += 1; | 5625 pathOffset += 1; |
| 5626 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5626 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5647 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5647 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5648 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5648 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5649 | 5649 |
| 5650 | 5650 |
| 5651 var h = { | 5651 var h = { |
| 5652 "content-type" : "application/json; charset=utf-8", | 5652 "content-type" : "application/json; charset=utf-8", |
| 5653 }; | 5653 }; |
| 5654 var resp = convert.JSON.encode(buildRoom()); | 5654 var resp = convert.JSON.encode(buildRoom()); |
| 5655 return new async.Future.value(stringResponse(200, h, resp)); | 5655 return new async.Future.value(stringResponse(200, h, resp)); |
| 5656 }), true); | 5656 }), true); |
| 5657 res.create(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.Room response) { | 5657 res.create(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.Room response) { |
| 5658 checkRoom(response); | 5658 checkRoom(response); |
| 5659 }))); | 5659 }))); |
| 5660 }); | 5660 }); |
| 5661 | 5661 |
| 5662 unittest.test("method--decline", () { | 5662 unittest.test("method--decline", () { |
| 5663 | 5663 |
| 5664 var mock = new HttpServerMock(); | 5664 var mock = new HttpServerMock(); |
| 5665 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5665 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5666 var arg_roomId = "foo"; | 5666 var arg_roomId = "foo"; |
| 5667 var arg_consistencyToken = "foo"; | 5667 var arg_consistencyToken = "foo"; |
| 5668 var arg_language = "foo"; | 5668 var arg_language = "foo"; |
| 5669 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5669 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5670 var path = (req.url).path; | 5670 var path = (req.url).path; |
| 5671 var pathOffset = 0; | 5671 var pathOffset = 0; |
| 5672 var index; | 5672 var index; |
| 5673 var subPart; | 5673 var subPart; |
| 5674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5675 pathOffset += 1; | 5675 pathOffset += 1; |
| 5676 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5676 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5677 pathOffset += 9; | 5677 pathOffset += 9; |
| 5678 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); | 5678 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); |
| 5679 pathOffset += 6; | 5679 pathOffset += 6; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5704 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5704 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5705 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5705 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5706 | 5706 |
| 5707 | 5707 |
| 5708 var h = { | 5708 var h = { |
| 5709 "content-type" : "application/json; charset=utf-8", | 5709 "content-type" : "application/json; charset=utf-8", |
| 5710 }; | 5710 }; |
| 5711 var resp = convert.JSON.encode(buildRoom()); | 5711 var resp = convert.JSON.encode(buildRoom()); |
| 5712 return new async.Future.value(stringResponse(200, h, resp)); | 5712 return new async.Future.value(stringResponse(200, h, resp)); |
| 5713 }), true); | 5713 }), true); |
| 5714 res.decline(arg_roomId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.Room response) { | 5714 res.decline(arg_roomId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.Room response) { |
| 5715 checkRoom(response); | 5715 checkRoom(response); |
| 5716 }))); | 5716 }))); |
| 5717 }); | 5717 }); |
| 5718 | 5718 |
| 5719 unittest.test("method--dismiss", () { | 5719 unittest.test("method--dismiss", () { |
| 5720 | 5720 |
| 5721 var mock = new HttpServerMock(); | 5721 var mock = new HttpServerMock(); |
| 5722 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5722 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5723 var arg_roomId = "foo"; | 5723 var arg_roomId = "foo"; |
| 5724 var arg_consistencyToken = "foo"; | 5724 var arg_consistencyToken = "foo"; |
| 5725 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5725 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5726 var path = (req.url).path; | 5726 var path = (req.url).path; |
| 5727 var pathOffset = 0; | 5727 var pathOffset = 0; |
| 5728 var index; | 5728 var index; |
| 5729 var subPart; | 5729 var subPart; |
| 5730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5731 pathOffset += 1; | 5731 pathOffset += 1; |
| 5732 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5732 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5733 pathOffset += 9; | 5733 pathOffset += 9; |
| 5734 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); | 5734 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); |
| 5735 pathOffset += 6; | 5735 pathOffset += 6; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5759 } | 5759 } |
| 5760 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5760 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5761 | 5761 |
| 5762 | 5762 |
| 5763 var h = { | 5763 var h = { |
| 5764 "content-type" : "application/json; charset=utf-8", | 5764 "content-type" : "application/json; charset=utf-8", |
| 5765 }; | 5765 }; |
| 5766 var resp = ""; | 5766 var resp = ""; |
| 5767 return new async.Future.value(stringResponse(200, h, resp)); | 5767 return new async.Future.value(stringResponse(200, h, resp)); |
| 5768 }), true); | 5768 }), true); |
| 5769 res.dismiss(arg_roomId, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync((_) {})); | 5769 res.dismiss(arg_roomId, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync1((_) {})); |
| 5770 }); | 5770 }); |
| 5771 | 5771 |
| 5772 unittest.test("method--get", () { | 5772 unittest.test("method--get", () { |
| 5773 | 5773 |
| 5774 var mock = new HttpServerMock(); | 5774 var mock = new HttpServerMock(); |
| 5775 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5775 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5776 var arg_roomId = "foo"; | 5776 var arg_roomId = "foo"; |
| 5777 var arg_consistencyToken = "foo"; | 5777 var arg_consistencyToken = "foo"; |
| 5778 var arg_language = "foo"; | 5778 var arg_language = "foo"; |
| 5779 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5779 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5780 var path = (req.url).path; | 5780 var path = (req.url).path; |
| 5781 var pathOffset = 0; | 5781 var pathOffset = 0; |
| 5782 var index; | 5782 var index; |
| 5783 var subPart; | 5783 var subPart; |
| 5784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5785 pathOffset += 1; | 5785 pathOffset += 1; |
| 5786 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5786 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5787 pathOffset += 9; | 5787 pathOffset += 9; |
| 5788 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); | 5788 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("rooms/")); |
| 5789 pathOffset += 6; | 5789 pathOffset += 6; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5810 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5810 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5811 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5811 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5812 | 5812 |
| 5813 | 5813 |
| 5814 var h = { | 5814 var h = { |
| 5815 "content-type" : "application/json; charset=utf-8", | 5815 "content-type" : "application/json; charset=utf-8", |
| 5816 }; | 5816 }; |
| 5817 var resp = convert.JSON.encode(buildRoom()); | 5817 var resp = convert.JSON.encode(buildRoom()); |
| 5818 return new async.Future.value(stringResponse(200, h, resp)); | 5818 return new async.Future.value(stringResponse(200, h, resp)); |
| 5819 }), true); | 5819 }), true); |
| 5820 res.get(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_
language).then(unittest.expectAsync(((api.Room response) { | 5820 res.get(arg_roomId, consistencyToken: arg_consistencyToken, language: arg_
language).then(unittest.expectAsync1(((api.Room response) { |
| 5821 checkRoom(response); | 5821 checkRoom(response); |
| 5822 }))); | 5822 }))); |
| 5823 }); | 5823 }); |
| 5824 | 5824 |
| 5825 unittest.test("method--join", () { | 5825 unittest.test("method--join", () { |
| 5826 | 5826 |
| 5827 var mock = new HttpServerMock(); | 5827 var mock = new HttpServerMock(); |
| 5828 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5828 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5829 var arg_request = buildRoomJoinRequest(); | 5829 var arg_request = buildRoomJoinRequest(); |
| 5830 var arg_roomId = "foo"; | 5830 var arg_roomId = "foo"; |
| 5831 var arg_consistencyToken = "foo"; | 5831 var arg_consistencyToken = "foo"; |
| 5832 var arg_language = "foo"; | 5832 var arg_language = "foo"; |
| 5833 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5833 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5834 var obj = new api.RoomJoinRequest.fromJson(json); | 5834 var obj = new api.RoomJoinRequest.fromJson(json); |
| 5835 checkRoomJoinRequest(obj); | 5835 checkRoomJoinRequest(obj); |
| 5836 | 5836 |
| 5837 var path = (req.url).path; | 5837 var path = (req.url).path; |
| 5838 var pathOffset = 0; | 5838 var pathOffset = 0; |
| 5839 var index; | 5839 var index; |
| 5840 var subPart; | 5840 var subPart; |
| 5841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5842 pathOffset += 1; | 5842 pathOffset += 1; |
| 5843 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5843 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5871 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5871 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5872 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5872 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5873 | 5873 |
| 5874 | 5874 |
| 5875 var h = { | 5875 var h = { |
| 5876 "content-type" : "application/json; charset=utf-8", | 5876 "content-type" : "application/json; charset=utf-8", |
| 5877 }; | 5877 }; |
| 5878 var resp = convert.JSON.encode(buildRoom()); | 5878 var resp = convert.JSON.encode(buildRoom()); |
| 5879 return new async.Future.value(stringResponse(200, h, resp)); | 5879 return new async.Future.value(stringResponse(200, h, resp)); |
| 5880 }), true); | 5880 }), true); |
| 5881 res.join(arg_request, arg_roomId, consistencyToken: arg_consistencyToken,
language: arg_language).then(unittest.expectAsync(((api.Room response) { | 5881 res.join(arg_request, arg_roomId, consistencyToken: arg_consistencyToken,
language: arg_language).then(unittest.expectAsync1(((api.Room response) { |
| 5882 checkRoom(response); | 5882 checkRoom(response); |
| 5883 }))); | 5883 }))); |
| 5884 }); | 5884 }); |
| 5885 | 5885 |
| 5886 unittest.test("method--leave", () { | 5886 unittest.test("method--leave", () { |
| 5887 | 5887 |
| 5888 var mock = new HttpServerMock(); | 5888 var mock = new HttpServerMock(); |
| 5889 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5889 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5890 var arg_request = buildRoomLeaveRequest(); | 5890 var arg_request = buildRoomLeaveRequest(); |
| 5891 var arg_roomId = "foo"; | 5891 var arg_roomId = "foo"; |
| 5892 var arg_consistencyToken = "foo"; | 5892 var arg_consistencyToken = "foo"; |
| 5893 var arg_language = "foo"; | 5893 var arg_language = "foo"; |
| 5894 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5894 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5895 var obj = new api.RoomLeaveRequest.fromJson(json); | 5895 var obj = new api.RoomLeaveRequest.fromJson(json); |
| 5896 checkRoomLeaveRequest(obj); | 5896 checkRoomLeaveRequest(obj); |
| 5897 | 5897 |
| 5898 var path = (req.url).path; | 5898 var path = (req.url).path; |
| 5899 var pathOffset = 0; | 5899 var pathOffset = 0; |
| 5900 var index; | 5900 var index; |
| 5901 var subPart; | 5901 var subPart; |
| 5902 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5902 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5903 pathOffset += 1; | 5903 pathOffset += 1; |
| 5904 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5904 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5932 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 5932 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 5933 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5933 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5934 | 5934 |
| 5935 | 5935 |
| 5936 var h = { | 5936 var h = { |
| 5937 "content-type" : "application/json; charset=utf-8", | 5937 "content-type" : "application/json; charset=utf-8", |
| 5938 }; | 5938 }; |
| 5939 var resp = convert.JSON.encode(buildRoom()); | 5939 var resp = convert.JSON.encode(buildRoom()); |
| 5940 return new async.Future.value(stringResponse(200, h, resp)); | 5940 return new async.Future.value(stringResponse(200, h, resp)); |
| 5941 }), true); | 5941 }), true); |
| 5942 res.leave(arg_request, arg_roomId, consistencyToken: arg_consistencyToken,
language: arg_language).then(unittest.expectAsync(((api.Room response) { | 5942 res.leave(arg_request, arg_roomId, consistencyToken: arg_consistencyToken,
language: arg_language).then(unittest.expectAsync1(((api.Room response) { |
| 5943 checkRoom(response); | 5943 checkRoom(response); |
| 5944 }))); | 5944 }))); |
| 5945 }); | 5945 }); |
| 5946 | 5946 |
| 5947 unittest.test("method--list", () { | 5947 unittest.test("method--list", () { |
| 5948 | 5948 |
| 5949 var mock = new HttpServerMock(); | 5949 var mock = new HttpServerMock(); |
| 5950 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5950 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5951 var arg_consistencyToken = "foo"; | 5951 var arg_consistencyToken = "foo"; |
| 5952 var arg_language = "foo"; | 5952 var arg_language = "foo"; |
| 5953 var arg_maxResults = 42; | 5953 var arg_maxResults = 42; |
| 5954 var arg_pageToken = "foo"; | 5954 var arg_pageToken = "foo"; |
| 5955 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5955 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5956 var path = (req.url).path; | 5956 var path = (req.url).path; |
| 5957 var pathOffset = 0; | 5957 var pathOffset = 0; |
| 5958 var index; | 5958 var index; |
| 5959 var subPart; | 5959 var subPart; |
| 5960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5961 pathOffset += 1; | 5961 pathOffset += 1; |
| 5962 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5962 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 5963 pathOffset += 9; | 5963 pathOffset += 9; |
| 5964 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("rooms")); | 5964 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("rooms")); |
| 5965 pathOffset += 5; | 5965 pathOffset += 5; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5985 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5985 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5986 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5986 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5987 | 5987 |
| 5988 | 5988 |
| 5989 var h = { | 5989 var h = { |
| 5990 "content-type" : "application/json; charset=utf-8", | 5990 "content-type" : "application/json; charset=utf-8", |
| 5991 }; | 5991 }; |
| 5992 var resp = convert.JSON.encode(buildRoomList()); | 5992 var resp = convert.JSON.encode(buildRoomList()); |
| 5993 return new async.Future.value(stringResponse(200, h, resp)); | 5993 return new async.Future.value(stringResponse(200, h, resp)); |
| 5994 }), true); | 5994 }), true); |
| 5995 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync((
(api.RoomList response) { | 5995 res.list(consistencyToken: arg_consistencyToken, language: arg_language, m
axResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(
((api.RoomList response) { |
| 5996 checkRoomList(response); | 5996 checkRoomList(response); |
| 5997 }))); | 5997 }))); |
| 5998 }); | 5998 }); |
| 5999 | 5999 |
| 6000 unittest.test("method--reportStatus", () { | 6000 unittest.test("method--reportStatus", () { |
| 6001 | 6001 |
| 6002 var mock = new HttpServerMock(); | 6002 var mock = new HttpServerMock(); |
| 6003 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 6003 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 6004 var arg_request = buildRoomP2PStatuses(); | 6004 var arg_request = buildRoomP2PStatuses(); |
| 6005 var arg_roomId = "foo"; | 6005 var arg_roomId = "foo"; |
| 6006 var arg_consistencyToken = "foo"; | 6006 var arg_consistencyToken = "foo"; |
| 6007 var arg_language = "foo"; | 6007 var arg_language = "foo"; |
| 6008 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6008 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6009 var obj = new api.RoomP2PStatuses.fromJson(json); | 6009 var obj = new api.RoomP2PStatuses.fromJson(json); |
| 6010 checkRoomP2PStatuses(obj); | 6010 checkRoomP2PStatuses(obj); |
| 6011 | 6011 |
| 6012 var path = (req.url).path; | 6012 var path = (req.url).path; |
| 6013 var pathOffset = 0; | 6013 var pathOffset = 0; |
| 6014 var index; | 6014 var index; |
| 6015 var subPart; | 6015 var subPart; |
| 6016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6017 pathOffset += 1; | 6017 pathOffset += 1; |
| 6018 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6018 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6046 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6046 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6047 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6047 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6048 | 6048 |
| 6049 | 6049 |
| 6050 var h = { | 6050 var h = { |
| 6051 "content-type" : "application/json; charset=utf-8", | 6051 "content-type" : "application/json; charset=utf-8", |
| 6052 }; | 6052 }; |
| 6053 var resp = convert.JSON.encode(buildRoomStatus()); | 6053 var resp = convert.JSON.encode(buildRoomStatus()); |
| 6054 return new async.Future.value(stringResponse(200, h, resp)); | 6054 return new async.Future.value(stringResponse(200, h, resp)); |
| 6055 }), true); | 6055 }), true); |
| 6056 res.reportStatus(arg_request, arg_roomId, consistencyToken: arg_consistenc
yToken, language: arg_language).then(unittest.expectAsync(((api.RoomStatus respo
nse) { | 6056 res.reportStatus(arg_request, arg_roomId, consistencyToken: arg_consistenc
yToken, language: arg_language).then(unittest.expectAsync1(((api.RoomStatus resp
onse) { |
| 6057 checkRoomStatus(response); | 6057 checkRoomStatus(response); |
| 6058 }))); | 6058 }))); |
| 6059 }); | 6059 }); |
| 6060 | 6060 |
| 6061 }); | 6061 }); |
| 6062 | 6062 |
| 6063 | 6063 |
| 6064 unittest.group("resource-ScoresResourceApi", () { | 6064 unittest.group("resource-ScoresResourceApi", () { |
| 6065 unittest.test("method--get", () { | 6065 unittest.test("method--get", () { |
| 6066 | 6066 |
| 6067 var mock = new HttpServerMock(); | 6067 var mock = new HttpServerMock(); |
| 6068 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6068 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6069 var arg_playerId = "foo"; | 6069 var arg_playerId = "foo"; |
| 6070 var arg_leaderboardId = "foo"; | 6070 var arg_leaderboardId = "foo"; |
| 6071 var arg_timeSpan = "foo"; | 6071 var arg_timeSpan = "foo"; |
| 6072 var arg_consistencyToken = "foo"; | 6072 var arg_consistencyToken = "foo"; |
| 6073 var arg_includeRankType = "foo"; | 6073 var arg_includeRankType = "foo"; |
| 6074 var arg_language = "foo"; | 6074 var arg_language = "foo"; |
| 6075 var arg_maxResults = 42; | 6075 var arg_maxResults = 42; |
| 6076 var arg_pageToken = "foo"; | 6076 var arg_pageToken = "foo"; |
| 6077 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6077 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6078 var path = (req.url).path; | 6078 var path = (req.url).path; |
| 6079 var pathOffset = 0; | 6079 var pathOffset = 0; |
| 6080 var index; | 6080 var index; |
| 6081 var subPart; | 6081 var subPart; |
| 6082 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6082 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6083 pathOffset += 1; | 6083 pathOffset += 1; |
| 6084 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6084 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6085 pathOffset += 9; | 6085 pathOffset += 9; |
| 6086 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 6086 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 6087 pathOffset += 8; | 6087 pathOffset += 8; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6125 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6125 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6126 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6126 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6127 | 6127 |
| 6128 | 6128 |
| 6129 var h = { | 6129 var h = { |
| 6130 "content-type" : "application/json; charset=utf-8", | 6130 "content-type" : "application/json; charset=utf-8", |
| 6131 }; | 6131 }; |
| 6132 var resp = convert.JSON.encode(buildPlayerLeaderboardScoreListResponse()
); | 6132 var resp = convert.JSON.encode(buildPlayerLeaderboardScoreListResponse()
); |
| 6133 return new async.Future.value(stringResponse(200, h, resp)); | 6133 return new async.Future.value(stringResponse(200, h, resp)); |
| 6134 }), true); | 6134 }), true); |
| 6135 res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, consistencyToken: a
rg_consistencyToken, includeRankType: arg_includeRankType, language: arg_languag
e, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsy
nc(((api.PlayerLeaderboardScoreListResponse response) { | 6135 res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, consistencyToken: a
rg_consistencyToken, includeRankType: arg_includeRankType, language: arg_languag
e, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsy
nc1(((api.PlayerLeaderboardScoreListResponse response) { |
| 6136 checkPlayerLeaderboardScoreListResponse(response); | 6136 checkPlayerLeaderboardScoreListResponse(response); |
| 6137 }))); | 6137 }))); |
| 6138 }); | 6138 }); |
| 6139 | 6139 |
| 6140 unittest.test("method--list", () { | 6140 unittest.test("method--list", () { |
| 6141 | 6141 |
| 6142 var mock = new HttpServerMock(); | 6142 var mock = new HttpServerMock(); |
| 6143 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6143 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6144 var arg_leaderboardId = "foo"; | 6144 var arg_leaderboardId = "foo"; |
| 6145 var arg_collection = "foo"; | 6145 var arg_collection = "foo"; |
| 6146 var arg_timeSpan = "foo"; | 6146 var arg_timeSpan = "foo"; |
| 6147 var arg_consistencyToken = "foo"; | 6147 var arg_consistencyToken = "foo"; |
| 6148 var arg_language = "foo"; | 6148 var arg_language = "foo"; |
| 6149 var arg_maxResults = 42; | 6149 var arg_maxResults = 42; |
| 6150 var arg_pageToken = "foo"; | 6150 var arg_pageToken = "foo"; |
| 6151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6151 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6152 var path = (req.url).path; | 6152 var path = (req.url).path; |
| 6153 var pathOffset = 0; | 6153 var pathOffset = 0; |
| 6154 var index; | 6154 var index; |
| 6155 var subPart; | 6155 var subPart; |
| 6156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6157 pathOffset += 1; | 6157 pathOffset += 1; |
| 6158 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6158 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6159 pathOffset += 9; | 6159 pathOffset += 9; |
| 6160 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); | 6160 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); |
| 6161 pathOffset += 13; | 6161 pathOffset += 13; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6192 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6192 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6193 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6193 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6194 | 6194 |
| 6195 | 6195 |
| 6196 var h = { | 6196 var h = { |
| 6197 "content-type" : "application/json; charset=utf-8", | 6197 "content-type" : "application/json; charset=utf-8", |
| 6198 }; | 6198 }; |
| 6199 var resp = convert.JSON.encode(buildLeaderboardScores()); | 6199 var resp = convert.JSON.encode(buildLeaderboardScores()); |
| 6200 return new async.Future.value(stringResponse(200, h, resp)); | 6200 return new async.Future.value(stringResponse(200, h, resp)); |
| 6201 }), true); | 6201 }), true); |
| 6202 res.list(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken
: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.LeaderboardScores response
) { | 6202 res.list(arg_leaderboardId, arg_collection, arg_timeSpan, consistencyToken
: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync1(((api.LeaderboardScores respons
e) { |
| 6203 checkLeaderboardScores(response); | 6203 checkLeaderboardScores(response); |
| 6204 }))); | 6204 }))); |
| 6205 }); | 6205 }); |
| 6206 | 6206 |
| 6207 unittest.test("method--listWindow", () { | 6207 unittest.test("method--listWindow", () { |
| 6208 | 6208 |
| 6209 var mock = new HttpServerMock(); | 6209 var mock = new HttpServerMock(); |
| 6210 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6210 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6211 var arg_leaderboardId = "foo"; | 6211 var arg_leaderboardId = "foo"; |
| 6212 var arg_collection = "foo"; | 6212 var arg_collection = "foo"; |
| 6213 var arg_timeSpan = "foo"; | 6213 var arg_timeSpan = "foo"; |
| 6214 var arg_consistencyToken = "foo"; | 6214 var arg_consistencyToken = "foo"; |
| 6215 var arg_language = "foo"; | 6215 var arg_language = "foo"; |
| 6216 var arg_maxResults = 42; | 6216 var arg_maxResults = 42; |
| 6217 var arg_pageToken = "foo"; | 6217 var arg_pageToken = "foo"; |
| 6218 var arg_resultsAbove = 42; | 6218 var arg_resultsAbove = 42; |
| 6219 var arg_returnTopIfAbsent = true; | 6219 var arg_returnTopIfAbsent = true; |
| 6220 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6220 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6221 var path = (req.url).path; | 6221 var path = (req.url).path; |
| 6222 var pathOffset = 0; | 6222 var pathOffset = 0; |
| 6223 var index; | 6223 var index; |
| 6224 var subPart; | 6224 var subPart; |
| 6225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6226 pathOffset += 1; | 6226 pathOffset += 1; |
| 6227 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6227 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6228 pathOffset += 9; | 6228 pathOffset += 9; |
| 6229 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); | 6229 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); |
| 6230 pathOffset += 13; | 6230 pathOffset += 13; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6263 unittest.expect(core.int.parse(queryMap["resultsAbove"].first), unittest
.equals(arg_resultsAbove)); | 6263 unittest.expect(core.int.parse(queryMap["resultsAbove"].first), unittest
.equals(arg_resultsAbove)); |
| 6264 unittest.expect(queryMap["returnTopIfAbsent"].first, unittest.equals("$a
rg_returnTopIfAbsent")); | 6264 unittest.expect(queryMap["returnTopIfAbsent"].first, unittest.equals("$a
rg_returnTopIfAbsent")); |
| 6265 | 6265 |
| 6266 | 6266 |
| 6267 var h = { | 6267 var h = { |
| 6268 "content-type" : "application/json; charset=utf-8", | 6268 "content-type" : "application/json; charset=utf-8", |
| 6269 }; | 6269 }; |
| 6270 var resp = convert.JSON.encode(buildLeaderboardScores()); | 6270 var resp = convert.JSON.encode(buildLeaderboardScores()); |
| 6271 return new async.Future.value(stringResponse(200, h, resp)); | 6271 return new async.Future.value(stringResponse(200, h, resp)); |
| 6272 }), true); | 6272 }), true); |
| 6273 res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, consistenc
yToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults
, pageToken: arg_pageToken, resultsAbove: arg_resultsAbove, returnTopIfAbsent: a
rg_returnTopIfAbsent).then(unittest.expectAsync(((api.LeaderboardScores response
) { | 6273 res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, consistenc
yToken: arg_consistencyToken, language: arg_language, maxResults: arg_maxResults
, pageToken: arg_pageToken, resultsAbove: arg_resultsAbove, returnTopIfAbsent: a
rg_returnTopIfAbsent).then(unittest.expectAsync1(((api.LeaderboardScores respons
e) { |
| 6274 checkLeaderboardScores(response); | 6274 checkLeaderboardScores(response); |
| 6275 }))); | 6275 }))); |
| 6276 }); | 6276 }); |
| 6277 | 6277 |
| 6278 unittest.test("method--submit", () { | 6278 unittest.test("method--submit", () { |
| 6279 | 6279 |
| 6280 var mock = new HttpServerMock(); | 6280 var mock = new HttpServerMock(); |
| 6281 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6281 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6282 var arg_leaderboardId = "foo"; | 6282 var arg_leaderboardId = "foo"; |
| 6283 var arg_score = "foo"; | 6283 var arg_score = "foo"; |
| 6284 var arg_consistencyToken = "foo"; | 6284 var arg_consistencyToken = "foo"; |
| 6285 var arg_language = "foo"; | 6285 var arg_language = "foo"; |
| 6286 var arg_scoreTag = "foo"; | 6286 var arg_scoreTag = "foo"; |
| 6287 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6287 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6288 var path = (req.url).path; | 6288 var path = (req.url).path; |
| 6289 var pathOffset = 0; | 6289 var pathOffset = 0; |
| 6290 var index; | 6290 var index; |
| 6291 var subPart; | 6291 var subPart; |
| 6292 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6292 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6293 pathOffset += 1; | 6293 pathOffset += 1; |
| 6294 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6294 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6295 pathOffset += 9; | 6295 pathOffset += 9; |
| 6296 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); | 6296 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("leaderboards/")); |
| 6297 pathOffset += 13; | 6297 pathOffset += 13; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 6324 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6324 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6325 unittest.expect(queryMap["scoreTag"].first, unittest.equals(arg_scoreTag
)); | 6325 unittest.expect(queryMap["scoreTag"].first, unittest.equals(arg_scoreTag
)); |
| 6326 | 6326 |
| 6327 | 6327 |
| 6328 var h = { | 6328 var h = { |
| 6329 "content-type" : "application/json; charset=utf-8", | 6329 "content-type" : "application/json; charset=utf-8", |
| 6330 }; | 6330 }; |
| 6331 var resp = convert.JSON.encode(buildPlayerScoreResponse()); | 6331 var resp = convert.JSON.encode(buildPlayerScoreResponse()); |
| 6332 return new async.Future.value(stringResponse(200, h, resp)); | 6332 return new async.Future.value(stringResponse(200, h, resp)); |
| 6333 }), true); | 6333 }), true); |
| 6334 res.submit(arg_leaderboardId, arg_score, consistencyToken: arg_consistency
Token, language: arg_language, scoreTag: arg_scoreTag).then(unittest.expectAsync
(((api.PlayerScoreResponse response) { | 6334 res.submit(arg_leaderboardId, arg_score, consistencyToken: arg_consistency
Token, language: arg_language, scoreTag: arg_scoreTag).then(unittest.expectAsync
1(((api.PlayerScoreResponse response) { |
| 6335 checkPlayerScoreResponse(response); | 6335 checkPlayerScoreResponse(response); |
| 6336 }))); | 6336 }))); |
| 6337 }); | 6337 }); |
| 6338 | 6338 |
| 6339 unittest.test("method--submitMultiple", () { | 6339 unittest.test("method--submitMultiple", () { |
| 6340 | 6340 |
| 6341 var mock = new HttpServerMock(); | 6341 var mock = new HttpServerMock(); |
| 6342 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6342 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6343 var arg_request = buildPlayerScoreSubmissionList(); | 6343 var arg_request = buildPlayerScoreSubmissionList(); |
| 6344 var arg_consistencyToken = "foo"; | 6344 var arg_consistencyToken = "foo"; |
| 6345 var arg_language = "foo"; | 6345 var arg_language = "foo"; |
| 6346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6346 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6347 var obj = new api.PlayerScoreSubmissionList.fromJson(json); | 6347 var obj = new api.PlayerScoreSubmissionList.fromJson(json); |
| 6348 checkPlayerScoreSubmissionList(obj); | 6348 checkPlayerScoreSubmissionList(obj); |
| 6349 | 6349 |
| 6350 var path = (req.url).path; | 6350 var path = (req.url).path; |
| 6351 var pathOffset = 0; | 6351 var pathOffset = 0; |
| 6352 var index; | 6352 var index; |
| 6353 var subPart; | 6353 var subPart; |
| 6354 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6354 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6355 pathOffset += 1; | 6355 pathOffset += 1; |
| 6356 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6356 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6377 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6377 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6378 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6378 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6379 | 6379 |
| 6380 | 6380 |
| 6381 var h = { | 6381 var h = { |
| 6382 "content-type" : "application/json; charset=utf-8", | 6382 "content-type" : "application/json; charset=utf-8", |
| 6383 }; | 6383 }; |
| 6384 var resp = convert.JSON.encode(buildPlayerScoreListResponse()); | 6384 var resp = convert.JSON.encode(buildPlayerScoreListResponse()); |
| 6385 return new async.Future.value(stringResponse(200, h, resp)); | 6385 return new async.Future.value(stringResponse(200, h, resp)); |
| 6386 }), true); | 6386 }), true); |
| 6387 res.submitMultiple(arg_request, consistencyToken: arg_consistencyToken, la
nguage: arg_language).then(unittest.expectAsync(((api.PlayerScoreListResponse re
sponse) { | 6387 res.submitMultiple(arg_request, consistencyToken: arg_consistencyToken, la
nguage: arg_language).then(unittest.expectAsync1(((api.PlayerScoreListResponse r
esponse) { |
| 6388 checkPlayerScoreListResponse(response); | 6388 checkPlayerScoreListResponse(response); |
| 6389 }))); | 6389 }))); |
| 6390 }); | 6390 }); |
| 6391 | 6391 |
| 6392 }); | 6392 }); |
| 6393 | 6393 |
| 6394 | 6394 |
| 6395 unittest.group("resource-SnapshotsResourceApi", () { | 6395 unittest.group("resource-SnapshotsResourceApi", () { |
| 6396 unittest.test("method--get", () { | 6396 unittest.test("method--get", () { |
| 6397 | 6397 |
| 6398 var mock = new HttpServerMock(); | 6398 var mock = new HttpServerMock(); |
| 6399 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; | 6399 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; |
| 6400 var arg_snapshotId = "foo"; | 6400 var arg_snapshotId = "foo"; |
| 6401 var arg_consistencyToken = "foo"; | 6401 var arg_consistencyToken = "foo"; |
| 6402 var arg_language = "foo"; | 6402 var arg_language = "foo"; |
| 6403 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6403 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6404 var path = (req.url).path; | 6404 var path = (req.url).path; |
| 6405 var pathOffset = 0; | 6405 var pathOffset = 0; |
| 6406 var index; | 6406 var index; |
| 6407 var subPart; | 6407 var subPart; |
| 6408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6409 pathOffset += 1; | 6409 pathOffset += 1; |
| 6410 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6410 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6411 pathOffset += 9; | 6411 pathOffset += 9; |
| 6412 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("snapshots/")); | 6412 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("snapshots/")); |
| 6413 pathOffset += 10; | 6413 pathOffset += 10; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6434 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6434 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6435 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6435 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6436 | 6436 |
| 6437 | 6437 |
| 6438 var h = { | 6438 var h = { |
| 6439 "content-type" : "application/json; charset=utf-8", | 6439 "content-type" : "application/json; charset=utf-8", |
| 6440 }; | 6440 }; |
| 6441 var resp = convert.JSON.encode(buildSnapshot()); | 6441 var resp = convert.JSON.encode(buildSnapshot()); |
| 6442 return new async.Future.value(stringResponse(200, h, resp)); | 6442 return new async.Future.value(stringResponse(200, h, resp)); |
| 6443 }), true); | 6443 }), true); |
| 6444 res.get(arg_snapshotId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.Snapshot response) { | 6444 res.get(arg_snapshotId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.Snapshot response) { |
| 6445 checkSnapshot(response); | 6445 checkSnapshot(response); |
| 6446 }))); | 6446 }))); |
| 6447 }); | 6447 }); |
| 6448 | 6448 |
| 6449 unittest.test("method--list", () { | 6449 unittest.test("method--list", () { |
| 6450 | 6450 |
| 6451 var mock = new HttpServerMock(); | 6451 var mock = new HttpServerMock(); |
| 6452 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; | 6452 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; |
| 6453 var arg_playerId = "foo"; | 6453 var arg_playerId = "foo"; |
| 6454 var arg_consistencyToken = "foo"; | 6454 var arg_consistencyToken = "foo"; |
| 6455 var arg_language = "foo"; | 6455 var arg_language = "foo"; |
| 6456 var arg_maxResults = 42; | 6456 var arg_maxResults = 42; |
| 6457 var arg_pageToken = "foo"; | 6457 var arg_pageToken = "foo"; |
| 6458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6458 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6459 var path = (req.url).path; | 6459 var path = (req.url).path; |
| 6460 var pathOffset = 0; | 6460 var pathOffset = 0; |
| 6461 var index; | 6461 var index; |
| 6462 var subPart; | 6462 var subPart; |
| 6463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6464 pathOffset += 1; | 6464 pathOffset += 1; |
| 6465 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6465 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6466 pathOffset += 9; | 6466 pathOffset += 9; |
| 6467 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); | 6467 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("players/")); |
| 6468 pathOffset += 8; | 6468 pathOffset += 8; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 6495 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6495 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6496 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6496 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6497 | 6497 |
| 6498 | 6498 |
| 6499 var h = { | 6499 var h = { |
| 6500 "content-type" : "application/json; charset=utf-8", | 6500 "content-type" : "application/json; charset=utf-8", |
| 6501 }; | 6501 }; |
| 6502 var resp = convert.JSON.encode(buildSnapshotListResponse()); | 6502 var resp = convert.JSON.encode(buildSnapshotListResponse()); |
| 6503 return new async.Future.value(stringResponse(200, h, resp)); | 6503 return new async.Future.value(stringResponse(200, h, resp)); |
| 6504 }), true); | 6504 }), true); |
| 6505 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest
.expectAsync(((api.SnapshotListResponse response) { | 6505 res.list(arg_playerId, consistencyToken: arg_consistencyToken, language: a
rg_language, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest
.expectAsync1(((api.SnapshotListResponse response) { |
| 6506 checkSnapshotListResponse(response); | 6506 checkSnapshotListResponse(response); |
| 6507 }))); | 6507 }))); |
| 6508 }); | 6508 }); |
| 6509 | 6509 |
| 6510 }); | 6510 }); |
| 6511 | 6511 |
| 6512 | 6512 |
| 6513 unittest.group("resource-TurnBasedMatchesResourceApi", () { | 6513 unittest.group("resource-TurnBasedMatchesResourceApi", () { |
| 6514 unittest.test("method--cancel", () { | 6514 unittest.test("method--cancel", () { |
| 6515 | 6515 |
| 6516 var mock = new HttpServerMock(); | 6516 var mock = new HttpServerMock(); |
| 6517 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6517 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6518 var arg_matchId = "foo"; | 6518 var arg_matchId = "foo"; |
| 6519 var arg_consistencyToken = "foo"; | 6519 var arg_consistencyToken = "foo"; |
| 6520 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6520 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6521 var path = (req.url).path; | 6521 var path = (req.url).path; |
| 6522 var pathOffset = 0; | 6522 var pathOffset = 0; |
| 6523 var index; | 6523 var index; |
| 6524 var subPart; | 6524 var subPart; |
| 6525 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6525 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6526 pathOffset += 1; | 6526 pathOffset += 1; |
| 6527 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6527 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6528 pathOffset += 9; | 6528 pathOffset += 9; |
| 6529 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6529 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6530 pathOffset += 17; | 6530 pathOffset += 17; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6554 } | 6554 } |
| 6555 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6555 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6556 | 6556 |
| 6557 | 6557 |
| 6558 var h = { | 6558 var h = { |
| 6559 "content-type" : "application/json; charset=utf-8", | 6559 "content-type" : "application/json; charset=utf-8", |
| 6560 }; | 6560 }; |
| 6561 var resp = ""; | 6561 var resp = ""; |
| 6562 return new async.Future.value(stringResponse(200, h, resp)); | 6562 return new async.Future.value(stringResponse(200, h, resp)); |
| 6563 }), true); | 6563 }), true); |
| 6564 res.cancel(arg_matchId, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync((_) {})); | 6564 res.cancel(arg_matchId, consistencyToken: arg_consistencyToken).then(unitt
est.expectAsync1((_) {})); |
| 6565 }); | 6565 }); |
| 6566 | 6566 |
| 6567 unittest.test("method--create", () { | 6567 unittest.test("method--create", () { |
| 6568 | 6568 |
| 6569 var mock = new HttpServerMock(); | 6569 var mock = new HttpServerMock(); |
| 6570 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6570 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6571 var arg_request = buildTurnBasedMatchCreateRequest(); | 6571 var arg_request = buildTurnBasedMatchCreateRequest(); |
| 6572 var arg_consistencyToken = "foo"; | 6572 var arg_consistencyToken = "foo"; |
| 6573 var arg_language = "foo"; | 6573 var arg_language = "foo"; |
| 6574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6574 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6575 var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); | 6575 var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); |
| 6576 checkTurnBasedMatchCreateRequest(obj); | 6576 checkTurnBasedMatchCreateRequest(obj); |
| 6577 | 6577 |
| 6578 var path = (req.url).path; | 6578 var path = (req.url).path; |
| 6579 var pathOffset = 0; | 6579 var pathOffset = 0; |
| 6580 var index; | 6580 var index; |
| 6581 var subPart; | 6581 var subPart; |
| 6582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6583 pathOffset += 1; | 6583 pathOffset += 1; |
| 6584 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6584 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6605 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6605 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6606 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6606 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6607 | 6607 |
| 6608 | 6608 |
| 6609 var h = { | 6609 var h = { |
| 6610 "content-type" : "application/json; charset=utf-8", | 6610 "content-type" : "application/json; charset=utf-8", |
| 6611 }; | 6611 }; |
| 6612 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6612 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6613 return new async.Future.value(stringResponse(200, h, resp)); | 6613 return new async.Future.value(stringResponse(200, h, resp)); |
| 6614 }), true); | 6614 }), true); |
| 6615 res.create(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 6615 res.create(arg_request, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { |
| 6616 checkTurnBasedMatch(response); | 6616 checkTurnBasedMatch(response); |
| 6617 }))); | 6617 }))); |
| 6618 }); | 6618 }); |
| 6619 | 6619 |
| 6620 unittest.test("method--decline", () { | 6620 unittest.test("method--decline", () { |
| 6621 | 6621 |
| 6622 var mock = new HttpServerMock(); | 6622 var mock = new HttpServerMock(); |
| 6623 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6623 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6624 var arg_matchId = "foo"; | 6624 var arg_matchId = "foo"; |
| 6625 var arg_consistencyToken = "foo"; | 6625 var arg_consistencyToken = "foo"; |
| 6626 var arg_language = "foo"; | 6626 var arg_language = "foo"; |
| 6627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6627 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6628 var path = (req.url).path; | 6628 var path = (req.url).path; |
| 6629 var pathOffset = 0; | 6629 var pathOffset = 0; |
| 6630 var index; | 6630 var index; |
| 6631 var subPart; | 6631 var subPart; |
| 6632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6633 pathOffset += 1; | 6633 pathOffset += 1; |
| 6634 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6634 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6635 pathOffset += 9; | 6635 pathOffset += 9; |
| 6636 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6636 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6637 pathOffset += 17; | 6637 pathOffset += 17; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6662 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6662 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6663 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6663 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6664 | 6664 |
| 6665 | 6665 |
| 6666 var h = { | 6666 var h = { |
| 6667 "content-type" : "application/json; charset=utf-8", | 6667 "content-type" : "application/json; charset=utf-8", |
| 6668 }; | 6668 }; |
| 6669 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6669 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6670 return new async.Future.value(stringResponse(200, h, resp)); | 6670 return new async.Future.value(stringResponse(200, h, resp)); |
| 6671 }), true); | 6671 }), true); |
| 6672 res.decline(arg_matchId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 6672 res.decline(arg_matchId, consistencyToken: arg_consistencyToken, language:
arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { |
| 6673 checkTurnBasedMatch(response); | 6673 checkTurnBasedMatch(response); |
| 6674 }))); | 6674 }))); |
| 6675 }); | 6675 }); |
| 6676 | 6676 |
| 6677 unittest.test("method--dismiss", () { | 6677 unittest.test("method--dismiss", () { |
| 6678 | 6678 |
| 6679 var mock = new HttpServerMock(); | 6679 var mock = new HttpServerMock(); |
| 6680 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6680 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6681 var arg_matchId = "foo"; | 6681 var arg_matchId = "foo"; |
| 6682 var arg_consistencyToken = "foo"; | 6682 var arg_consistencyToken = "foo"; |
| 6683 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6683 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6684 var path = (req.url).path; | 6684 var path = (req.url).path; |
| 6685 var pathOffset = 0; | 6685 var pathOffset = 0; |
| 6686 var index; | 6686 var index; |
| 6687 var subPart; | 6687 var subPart; |
| 6688 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6688 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6689 pathOffset += 1; | 6689 pathOffset += 1; |
| 6690 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6690 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6691 pathOffset += 9; | 6691 pathOffset += 9; |
| 6692 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6692 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6693 pathOffset += 17; | 6693 pathOffset += 17; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6717 } | 6717 } |
| 6718 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6718 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6719 | 6719 |
| 6720 | 6720 |
| 6721 var h = { | 6721 var h = { |
| 6722 "content-type" : "application/json; charset=utf-8", | 6722 "content-type" : "application/json; charset=utf-8", |
| 6723 }; | 6723 }; |
| 6724 var resp = ""; | 6724 var resp = ""; |
| 6725 return new async.Future.value(stringResponse(200, h, resp)); | 6725 return new async.Future.value(stringResponse(200, h, resp)); |
| 6726 }), true); | 6726 }), true); |
| 6727 res.dismiss(arg_matchId, consistencyToken: arg_consistencyToken).then(unit
test.expectAsync((_) {})); | 6727 res.dismiss(arg_matchId, consistencyToken: arg_consistencyToken).then(unit
test.expectAsync1((_) {})); |
| 6728 }); | 6728 }); |
| 6729 | 6729 |
| 6730 unittest.test("method--finish", () { | 6730 unittest.test("method--finish", () { |
| 6731 | 6731 |
| 6732 var mock = new HttpServerMock(); | 6732 var mock = new HttpServerMock(); |
| 6733 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6733 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6734 var arg_request = buildTurnBasedMatchResults(); | 6734 var arg_request = buildTurnBasedMatchResults(); |
| 6735 var arg_matchId = "foo"; | 6735 var arg_matchId = "foo"; |
| 6736 var arg_consistencyToken = "foo"; | 6736 var arg_consistencyToken = "foo"; |
| 6737 var arg_language = "foo"; | 6737 var arg_language = "foo"; |
| 6738 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6738 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6739 var obj = new api.TurnBasedMatchResults.fromJson(json); | 6739 var obj = new api.TurnBasedMatchResults.fromJson(json); |
| 6740 checkTurnBasedMatchResults(obj); | 6740 checkTurnBasedMatchResults(obj); |
| 6741 | 6741 |
| 6742 var path = (req.url).path; | 6742 var path = (req.url).path; |
| 6743 var pathOffset = 0; | 6743 var pathOffset = 0; |
| 6744 var index; | 6744 var index; |
| 6745 var subPart; | 6745 var subPart; |
| 6746 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6746 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6747 pathOffset += 1; | 6747 pathOffset += 1; |
| 6748 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6748 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6776 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6776 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6777 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6777 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6778 | 6778 |
| 6779 | 6779 |
| 6780 var h = { | 6780 var h = { |
| 6781 "content-type" : "application/json; charset=utf-8", | 6781 "content-type" : "application/json; charset=utf-8", |
| 6782 }; | 6782 }; |
| 6783 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6783 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6784 return new async.Future.value(stringResponse(200, h, resp)); | 6784 return new async.Future.value(stringResponse(200, h, resp)); |
| 6785 }), true); | 6785 }), true); |
| 6786 res.finish(arg_request, arg_matchId, consistencyToken: arg_consistencyToke
n, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch respon
se) { | 6786 res.finish(arg_request, arg_matchId, consistencyToken: arg_consistencyToke
n, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch respo
nse) { |
| 6787 checkTurnBasedMatch(response); | 6787 checkTurnBasedMatch(response); |
| 6788 }))); | 6788 }))); |
| 6789 }); | 6789 }); |
| 6790 | 6790 |
| 6791 unittest.test("method--get", () { | 6791 unittest.test("method--get", () { |
| 6792 | 6792 |
| 6793 var mock = new HttpServerMock(); | 6793 var mock = new HttpServerMock(); |
| 6794 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6794 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6795 var arg_matchId = "foo"; | 6795 var arg_matchId = "foo"; |
| 6796 var arg_consistencyToken = "foo"; | 6796 var arg_consistencyToken = "foo"; |
| 6797 var arg_includeMatchData = true; | 6797 var arg_includeMatchData = true; |
| 6798 var arg_language = "foo"; | 6798 var arg_language = "foo"; |
| 6799 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6799 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6800 var path = (req.url).path; | 6800 var path = (req.url).path; |
| 6801 var pathOffset = 0; | 6801 var pathOffset = 0; |
| 6802 var index; | 6802 var index; |
| 6803 var subPart; | 6803 var subPart; |
| 6804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6805 pathOffset += 1; | 6805 pathOffset += 1; |
| 6806 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6806 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6807 pathOffset += 9; | 6807 pathOffset += 9; |
| 6808 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6808 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6809 pathOffset += 17; | 6809 pathOffset += 17; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6831 unittest.expect(queryMap["includeMatchData"].first, unittest.equals("$ar
g_includeMatchData")); | 6831 unittest.expect(queryMap["includeMatchData"].first, unittest.equals("$ar
g_includeMatchData")); |
| 6832 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6832 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6833 | 6833 |
| 6834 | 6834 |
| 6835 var h = { | 6835 var h = { |
| 6836 "content-type" : "application/json; charset=utf-8", | 6836 "content-type" : "application/json; charset=utf-8", |
| 6837 }; | 6837 }; |
| 6838 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6838 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6839 return new async.Future.value(stringResponse(200, h, resp)); | 6839 return new async.Future.value(stringResponse(200, h, resp)); |
| 6840 }), true); | 6840 }), true); |
| 6841 res.get(arg_matchId, consistencyToken: arg_consistencyToken, includeMatchD
ata: arg_includeMatchData, language: arg_language).then(unittest.expectAsync(((a
pi.TurnBasedMatch response) { | 6841 res.get(arg_matchId, consistencyToken: arg_consistencyToken, includeMatchD
ata: arg_includeMatchData, language: arg_language).then(unittest.expectAsync1(((
api.TurnBasedMatch response) { |
| 6842 checkTurnBasedMatch(response); | 6842 checkTurnBasedMatch(response); |
| 6843 }))); | 6843 }))); |
| 6844 }); | 6844 }); |
| 6845 | 6845 |
| 6846 unittest.test("method--join", () { | 6846 unittest.test("method--join", () { |
| 6847 | 6847 |
| 6848 var mock = new HttpServerMock(); | 6848 var mock = new HttpServerMock(); |
| 6849 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6849 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6850 var arg_matchId = "foo"; | 6850 var arg_matchId = "foo"; |
| 6851 var arg_consistencyToken = "foo"; | 6851 var arg_consistencyToken = "foo"; |
| 6852 var arg_language = "foo"; | 6852 var arg_language = "foo"; |
| 6853 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6853 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6854 var path = (req.url).path; | 6854 var path = (req.url).path; |
| 6855 var pathOffset = 0; | 6855 var pathOffset = 0; |
| 6856 var index; | 6856 var index; |
| 6857 var subPart; | 6857 var subPart; |
| 6858 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6858 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6859 pathOffset += 1; | 6859 pathOffset += 1; |
| 6860 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6860 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6861 pathOffset += 9; | 6861 pathOffset += 9; |
| 6862 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6862 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6863 pathOffset += 17; | 6863 pathOffset += 17; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6888 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6888 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6889 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6889 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6890 | 6890 |
| 6891 | 6891 |
| 6892 var h = { | 6892 var h = { |
| 6893 "content-type" : "application/json; charset=utf-8", | 6893 "content-type" : "application/json; charset=utf-8", |
| 6894 }; | 6894 }; |
| 6895 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6895 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6896 return new async.Future.value(stringResponse(200, h, resp)); | 6896 return new async.Future.value(stringResponse(200, h, resp)); |
| 6897 }), true); | 6897 }), true); |
| 6898 res.join(arg_matchId, consistencyToken: arg_consistencyToken, language: ar
g_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 6898 res.join(arg_matchId, consistencyToken: arg_consistencyToken, language: ar
g_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { |
| 6899 checkTurnBasedMatch(response); | 6899 checkTurnBasedMatch(response); |
| 6900 }))); | 6900 }))); |
| 6901 }); | 6901 }); |
| 6902 | 6902 |
| 6903 unittest.test("method--leave", () { | 6903 unittest.test("method--leave", () { |
| 6904 | 6904 |
| 6905 var mock = new HttpServerMock(); | 6905 var mock = new HttpServerMock(); |
| 6906 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6906 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6907 var arg_matchId = "foo"; | 6907 var arg_matchId = "foo"; |
| 6908 var arg_consistencyToken = "foo"; | 6908 var arg_consistencyToken = "foo"; |
| 6909 var arg_language = "foo"; | 6909 var arg_language = "foo"; |
| 6910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6910 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6911 var path = (req.url).path; | 6911 var path = (req.url).path; |
| 6912 var pathOffset = 0; | 6912 var pathOffset = 0; |
| 6913 var index; | 6913 var index; |
| 6914 var subPart; | 6914 var subPart; |
| 6915 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6915 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6916 pathOffset += 1; | 6916 pathOffset += 1; |
| 6917 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6917 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6918 pathOffset += 9; | 6918 pathOffset += 9; |
| 6919 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6919 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6920 pathOffset += 17; | 6920 pathOffset += 17; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6945 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 6945 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 6946 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6946 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6947 | 6947 |
| 6948 | 6948 |
| 6949 var h = { | 6949 var h = { |
| 6950 "content-type" : "application/json; charset=utf-8", | 6950 "content-type" : "application/json; charset=utf-8", |
| 6951 }; | 6951 }; |
| 6952 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6952 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6953 return new async.Future.value(stringResponse(200, h, resp)); | 6953 return new async.Future.value(stringResponse(200, h, resp)); |
| 6954 }), true); | 6954 }), true); |
| 6955 res.leave(arg_matchId, consistencyToken: arg_consistencyToken, language: a
rg_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 6955 res.leave(arg_matchId, consistencyToken: arg_consistencyToken, language: a
rg_language).then(unittest.expectAsync1(((api.TurnBasedMatch response) { |
| 6956 checkTurnBasedMatch(response); | 6956 checkTurnBasedMatch(response); |
| 6957 }))); | 6957 }))); |
| 6958 }); | 6958 }); |
| 6959 | 6959 |
| 6960 unittest.test("method--leaveTurn", () { | 6960 unittest.test("method--leaveTurn", () { |
| 6961 | 6961 |
| 6962 var mock = new HttpServerMock(); | 6962 var mock = new HttpServerMock(); |
| 6963 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6963 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6964 var arg_matchId = "foo"; | 6964 var arg_matchId = "foo"; |
| 6965 var arg_matchVersion = 42; | 6965 var arg_matchVersion = 42; |
| 6966 var arg_consistencyToken = "foo"; | 6966 var arg_consistencyToken = "foo"; |
| 6967 var arg_language = "foo"; | 6967 var arg_language = "foo"; |
| 6968 var arg_pendingParticipantId = "foo"; | 6968 var arg_pendingParticipantId = "foo"; |
| 6969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6969 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6970 var path = (req.url).path; | 6970 var path = (req.url).path; |
| 6971 var pathOffset = 0; | 6971 var pathOffset = 0; |
| 6972 var index; | 6972 var index; |
| 6973 var subPart; | 6973 var subPart; |
| 6974 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6974 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6975 pathOffset += 1; | 6975 pathOffset += 1; |
| 6976 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6976 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 6977 pathOffset += 9; | 6977 pathOffset += 9; |
| 6978 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 6978 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 6979 pathOffset += 17; | 6979 pathOffset += 17; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7006 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 7006 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 7007 unittest.expect(queryMap["pendingParticipantId"].first, unittest.equals(
arg_pendingParticipantId)); | 7007 unittest.expect(queryMap["pendingParticipantId"].first, unittest.equals(
arg_pendingParticipantId)); |
| 7008 | 7008 |
| 7009 | 7009 |
| 7010 var h = { | 7010 var h = { |
| 7011 "content-type" : "application/json; charset=utf-8", | 7011 "content-type" : "application/json; charset=utf-8", |
| 7012 }; | 7012 }; |
| 7013 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 7013 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 7014 return new async.Future.value(stringResponse(200, h, resp)); | 7014 return new async.Future.value(stringResponse(200, h, resp)); |
| 7015 }), true); | 7015 }), true); |
| 7016 res.leaveTurn(arg_matchId, arg_matchVersion, consistencyToken: arg_consist
encyToken, language: arg_language, pendingParticipantId: arg_pendingParticipantI
d).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 7016 res.leaveTurn(arg_matchId, arg_matchVersion, consistencyToken: arg_consist
encyToken, language: arg_language, pendingParticipantId: arg_pendingParticipantI
d).then(unittest.expectAsync1(((api.TurnBasedMatch response) { |
| 7017 checkTurnBasedMatch(response); | 7017 checkTurnBasedMatch(response); |
| 7018 }))); | 7018 }))); |
| 7019 }); | 7019 }); |
| 7020 | 7020 |
| 7021 unittest.test("method--list", () { | 7021 unittest.test("method--list", () { |
| 7022 | 7022 |
| 7023 var mock = new HttpServerMock(); | 7023 var mock = new HttpServerMock(); |
| 7024 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 7024 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 7025 var arg_consistencyToken = "foo"; | 7025 var arg_consistencyToken = "foo"; |
| 7026 var arg_includeMatchData = true; | 7026 var arg_includeMatchData = true; |
| 7027 var arg_language = "foo"; | 7027 var arg_language = "foo"; |
| 7028 var arg_maxCompletedMatches = 42; | 7028 var arg_maxCompletedMatches = 42; |
| 7029 var arg_maxResults = 42; | 7029 var arg_maxResults = 42; |
| 7030 var arg_pageToken = "foo"; | 7030 var arg_pageToken = "foo"; |
| 7031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7031 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7032 var path = (req.url).path; | 7032 var path = (req.url).path; |
| 7033 var pathOffset = 0; | 7033 var pathOffset = 0; |
| 7034 var index; | 7034 var index; |
| 7035 var subPart; | 7035 var subPart; |
| 7036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7037 pathOffset += 1; | 7037 pathOffset += 1; |
| 7038 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 7038 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 7039 pathOffset += 9; | 7039 pathOffset += 9; |
| 7040 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("turnbasedmatches")); | 7040 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("turnbasedmatches")); |
| 7041 pathOffset += 16; | 7041 pathOffset += 16; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7063 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7063 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7064 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7064 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7065 | 7065 |
| 7066 | 7066 |
| 7067 var h = { | 7067 var h = { |
| 7068 "content-type" : "application/json; charset=utf-8", | 7068 "content-type" : "application/json; charset=utf-8", |
| 7069 }; | 7069 }; |
| 7070 var resp = convert.JSON.encode(buildTurnBasedMatchList()); | 7070 var resp = convert.JSON.encode(buildTurnBasedMatchList()); |
| 7071 return new async.Future.value(stringResponse(200, h, resp)); | 7071 return new async.Future.value(stringResponse(200, h, resp)); |
| 7072 }), true); | 7072 }), true); |
| 7073 res.list(consistencyToken: arg_consistencyToken, includeMatchData: arg_inc
ludeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatc
hes, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectA
sync(((api.TurnBasedMatchList response) { | 7073 res.list(consistencyToken: arg_consistencyToken, includeMatchData: arg_inc
ludeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatc
hes, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectA
sync1(((api.TurnBasedMatchList response) { |
| 7074 checkTurnBasedMatchList(response); | 7074 checkTurnBasedMatchList(response); |
| 7075 }))); | 7075 }))); |
| 7076 }); | 7076 }); |
| 7077 | 7077 |
| 7078 unittest.test("method--rematch", () { | 7078 unittest.test("method--rematch", () { |
| 7079 | 7079 |
| 7080 var mock = new HttpServerMock(); | 7080 var mock = new HttpServerMock(); |
| 7081 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 7081 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 7082 var arg_matchId = "foo"; | 7082 var arg_matchId = "foo"; |
| 7083 var arg_consistencyToken = "foo"; | 7083 var arg_consistencyToken = "foo"; |
| 7084 var arg_language = "foo"; | 7084 var arg_language = "foo"; |
| 7085 var arg_requestId = "foo"; | 7085 var arg_requestId = "foo"; |
| 7086 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7086 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7087 var path = (req.url).path; | 7087 var path = (req.url).path; |
| 7088 var pathOffset = 0; | 7088 var pathOffset = 0; |
| 7089 var index; | 7089 var index; |
| 7090 var subPart; | 7090 var subPart; |
| 7091 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7091 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7092 pathOffset += 1; | 7092 pathOffset += 1; |
| 7093 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 7093 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 7094 pathOffset += 9; | 7094 pathOffset += 9; |
| 7095 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); | 7095 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("turnbasedmatches/")); |
| 7096 pathOffset += 17; | 7096 pathOffset += 17; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 7122 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 7122 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 7123 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 7123 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 7124 | 7124 |
| 7125 | 7125 |
| 7126 var h = { | 7126 var h = { |
| 7127 "content-type" : "application/json; charset=utf-8", | 7127 "content-type" : "application/json; charset=utf-8", |
| 7128 }; | 7128 }; |
| 7129 var resp = convert.JSON.encode(buildTurnBasedMatchRematch()); | 7129 var resp = convert.JSON.encode(buildTurnBasedMatchRematch()); |
| 7130 return new async.Future.value(stringResponse(200, h, resp)); | 7130 return new async.Future.value(stringResponse(200, h, resp)); |
| 7131 }), true); | 7131 }), true); |
| 7132 res.rematch(arg_matchId, consistencyToken: arg_consistencyToken, language:
arg_language, requestId: arg_requestId).then(unittest.expectAsync(((api.TurnBas
edMatchRematch response) { | 7132 res.rematch(arg_matchId, consistencyToken: arg_consistencyToken, language:
arg_language, requestId: arg_requestId).then(unittest.expectAsync1(((api.TurnBa
sedMatchRematch response) { |
| 7133 checkTurnBasedMatchRematch(response); | 7133 checkTurnBasedMatchRematch(response); |
| 7134 }))); | 7134 }))); |
| 7135 }); | 7135 }); |
| 7136 | 7136 |
| 7137 unittest.test("method--sync", () { | 7137 unittest.test("method--sync", () { |
| 7138 | 7138 |
| 7139 var mock = new HttpServerMock(); | 7139 var mock = new HttpServerMock(); |
| 7140 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 7140 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 7141 var arg_consistencyToken = "foo"; | 7141 var arg_consistencyToken = "foo"; |
| 7142 var arg_includeMatchData = true; | 7142 var arg_includeMatchData = true; |
| 7143 var arg_language = "foo"; | 7143 var arg_language = "foo"; |
| 7144 var arg_maxCompletedMatches = 42; | 7144 var arg_maxCompletedMatches = 42; |
| 7145 var arg_maxResults = 42; | 7145 var arg_maxResults = 42; |
| 7146 var arg_pageToken = "foo"; | 7146 var arg_pageToken = "foo"; |
| 7147 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7147 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7148 var path = (req.url).path; | 7148 var path = (req.url).path; |
| 7149 var pathOffset = 0; | 7149 var pathOffset = 0; |
| 7150 var index; | 7150 var index; |
| 7151 var subPart; | 7151 var subPart; |
| 7152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7153 pathOffset += 1; | 7153 pathOffset += 1; |
| 7154 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 7154 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 7155 pathOffset += 9; | 7155 pathOffset += 9; |
| 7156 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("turnbasedmatches/sync")); | 7156 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("turnbasedmatches/sync")); |
| 7157 pathOffset += 21; | 7157 pathOffset += 21; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7179 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7179 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7180 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7180 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7181 | 7181 |
| 7182 | 7182 |
| 7183 var h = { | 7183 var h = { |
| 7184 "content-type" : "application/json; charset=utf-8", | 7184 "content-type" : "application/json; charset=utf-8", |
| 7185 }; | 7185 }; |
| 7186 var resp = convert.JSON.encode(buildTurnBasedMatchSync()); | 7186 var resp = convert.JSON.encode(buildTurnBasedMatchSync()); |
| 7187 return new async.Future.value(stringResponse(200, h, resp)); | 7187 return new async.Future.value(stringResponse(200, h, resp)); |
| 7188 }), true); | 7188 }), true); |
| 7189 res.sync(consistencyToken: arg_consistencyToken, includeMatchData: arg_inc
ludeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatc
hes, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectA
sync(((api.TurnBasedMatchSync response) { | 7189 res.sync(consistencyToken: arg_consistencyToken, includeMatchData: arg_inc
ludeMatchData, language: arg_language, maxCompletedMatches: arg_maxCompletedMatc
hes, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectA
sync1(((api.TurnBasedMatchSync response) { |
| 7190 checkTurnBasedMatchSync(response); | 7190 checkTurnBasedMatchSync(response); |
| 7191 }))); | 7191 }))); |
| 7192 }); | 7192 }); |
| 7193 | 7193 |
| 7194 unittest.test("method--takeTurn", () { | 7194 unittest.test("method--takeTurn", () { |
| 7195 | 7195 |
| 7196 var mock = new HttpServerMock(); | 7196 var mock = new HttpServerMock(); |
| 7197 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 7197 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 7198 var arg_request = buildTurnBasedMatchTurn(); | 7198 var arg_request = buildTurnBasedMatchTurn(); |
| 7199 var arg_matchId = "foo"; | 7199 var arg_matchId = "foo"; |
| 7200 var arg_consistencyToken = "foo"; | 7200 var arg_consistencyToken = "foo"; |
| 7201 var arg_language = "foo"; | 7201 var arg_language = "foo"; |
| 7202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7202 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7203 var obj = new api.TurnBasedMatchTurn.fromJson(json); | 7203 var obj = new api.TurnBasedMatchTurn.fromJson(json); |
| 7204 checkTurnBasedMatchTurn(obj); | 7204 checkTurnBasedMatchTurn(obj); |
| 7205 | 7205 |
| 7206 var path = (req.url).path; | 7206 var path = (req.url).path; |
| 7207 var pathOffset = 0; | 7207 var pathOffset = 0; |
| 7208 var index; | 7208 var index; |
| 7209 var subPart; | 7209 var subPart; |
| 7210 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7210 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7211 pathOffset += 1; | 7211 pathOffset += 1; |
| 7212 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 7212 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7240 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); | 7240 unittest.expect(queryMap["consistencyToken"].first, unittest.equals(arg_
consistencyToken)); |
| 7241 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 7241 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 7242 | 7242 |
| 7243 | 7243 |
| 7244 var h = { | 7244 var h = { |
| 7245 "content-type" : "application/json; charset=utf-8", | 7245 "content-type" : "application/json; charset=utf-8", |
| 7246 }; | 7246 }; |
| 7247 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 7247 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 7248 return new async.Future.value(stringResponse(200, h, resp)); | 7248 return new async.Future.value(stringResponse(200, h, resp)); |
| 7249 }), true); | 7249 }), true); |
| 7250 res.takeTurn(arg_request, arg_matchId, consistencyToken: arg_consistencyTo
ken, language: arg_language).then(unittest.expectAsync(((api.TurnBasedMatch resp
onse) { | 7250 res.takeTurn(arg_request, arg_matchId, consistencyToken: arg_consistencyTo
ken, language: arg_language).then(unittest.expectAsync1(((api.TurnBasedMatch res
ponse) { |
| 7251 checkTurnBasedMatch(response); | 7251 checkTurnBasedMatch(response); |
| 7252 }))); | 7252 }))); |
| 7253 }); | 7253 }); |
| 7254 | 7254 |
| 7255 }); | 7255 }); |
| 7256 | 7256 |
| 7257 | 7257 |
| 7258 } | 7258 } |
| 7259 | 7259 |
| OLD | NEW |