| 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:unittest/unittest.dart' as unittest; |
| 11 import 'package:googleapis/common/common.dart' as common; | |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
| 13 import '../common/common_internal_test.dart' as common_test; | |
| 14 | 11 |
| 15 import 'package:googleapis/games/v1.dart' as api; | 12 import 'package:googleapis/games/v1.dart' as api; |
| 16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 18 | 53 |
| 19 core.int buildCounterAchievementDefinition = 0; | 54 core.int buildCounterAchievementDefinition = 0; |
| 20 buildAchievementDefinition() { | 55 buildAchievementDefinition() { |
| 21 var o = new api.AchievementDefinition(); | 56 var o = new api.AchievementDefinition(); |
| 22 buildCounterAchievementDefinition++; | 57 buildCounterAchievementDefinition++; |
| 23 if (buildCounterAchievementDefinition < 3) { | 58 if (buildCounterAchievementDefinition < 3) { |
| 24 o.achievementType = "foo"; | 59 o.achievementType = "foo"; |
| 25 o.description = "foo"; | 60 o.description = "foo"; |
| 26 o.experiencePoints = "foo"; | 61 o.experiencePoints = "foo"; |
| 27 o.formattedTotalSteps = "foo"; | 62 o.formattedTotalSteps = "foo"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 unittest.expect(o.isUnlockedIconUrlDefault, unittest.isTrue); | 87 unittest.expect(o.isUnlockedIconUrlDefault, unittest.isTrue); |
| 53 unittest.expect(o.kind, unittest.equals('foo')); | 88 unittest.expect(o.kind, unittest.equals('foo')); |
| 54 unittest.expect(o.name, unittest.equals('foo')); | 89 unittest.expect(o.name, unittest.equals('foo')); |
| 55 unittest.expect(o.revealedIconUrl, unittest.equals('foo')); | 90 unittest.expect(o.revealedIconUrl, unittest.equals('foo')); |
| 56 unittest.expect(o.totalSteps, unittest.equals(42)); | 91 unittest.expect(o.totalSteps, unittest.equals(42)); |
| 57 unittest.expect(o.unlockedIconUrl, unittest.equals('foo')); | 92 unittest.expect(o.unlockedIconUrl, unittest.equals('foo')); |
| 58 } | 93 } |
| 59 buildCounterAchievementDefinition--; | 94 buildCounterAchievementDefinition--; |
| 60 } | 95 } |
| 61 | 96 |
| 62 buildUnnamed20() { | 97 buildUnnamed1072() { |
| 63 var o = new core.List<api.AchievementDefinition>(); | 98 var o = new core.List<api.AchievementDefinition>(); |
| 64 o.add(buildAchievementDefinition()); | 99 o.add(buildAchievementDefinition()); |
| 65 o.add(buildAchievementDefinition()); | 100 o.add(buildAchievementDefinition()); |
| 66 return o; | 101 return o; |
| 67 } | 102 } |
| 68 | 103 |
| 69 checkUnnamed20(core.List<api.AchievementDefinition> o) { | 104 checkUnnamed1072(core.List<api.AchievementDefinition> o) { |
| 70 unittest.expect(o, unittest.hasLength(2)); | 105 unittest.expect(o, unittest.hasLength(2)); |
| 71 checkAchievementDefinition(o[0]); | 106 checkAchievementDefinition(o[0]); |
| 72 checkAchievementDefinition(o[1]); | 107 checkAchievementDefinition(o[1]); |
| 73 } | 108 } |
| 74 | 109 |
| 75 core.int buildCounterAchievementDefinitionsListResponse = 0; | 110 core.int buildCounterAchievementDefinitionsListResponse = 0; |
| 76 buildAchievementDefinitionsListResponse() { | 111 buildAchievementDefinitionsListResponse() { |
| 77 var o = new api.AchievementDefinitionsListResponse(); | 112 var o = new api.AchievementDefinitionsListResponse(); |
| 78 buildCounterAchievementDefinitionsListResponse++; | 113 buildCounterAchievementDefinitionsListResponse++; |
| 79 if (buildCounterAchievementDefinitionsListResponse < 3) { | 114 if (buildCounterAchievementDefinitionsListResponse < 3) { |
| 80 o.items = buildUnnamed20(); | 115 o.items = buildUnnamed1072(); |
| 81 o.kind = "foo"; | 116 o.kind = "foo"; |
| 82 o.nextPageToken = "foo"; | 117 o.nextPageToken = "foo"; |
| 83 } | 118 } |
| 84 buildCounterAchievementDefinitionsListResponse--; | 119 buildCounterAchievementDefinitionsListResponse--; |
| 85 return o; | 120 return o; |
| 86 } | 121 } |
| 87 | 122 |
| 88 checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o
) { | 123 checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o
) { |
| 89 buildCounterAchievementDefinitionsListResponse++; | 124 buildCounterAchievementDefinitionsListResponse++; |
| 90 if (buildCounterAchievementDefinitionsListResponse < 3) { | 125 if (buildCounterAchievementDefinitionsListResponse < 3) { |
| 91 checkUnnamed20(o.items); | 126 checkUnnamed1072(o.items); |
| 92 unittest.expect(o.kind, unittest.equals('foo')); | 127 unittest.expect(o.kind, unittest.equals('foo')); |
| 93 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 128 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 94 } | 129 } |
| 95 buildCounterAchievementDefinitionsListResponse--; | 130 buildCounterAchievementDefinitionsListResponse--; |
| 96 } | 131 } |
| 97 | 132 |
| 98 core.int buildCounterAchievementIncrementResponse = 0; | 133 core.int buildCounterAchievementIncrementResponse = 0; |
| 99 buildAchievementIncrementResponse() { | 134 buildAchievementIncrementResponse() { |
| 100 var o = new api.AchievementIncrementResponse(); | 135 var o = new api.AchievementIncrementResponse(); |
| 101 buildCounterAchievementIncrementResponse++; | 136 buildCounterAchievementIncrementResponse++; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 211 |
| 177 checkAchievementUnlockResponse(api.AchievementUnlockResponse o) { | 212 checkAchievementUnlockResponse(api.AchievementUnlockResponse o) { |
| 178 buildCounterAchievementUnlockResponse++; | 213 buildCounterAchievementUnlockResponse++; |
| 179 if (buildCounterAchievementUnlockResponse < 3) { | 214 if (buildCounterAchievementUnlockResponse < 3) { |
| 180 unittest.expect(o.kind, unittest.equals('foo')); | 215 unittest.expect(o.kind, unittest.equals('foo')); |
| 181 unittest.expect(o.newlyUnlocked, unittest.isTrue); | 216 unittest.expect(o.newlyUnlocked, unittest.isTrue); |
| 182 } | 217 } |
| 183 buildCounterAchievementUnlockResponse--; | 218 buildCounterAchievementUnlockResponse--; |
| 184 } | 219 } |
| 185 | 220 |
| 186 buildUnnamed21() { | 221 buildUnnamed1073() { |
| 187 var o = new core.List<api.AchievementUpdateRequest>(); | 222 var o = new core.List<api.AchievementUpdateRequest>(); |
| 188 o.add(buildAchievementUpdateRequest()); | 223 o.add(buildAchievementUpdateRequest()); |
| 189 o.add(buildAchievementUpdateRequest()); | 224 o.add(buildAchievementUpdateRequest()); |
| 190 return o; | 225 return o; |
| 191 } | 226 } |
| 192 | 227 |
| 193 checkUnnamed21(core.List<api.AchievementUpdateRequest> o) { | 228 checkUnnamed1073(core.List<api.AchievementUpdateRequest> o) { |
| 194 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
| 195 checkAchievementUpdateRequest(o[0]); | 230 checkAchievementUpdateRequest(o[0]); |
| 196 checkAchievementUpdateRequest(o[1]); | 231 checkAchievementUpdateRequest(o[1]); |
| 197 } | 232 } |
| 198 | 233 |
| 199 core.int buildCounterAchievementUpdateMultipleRequest = 0; | 234 core.int buildCounterAchievementUpdateMultipleRequest = 0; |
| 200 buildAchievementUpdateMultipleRequest() { | 235 buildAchievementUpdateMultipleRequest() { |
| 201 var o = new api.AchievementUpdateMultipleRequest(); | 236 var o = new api.AchievementUpdateMultipleRequest(); |
| 202 buildCounterAchievementUpdateMultipleRequest++; | 237 buildCounterAchievementUpdateMultipleRequest++; |
| 203 if (buildCounterAchievementUpdateMultipleRequest < 3) { | 238 if (buildCounterAchievementUpdateMultipleRequest < 3) { |
| 204 o.kind = "foo"; | 239 o.kind = "foo"; |
| 205 o.updates = buildUnnamed21(); | 240 o.updates = buildUnnamed1073(); |
| 206 } | 241 } |
| 207 buildCounterAchievementUpdateMultipleRequest--; | 242 buildCounterAchievementUpdateMultipleRequest--; |
| 208 return o; | 243 return o; |
| 209 } | 244 } |
| 210 | 245 |
| 211 checkAchievementUpdateMultipleRequest(api.AchievementUpdateMultipleRequest o) { | 246 checkAchievementUpdateMultipleRequest(api.AchievementUpdateMultipleRequest o) { |
| 212 buildCounterAchievementUpdateMultipleRequest++; | 247 buildCounterAchievementUpdateMultipleRequest++; |
| 213 if (buildCounterAchievementUpdateMultipleRequest < 3) { | 248 if (buildCounterAchievementUpdateMultipleRequest < 3) { |
| 214 unittest.expect(o.kind, unittest.equals('foo')); | 249 unittest.expect(o.kind, unittest.equals('foo')); |
| 215 checkUnnamed21(o.updates); | 250 checkUnnamed1073(o.updates); |
| 216 } | 251 } |
| 217 buildCounterAchievementUpdateMultipleRequest--; | 252 buildCounterAchievementUpdateMultipleRequest--; |
| 218 } | 253 } |
| 219 | 254 |
| 220 buildUnnamed22() { | 255 buildUnnamed1074() { |
| 221 var o = new core.List<api.AchievementUpdateResponse>(); | 256 var o = new core.List<api.AchievementUpdateResponse>(); |
| 222 o.add(buildAchievementUpdateResponse()); | 257 o.add(buildAchievementUpdateResponse()); |
| 223 o.add(buildAchievementUpdateResponse()); | 258 o.add(buildAchievementUpdateResponse()); |
| 224 return o; | 259 return o; |
| 225 } | 260 } |
| 226 | 261 |
| 227 checkUnnamed22(core.List<api.AchievementUpdateResponse> o) { | 262 checkUnnamed1074(core.List<api.AchievementUpdateResponse> o) { |
| 228 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
| 229 checkAchievementUpdateResponse(o[0]); | 264 checkAchievementUpdateResponse(o[0]); |
| 230 checkAchievementUpdateResponse(o[1]); | 265 checkAchievementUpdateResponse(o[1]); |
| 231 } | 266 } |
| 232 | 267 |
| 233 core.int buildCounterAchievementUpdateMultipleResponse = 0; | 268 core.int buildCounterAchievementUpdateMultipleResponse = 0; |
| 234 buildAchievementUpdateMultipleResponse() { | 269 buildAchievementUpdateMultipleResponse() { |
| 235 var o = new api.AchievementUpdateMultipleResponse(); | 270 var o = new api.AchievementUpdateMultipleResponse(); |
| 236 buildCounterAchievementUpdateMultipleResponse++; | 271 buildCounterAchievementUpdateMultipleResponse++; |
| 237 if (buildCounterAchievementUpdateMultipleResponse < 3) { | 272 if (buildCounterAchievementUpdateMultipleResponse < 3) { |
| 238 o.kind = "foo"; | 273 o.kind = "foo"; |
| 239 o.updatedAchievements = buildUnnamed22(); | 274 o.updatedAchievements = buildUnnamed1074(); |
| 240 } | 275 } |
| 241 buildCounterAchievementUpdateMultipleResponse--; | 276 buildCounterAchievementUpdateMultipleResponse--; |
| 242 return o; | 277 return o; |
| 243 } | 278 } |
| 244 | 279 |
| 245 checkAchievementUpdateMultipleResponse(api.AchievementUpdateMultipleResponse o)
{ | 280 checkAchievementUpdateMultipleResponse(api.AchievementUpdateMultipleResponse o)
{ |
| 246 buildCounterAchievementUpdateMultipleResponse++; | 281 buildCounterAchievementUpdateMultipleResponse++; |
| 247 if (buildCounterAchievementUpdateMultipleResponse < 3) { | 282 if (buildCounterAchievementUpdateMultipleResponse < 3) { |
| 248 unittest.expect(o.kind, unittest.equals('foo')); | 283 unittest.expect(o.kind, unittest.equals('foo')); |
| 249 checkUnnamed22(o.updatedAchievements); | 284 checkUnnamed1074(o.updatedAchievements); |
| 250 } | 285 } |
| 251 buildCounterAchievementUpdateMultipleResponse--; | 286 buildCounterAchievementUpdateMultipleResponse--; |
| 252 } | 287 } |
| 253 | 288 |
| 254 core.int buildCounterAchievementUpdateRequest = 0; | 289 core.int buildCounterAchievementUpdateRequest = 0; |
| 255 buildAchievementUpdateRequest() { | 290 buildAchievementUpdateRequest() { |
| 256 var o = new api.AchievementUpdateRequest(); | 291 var o = new api.AchievementUpdateRequest(); |
| 257 buildCounterAchievementUpdateRequest++; | 292 buildCounterAchievementUpdateRequest++; |
| 258 if (buildCounterAchievementUpdateRequest < 3) { | 293 if (buildCounterAchievementUpdateRequest < 3) { |
| 259 o.achievementId = "foo"; | 294 o.achievementId = "foo"; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 checkAnonymousPlayer(api.AnonymousPlayer o) { | 385 checkAnonymousPlayer(api.AnonymousPlayer o) { |
| 351 buildCounterAnonymousPlayer++; | 386 buildCounterAnonymousPlayer++; |
| 352 if (buildCounterAnonymousPlayer < 3) { | 387 if (buildCounterAnonymousPlayer < 3) { |
| 353 unittest.expect(o.avatarImageUrl, unittest.equals('foo')); | 388 unittest.expect(o.avatarImageUrl, unittest.equals('foo')); |
| 354 unittest.expect(o.displayName, unittest.equals('foo')); | 389 unittest.expect(o.displayName, unittest.equals('foo')); |
| 355 unittest.expect(o.kind, unittest.equals('foo')); | 390 unittest.expect(o.kind, unittest.equals('foo')); |
| 356 } | 391 } |
| 357 buildCounterAnonymousPlayer--; | 392 buildCounterAnonymousPlayer--; |
| 358 } | 393 } |
| 359 | 394 |
| 360 buildUnnamed23() { | 395 buildUnnamed1075() { |
| 361 var o = new core.List<api.ImageAsset>(); | 396 var o = new core.List<api.ImageAsset>(); |
| 362 o.add(buildImageAsset()); | 397 o.add(buildImageAsset()); |
| 363 o.add(buildImageAsset()); | 398 o.add(buildImageAsset()); |
| 364 return o; | 399 return o; |
| 365 } | 400 } |
| 366 | 401 |
| 367 checkUnnamed23(core.List<api.ImageAsset> o) { | 402 checkUnnamed1075(core.List<api.ImageAsset> o) { |
| 368 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 369 checkImageAsset(o[0]); | 404 checkImageAsset(o[0]); |
| 370 checkImageAsset(o[1]); | 405 checkImageAsset(o[1]); |
| 371 } | 406 } |
| 372 | 407 |
| 373 buildUnnamed24() { | 408 buildUnnamed1076() { |
| 374 var o = new core.List<core.String>(); | 409 var o = new core.List<core.String>(); |
| 375 o.add("foo"); | 410 o.add("foo"); |
| 376 o.add("foo"); | 411 o.add("foo"); |
| 377 return o; | 412 return o; |
| 378 } | 413 } |
| 379 | 414 |
| 380 checkUnnamed24(core.List<core.String> o) { | 415 checkUnnamed1076(core.List<core.String> o) { |
| 381 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 382 unittest.expect(o[0], unittest.equals('foo')); | 417 unittest.expect(o[0], unittest.equals('foo')); |
| 383 unittest.expect(o[1], unittest.equals('foo')); | 418 unittest.expect(o[1], unittest.equals('foo')); |
| 384 } | 419 } |
| 385 | 420 |
| 386 buildUnnamed25() { | 421 buildUnnamed1077() { |
| 387 var o = new core.List<api.Instance>(); | 422 var o = new core.List<api.Instance>(); |
| 388 o.add(buildInstance()); | 423 o.add(buildInstance()); |
| 389 o.add(buildInstance()); | 424 o.add(buildInstance()); |
| 390 return o; | 425 return o; |
| 391 } | 426 } |
| 392 | 427 |
| 393 checkUnnamed25(core.List<api.Instance> o) { | 428 checkUnnamed1077(core.List<api.Instance> o) { |
| 394 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 395 checkInstance(o[0]); | 430 checkInstance(o[0]); |
| 396 checkInstance(o[1]); | 431 checkInstance(o[1]); |
| 397 } | 432 } |
| 398 | 433 |
| 399 core.int buildCounterApplication = 0; | 434 core.int buildCounterApplication = 0; |
| 400 buildApplication() { | 435 buildApplication() { |
| 401 var o = new api.Application(); | 436 var o = new api.Application(); |
| 402 buildCounterApplication++; | 437 buildCounterApplication++; |
| 403 if (buildCounterApplication < 3) { | 438 if (buildCounterApplication < 3) { |
| 404 o.achievementCount = 42; | 439 o.achievementCount = 42; |
| 405 o.assets = buildUnnamed23(); | 440 o.assets = buildUnnamed1075(); |
| 406 o.author = "foo"; | 441 o.author = "foo"; |
| 407 o.category = buildApplicationCategory(); | 442 o.category = buildApplicationCategory(); |
| 408 o.description = "foo"; | 443 o.description = "foo"; |
| 409 o.enabledFeatures = buildUnnamed24(); | 444 o.enabledFeatures = buildUnnamed1076(); |
| 410 o.id = "foo"; | 445 o.id = "foo"; |
| 411 o.instances = buildUnnamed25(); | 446 o.instances = buildUnnamed1077(); |
| 412 o.kind = "foo"; | 447 o.kind = "foo"; |
| 413 o.lastUpdatedTimestamp = "foo"; | 448 o.lastUpdatedTimestamp = "foo"; |
| 414 o.leaderboardCount = 42; | 449 o.leaderboardCount = 42; |
| 415 o.name = "foo"; | 450 o.name = "foo"; |
| 416 o.themeColor = "foo"; | 451 o.themeColor = "foo"; |
| 417 } | 452 } |
| 418 buildCounterApplication--; | 453 buildCounterApplication--; |
| 419 return o; | 454 return o; |
| 420 } | 455 } |
| 421 | 456 |
| 422 checkApplication(api.Application o) { | 457 checkApplication(api.Application o) { |
| 423 buildCounterApplication++; | 458 buildCounterApplication++; |
| 424 if (buildCounterApplication < 3) { | 459 if (buildCounterApplication < 3) { |
| 425 unittest.expect(o.achievementCount, unittest.equals(42)); | 460 unittest.expect(o.achievementCount, unittest.equals(42)); |
| 426 checkUnnamed23(o.assets); | 461 checkUnnamed1075(o.assets); |
| 427 unittest.expect(o.author, unittest.equals('foo')); | 462 unittest.expect(o.author, unittest.equals('foo')); |
| 428 checkApplicationCategory(o.category); | 463 checkApplicationCategory(o.category); |
| 429 unittest.expect(o.description, unittest.equals('foo')); | 464 unittest.expect(o.description, unittest.equals('foo')); |
| 430 checkUnnamed24(o.enabledFeatures); | 465 checkUnnamed1076(o.enabledFeatures); |
| 431 unittest.expect(o.id, unittest.equals('foo')); | 466 unittest.expect(o.id, unittest.equals('foo')); |
| 432 checkUnnamed25(o.instances); | 467 checkUnnamed1077(o.instances); |
| 433 unittest.expect(o.kind, unittest.equals('foo')); | 468 unittest.expect(o.kind, unittest.equals('foo')); |
| 434 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); | 469 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); |
| 435 unittest.expect(o.leaderboardCount, unittest.equals(42)); | 470 unittest.expect(o.leaderboardCount, unittest.equals(42)); |
| 436 unittest.expect(o.name, unittest.equals('foo')); | 471 unittest.expect(o.name, unittest.equals('foo')); |
| 437 unittest.expect(o.themeColor, unittest.equals('foo')); | 472 unittest.expect(o.themeColor, unittest.equals('foo')); |
| 438 } | 473 } |
| 439 buildCounterApplication--; | 474 buildCounterApplication--; |
| 440 } | 475 } |
| 441 | 476 |
| 442 core.int buildCounterApplicationCategory = 0; | 477 core.int buildCounterApplicationCategory = 0; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 checkCategory(api.Category o) { | 513 checkCategory(api.Category o) { |
| 479 buildCounterCategory++; | 514 buildCounterCategory++; |
| 480 if (buildCounterCategory < 3) { | 515 if (buildCounterCategory < 3) { |
| 481 unittest.expect(o.category, unittest.equals('foo')); | 516 unittest.expect(o.category, unittest.equals('foo')); |
| 482 unittest.expect(o.experiencePoints, unittest.equals('foo')); | 517 unittest.expect(o.experiencePoints, unittest.equals('foo')); |
| 483 unittest.expect(o.kind, unittest.equals('foo')); | 518 unittest.expect(o.kind, unittest.equals('foo')); |
| 484 } | 519 } |
| 485 buildCounterCategory--; | 520 buildCounterCategory--; |
| 486 } | 521 } |
| 487 | 522 |
| 488 buildUnnamed26() { | 523 buildUnnamed1078() { |
| 489 var o = new core.List<api.Category>(); | 524 var o = new core.List<api.Category>(); |
| 490 o.add(buildCategory()); | 525 o.add(buildCategory()); |
| 491 o.add(buildCategory()); | 526 o.add(buildCategory()); |
| 492 return o; | 527 return o; |
| 493 } | 528 } |
| 494 | 529 |
| 495 checkUnnamed26(core.List<api.Category> o) { | 530 checkUnnamed1078(core.List<api.Category> o) { |
| 496 unittest.expect(o, unittest.hasLength(2)); | 531 unittest.expect(o, unittest.hasLength(2)); |
| 497 checkCategory(o[0]); | 532 checkCategory(o[0]); |
| 498 checkCategory(o[1]); | 533 checkCategory(o[1]); |
| 499 } | 534 } |
| 500 | 535 |
| 501 core.int buildCounterCategoryListResponse = 0; | 536 core.int buildCounterCategoryListResponse = 0; |
| 502 buildCategoryListResponse() { | 537 buildCategoryListResponse() { |
| 503 var o = new api.CategoryListResponse(); | 538 var o = new api.CategoryListResponse(); |
| 504 buildCounterCategoryListResponse++; | 539 buildCounterCategoryListResponse++; |
| 505 if (buildCounterCategoryListResponse < 3) { | 540 if (buildCounterCategoryListResponse < 3) { |
| 506 o.items = buildUnnamed26(); | 541 o.items = buildUnnamed1078(); |
| 507 o.kind = "foo"; | 542 o.kind = "foo"; |
| 508 o.nextPageToken = "foo"; | 543 o.nextPageToken = "foo"; |
| 509 } | 544 } |
| 510 buildCounterCategoryListResponse--; | 545 buildCounterCategoryListResponse--; |
| 511 return o; | 546 return o; |
| 512 } | 547 } |
| 513 | 548 |
| 514 checkCategoryListResponse(api.CategoryListResponse o) { | 549 checkCategoryListResponse(api.CategoryListResponse o) { |
| 515 buildCounterCategoryListResponse++; | 550 buildCounterCategoryListResponse++; |
| 516 if (buildCounterCategoryListResponse < 3) { | 551 if (buildCounterCategoryListResponse < 3) { |
| 517 checkUnnamed26(o.items); | 552 checkUnnamed1078(o.items); |
| 518 unittest.expect(o.kind, unittest.equals('foo')); | 553 unittest.expect(o.kind, unittest.equals('foo')); |
| 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 554 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 520 } | 555 } |
| 521 buildCounterCategoryListResponse--; | 556 buildCounterCategoryListResponse--; |
| 522 } | 557 } |
| 523 | 558 |
| 524 core.int buildCounterEventBatchRecordFailure = 0; | 559 core.int buildCounterEventBatchRecordFailure = 0; |
| 525 buildEventBatchRecordFailure() { | 560 buildEventBatchRecordFailure() { |
| 526 var o = new api.EventBatchRecordFailure(); | 561 var o = new api.EventBatchRecordFailure(); |
| 527 buildCounterEventBatchRecordFailure++; | 562 buildCounterEventBatchRecordFailure++; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 558 | 593 |
| 559 checkEventChild(api.EventChild o) { | 594 checkEventChild(api.EventChild o) { |
| 560 buildCounterEventChild++; | 595 buildCounterEventChild++; |
| 561 if (buildCounterEventChild < 3) { | 596 if (buildCounterEventChild < 3) { |
| 562 unittest.expect(o.childId, unittest.equals('foo')); | 597 unittest.expect(o.childId, unittest.equals('foo')); |
| 563 unittest.expect(o.kind, unittest.equals('foo')); | 598 unittest.expect(o.kind, unittest.equals('foo')); |
| 564 } | 599 } |
| 565 buildCounterEventChild--; | 600 buildCounterEventChild--; |
| 566 } | 601 } |
| 567 | 602 |
| 568 buildUnnamed27() { | 603 buildUnnamed1079() { |
| 569 var o = new core.List<api.EventChild>(); | 604 var o = new core.List<api.EventChild>(); |
| 570 o.add(buildEventChild()); | 605 o.add(buildEventChild()); |
| 571 o.add(buildEventChild()); | 606 o.add(buildEventChild()); |
| 572 return o; | 607 return o; |
| 573 } | 608 } |
| 574 | 609 |
| 575 checkUnnamed27(core.List<api.EventChild> o) { | 610 checkUnnamed1079(core.List<api.EventChild> o) { |
| 576 unittest.expect(o, unittest.hasLength(2)); | 611 unittest.expect(o, unittest.hasLength(2)); |
| 577 checkEventChild(o[0]); | 612 checkEventChild(o[0]); |
| 578 checkEventChild(o[1]); | 613 checkEventChild(o[1]); |
| 579 } | 614 } |
| 580 | 615 |
| 581 core.int buildCounterEventDefinition = 0; | 616 core.int buildCounterEventDefinition = 0; |
| 582 buildEventDefinition() { | 617 buildEventDefinition() { |
| 583 var o = new api.EventDefinition(); | 618 var o = new api.EventDefinition(); |
| 584 buildCounterEventDefinition++; | 619 buildCounterEventDefinition++; |
| 585 if (buildCounterEventDefinition < 3) { | 620 if (buildCounterEventDefinition < 3) { |
| 586 o.childEvents = buildUnnamed27(); | 621 o.childEvents = buildUnnamed1079(); |
| 587 o.description = "foo"; | 622 o.description = "foo"; |
| 588 o.displayName = "foo"; | 623 o.displayName = "foo"; |
| 589 o.id = "foo"; | 624 o.id = "foo"; |
| 590 o.imageUrl = "foo"; | 625 o.imageUrl = "foo"; |
| 591 o.isDefaultImageUrl = true; | 626 o.isDefaultImageUrl = true; |
| 592 o.kind = "foo"; | 627 o.kind = "foo"; |
| 593 o.visibility = "foo"; | 628 o.visibility = "foo"; |
| 594 } | 629 } |
| 595 buildCounterEventDefinition--; | 630 buildCounterEventDefinition--; |
| 596 return o; | 631 return o; |
| 597 } | 632 } |
| 598 | 633 |
| 599 checkEventDefinition(api.EventDefinition o) { | 634 checkEventDefinition(api.EventDefinition o) { |
| 600 buildCounterEventDefinition++; | 635 buildCounterEventDefinition++; |
| 601 if (buildCounterEventDefinition < 3) { | 636 if (buildCounterEventDefinition < 3) { |
| 602 checkUnnamed27(o.childEvents); | 637 checkUnnamed1079(o.childEvents); |
| 603 unittest.expect(o.description, unittest.equals('foo')); | 638 unittest.expect(o.description, unittest.equals('foo')); |
| 604 unittest.expect(o.displayName, unittest.equals('foo')); | 639 unittest.expect(o.displayName, unittest.equals('foo')); |
| 605 unittest.expect(o.id, unittest.equals('foo')); | 640 unittest.expect(o.id, unittest.equals('foo')); |
| 606 unittest.expect(o.imageUrl, unittest.equals('foo')); | 641 unittest.expect(o.imageUrl, unittest.equals('foo')); |
| 607 unittest.expect(o.isDefaultImageUrl, unittest.isTrue); | 642 unittest.expect(o.isDefaultImageUrl, unittest.isTrue); |
| 608 unittest.expect(o.kind, unittest.equals('foo')); | 643 unittest.expect(o.kind, unittest.equals('foo')); |
| 609 unittest.expect(o.visibility, unittest.equals('foo')); | 644 unittest.expect(o.visibility, unittest.equals('foo')); |
| 610 } | 645 } |
| 611 buildCounterEventDefinition--; | 646 buildCounterEventDefinition--; |
| 612 } | 647 } |
| 613 | 648 |
| 614 buildUnnamed28() { | 649 buildUnnamed1080() { |
| 615 var o = new core.List<api.EventDefinition>(); | 650 var o = new core.List<api.EventDefinition>(); |
| 616 o.add(buildEventDefinition()); | 651 o.add(buildEventDefinition()); |
| 617 o.add(buildEventDefinition()); | 652 o.add(buildEventDefinition()); |
| 618 return o; | 653 return o; |
| 619 } | 654 } |
| 620 | 655 |
| 621 checkUnnamed28(core.List<api.EventDefinition> o) { | 656 checkUnnamed1080(core.List<api.EventDefinition> o) { |
| 622 unittest.expect(o, unittest.hasLength(2)); | 657 unittest.expect(o, unittest.hasLength(2)); |
| 623 checkEventDefinition(o[0]); | 658 checkEventDefinition(o[0]); |
| 624 checkEventDefinition(o[1]); | 659 checkEventDefinition(o[1]); |
| 625 } | 660 } |
| 626 | 661 |
| 627 core.int buildCounterEventDefinitionListResponse = 0; | 662 core.int buildCounterEventDefinitionListResponse = 0; |
| 628 buildEventDefinitionListResponse() { | 663 buildEventDefinitionListResponse() { |
| 629 var o = new api.EventDefinitionListResponse(); | 664 var o = new api.EventDefinitionListResponse(); |
| 630 buildCounterEventDefinitionListResponse++; | 665 buildCounterEventDefinitionListResponse++; |
| 631 if (buildCounterEventDefinitionListResponse < 3) { | 666 if (buildCounterEventDefinitionListResponse < 3) { |
| 632 o.items = buildUnnamed28(); | 667 o.items = buildUnnamed1080(); |
| 633 o.kind = "foo"; | 668 o.kind = "foo"; |
| 634 o.nextPageToken = "foo"; | 669 o.nextPageToken = "foo"; |
| 635 } | 670 } |
| 636 buildCounterEventDefinitionListResponse--; | 671 buildCounterEventDefinitionListResponse--; |
| 637 return o; | 672 return o; |
| 638 } | 673 } |
| 639 | 674 |
| 640 checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { | 675 checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { |
| 641 buildCounterEventDefinitionListResponse++; | 676 buildCounterEventDefinitionListResponse++; |
| 642 if (buildCounterEventDefinitionListResponse < 3) { | 677 if (buildCounterEventDefinitionListResponse < 3) { |
| 643 checkUnnamed28(o.items); | 678 checkUnnamed1080(o.items); |
| 644 unittest.expect(o.kind, unittest.equals('foo')); | 679 unittest.expect(o.kind, unittest.equals('foo')); |
| 645 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 680 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 646 } | 681 } |
| 647 buildCounterEventDefinitionListResponse--; | 682 buildCounterEventDefinitionListResponse--; |
| 648 } | 683 } |
| 649 | 684 |
| 650 core.int buildCounterEventPeriodRange = 0; | 685 core.int buildCounterEventPeriodRange = 0; |
| 651 buildEventPeriodRange() { | 686 buildEventPeriodRange() { |
| 652 var o = new api.EventPeriodRange(); | 687 var o = new api.EventPeriodRange(); |
| 653 buildCounterEventPeriodRange++; | 688 buildCounterEventPeriodRange++; |
| 654 if (buildCounterEventPeriodRange < 3) { | 689 if (buildCounterEventPeriodRange < 3) { |
| 655 o.kind = "foo"; | 690 o.kind = "foo"; |
| 656 o.periodEndMillis = "foo"; | 691 o.periodEndMillis = "foo"; |
| 657 o.periodStartMillis = "foo"; | 692 o.periodStartMillis = "foo"; |
| 658 } | 693 } |
| 659 buildCounterEventPeriodRange--; | 694 buildCounterEventPeriodRange--; |
| 660 return o; | 695 return o; |
| 661 } | 696 } |
| 662 | 697 |
| 663 checkEventPeriodRange(api.EventPeriodRange o) { | 698 checkEventPeriodRange(api.EventPeriodRange o) { |
| 664 buildCounterEventPeriodRange++; | 699 buildCounterEventPeriodRange++; |
| 665 if (buildCounterEventPeriodRange < 3) { | 700 if (buildCounterEventPeriodRange < 3) { |
| 666 unittest.expect(o.kind, unittest.equals('foo')); | 701 unittest.expect(o.kind, unittest.equals('foo')); |
| 667 unittest.expect(o.periodEndMillis, unittest.equals('foo')); | 702 unittest.expect(o.periodEndMillis, unittest.equals('foo')); |
| 668 unittest.expect(o.periodStartMillis, unittest.equals('foo')); | 703 unittest.expect(o.periodStartMillis, unittest.equals('foo')); |
| 669 } | 704 } |
| 670 buildCounterEventPeriodRange--; | 705 buildCounterEventPeriodRange--; |
| 671 } | 706 } |
| 672 | 707 |
| 673 buildUnnamed29() { | 708 buildUnnamed1081() { |
| 674 var o = new core.List<api.EventUpdateRequest>(); | 709 var o = new core.List<api.EventUpdateRequest>(); |
| 675 o.add(buildEventUpdateRequest()); | 710 o.add(buildEventUpdateRequest()); |
| 676 o.add(buildEventUpdateRequest()); | 711 o.add(buildEventUpdateRequest()); |
| 677 return o; | 712 return o; |
| 678 } | 713 } |
| 679 | 714 |
| 680 checkUnnamed29(core.List<api.EventUpdateRequest> o) { | 715 checkUnnamed1081(core.List<api.EventUpdateRequest> o) { |
| 681 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 682 checkEventUpdateRequest(o[0]); | 717 checkEventUpdateRequest(o[0]); |
| 683 checkEventUpdateRequest(o[1]); | 718 checkEventUpdateRequest(o[1]); |
| 684 } | 719 } |
| 685 | 720 |
| 686 core.int buildCounterEventPeriodUpdate = 0; | 721 core.int buildCounterEventPeriodUpdate = 0; |
| 687 buildEventPeriodUpdate() { | 722 buildEventPeriodUpdate() { |
| 688 var o = new api.EventPeriodUpdate(); | 723 var o = new api.EventPeriodUpdate(); |
| 689 buildCounterEventPeriodUpdate++; | 724 buildCounterEventPeriodUpdate++; |
| 690 if (buildCounterEventPeriodUpdate < 3) { | 725 if (buildCounterEventPeriodUpdate < 3) { |
| 691 o.kind = "foo"; | 726 o.kind = "foo"; |
| 692 o.timePeriod = buildEventPeriodRange(); | 727 o.timePeriod = buildEventPeriodRange(); |
| 693 o.updates = buildUnnamed29(); | 728 o.updates = buildUnnamed1081(); |
| 694 } | 729 } |
| 695 buildCounterEventPeriodUpdate--; | 730 buildCounterEventPeriodUpdate--; |
| 696 return o; | 731 return o; |
| 697 } | 732 } |
| 698 | 733 |
| 699 checkEventPeriodUpdate(api.EventPeriodUpdate o) { | 734 checkEventPeriodUpdate(api.EventPeriodUpdate o) { |
| 700 buildCounterEventPeriodUpdate++; | 735 buildCounterEventPeriodUpdate++; |
| 701 if (buildCounterEventPeriodUpdate < 3) { | 736 if (buildCounterEventPeriodUpdate < 3) { |
| 702 unittest.expect(o.kind, unittest.equals('foo')); | 737 unittest.expect(o.kind, unittest.equals('foo')); |
| 703 checkEventPeriodRange(o.timePeriod); | 738 checkEventPeriodRange(o.timePeriod); |
| 704 checkUnnamed29(o.updates); | 739 checkUnnamed1081(o.updates); |
| 705 } | 740 } |
| 706 buildCounterEventPeriodUpdate--; | 741 buildCounterEventPeriodUpdate--; |
| 707 } | 742 } |
| 708 | 743 |
| 709 core.int buildCounterEventRecordFailure = 0; | 744 core.int buildCounterEventRecordFailure = 0; |
| 710 buildEventRecordFailure() { | 745 buildEventRecordFailure() { |
| 711 var o = new api.EventRecordFailure(); | 746 var o = new api.EventRecordFailure(); |
| 712 buildCounterEventRecordFailure++; | 747 buildCounterEventRecordFailure++; |
| 713 if (buildCounterEventRecordFailure < 3) { | 748 if (buildCounterEventRecordFailure < 3) { |
| 714 o.eventId = "foo"; | 749 o.eventId = "foo"; |
| 715 o.failureCause = "foo"; | 750 o.failureCause = "foo"; |
| 716 o.kind = "foo"; | 751 o.kind = "foo"; |
| 717 } | 752 } |
| 718 buildCounterEventRecordFailure--; | 753 buildCounterEventRecordFailure--; |
| 719 return o; | 754 return o; |
| 720 } | 755 } |
| 721 | 756 |
| 722 checkEventRecordFailure(api.EventRecordFailure o) { | 757 checkEventRecordFailure(api.EventRecordFailure o) { |
| 723 buildCounterEventRecordFailure++; | 758 buildCounterEventRecordFailure++; |
| 724 if (buildCounterEventRecordFailure < 3) { | 759 if (buildCounterEventRecordFailure < 3) { |
| 725 unittest.expect(o.eventId, unittest.equals('foo')); | 760 unittest.expect(o.eventId, unittest.equals('foo')); |
| 726 unittest.expect(o.failureCause, unittest.equals('foo')); | 761 unittest.expect(o.failureCause, unittest.equals('foo')); |
| 727 unittest.expect(o.kind, unittest.equals('foo')); | 762 unittest.expect(o.kind, unittest.equals('foo')); |
| 728 } | 763 } |
| 729 buildCounterEventRecordFailure--; | 764 buildCounterEventRecordFailure--; |
| 730 } | 765 } |
| 731 | 766 |
| 732 buildUnnamed30() { | 767 buildUnnamed1082() { |
| 733 var o = new core.List<api.EventPeriodUpdate>(); | 768 var o = new core.List<api.EventPeriodUpdate>(); |
| 734 o.add(buildEventPeriodUpdate()); | 769 o.add(buildEventPeriodUpdate()); |
| 735 o.add(buildEventPeriodUpdate()); | 770 o.add(buildEventPeriodUpdate()); |
| 736 return o; | 771 return o; |
| 737 } | 772 } |
| 738 | 773 |
| 739 checkUnnamed30(core.List<api.EventPeriodUpdate> o) { | 774 checkUnnamed1082(core.List<api.EventPeriodUpdate> o) { |
| 740 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
| 741 checkEventPeriodUpdate(o[0]); | 776 checkEventPeriodUpdate(o[0]); |
| 742 checkEventPeriodUpdate(o[1]); | 777 checkEventPeriodUpdate(o[1]); |
| 743 } | 778 } |
| 744 | 779 |
| 745 core.int buildCounterEventRecordRequest = 0; | 780 core.int buildCounterEventRecordRequest = 0; |
| 746 buildEventRecordRequest() { | 781 buildEventRecordRequest() { |
| 747 var o = new api.EventRecordRequest(); | 782 var o = new api.EventRecordRequest(); |
| 748 buildCounterEventRecordRequest++; | 783 buildCounterEventRecordRequest++; |
| 749 if (buildCounterEventRecordRequest < 3) { | 784 if (buildCounterEventRecordRequest < 3) { |
| 750 o.currentTimeMillis = "foo"; | 785 o.currentTimeMillis = "foo"; |
| 751 o.kind = "foo"; | 786 o.kind = "foo"; |
| 752 o.requestId = "foo"; | 787 o.requestId = "foo"; |
| 753 o.timePeriods = buildUnnamed30(); | 788 o.timePeriods = buildUnnamed1082(); |
| 754 } | 789 } |
| 755 buildCounterEventRecordRequest--; | 790 buildCounterEventRecordRequest--; |
| 756 return o; | 791 return o; |
| 757 } | 792 } |
| 758 | 793 |
| 759 checkEventRecordRequest(api.EventRecordRequest o) { | 794 checkEventRecordRequest(api.EventRecordRequest o) { |
| 760 buildCounterEventRecordRequest++; | 795 buildCounterEventRecordRequest++; |
| 761 if (buildCounterEventRecordRequest < 3) { | 796 if (buildCounterEventRecordRequest < 3) { |
| 762 unittest.expect(o.currentTimeMillis, unittest.equals('foo')); | 797 unittest.expect(o.currentTimeMillis, unittest.equals('foo')); |
| 763 unittest.expect(o.kind, unittest.equals('foo')); | 798 unittest.expect(o.kind, unittest.equals('foo')); |
| 764 unittest.expect(o.requestId, unittest.equals('foo')); | 799 unittest.expect(o.requestId, unittest.equals('foo')); |
| 765 checkUnnamed30(o.timePeriods); | 800 checkUnnamed1082(o.timePeriods); |
| 766 } | 801 } |
| 767 buildCounterEventRecordRequest--; | 802 buildCounterEventRecordRequest--; |
| 768 } | 803 } |
| 769 | 804 |
| 770 core.int buildCounterEventUpdateRequest = 0; | 805 core.int buildCounterEventUpdateRequest = 0; |
| 771 buildEventUpdateRequest() { | 806 buildEventUpdateRequest() { |
| 772 var o = new api.EventUpdateRequest(); | 807 var o = new api.EventUpdateRequest(); |
| 773 buildCounterEventUpdateRequest++; | 808 buildCounterEventUpdateRequest++; |
| 774 if (buildCounterEventUpdateRequest < 3) { | 809 if (buildCounterEventUpdateRequest < 3) { |
| 775 o.definitionId = "foo"; | 810 o.definitionId = "foo"; |
| 776 o.kind = "foo"; | 811 o.kind = "foo"; |
| 777 o.updateCount = "foo"; | 812 o.updateCount = "foo"; |
| 778 } | 813 } |
| 779 buildCounterEventUpdateRequest--; | 814 buildCounterEventUpdateRequest--; |
| 780 return o; | 815 return o; |
| 781 } | 816 } |
| 782 | 817 |
| 783 checkEventUpdateRequest(api.EventUpdateRequest o) { | 818 checkEventUpdateRequest(api.EventUpdateRequest o) { |
| 784 buildCounterEventUpdateRequest++; | 819 buildCounterEventUpdateRequest++; |
| 785 if (buildCounterEventUpdateRequest < 3) { | 820 if (buildCounterEventUpdateRequest < 3) { |
| 786 unittest.expect(o.definitionId, unittest.equals('foo')); | 821 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 787 unittest.expect(o.kind, unittest.equals('foo')); | 822 unittest.expect(o.kind, unittest.equals('foo')); |
| 788 unittest.expect(o.updateCount, unittest.equals('foo')); | 823 unittest.expect(o.updateCount, unittest.equals('foo')); |
| 789 } | 824 } |
| 790 buildCounterEventUpdateRequest--; | 825 buildCounterEventUpdateRequest--; |
| 791 } | 826 } |
| 792 | 827 |
| 793 buildUnnamed31() { | 828 buildUnnamed1083() { |
| 794 var o = new core.List<api.EventBatchRecordFailure>(); | 829 var o = new core.List<api.EventBatchRecordFailure>(); |
| 795 o.add(buildEventBatchRecordFailure()); | 830 o.add(buildEventBatchRecordFailure()); |
| 796 o.add(buildEventBatchRecordFailure()); | 831 o.add(buildEventBatchRecordFailure()); |
| 797 return o; | 832 return o; |
| 798 } | 833 } |
| 799 | 834 |
| 800 checkUnnamed31(core.List<api.EventBatchRecordFailure> o) { | 835 checkUnnamed1083(core.List<api.EventBatchRecordFailure> o) { |
| 801 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
| 802 checkEventBatchRecordFailure(o[0]); | 837 checkEventBatchRecordFailure(o[0]); |
| 803 checkEventBatchRecordFailure(o[1]); | 838 checkEventBatchRecordFailure(o[1]); |
| 804 } | 839 } |
| 805 | 840 |
| 806 buildUnnamed32() { | 841 buildUnnamed1084() { |
| 807 var o = new core.List<api.EventRecordFailure>(); | 842 var o = new core.List<api.EventRecordFailure>(); |
| 808 o.add(buildEventRecordFailure()); | 843 o.add(buildEventRecordFailure()); |
| 809 o.add(buildEventRecordFailure()); | 844 o.add(buildEventRecordFailure()); |
| 810 return o; | 845 return o; |
| 811 } | 846 } |
| 812 | 847 |
| 813 checkUnnamed32(core.List<api.EventRecordFailure> o) { | 848 checkUnnamed1084(core.List<api.EventRecordFailure> o) { |
| 814 unittest.expect(o, unittest.hasLength(2)); | 849 unittest.expect(o, unittest.hasLength(2)); |
| 815 checkEventRecordFailure(o[0]); | 850 checkEventRecordFailure(o[0]); |
| 816 checkEventRecordFailure(o[1]); | 851 checkEventRecordFailure(o[1]); |
| 817 } | 852 } |
| 818 | 853 |
| 819 buildUnnamed33() { | 854 buildUnnamed1085() { |
| 820 var o = new core.List<api.PlayerEvent>(); | 855 var o = new core.List<api.PlayerEvent>(); |
| 821 o.add(buildPlayerEvent()); | 856 o.add(buildPlayerEvent()); |
| 822 o.add(buildPlayerEvent()); | 857 o.add(buildPlayerEvent()); |
| 823 return o; | 858 return o; |
| 824 } | 859 } |
| 825 | 860 |
| 826 checkUnnamed33(core.List<api.PlayerEvent> o) { | 861 checkUnnamed1085(core.List<api.PlayerEvent> o) { |
| 827 unittest.expect(o, unittest.hasLength(2)); | 862 unittest.expect(o, unittest.hasLength(2)); |
| 828 checkPlayerEvent(o[0]); | 863 checkPlayerEvent(o[0]); |
| 829 checkPlayerEvent(o[1]); | 864 checkPlayerEvent(o[1]); |
| 830 } | 865 } |
| 831 | 866 |
| 832 core.int buildCounterEventUpdateResponse = 0; | 867 core.int buildCounterEventUpdateResponse = 0; |
| 833 buildEventUpdateResponse() { | 868 buildEventUpdateResponse() { |
| 834 var o = new api.EventUpdateResponse(); | 869 var o = new api.EventUpdateResponse(); |
| 835 buildCounterEventUpdateResponse++; | 870 buildCounterEventUpdateResponse++; |
| 836 if (buildCounterEventUpdateResponse < 3) { | 871 if (buildCounterEventUpdateResponse < 3) { |
| 837 o.batchFailures = buildUnnamed31(); | 872 o.batchFailures = buildUnnamed1083(); |
| 838 o.eventFailures = buildUnnamed32(); | 873 o.eventFailures = buildUnnamed1084(); |
| 839 o.kind = "foo"; | 874 o.kind = "foo"; |
| 840 o.playerEvents = buildUnnamed33(); | 875 o.playerEvents = buildUnnamed1085(); |
| 841 } | 876 } |
| 842 buildCounterEventUpdateResponse--; | 877 buildCounterEventUpdateResponse--; |
| 843 return o; | 878 return o; |
| 844 } | 879 } |
| 845 | 880 |
| 846 checkEventUpdateResponse(api.EventUpdateResponse o) { | 881 checkEventUpdateResponse(api.EventUpdateResponse o) { |
| 847 buildCounterEventUpdateResponse++; | 882 buildCounterEventUpdateResponse++; |
| 848 if (buildCounterEventUpdateResponse < 3) { | 883 if (buildCounterEventUpdateResponse < 3) { |
| 849 checkUnnamed31(o.batchFailures); | 884 checkUnnamed1083(o.batchFailures); |
| 850 checkUnnamed32(o.eventFailures); | 885 checkUnnamed1084(o.eventFailures); |
| 851 unittest.expect(o.kind, unittest.equals('foo')); | 886 unittest.expect(o.kind, unittest.equals('foo')); |
| 852 checkUnnamed33(o.playerEvents); | 887 checkUnnamed1085(o.playerEvents); |
| 853 } | 888 } |
| 854 buildCounterEventUpdateResponse--; | 889 buildCounterEventUpdateResponse--; |
| 855 } | 890 } |
| 856 | 891 |
| 857 core.int buildCounterGamesAchievementIncrement = 0; | 892 core.int buildCounterGamesAchievementIncrement = 0; |
| 858 buildGamesAchievementIncrement() { | 893 buildGamesAchievementIncrement() { |
| 859 var o = new api.GamesAchievementIncrement(); | 894 var o = new api.GamesAchievementIncrement(); |
| 860 buildCounterGamesAchievementIncrement++; | 895 buildCounterGamesAchievementIncrement++; |
| 861 if (buildCounterGamesAchievementIncrement < 3) { | 896 if (buildCounterGamesAchievementIncrement < 3) { |
| 862 o.kind = "foo"; | 897 o.kind = "foo"; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 checkPlayer(o.player); | 1131 checkPlayer(o.player); |
| 1097 unittest.expect(o.scoreRank, unittest.equals('foo')); | 1132 unittest.expect(o.scoreRank, unittest.equals('foo')); |
| 1098 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1133 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1099 unittest.expect(o.scoreValue, unittest.equals('foo')); | 1134 unittest.expect(o.scoreValue, unittest.equals('foo')); |
| 1100 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1135 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1101 unittest.expect(o.writeTimestampMillis, unittest.equals('foo')); | 1136 unittest.expect(o.writeTimestampMillis, unittest.equals('foo')); |
| 1102 } | 1137 } |
| 1103 buildCounterLeaderboardEntry--; | 1138 buildCounterLeaderboardEntry--; |
| 1104 } | 1139 } |
| 1105 | 1140 |
| 1106 buildUnnamed34() { | 1141 buildUnnamed1086() { |
| 1107 var o = new core.List<api.Leaderboard>(); | 1142 var o = new core.List<api.Leaderboard>(); |
| 1108 o.add(buildLeaderboard()); | 1143 o.add(buildLeaderboard()); |
| 1109 o.add(buildLeaderboard()); | 1144 o.add(buildLeaderboard()); |
| 1110 return o; | 1145 return o; |
| 1111 } | 1146 } |
| 1112 | 1147 |
| 1113 checkUnnamed34(core.List<api.Leaderboard> o) { | 1148 checkUnnamed1086(core.List<api.Leaderboard> o) { |
| 1114 unittest.expect(o, unittest.hasLength(2)); | 1149 unittest.expect(o, unittest.hasLength(2)); |
| 1115 checkLeaderboard(o[0]); | 1150 checkLeaderboard(o[0]); |
| 1116 checkLeaderboard(o[1]); | 1151 checkLeaderboard(o[1]); |
| 1117 } | 1152 } |
| 1118 | 1153 |
| 1119 core.int buildCounterLeaderboardListResponse = 0; | 1154 core.int buildCounterLeaderboardListResponse = 0; |
| 1120 buildLeaderboardListResponse() { | 1155 buildLeaderboardListResponse() { |
| 1121 var o = new api.LeaderboardListResponse(); | 1156 var o = new api.LeaderboardListResponse(); |
| 1122 buildCounterLeaderboardListResponse++; | 1157 buildCounterLeaderboardListResponse++; |
| 1123 if (buildCounterLeaderboardListResponse < 3) { | 1158 if (buildCounterLeaderboardListResponse < 3) { |
| 1124 o.items = buildUnnamed34(); | 1159 o.items = buildUnnamed1086(); |
| 1125 o.kind = "foo"; | 1160 o.kind = "foo"; |
| 1126 o.nextPageToken = "foo"; | 1161 o.nextPageToken = "foo"; |
| 1127 } | 1162 } |
| 1128 buildCounterLeaderboardListResponse--; | 1163 buildCounterLeaderboardListResponse--; |
| 1129 return o; | 1164 return o; |
| 1130 } | 1165 } |
| 1131 | 1166 |
| 1132 checkLeaderboardListResponse(api.LeaderboardListResponse o) { | 1167 checkLeaderboardListResponse(api.LeaderboardListResponse o) { |
| 1133 buildCounterLeaderboardListResponse++; | 1168 buildCounterLeaderboardListResponse++; |
| 1134 if (buildCounterLeaderboardListResponse < 3) { | 1169 if (buildCounterLeaderboardListResponse < 3) { |
| 1135 checkUnnamed34(o.items); | 1170 checkUnnamed1086(o.items); |
| 1136 unittest.expect(o.kind, unittest.equals('foo')); | 1171 unittest.expect(o.kind, unittest.equals('foo')); |
| 1137 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1172 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1138 } | 1173 } |
| 1139 buildCounterLeaderboardListResponse--; | 1174 buildCounterLeaderboardListResponse--; |
| 1140 } | 1175 } |
| 1141 | 1176 |
| 1142 core.int buildCounterLeaderboardScoreRank = 0; | 1177 core.int buildCounterLeaderboardScoreRank = 0; |
| 1143 buildLeaderboardScoreRank() { | 1178 buildLeaderboardScoreRank() { |
| 1144 var o = new api.LeaderboardScoreRank(); | 1179 var o = new api.LeaderboardScoreRank(); |
| 1145 buildCounterLeaderboardScoreRank++; | 1180 buildCounterLeaderboardScoreRank++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1159 if (buildCounterLeaderboardScoreRank < 3) { | 1194 if (buildCounterLeaderboardScoreRank < 3) { |
| 1160 unittest.expect(o.formattedNumScores, unittest.equals('foo')); | 1195 unittest.expect(o.formattedNumScores, unittest.equals('foo')); |
| 1161 unittest.expect(o.formattedRank, unittest.equals('foo')); | 1196 unittest.expect(o.formattedRank, unittest.equals('foo')); |
| 1162 unittest.expect(o.kind, unittest.equals('foo')); | 1197 unittest.expect(o.kind, unittest.equals('foo')); |
| 1163 unittest.expect(o.numScores, unittest.equals('foo')); | 1198 unittest.expect(o.numScores, unittest.equals('foo')); |
| 1164 unittest.expect(o.rank, unittest.equals('foo')); | 1199 unittest.expect(o.rank, unittest.equals('foo')); |
| 1165 } | 1200 } |
| 1166 buildCounterLeaderboardScoreRank--; | 1201 buildCounterLeaderboardScoreRank--; |
| 1167 } | 1202 } |
| 1168 | 1203 |
| 1169 buildUnnamed35() { | 1204 buildUnnamed1087() { |
| 1170 var o = new core.List<api.LeaderboardEntry>(); | 1205 var o = new core.List<api.LeaderboardEntry>(); |
| 1171 o.add(buildLeaderboardEntry()); | 1206 o.add(buildLeaderboardEntry()); |
| 1172 o.add(buildLeaderboardEntry()); | 1207 o.add(buildLeaderboardEntry()); |
| 1173 return o; | 1208 return o; |
| 1174 } | 1209 } |
| 1175 | 1210 |
| 1176 checkUnnamed35(core.List<api.LeaderboardEntry> o) { | 1211 checkUnnamed1087(core.List<api.LeaderboardEntry> o) { |
| 1177 unittest.expect(o, unittest.hasLength(2)); | 1212 unittest.expect(o, unittest.hasLength(2)); |
| 1178 checkLeaderboardEntry(o[0]); | 1213 checkLeaderboardEntry(o[0]); |
| 1179 checkLeaderboardEntry(o[1]); | 1214 checkLeaderboardEntry(o[1]); |
| 1180 } | 1215 } |
| 1181 | 1216 |
| 1182 core.int buildCounterLeaderboardScores = 0; | 1217 core.int buildCounterLeaderboardScores = 0; |
| 1183 buildLeaderboardScores() { | 1218 buildLeaderboardScores() { |
| 1184 var o = new api.LeaderboardScores(); | 1219 var o = new api.LeaderboardScores(); |
| 1185 buildCounterLeaderboardScores++; | 1220 buildCounterLeaderboardScores++; |
| 1186 if (buildCounterLeaderboardScores < 3) { | 1221 if (buildCounterLeaderboardScores < 3) { |
| 1187 o.items = buildUnnamed35(); | 1222 o.items = buildUnnamed1087(); |
| 1188 o.kind = "foo"; | 1223 o.kind = "foo"; |
| 1189 o.nextPageToken = "foo"; | 1224 o.nextPageToken = "foo"; |
| 1190 o.numScores = "foo"; | 1225 o.numScores = "foo"; |
| 1191 o.playerScore = buildLeaderboardEntry(); | 1226 o.playerScore = buildLeaderboardEntry(); |
| 1192 o.prevPageToken = "foo"; | 1227 o.prevPageToken = "foo"; |
| 1193 } | 1228 } |
| 1194 buildCounterLeaderboardScores--; | 1229 buildCounterLeaderboardScores--; |
| 1195 return o; | 1230 return o; |
| 1196 } | 1231 } |
| 1197 | 1232 |
| 1198 checkLeaderboardScores(api.LeaderboardScores o) { | 1233 checkLeaderboardScores(api.LeaderboardScores o) { |
| 1199 buildCounterLeaderboardScores++; | 1234 buildCounterLeaderboardScores++; |
| 1200 if (buildCounterLeaderboardScores < 3) { | 1235 if (buildCounterLeaderboardScores < 3) { |
| 1201 checkUnnamed35(o.items); | 1236 checkUnnamed1087(o.items); |
| 1202 unittest.expect(o.kind, unittest.equals('foo')); | 1237 unittest.expect(o.kind, unittest.equals('foo')); |
| 1203 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1238 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1204 unittest.expect(o.numScores, unittest.equals('foo')); | 1239 unittest.expect(o.numScores, unittest.equals('foo')); |
| 1205 checkLeaderboardEntry(o.playerScore); | 1240 checkLeaderboardEntry(o.playerScore); |
| 1206 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1241 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 1207 } | 1242 } |
| 1208 buildCounterLeaderboardScores--; | 1243 buildCounterLeaderboardScores--; |
| 1209 } | 1244 } |
| 1210 | 1245 |
| 1211 buildUnnamed36() { | 1246 buildUnnamed1088() { |
| 1212 var o = new core.List<api.PlayerLevel>(); | 1247 var o = new core.List<api.PlayerLevel>(); |
| 1213 o.add(buildPlayerLevel()); | 1248 o.add(buildPlayerLevel()); |
| 1214 o.add(buildPlayerLevel()); | 1249 o.add(buildPlayerLevel()); |
| 1215 return o; | 1250 return o; |
| 1216 } | 1251 } |
| 1217 | 1252 |
| 1218 checkUnnamed36(core.List<api.PlayerLevel> o) { | 1253 checkUnnamed1088(core.List<api.PlayerLevel> o) { |
| 1219 unittest.expect(o, unittest.hasLength(2)); | 1254 unittest.expect(o, unittest.hasLength(2)); |
| 1220 checkPlayerLevel(o[0]); | 1255 checkPlayerLevel(o[0]); |
| 1221 checkPlayerLevel(o[1]); | 1256 checkPlayerLevel(o[1]); |
| 1222 } | 1257 } |
| 1223 | 1258 |
| 1224 core.int buildCounterMetagameConfig = 0; | 1259 core.int buildCounterMetagameConfig = 0; |
| 1225 buildMetagameConfig() { | 1260 buildMetagameConfig() { |
| 1226 var o = new api.MetagameConfig(); | 1261 var o = new api.MetagameConfig(); |
| 1227 buildCounterMetagameConfig++; | 1262 buildCounterMetagameConfig++; |
| 1228 if (buildCounterMetagameConfig < 3) { | 1263 if (buildCounterMetagameConfig < 3) { |
| 1229 o.currentVersion = 42; | 1264 o.currentVersion = 42; |
| 1230 o.kind = "foo"; | 1265 o.kind = "foo"; |
| 1231 o.playerLevels = buildUnnamed36(); | 1266 o.playerLevels = buildUnnamed1088(); |
| 1232 } | 1267 } |
| 1233 buildCounterMetagameConfig--; | 1268 buildCounterMetagameConfig--; |
| 1234 return o; | 1269 return o; |
| 1235 } | 1270 } |
| 1236 | 1271 |
| 1237 checkMetagameConfig(api.MetagameConfig o) { | 1272 checkMetagameConfig(api.MetagameConfig o) { |
| 1238 buildCounterMetagameConfig++; | 1273 buildCounterMetagameConfig++; |
| 1239 if (buildCounterMetagameConfig < 3) { | 1274 if (buildCounterMetagameConfig < 3) { |
| 1240 unittest.expect(o.currentVersion, unittest.equals(42)); | 1275 unittest.expect(o.currentVersion, unittest.equals(42)); |
| 1241 unittest.expect(o.kind, unittest.equals('foo')); | 1276 unittest.expect(o.kind, unittest.equals('foo')); |
| 1242 checkUnnamed36(o.playerLevels); | 1277 checkUnnamed1088(o.playerLevels); |
| 1243 } | 1278 } |
| 1244 buildCounterMetagameConfig--; | 1279 buildCounterMetagameConfig--; |
| 1245 } | 1280 } |
| 1246 | 1281 |
| 1247 core.int buildCounterNetworkDiagnostics = 0; | 1282 core.int buildCounterNetworkDiagnostics = 0; |
| 1248 buildNetworkDiagnostics() { | 1283 buildNetworkDiagnostics() { |
| 1249 var o = new api.NetworkDiagnostics(); | 1284 var o = new api.NetworkDiagnostics(); |
| 1250 buildCounterNetworkDiagnostics++; | 1285 buildCounterNetworkDiagnostics++; |
| 1251 if (buildCounterNetworkDiagnostics < 3) { | 1286 if (buildCounterNetworkDiagnostics < 3) { |
| 1252 o.androidNetworkSubtype = 42; | 1287 o.androidNetworkSubtype = 42; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 unittest.expect(o.currentSteps, unittest.equals(42)); | 1496 unittest.expect(o.currentSteps, unittest.equals(42)); |
| 1462 unittest.expect(o.experiencePoints, unittest.equals('foo')); | 1497 unittest.expect(o.experiencePoints, unittest.equals('foo')); |
| 1463 unittest.expect(o.formattedCurrentStepsString, unittest.equals('foo')); | 1498 unittest.expect(o.formattedCurrentStepsString, unittest.equals('foo')); |
| 1464 unittest.expect(o.id, unittest.equals('foo')); | 1499 unittest.expect(o.id, unittest.equals('foo')); |
| 1465 unittest.expect(o.kind, unittest.equals('foo')); | 1500 unittest.expect(o.kind, unittest.equals('foo')); |
| 1466 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); | 1501 unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); |
| 1467 } | 1502 } |
| 1468 buildCounterPlayerAchievement--; | 1503 buildCounterPlayerAchievement--; |
| 1469 } | 1504 } |
| 1470 | 1505 |
| 1471 buildUnnamed37() { | 1506 buildUnnamed1089() { |
| 1472 var o = new core.List<api.PlayerAchievement>(); | 1507 var o = new core.List<api.PlayerAchievement>(); |
| 1473 o.add(buildPlayerAchievement()); | 1508 o.add(buildPlayerAchievement()); |
| 1474 o.add(buildPlayerAchievement()); | 1509 o.add(buildPlayerAchievement()); |
| 1475 return o; | 1510 return o; |
| 1476 } | 1511 } |
| 1477 | 1512 |
| 1478 checkUnnamed37(core.List<api.PlayerAchievement> o) { | 1513 checkUnnamed1089(core.List<api.PlayerAchievement> o) { |
| 1479 unittest.expect(o, unittest.hasLength(2)); | 1514 unittest.expect(o, unittest.hasLength(2)); |
| 1480 checkPlayerAchievement(o[0]); | 1515 checkPlayerAchievement(o[0]); |
| 1481 checkPlayerAchievement(o[1]); | 1516 checkPlayerAchievement(o[1]); |
| 1482 } | 1517 } |
| 1483 | 1518 |
| 1484 core.int buildCounterPlayerAchievementListResponse = 0; | 1519 core.int buildCounterPlayerAchievementListResponse = 0; |
| 1485 buildPlayerAchievementListResponse() { | 1520 buildPlayerAchievementListResponse() { |
| 1486 var o = new api.PlayerAchievementListResponse(); | 1521 var o = new api.PlayerAchievementListResponse(); |
| 1487 buildCounterPlayerAchievementListResponse++; | 1522 buildCounterPlayerAchievementListResponse++; |
| 1488 if (buildCounterPlayerAchievementListResponse < 3) { | 1523 if (buildCounterPlayerAchievementListResponse < 3) { |
| 1489 o.items = buildUnnamed37(); | 1524 o.items = buildUnnamed1089(); |
| 1490 o.kind = "foo"; | 1525 o.kind = "foo"; |
| 1491 o.nextPageToken = "foo"; | 1526 o.nextPageToken = "foo"; |
| 1492 } | 1527 } |
| 1493 buildCounterPlayerAchievementListResponse--; | 1528 buildCounterPlayerAchievementListResponse--; |
| 1494 return o; | 1529 return o; |
| 1495 } | 1530 } |
| 1496 | 1531 |
| 1497 checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { | 1532 checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { |
| 1498 buildCounterPlayerAchievementListResponse++; | 1533 buildCounterPlayerAchievementListResponse++; |
| 1499 if (buildCounterPlayerAchievementListResponse < 3) { | 1534 if (buildCounterPlayerAchievementListResponse < 3) { |
| 1500 checkUnnamed37(o.items); | 1535 checkUnnamed1089(o.items); |
| 1501 unittest.expect(o.kind, unittest.equals('foo')); | 1536 unittest.expect(o.kind, unittest.equals('foo')); |
| 1502 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1537 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1503 } | 1538 } |
| 1504 buildCounterPlayerAchievementListResponse--; | 1539 buildCounterPlayerAchievementListResponse--; |
| 1505 } | 1540 } |
| 1506 | 1541 |
| 1507 core.int buildCounterPlayerEvent = 0; | 1542 core.int buildCounterPlayerEvent = 0; |
| 1508 buildPlayerEvent() { | 1543 buildPlayerEvent() { |
| 1509 var o = new api.PlayerEvent(); | 1544 var o = new api.PlayerEvent(); |
| 1510 buildCounterPlayerEvent++; | 1545 buildCounterPlayerEvent++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1524 if (buildCounterPlayerEvent < 3) { | 1559 if (buildCounterPlayerEvent < 3) { |
| 1525 unittest.expect(o.definitionId, unittest.equals('foo')); | 1560 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 1526 unittest.expect(o.formattedNumEvents, unittest.equals('foo')); | 1561 unittest.expect(o.formattedNumEvents, unittest.equals('foo')); |
| 1527 unittest.expect(o.kind, unittest.equals('foo')); | 1562 unittest.expect(o.kind, unittest.equals('foo')); |
| 1528 unittest.expect(o.numEvents, unittest.equals('foo')); | 1563 unittest.expect(o.numEvents, unittest.equals('foo')); |
| 1529 unittest.expect(o.playerId, unittest.equals('foo')); | 1564 unittest.expect(o.playerId, unittest.equals('foo')); |
| 1530 } | 1565 } |
| 1531 buildCounterPlayerEvent--; | 1566 buildCounterPlayerEvent--; |
| 1532 } | 1567 } |
| 1533 | 1568 |
| 1534 buildUnnamed38() { | 1569 buildUnnamed1090() { |
| 1535 var o = new core.List<api.PlayerEvent>(); | 1570 var o = new core.List<api.PlayerEvent>(); |
| 1536 o.add(buildPlayerEvent()); | 1571 o.add(buildPlayerEvent()); |
| 1537 o.add(buildPlayerEvent()); | 1572 o.add(buildPlayerEvent()); |
| 1538 return o; | 1573 return o; |
| 1539 } | 1574 } |
| 1540 | 1575 |
| 1541 checkUnnamed38(core.List<api.PlayerEvent> o) { | 1576 checkUnnamed1090(core.List<api.PlayerEvent> o) { |
| 1542 unittest.expect(o, unittest.hasLength(2)); | 1577 unittest.expect(o, unittest.hasLength(2)); |
| 1543 checkPlayerEvent(o[0]); | 1578 checkPlayerEvent(o[0]); |
| 1544 checkPlayerEvent(o[1]); | 1579 checkPlayerEvent(o[1]); |
| 1545 } | 1580 } |
| 1546 | 1581 |
| 1547 core.int buildCounterPlayerEventListResponse = 0; | 1582 core.int buildCounterPlayerEventListResponse = 0; |
| 1548 buildPlayerEventListResponse() { | 1583 buildPlayerEventListResponse() { |
| 1549 var o = new api.PlayerEventListResponse(); | 1584 var o = new api.PlayerEventListResponse(); |
| 1550 buildCounterPlayerEventListResponse++; | 1585 buildCounterPlayerEventListResponse++; |
| 1551 if (buildCounterPlayerEventListResponse < 3) { | 1586 if (buildCounterPlayerEventListResponse < 3) { |
| 1552 o.items = buildUnnamed38(); | 1587 o.items = buildUnnamed1090(); |
| 1553 o.kind = "foo"; | 1588 o.kind = "foo"; |
| 1554 o.nextPageToken = "foo"; | 1589 o.nextPageToken = "foo"; |
| 1555 } | 1590 } |
| 1556 buildCounterPlayerEventListResponse--; | 1591 buildCounterPlayerEventListResponse--; |
| 1557 return o; | 1592 return o; |
| 1558 } | 1593 } |
| 1559 | 1594 |
| 1560 checkPlayerEventListResponse(api.PlayerEventListResponse o) { | 1595 checkPlayerEventListResponse(api.PlayerEventListResponse o) { |
| 1561 buildCounterPlayerEventListResponse++; | 1596 buildCounterPlayerEventListResponse++; |
| 1562 if (buildCounterPlayerEventListResponse < 3) { | 1597 if (buildCounterPlayerEventListResponse < 3) { |
| 1563 checkUnnamed38(o.items); | 1598 checkUnnamed1090(o.items); |
| 1564 unittest.expect(o.kind, unittest.equals('foo')); | 1599 unittest.expect(o.kind, unittest.equals('foo')); |
| 1565 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1600 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1566 } | 1601 } |
| 1567 buildCounterPlayerEventListResponse--; | 1602 buildCounterPlayerEventListResponse--; |
| 1568 } | 1603 } |
| 1569 | 1604 |
| 1570 core.int buildCounterPlayerExperienceInfo = 0; | 1605 core.int buildCounterPlayerExperienceInfo = 0; |
| 1571 buildPlayerExperienceInfo() { | 1606 buildPlayerExperienceInfo() { |
| 1572 var o = new api.PlayerExperienceInfo(); | 1607 var o = new api.PlayerExperienceInfo(); |
| 1573 buildCounterPlayerExperienceInfo++; | 1608 buildCounterPlayerExperienceInfo++; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 unittest.expect(o.scoreString, unittest.equals('foo')); | 1657 unittest.expect(o.scoreString, unittest.equals('foo')); |
| 1623 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1658 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1624 unittest.expect(o.scoreValue, unittest.equals('foo')); | 1659 unittest.expect(o.scoreValue, unittest.equals('foo')); |
| 1625 checkLeaderboardScoreRank(o.socialRank); | 1660 checkLeaderboardScoreRank(o.socialRank); |
| 1626 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1661 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1627 unittest.expect(o.writeTimestamp, unittest.equals('foo')); | 1662 unittest.expect(o.writeTimestamp, unittest.equals('foo')); |
| 1628 } | 1663 } |
| 1629 buildCounterPlayerLeaderboardScore--; | 1664 buildCounterPlayerLeaderboardScore--; |
| 1630 } | 1665 } |
| 1631 | 1666 |
| 1632 buildUnnamed39() { | 1667 buildUnnamed1091() { |
| 1633 var o = new core.List<api.PlayerLeaderboardScore>(); | 1668 var o = new core.List<api.PlayerLeaderboardScore>(); |
| 1634 o.add(buildPlayerLeaderboardScore()); | 1669 o.add(buildPlayerLeaderboardScore()); |
| 1635 o.add(buildPlayerLeaderboardScore()); | 1670 o.add(buildPlayerLeaderboardScore()); |
| 1636 return o; | 1671 return o; |
| 1637 } | 1672 } |
| 1638 | 1673 |
| 1639 checkUnnamed39(core.List<api.PlayerLeaderboardScore> o) { | 1674 checkUnnamed1091(core.List<api.PlayerLeaderboardScore> o) { |
| 1640 unittest.expect(o, unittest.hasLength(2)); | 1675 unittest.expect(o, unittest.hasLength(2)); |
| 1641 checkPlayerLeaderboardScore(o[0]); | 1676 checkPlayerLeaderboardScore(o[0]); |
| 1642 checkPlayerLeaderboardScore(o[1]); | 1677 checkPlayerLeaderboardScore(o[1]); |
| 1643 } | 1678 } |
| 1644 | 1679 |
| 1645 core.int buildCounterPlayerLeaderboardScoreListResponse = 0; | 1680 core.int buildCounterPlayerLeaderboardScoreListResponse = 0; |
| 1646 buildPlayerLeaderboardScoreListResponse() { | 1681 buildPlayerLeaderboardScoreListResponse() { |
| 1647 var o = new api.PlayerLeaderboardScoreListResponse(); | 1682 var o = new api.PlayerLeaderboardScoreListResponse(); |
| 1648 buildCounterPlayerLeaderboardScoreListResponse++; | 1683 buildCounterPlayerLeaderboardScoreListResponse++; |
| 1649 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { | 1684 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { |
| 1650 o.items = buildUnnamed39(); | 1685 o.items = buildUnnamed1091(); |
| 1651 o.kind = "foo"; | 1686 o.kind = "foo"; |
| 1652 o.nextPageToken = "foo"; | 1687 o.nextPageToken = "foo"; |
| 1653 o.player = buildPlayer(); | 1688 o.player = buildPlayer(); |
| 1654 } | 1689 } |
| 1655 buildCounterPlayerLeaderboardScoreListResponse--; | 1690 buildCounterPlayerLeaderboardScoreListResponse--; |
| 1656 return o; | 1691 return o; |
| 1657 } | 1692 } |
| 1658 | 1693 |
| 1659 checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o
) { | 1694 checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o
) { |
| 1660 buildCounterPlayerLeaderboardScoreListResponse++; | 1695 buildCounterPlayerLeaderboardScoreListResponse++; |
| 1661 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { | 1696 if (buildCounterPlayerLeaderboardScoreListResponse < 3) { |
| 1662 checkUnnamed39(o.items); | 1697 checkUnnamed1091(o.items); |
| 1663 unittest.expect(o.kind, unittest.equals('foo')); | 1698 unittest.expect(o.kind, unittest.equals('foo')); |
| 1664 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1699 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1665 checkPlayer(o.player); | 1700 checkPlayer(o.player); |
| 1666 } | 1701 } |
| 1667 buildCounterPlayerLeaderboardScoreListResponse--; | 1702 buildCounterPlayerLeaderboardScoreListResponse--; |
| 1668 } | 1703 } |
| 1669 | 1704 |
| 1670 core.int buildCounterPlayerLevel = 0; | 1705 core.int buildCounterPlayerLevel = 0; |
| 1671 buildPlayerLevel() { | 1706 buildPlayerLevel() { |
| 1672 var o = new api.PlayerLevel(); | 1707 var o = new api.PlayerLevel(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1685 buildCounterPlayerLevel++; | 1720 buildCounterPlayerLevel++; |
| 1686 if (buildCounterPlayerLevel < 3) { | 1721 if (buildCounterPlayerLevel < 3) { |
| 1687 unittest.expect(o.kind, unittest.equals('foo')); | 1722 unittest.expect(o.kind, unittest.equals('foo')); |
| 1688 unittest.expect(o.level, unittest.equals(42)); | 1723 unittest.expect(o.level, unittest.equals(42)); |
| 1689 unittest.expect(o.maxExperiencePoints, unittest.equals('foo')); | 1724 unittest.expect(o.maxExperiencePoints, unittest.equals('foo')); |
| 1690 unittest.expect(o.minExperiencePoints, unittest.equals('foo')); | 1725 unittest.expect(o.minExperiencePoints, unittest.equals('foo')); |
| 1691 } | 1726 } |
| 1692 buildCounterPlayerLevel--; | 1727 buildCounterPlayerLevel--; |
| 1693 } | 1728 } |
| 1694 | 1729 |
| 1695 buildUnnamed40() { | 1730 buildUnnamed1092() { |
| 1696 var o = new core.List<api.Player>(); | 1731 var o = new core.List<api.Player>(); |
| 1697 o.add(buildPlayer()); | 1732 o.add(buildPlayer()); |
| 1698 o.add(buildPlayer()); | 1733 o.add(buildPlayer()); |
| 1699 return o; | 1734 return o; |
| 1700 } | 1735 } |
| 1701 | 1736 |
| 1702 checkUnnamed40(core.List<api.Player> o) { | 1737 checkUnnamed1092(core.List<api.Player> o) { |
| 1703 unittest.expect(o, unittest.hasLength(2)); | 1738 unittest.expect(o, unittest.hasLength(2)); |
| 1704 checkPlayer(o[0]); | 1739 checkPlayer(o[0]); |
| 1705 checkPlayer(o[1]); | 1740 checkPlayer(o[1]); |
| 1706 } | 1741 } |
| 1707 | 1742 |
| 1708 core.int buildCounterPlayerListResponse = 0; | 1743 core.int buildCounterPlayerListResponse = 0; |
| 1709 buildPlayerListResponse() { | 1744 buildPlayerListResponse() { |
| 1710 var o = new api.PlayerListResponse(); | 1745 var o = new api.PlayerListResponse(); |
| 1711 buildCounterPlayerListResponse++; | 1746 buildCounterPlayerListResponse++; |
| 1712 if (buildCounterPlayerListResponse < 3) { | 1747 if (buildCounterPlayerListResponse < 3) { |
| 1713 o.items = buildUnnamed40(); | 1748 o.items = buildUnnamed1092(); |
| 1714 o.kind = "foo"; | 1749 o.kind = "foo"; |
| 1715 o.nextPageToken = "foo"; | 1750 o.nextPageToken = "foo"; |
| 1716 } | 1751 } |
| 1717 buildCounterPlayerListResponse--; | 1752 buildCounterPlayerListResponse--; |
| 1718 return o; | 1753 return o; |
| 1719 } | 1754 } |
| 1720 | 1755 |
| 1721 checkPlayerListResponse(api.PlayerListResponse o) { | 1756 checkPlayerListResponse(api.PlayerListResponse o) { |
| 1722 buildCounterPlayerListResponse++; | 1757 buildCounterPlayerListResponse++; |
| 1723 if (buildCounterPlayerListResponse < 3) { | 1758 if (buildCounterPlayerListResponse < 3) { |
| 1724 checkUnnamed40(o.items); | 1759 checkUnnamed1092(o.items); |
| 1725 unittest.expect(o.kind, unittest.equals('foo')); | 1760 unittest.expect(o.kind, unittest.equals('foo')); |
| 1726 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1761 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1727 } | 1762 } |
| 1728 buildCounterPlayerListResponse--; | 1763 buildCounterPlayerListResponse--; |
| 1729 } | 1764 } |
| 1730 | 1765 |
| 1731 core.int buildCounterPlayerScore = 0; | 1766 core.int buildCounterPlayerScore = 0; |
| 1732 buildPlayerScore() { | 1767 buildPlayerScore() { |
| 1733 var o = new api.PlayerScore(); | 1768 var o = new api.PlayerScore(); |
| 1734 buildCounterPlayerScore++; | 1769 buildCounterPlayerScore++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1748 if (buildCounterPlayerScore < 3) { | 1783 if (buildCounterPlayerScore < 3) { |
| 1749 unittest.expect(o.formattedScore, unittest.equals('foo')); | 1784 unittest.expect(o.formattedScore, unittest.equals('foo')); |
| 1750 unittest.expect(o.kind, unittest.equals('foo')); | 1785 unittest.expect(o.kind, unittest.equals('foo')); |
| 1751 unittest.expect(o.score, unittest.equals('foo')); | 1786 unittest.expect(o.score, unittest.equals('foo')); |
| 1752 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1787 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1753 unittest.expect(o.timeSpan, unittest.equals('foo')); | 1788 unittest.expect(o.timeSpan, unittest.equals('foo')); |
| 1754 } | 1789 } |
| 1755 buildCounterPlayerScore--; | 1790 buildCounterPlayerScore--; |
| 1756 } | 1791 } |
| 1757 | 1792 |
| 1758 buildUnnamed41() { | 1793 buildUnnamed1093() { |
| 1759 var o = new core.List<api.PlayerScoreResponse>(); | 1794 var o = new core.List<api.PlayerScoreResponse>(); |
| 1760 o.add(buildPlayerScoreResponse()); | 1795 o.add(buildPlayerScoreResponse()); |
| 1761 o.add(buildPlayerScoreResponse()); | 1796 o.add(buildPlayerScoreResponse()); |
| 1762 return o; | 1797 return o; |
| 1763 } | 1798 } |
| 1764 | 1799 |
| 1765 checkUnnamed41(core.List<api.PlayerScoreResponse> o) { | 1800 checkUnnamed1093(core.List<api.PlayerScoreResponse> o) { |
| 1766 unittest.expect(o, unittest.hasLength(2)); | 1801 unittest.expect(o, unittest.hasLength(2)); |
| 1767 checkPlayerScoreResponse(o[0]); | 1802 checkPlayerScoreResponse(o[0]); |
| 1768 checkPlayerScoreResponse(o[1]); | 1803 checkPlayerScoreResponse(o[1]); |
| 1769 } | 1804 } |
| 1770 | 1805 |
| 1771 core.int buildCounterPlayerScoreListResponse = 0; | 1806 core.int buildCounterPlayerScoreListResponse = 0; |
| 1772 buildPlayerScoreListResponse() { | 1807 buildPlayerScoreListResponse() { |
| 1773 var o = new api.PlayerScoreListResponse(); | 1808 var o = new api.PlayerScoreListResponse(); |
| 1774 buildCounterPlayerScoreListResponse++; | 1809 buildCounterPlayerScoreListResponse++; |
| 1775 if (buildCounterPlayerScoreListResponse < 3) { | 1810 if (buildCounterPlayerScoreListResponse < 3) { |
| 1776 o.kind = "foo"; | 1811 o.kind = "foo"; |
| 1777 o.submittedScores = buildUnnamed41(); | 1812 o.submittedScores = buildUnnamed1093(); |
| 1778 } | 1813 } |
| 1779 buildCounterPlayerScoreListResponse--; | 1814 buildCounterPlayerScoreListResponse--; |
| 1780 return o; | 1815 return o; |
| 1781 } | 1816 } |
| 1782 | 1817 |
| 1783 checkPlayerScoreListResponse(api.PlayerScoreListResponse o) { | 1818 checkPlayerScoreListResponse(api.PlayerScoreListResponse o) { |
| 1784 buildCounterPlayerScoreListResponse++; | 1819 buildCounterPlayerScoreListResponse++; |
| 1785 if (buildCounterPlayerScoreListResponse < 3) { | 1820 if (buildCounterPlayerScoreListResponse < 3) { |
| 1786 unittest.expect(o.kind, unittest.equals('foo')); | 1821 unittest.expect(o.kind, unittest.equals('foo')); |
| 1787 checkUnnamed41(o.submittedScores); | 1822 checkUnnamed1093(o.submittedScores); |
| 1788 } | 1823 } |
| 1789 buildCounterPlayerScoreListResponse--; | 1824 buildCounterPlayerScoreListResponse--; |
| 1790 } | 1825 } |
| 1791 | 1826 |
| 1792 buildUnnamed42() { | 1827 buildUnnamed1094() { |
| 1793 var o = new core.List<core.String>(); | 1828 var o = new core.List<core.String>(); |
| 1794 o.add("foo"); | 1829 o.add("foo"); |
| 1795 o.add("foo"); | 1830 o.add("foo"); |
| 1796 return o; | 1831 return o; |
| 1797 } | 1832 } |
| 1798 | 1833 |
| 1799 checkUnnamed42(core.List<core.String> o) { | 1834 checkUnnamed1094(core.List<core.String> o) { |
| 1800 unittest.expect(o, unittest.hasLength(2)); | 1835 unittest.expect(o, unittest.hasLength(2)); |
| 1801 unittest.expect(o[0], unittest.equals('foo')); | 1836 unittest.expect(o[0], unittest.equals('foo')); |
| 1802 unittest.expect(o[1], unittest.equals('foo')); | 1837 unittest.expect(o[1], unittest.equals('foo')); |
| 1803 } | 1838 } |
| 1804 | 1839 |
| 1805 buildUnnamed43() { | 1840 buildUnnamed1095() { |
| 1806 var o = new core.List<api.PlayerScore>(); | 1841 var o = new core.List<api.PlayerScore>(); |
| 1807 o.add(buildPlayerScore()); | 1842 o.add(buildPlayerScore()); |
| 1808 o.add(buildPlayerScore()); | 1843 o.add(buildPlayerScore()); |
| 1809 return o; | 1844 return o; |
| 1810 } | 1845 } |
| 1811 | 1846 |
| 1812 checkUnnamed43(core.List<api.PlayerScore> o) { | 1847 checkUnnamed1095(core.List<api.PlayerScore> o) { |
| 1813 unittest.expect(o, unittest.hasLength(2)); | 1848 unittest.expect(o, unittest.hasLength(2)); |
| 1814 checkPlayerScore(o[0]); | 1849 checkPlayerScore(o[0]); |
| 1815 checkPlayerScore(o[1]); | 1850 checkPlayerScore(o[1]); |
| 1816 } | 1851 } |
| 1817 | 1852 |
| 1818 core.int buildCounterPlayerScoreResponse = 0; | 1853 core.int buildCounterPlayerScoreResponse = 0; |
| 1819 buildPlayerScoreResponse() { | 1854 buildPlayerScoreResponse() { |
| 1820 var o = new api.PlayerScoreResponse(); | 1855 var o = new api.PlayerScoreResponse(); |
| 1821 buildCounterPlayerScoreResponse++; | 1856 buildCounterPlayerScoreResponse++; |
| 1822 if (buildCounterPlayerScoreResponse < 3) { | 1857 if (buildCounterPlayerScoreResponse < 3) { |
| 1823 o.beatenScoreTimeSpans = buildUnnamed42(); | 1858 o.beatenScoreTimeSpans = buildUnnamed1094(); |
| 1824 o.formattedScore = "foo"; | 1859 o.formattedScore = "foo"; |
| 1825 o.kind = "foo"; | 1860 o.kind = "foo"; |
| 1826 o.leaderboardId = "foo"; | 1861 o.leaderboardId = "foo"; |
| 1827 o.scoreTag = "foo"; | 1862 o.scoreTag = "foo"; |
| 1828 o.unbeatenScores = buildUnnamed43(); | 1863 o.unbeatenScores = buildUnnamed1095(); |
| 1829 } | 1864 } |
| 1830 buildCounterPlayerScoreResponse--; | 1865 buildCounterPlayerScoreResponse--; |
| 1831 return o; | 1866 return o; |
| 1832 } | 1867 } |
| 1833 | 1868 |
| 1834 checkPlayerScoreResponse(api.PlayerScoreResponse o) { | 1869 checkPlayerScoreResponse(api.PlayerScoreResponse o) { |
| 1835 buildCounterPlayerScoreResponse++; | 1870 buildCounterPlayerScoreResponse++; |
| 1836 if (buildCounterPlayerScoreResponse < 3) { | 1871 if (buildCounterPlayerScoreResponse < 3) { |
| 1837 checkUnnamed42(o.beatenScoreTimeSpans); | 1872 checkUnnamed1094(o.beatenScoreTimeSpans); |
| 1838 unittest.expect(o.formattedScore, unittest.equals('foo')); | 1873 unittest.expect(o.formattedScore, unittest.equals('foo')); |
| 1839 unittest.expect(o.kind, unittest.equals('foo')); | 1874 unittest.expect(o.kind, unittest.equals('foo')); |
| 1840 unittest.expect(o.leaderboardId, unittest.equals('foo')); | 1875 unittest.expect(o.leaderboardId, unittest.equals('foo')); |
| 1841 unittest.expect(o.scoreTag, unittest.equals('foo')); | 1876 unittest.expect(o.scoreTag, unittest.equals('foo')); |
| 1842 checkUnnamed43(o.unbeatenScores); | 1877 checkUnnamed1095(o.unbeatenScores); |
| 1843 } | 1878 } |
| 1844 buildCounterPlayerScoreResponse--; | 1879 buildCounterPlayerScoreResponse--; |
| 1845 } | 1880 } |
| 1846 | 1881 |
| 1847 buildUnnamed44() { | 1882 buildUnnamed1096() { |
| 1848 var o = new core.List<api.ScoreSubmission>(); | 1883 var o = new core.List<api.ScoreSubmission>(); |
| 1849 o.add(buildScoreSubmission()); | 1884 o.add(buildScoreSubmission()); |
| 1850 o.add(buildScoreSubmission()); | 1885 o.add(buildScoreSubmission()); |
| 1851 return o; | 1886 return o; |
| 1852 } | 1887 } |
| 1853 | 1888 |
| 1854 checkUnnamed44(core.List<api.ScoreSubmission> o) { | 1889 checkUnnamed1096(core.List<api.ScoreSubmission> o) { |
| 1855 unittest.expect(o, unittest.hasLength(2)); | 1890 unittest.expect(o, unittest.hasLength(2)); |
| 1856 checkScoreSubmission(o[0]); | 1891 checkScoreSubmission(o[0]); |
| 1857 checkScoreSubmission(o[1]); | 1892 checkScoreSubmission(o[1]); |
| 1858 } | 1893 } |
| 1859 | 1894 |
| 1860 core.int buildCounterPlayerScoreSubmissionList = 0; | 1895 core.int buildCounterPlayerScoreSubmissionList = 0; |
| 1861 buildPlayerScoreSubmissionList() { | 1896 buildPlayerScoreSubmissionList() { |
| 1862 var o = new api.PlayerScoreSubmissionList(); | 1897 var o = new api.PlayerScoreSubmissionList(); |
| 1863 buildCounterPlayerScoreSubmissionList++; | 1898 buildCounterPlayerScoreSubmissionList++; |
| 1864 if (buildCounterPlayerScoreSubmissionList < 3) { | 1899 if (buildCounterPlayerScoreSubmissionList < 3) { |
| 1865 o.kind = "foo"; | 1900 o.kind = "foo"; |
| 1866 o.scores = buildUnnamed44(); | 1901 o.scores = buildUnnamed1096(); |
| 1867 } | 1902 } |
| 1868 buildCounterPlayerScoreSubmissionList--; | 1903 buildCounterPlayerScoreSubmissionList--; |
| 1869 return o; | 1904 return o; |
| 1870 } | 1905 } |
| 1871 | 1906 |
| 1872 checkPlayerScoreSubmissionList(api.PlayerScoreSubmissionList o) { | 1907 checkPlayerScoreSubmissionList(api.PlayerScoreSubmissionList o) { |
| 1873 buildCounterPlayerScoreSubmissionList++; | 1908 buildCounterPlayerScoreSubmissionList++; |
| 1874 if (buildCounterPlayerScoreSubmissionList < 3) { | 1909 if (buildCounterPlayerScoreSubmissionList < 3) { |
| 1875 unittest.expect(o.kind, unittest.equals('foo')); | 1910 unittest.expect(o.kind, unittest.equals('foo')); |
| 1876 checkUnnamed44(o.scores); | 1911 checkUnnamed1096(o.scores); |
| 1877 } | 1912 } |
| 1878 buildCounterPlayerScoreSubmissionList--; | 1913 buildCounterPlayerScoreSubmissionList--; |
| 1879 } | 1914 } |
| 1880 | 1915 |
| 1881 core.int buildCounterPushToken = 0; | 1916 core.int buildCounterPushToken = 0; |
| 1882 buildPushToken() { | 1917 buildPushToken() { |
| 1883 var o = new api.PushToken(); | 1918 var o = new api.PushToken(); |
| 1884 buildCounterPushToken++; | 1919 buildCounterPushToken++; |
| 1885 if (buildCounterPushToken < 3) { | 1920 if (buildCounterPushToken < 3) { |
| 1886 o.clientRevision = "foo"; | 1921 o.clientRevision = "foo"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1938 | 1973 |
| 1939 checkPushTokenId(api.PushTokenId o) { | 1974 checkPushTokenId(api.PushTokenId o) { |
| 1940 buildCounterPushTokenId++; | 1975 buildCounterPushTokenId++; |
| 1941 if (buildCounterPushTokenId < 3) { | 1976 if (buildCounterPushTokenId < 3) { |
| 1942 checkPushTokenIdIos(o.ios); | 1977 checkPushTokenIdIos(o.ios); |
| 1943 unittest.expect(o.kind, unittest.equals('foo')); | 1978 unittest.expect(o.kind, unittest.equals('foo')); |
| 1944 } | 1979 } |
| 1945 buildCounterPushTokenId--; | 1980 buildCounterPushTokenId--; |
| 1946 } | 1981 } |
| 1947 | 1982 |
| 1948 buildUnnamed45() { | 1983 buildUnnamed1097() { |
| 1949 var o = new core.List<api.QuestMilestone>(); | 1984 var o = new core.List<api.QuestMilestone>(); |
| 1950 o.add(buildQuestMilestone()); | 1985 o.add(buildQuestMilestone()); |
| 1951 o.add(buildQuestMilestone()); | 1986 o.add(buildQuestMilestone()); |
| 1952 return o; | 1987 return o; |
| 1953 } | 1988 } |
| 1954 | 1989 |
| 1955 checkUnnamed45(core.List<api.QuestMilestone> o) { | 1990 checkUnnamed1097(core.List<api.QuestMilestone> o) { |
| 1956 unittest.expect(o, unittest.hasLength(2)); | 1991 unittest.expect(o, unittest.hasLength(2)); |
| 1957 checkQuestMilestone(o[0]); | 1992 checkQuestMilestone(o[0]); |
| 1958 checkQuestMilestone(o[1]); | 1993 checkQuestMilestone(o[1]); |
| 1959 } | 1994 } |
| 1960 | 1995 |
| 1961 core.int buildCounterQuest = 0; | 1996 core.int buildCounterQuest = 0; |
| 1962 buildQuest() { | 1997 buildQuest() { |
| 1963 var o = new api.Quest(); | 1998 var o = new api.Quest(); |
| 1964 buildCounterQuest++; | 1999 buildCounterQuest++; |
| 1965 if (buildCounterQuest < 3) { | 2000 if (buildCounterQuest < 3) { |
| 1966 o.acceptedTimestampMillis = "foo"; | 2001 o.acceptedTimestampMillis = "foo"; |
| 1967 o.applicationId = "foo"; | 2002 o.applicationId = "foo"; |
| 1968 o.bannerUrl = "foo"; | 2003 o.bannerUrl = "foo"; |
| 1969 o.description = "foo"; | 2004 o.description = "foo"; |
| 1970 o.endTimestampMillis = "foo"; | 2005 o.endTimestampMillis = "foo"; |
| 1971 o.iconUrl = "foo"; | 2006 o.iconUrl = "foo"; |
| 1972 o.id = "foo"; | 2007 o.id = "foo"; |
| 1973 o.isDefaultBannerUrl = true; | 2008 o.isDefaultBannerUrl = true; |
| 1974 o.isDefaultIconUrl = true; | 2009 o.isDefaultIconUrl = true; |
| 1975 o.kind = "foo"; | 2010 o.kind = "foo"; |
| 1976 o.lastUpdatedTimestampMillis = "foo"; | 2011 o.lastUpdatedTimestampMillis = "foo"; |
| 1977 o.milestones = buildUnnamed45(); | 2012 o.milestones = buildUnnamed1097(); |
| 1978 o.name = "foo"; | 2013 o.name = "foo"; |
| 1979 o.notifyTimestampMillis = "foo"; | 2014 o.notifyTimestampMillis = "foo"; |
| 1980 o.startTimestampMillis = "foo"; | 2015 o.startTimestampMillis = "foo"; |
| 1981 o.state = "foo"; | 2016 o.state = "foo"; |
| 1982 } | 2017 } |
| 1983 buildCounterQuest--; | 2018 buildCounterQuest--; |
| 1984 return o; | 2019 return o; |
| 1985 } | 2020 } |
| 1986 | 2021 |
| 1987 checkQuest(api.Quest o) { | 2022 checkQuest(api.Quest o) { |
| 1988 buildCounterQuest++; | 2023 buildCounterQuest++; |
| 1989 if (buildCounterQuest < 3) { | 2024 if (buildCounterQuest < 3) { |
| 1990 unittest.expect(o.acceptedTimestampMillis, unittest.equals('foo')); | 2025 unittest.expect(o.acceptedTimestampMillis, unittest.equals('foo')); |
| 1991 unittest.expect(o.applicationId, unittest.equals('foo')); | 2026 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 1992 unittest.expect(o.bannerUrl, unittest.equals('foo')); | 2027 unittest.expect(o.bannerUrl, unittest.equals('foo')); |
| 1993 unittest.expect(o.description, unittest.equals('foo')); | 2028 unittest.expect(o.description, unittest.equals('foo')); |
| 1994 unittest.expect(o.endTimestampMillis, unittest.equals('foo')); | 2029 unittest.expect(o.endTimestampMillis, unittest.equals('foo')); |
| 1995 unittest.expect(o.iconUrl, unittest.equals('foo')); | 2030 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 1996 unittest.expect(o.id, unittest.equals('foo')); | 2031 unittest.expect(o.id, unittest.equals('foo')); |
| 1997 unittest.expect(o.isDefaultBannerUrl, unittest.isTrue); | 2032 unittest.expect(o.isDefaultBannerUrl, unittest.isTrue); |
| 1998 unittest.expect(o.isDefaultIconUrl, unittest.isTrue); | 2033 unittest.expect(o.isDefaultIconUrl, unittest.isTrue); |
| 1999 unittest.expect(o.kind, unittest.equals('foo')); | 2034 unittest.expect(o.kind, unittest.equals('foo')); |
| 2000 unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); | 2035 unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); |
| 2001 checkUnnamed45(o.milestones); | 2036 checkUnnamed1097(o.milestones); |
| 2002 unittest.expect(o.name, unittest.equals('foo')); | 2037 unittest.expect(o.name, unittest.equals('foo')); |
| 2003 unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); | 2038 unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); |
| 2004 unittest.expect(o.startTimestampMillis, unittest.equals('foo')); | 2039 unittest.expect(o.startTimestampMillis, unittest.equals('foo')); |
| 2005 unittest.expect(o.state, unittest.equals('foo')); | 2040 unittest.expect(o.state, unittest.equals('foo')); |
| 2006 } | 2041 } |
| 2007 buildCounterQuest--; | 2042 buildCounterQuest--; |
| 2008 } | 2043 } |
| 2009 | 2044 |
| 2010 core.int buildCounterQuestContribution = 0; | 2045 core.int buildCounterQuestContribution = 0; |
| 2011 buildQuestContribution() { | 2046 buildQuestContribution() { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2050 if (buildCounterQuestCriterion < 3) { | 2085 if (buildCounterQuestCriterion < 3) { |
| 2051 checkQuestContribution(o.completionContribution); | 2086 checkQuestContribution(o.completionContribution); |
| 2052 checkQuestContribution(o.currentContribution); | 2087 checkQuestContribution(o.currentContribution); |
| 2053 unittest.expect(o.eventId, unittest.equals('foo')); | 2088 unittest.expect(o.eventId, unittest.equals('foo')); |
| 2054 checkQuestContribution(o.initialPlayerProgress); | 2089 checkQuestContribution(o.initialPlayerProgress); |
| 2055 unittest.expect(o.kind, unittest.equals('foo')); | 2090 unittest.expect(o.kind, unittest.equals('foo')); |
| 2056 } | 2091 } |
| 2057 buildCounterQuestCriterion--; | 2092 buildCounterQuestCriterion--; |
| 2058 } | 2093 } |
| 2059 | 2094 |
| 2060 buildUnnamed46() { | 2095 buildUnnamed1098() { |
| 2061 var o = new core.List<api.Quest>(); | 2096 var o = new core.List<api.Quest>(); |
| 2062 o.add(buildQuest()); | 2097 o.add(buildQuest()); |
| 2063 o.add(buildQuest()); | 2098 o.add(buildQuest()); |
| 2064 return o; | 2099 return o; |
| 2065 } | 2100 } |
| 2066 | 2101 |
| 2067 checkUnnamed46(core.List<api.Quest> o) { | 2102 checkUnnamed1098(core.List<api.Quest> o) { |
| 2068 unittest.expect(o, unittest.hasLength(2)); | 2103 unittest.expect(o, unittest.hasLength(2)); |
| 2069 checkQuest(o[0]); | 2104 checkQuest(o[0]); |
| 2070 checkQuest(o[1]); | 2105 checkQuest(o[1]); |
| 2071 } | 2106 } |
| 2072 | 2107 |
| 2073 core.int buildCounterQuestListResponse = 0; | 2108 core.int buildCounterQuestListResponse = 0; |
| 2074 buildQuestListResponse() { | 2109 buildQuestListResponse() { |
| 2075 var o = new api.QuestListResponse(); | 2110 var o = new api.QuestListResponse(); |
| 2076 buildCounterQuestListResponse++; | 2111 buildCounterQuestListResponse++; |
| 2077 if (buildCounterQuestListResponse < 3) { | 2112 if (buildCounterQuestListResponse < 3) { |
| 2078 o.items = buildUnnamed46(); | 2113 o.items = buildUnnamed1098(); |
| 2079 o.kind = "foo"; | 2114 o.kind = "foo"; |
| 2080 o.nextPageToken = "foo"; | 2115 o.nextPageToken = "foo"; |
| 2081 } | 2116 } |
| 2082 buildCounterQuestListResponse--; | 2117 buildCounterQuestListResponse--; |
| 2083 return o; | 2118 return o; |
| 2084 } | 2119 } |
| 2085 | 2120 |
| 2086 checkQuestListResponse(api.QuestListResponse o) { | 2121 checkQuestListResponse(api.QuestListResponse o) { |
| 2087 buildCounterQuestListResponse++; | 2122 buildCounterQuestListResponse++; |
| 2088 if (buildCounterQuestListResponse < 3) { | 2123 if (buildCounterQuestListResponse < 3) { |
| 2089 checkUnnamed46(o.items); | 2124 checkUnnamed1098(o.items); |
| 2090 unittest.expect(o.kind, unittest.equals('foo')); | 2125 unittest.expect(o.kind, unittest.equals('foo')); |
| 2091 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2126 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2092 } | 2127 } |
| 2093 buildCounterQuestListResponse--; | 2128 buildCounterQuestListResponse--; |
| 2094 } | 2129 } |
| 2095 | 2130 |
| 2096 buildUnnamed47() { | 2131 buildUnnamed1099() { |
| 2097 var o = new core.List<api.QuestCriterion>(); | 2132 var o = new core.List<api.QuestCriterion>(); |
| 2098 o.add(buildQuestCriterion()); | 2133 o.add(buildQuestCriterion()); |
| 2099 o.add(buildQuestCriterion()); | 2134 o.add(buildQuestCriterion()); |
| 2100 return o; | 2135 return o; |
| 2101 } | 2136 } |
| 2102 | 2137 |
| 2103 checkUnnamed47(core.List<api.QuestCriterion> o) { | 2138 checkUnnamed1099(core.List<api.QuestCriterion> o) { |
| 2104 unittest.expect(o, unittest.hasLength(2)); | 2139 unittest.expect(o, unittest.hasLength(2)); |
| 2105 checkQuestCriterion(o[0]); | 2140 checkQuestCriterion(o[0]); |
| 2106 checkQuestCriterion(o[1]); | 2141 checkQuestCriterion(o[1]); |
| 2107 } | 2142 } |
| 2108 | 2143 |
| 2109 core.int buildCounterQuestMilestone = 0; | 2144 core.int buildCounterQuestMilestone = 0; |
| 2110 buildQuestMilestone() { | 2145 buildQuestMilestone() { |
| 2111 var o = new api.QuestMilestone(); | 2146 var o = new api.QuestMilestone(); |
| 2112 buildCounterQuestMilestone++; | 2147 buildCounterQuestMilestone++; |
| 2113 if (buildCounterQuestMilestone < 3) { | 2148 if (buildCounterQuestMilestone < 3) { |
| 2114 o.completionRewardData = "foo"; | 2149 o.completionRewardData = "foo"; |
| 2115 o.criteria = buildUnnamed47(); | 2150 o.criteria = buildUnnamed1099(); |
| 2116 o.id = "foo"; | 2151 o.id = "foo"; |
| 2117 o.kind = "foo"; | 2152 o.kind = "foo"; |
| 2118 o.state = "foo"; | 2153 o.state = "foo"; |
| 2119 } | 2154 } |
| 2120 buildCounterQuestMilestone--; | 2155 buildCounterQuestMilestone--; |
| 2121 return o; | 2156 return o; |
| 2122 } | 2157 } |
| 2123 | 2158 |
| 2124 checkQuestMilestone(api.QuestMilestone o) { | 2159 checkQuestMilestone(api.QuestMilestone o) { |
| 2125 buildCounterQuestMilestone++; | 2160 buildCounterQuestMilestone++; |
| 2126 if (buildCounterQuestMilestone < 3) { | 2161 if (buildCounterQuestMilestone < 3) { |
| 2127 unittest.expect(o.completionRewardData, unittest.equals('foo')); | 2162 unittest.expect(o.completionRewardData, unittest.equals('foo')); |
| 2128 checkUnnamed47(o.criteria); | 2163 checkUnnamed1099(o.criteria); |
| 2129 unittest.expect(o.id, unittest.equals('foo')); | 2164 unittest.expect(o.id, unittest.equals('foo')); |
| 2130 unittest.expect(o.kind, unittest.equals('foo')); | 2165 unittest.expect(o.kind, unittest.equals('foo')); |
| 2131 unittest.expect(o.state, unittest.equals('foo')); | 2166 unittest.expect(o.state, unittest.equals('foo')); |
| 2132 } | 2167 } |
| 2133 buildCounterQuestMilestone--; | 2168 buildCounterQuestMilestone--; |
| 2134 } | 2169 } |
| 2135 | 2170 |
| 2136 core.int buildCounterRevisionCheckResponse = 0; | 2171 core.int buildCounterRevisionCheckResponse = 0; |
| 2137 buildRevisionCheckResponse() { | 2172 buildRevisionCheckResponse() { |
| 2138 var o = new api.RevisionCheckResponse(); | 2173 var o = new api.RevisionCheckResponse(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2149 checkRevisionCheckResponse(api.RevisionCheckResponse o) { | 2184 checkRevisionCheckResponse(api.RevisionCheckResponse o) { |
| 2150 buildCounterRevisionCheckResponse++; | 2185 buildCounterRevisionCheckResponse++; |
| 2151 if (buildCounterRevisionCheckResponse < 3) { | 2186 if (buildCounterRevisionCheckResponse < 3) { |
| 2152 unittest.expect(o.apiVersion, unittest.equals('foo')); | 2187 unittest.expect(o.apiVersion, unittest.equals('foo')); |
| 2153 unittest.expect(o.kind, unittest.equals('foo')); | 2188 unittest.expect(o.kind, unittest.equals('foo')); |
| 2154 unittest.expect(o.revisionStatus, unittest.equals('foo')); | 2189 unittest.expect(o.revisionStatus, unittest.equals('foo')); |
| 2155 } | 2190 } |
| 2156 buildCounterRevisionCheckResponse--; | 2191 buildCounterRevisionCheckResponse--; |
| 2157 } | 2192 } |
| 2158 | 2193 |
| 2159 buildUnnamed48() { | 2194 buildUnnamed1100() { |
| 2160 var o = new core.List<api.RoomParticipant>(); | 2195 var o = new core.List<api.RoomParticipant>(); |
| 2161 o.add(buildRoomParticipant()); | 2196 o.add(buildRoomParticipant()); |
| 2162 o.add(buildRoomParticipant()); | 2197 o.add(buildRoomParticipant()); |
| 2163 return o; | 2198 return o; |
| 2164 } | 2199 } |
| 2165 | 2200 |
| 2166 checkUnnamed48(core.List<api.RoomParticipant> o) { | 2201 checkUnnamed1100(core.List<api.RoomParticipant> o) { |
| 2167 unittest.expect(o, unittest.hasLength(2)); | 2202 unittest.expect(o, unittest.hasLength(2)); |
| 2168 checkRoomParticipant(o[0]); | 2203 checkRoomParticipant(o[0]); |
| 2169 checkRoomParticipant(o[1]); | 2204 checkRoomParticipant(o[1]); |
| 2170 } | 2205 } |
| 2171 | 2206 |
| 2172 core.int buildCounterRoom = 0; | 2207 core.int buildCounterRoom = 0; |
| 2173 buildRoom() { | 2208 buildRoom() { |
| 2174 var o = new api.Room(); | 2209 var o = new api.Room(); |
| 2175 buildCounterRoom++; | 2210 buildCounterRoom++; |
| 2176 if (buildCounterRoom < 3) { | 2211 if (buildCounterRoom < 3) { |
| 2177 o.applicationId = "foo"; | 2212 o.applicationId = "foo"; |
| 2178 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); | 2213 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); |
| 2179 o.autoMatchingStatus = buildRoomAutoMatchStatus(); | 2214 o.autoMatchingStatus = buildRoomAutoMatchStatus(); |
| 2180 o.creationDetails = buildRoomModification(); | 2215 o.creationDetails = buildRoomModification(); |
| 2181 o.description = "foo"; | 2216 o.description = "foo"; |
| 2182 o.inviterId = "foo"; | 2217 o.inviterId = "foo"; |
| 2183 o.kind = "foo"; | 2218 o.kind = "foo"; |
| 2184 o.lastUpdateDetails = buildRoomModification(); | 2219 o.lastUpdateDetails = buildRoomModification(); |
| 2185 o.participants = buildUnnamed48(); | 2220 o.participants = buildUnnamed1100(); |
| 2186 o.roomId = "foo"; | 2221 o.roomId = "foo"; |
| 2187 o.roomStatusVersion = 42; | 2222 o.roomStatusVersion = 42; |
| 2188 o.status = "foo"; | 2223 o.status = "foo"; |
| 2189 o.variant = 42; | 2224 o.variant = 42; |
| 2190 } | 2225 } |
| 2191 buildCounterRoom--; | 2226 buildCounterRoom--; |
| 2192 return o; | 2227 return o; |
| 2193 } | 2228 } |
| 2194 | 2229 |
| 2195 checkRoom(api.Room o) { | 2230 checkRoom(api.Room o) { |
| 2196 buildCounterRoom++; | 2231 buildCounterRoom++; |
| 2197 if (buildCounterRoom < 3) { | 2232 if (buildCounterRoom < 3) { |
| 2198 unittest.expect(o.applicationId, unittest.equals('foo')); | 2233 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 2199 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); | 2234 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2200 checkRoomAutoMatchStatus(o.autoMatchingStatus); | 2235 checkRoomAutoMatchStatus(o.autoMatchingStatus); |
| 2201 checkRoomModification(o.creationDetails); | 2236 checkRoomModification(o.creationDetails); |
| 2202 unittest.expect(o.description, unittest.equals('foo')); | 2237 unittest.expect(o.description, unittest.equals('foo')); |
| 2203 unittest.expect(o.inviterId, unittest.equals('foo')); | 2238 unittest.expect(o.inviterId, unittest.equals('foo')); |
| 2204 unittest.expect(o.kind, unittest.equals('foo')); | 2239 unittest.expect(o.kind, unittest.equals('foo')); |
| 2205 checkRoomModification(o.lastUpdateDetails); | 2240 checkRoomModification(o.lastUpdateDetails); |
| 2206 checkUnnamed48(o.participants); | 2241 checkUnnamed1100(o.participants); |
| 2207 unittest.expect(o.roomId, unittest.equals('foo')); | 2242 unittest.expect(o.roomId, unittest.equals('foo')); |
| 2208 unittest.expect(o.roomStatusVersion, unittest.equals(42)); | 2243 unittest.expect(o.roomStatusVersion, unittest.equals(42)); |
| 2209 unittest.expect(o.status, unittest.equals('foo')); | 2244 unittest.expect(o.status, unittest.equals('foo')); |
| 2210 unittest.expect(o.variant, unittest.equals(42)); | 2245 unittest.expect(o.variant, unittest.equals(42)); |
| 2211 } | 2246 } |
| 2212 buildCounterRoom--; | 2247 buildCounterRoom--; |
| 2213 } | 2248 } |
| 2214 | 2249 |
| 2215 core.int buildCounterRoomAutoMatchStatus = 0; | 2250 core.int buildCounterRoomAutoMatchStatus = 0; |
| 2216 buildRoomAutoMatchStatus() { | 2251 buildRoomAutoMatchStatus() { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 | 2307 |
| 2273 checkRoomClientAddress(api.RoomClientAddress o) { | 2308 checkRoomClientAddress(api.RoomClientAddress o) { |
| 2274 buildCounterRoomClientAddress++; | 2309 buildCounterRoomClientAddress++; |
| 2275 if (buildCounterRoomClientAddress < 3) { | 2310 if (buildCounterRoomClientAddress < 3) { |
| 2276 unittest.expect(o.kind, unittest.equals('foo')); | 2311 unittest.expect(o.kind, unittest.equals('foo')); |
| 2277 unittest.expect(o.xmppAddress, unittest.equals('foo')); | 2312 unittest.expect(o.xmppAddress, unittest.equals('foo')); |
| 2278 } | 2313 } |
| 2279 buildCounterRoomClientAddress--; | 2314 buildCounterRoomClientAddress--; |
| 2280 } | 2315 } |
| 2281 | 2316 |
| 2282 buildUnnamed49() { | 2317 buildUnnamed1101() { |
| 2283 var o = new core.List<core.String>(); | 2318 var o = new core.List<core.String>(); |
| 2284 o.add("foo"); | 2319 o.add("foo"); |
| 2285 o.add("foo"); | 2320 o.add("foo"); |
| 2286 return o; | 2321 return o; |
| 2287 } | 2322 } |
| 2288 | 2323 |
| 2289 checkUnnamed49(core.List<core.String> o) { | 2324 checkUnnamed1101(core.List<core.String> o) { |
| 2290 unittest.expect(o, unittest.hasLength(2)); | 2325 unittest.expect(o, unittest.hasLength(2)); |
| 2291 unittest.expect(o[0], unittest.equals('foo')); | 2326 unittest.expect(o[0], unittest.equals('foo')); |
| 2292 unittest.expect(o[1], unittest.equals('foo')); | 2327 unittest.expect(o[1], unittest.equals('foo')); |
| 2293 } | 2328 } |
| 2294 | 2329 |
| 2295 buildUnnamed50() { | 2330 buildUnnamed1102() { |
| 2296 var o = new core.List<core.String>(); | 2331 var o = new core.List<core.String>(); |
| 2297 o.add("foo"); | 2332 o.add("foo"); |
| 2298 o.add("foo"); | 2333 o.add("foo"); |
| 2299 return o; | 2334 return o; |
| 2300 } | 2335 } |
| 2301 | 2336 |
| 2302 checkUnnamed50(core.List<core.String> o) { | 2337 checkUnnamed1102(core.List<core.String> o) { |
| 2303 unittest.expect(o, unittest.hasLength(2)); | 2338 unittest.expect(o, unittest.hasLength(2)); |
| 2304 unittest.expect(o[0], unittest.equals('foo')); | 2339 unittest.expect(o[0], unittest.equals('foo')); |
| 2305 unittest.expect(o[1], unittest.equals('foo')); | 2340 unittest.expect(o[1], unittest.equals('foo')); |
| 2306 } | 2341 } |
| 2307 | 2342 |
| 2308 core.int buildCounterRoomCreateRequest = 0; | 2343 core.int buildCounterRoomCreateRequest = 0; |
| 2309 buildRoomCreateRequest() { | 2344 buildRoomCreateRequest() { |
| 2310 var o = new api.RoomCreateRequest(); | 2345 var o = new api.RoomCreateRequest(); |
| 2311 buildCounterRoomCreateRequest++; | 2346 buildCounterRoomCreateRequest++; |
| 2312 if (buildCounterRoomCreateRequest < 3) { | 2347 if (buildCounterRoomCreateRequest < 3) { |
| 2313 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); | 2348 o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); |
| 2314 o.capabilities = buildUnnamed49(); | 2349 o.capabilities = buildUnnamed1101(); |
| 2315 o.clientAddress = buildRoomClientAddress(); | 2350 o.clientAddress = buildRoomClientAddress(); |
| 2316 o.invitedPlayerIds = buildUnnamed50(); | 2351 o.invitedPlayerIds = buildUnnamed1102(); |
| 2317 o.kind = "foo"; | 2352 o.kind = "foo"; |
| 2318 o.networkDiagnostics = buildNetworkDiagnostics(); | 2353 o.networkDiagnostics = buildNetworkDiagnostics(); |
| 2319 o.requestId = "foo"; | 2354 o.requestId = "foo"; |
| 2320 o.variant = 42; | 2355 o.variant = 42; |
| 2321 } | 2356 } |
| 2322 buildCounterRoomCreateRequest--; | 2357 buildCounterRoomCreateRequest--; |
| 2323 return o; | 2358 return o; |
| 2324 } | 2359 } |
| 2325 | 2360 |
| 2326 checkRoomCreateRequest(api.RoomCreateRequest o) { | 2361 checkRoomCreateRequest(api.RoomCreateRequest o) { |
| 2327 buildCounterRoomCreateRequest++; | 2362 buildCounterRoomCreateRequest++; |
| 2328 if (buildCounterRoomCreateRequest < 3) { | 2363 if (buildCounterRoomCreateRequest < 3) { |
| 2329 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); | 2364 checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2330 checkUnnamed49(o.capabilities); | 2365 checkUnnamed1101(o.capabilities); |
| 2331 checkRoomClientAddress(o.clientAddress); | 2366 checkRoomClientAddress(o.clientAddress); |
| 2332 checkUnnamed50(o.invitedPlayerIds); | 2367 checkUnnamed1102(o.invitedPlayerIds); |
| 2333 unittest.expect(o.kind, unittest.equals('foo')); | 2368 unittest.expect(o.kind, unittest.equals('foo')); |
| 2334 checkNetworkDiagnostics(o.networkDiagnostics); | 2369 checkNetworkDiagnostics(o.networkDiagnostics); |
| 2335 unittest.expect(o.requestId, unittest.equals('foo')); | 2370 unittest.expect(o.requestId, unittest.equals('foo')); |
| 2336 unittest.expect(o.variant, unittest.equals(42)); | 2371 unittest.expect(o.variant, unittest.equals(42)); |
| 2337 } | 2372 } |
| 2338 buildCounterRoomCreateRequest--; | 2373 buildCounterRoomCreateRequest--; |
| 2339 } | 2374 } |
| 2340 | 2375 |
| 2341 buildUnnamed51() { | 2376 buildUnnamed1103() { |
| 2342 var o = new core.List<core.String>(); | 2377 var o = new core.List<core.String>(); |
| 2343 o.add("foo"); | 2378 o.add("foo"); |
| 2344 o.add("foo"); | 2379 o.add("foo"); |
| 2345 return o; | 2380 return o; |
| 2346 } | 2381 } |
| 2347 | 2382 |
| 2348 checkUnnamed51(core.List<core.String> o) { | 2383 checkUnnamed1103(core.List<core.String> o) { |
| 2349 unittest.expect(o, unittest.hasLength(2)); | 2384 unittest.expect(o, unittest.hasLength(2)); |
| 2350 unittest.expect(o[0], unittest.equals('foo')); | 2385 unittest.expect(o[0], unittest.equals('foo')); |
| 2351 unittest.expect(o[1], unittest.equals('foo')); | 2386 unittest.expect(o[1], unittest.equals('foo')); |
| 2352 } | 2387 } |
| 2353 | 2388 |
| 2354 core.int buildCounterRoomJoinRequest = 0; | 2389 core.int buildCounterRoomJoinRequest = 0; |
| 2355 buildRoomJoinRequest() { | 2390 buildRoomJoinRequest() { |
| 2356 var o = new api.RoomJoinRequest(); | 2391 var o = new api.RoomJoinRequest(); |
| 2357 buildCounterRoomJoinRequest++; | 2392 buildCounterRoomJoinRequest++; |
| 2358 if (buildCounterRoomJoinRequest < 3) { | 2393 if (buildCounterRoomJoinRequest < 3) { |
| 2359 o.capabilities = buildUnnamed51(); | 2394 o.capabilities = buildUnnamed1103(); |
| 2360 o.clientAddress = buildRoomClientAddress(); | 2395 o.clientAddress = buildRoomClientAddress(); |
| 2361 o.kind = "foo"; | 2396 o.kind = "foo"; |
| 2362 o.networkDiagnostics = buildNetworkDiagnostics(); | 2397 o.networkDiagnostics = buildNetworkDiagnostics(); |
| 2363 } | 2398 } |
| 2364 buildCounterRoomJoinRequest--; | 2399 buildCounterRoomJoinRequest--; |
| 2365 return o; | 2400 return o; |
| 2366 } | 2401 } |
| 2367 | 2402 |
| 2368 checkRoomJoinRequest(api.RoomJoinRequest o) { | 2403 checkRoomJoinRequest(api.RoomJoinRequest o) { |
| 2369 buildCounterRoomJoinRequest++; | 2404 buildCounterRoomJoinRequest++; |
| 2370 if (buildCounterRoomJoinRequest < 3) { | 2405 if (buildCounterRoomJoinRequest < 3) { |
| 2371 checkUnnamed51(o.capabilities); | 2406 checkUnnamed1103(o.capabilities); |
| 2372 checkRoomClientAddress(o.clientAddress); | 2407 checkRoomClientAddress(o.clientAddress); |
| 2373 unittest.expect(o.kind, unittest.equals('foo')); | 2408 unittest.expect(o.kind, unittest.equals('foo')); |
| 2374 checkNetworkDiagnostics(o.networkDiagnostics); | 2409 checkNetworkDiagnostics(o.networkDiagnostics); |
| 2375 } | 2410 } |
| 2376 buildCounterRoomJoinRequest--; | 2411 buildCounterRoomJoinRequest--; |
| 2377 } | 2412 } |
| 2378 | 2413 |
| 2379 buildUnnamed52() { | 2414 buildUnnamed1104() { |
| 2380 var o = new core.List<api.PeerSessionDiagnostics>(); | 2415 var o = new core.List<api.PeerSessionDiagnostics>(); |
| 2381 o.add(buildPeerSessionDiagnostics()); | 2416 o.add(buildPeerSessionDiagnostics()); |
| 2382 o.add(buildPeerSessionDiagnostics()); | 2417 o.add(buildPeerSessionDiagnostics()); |
| 2383 return o; | 2418 return o; |
| 2384 } | 2419 } |
| 2385 | 2420 |
| 2386 checkUnnamed52(core.List<api.PeerSessionDiagnostics> o) { | 2421 checkUnnamed1104(core.List<api.PeerSessionDiagnostics> o) { |
| 2387 unittest.expect(o, unittest.hasLength(2)); | 2422 unittest.expect(o, unittest.hasLength(2)); |
| 2388 checkPeerSessionDiagnostics(o[0]); | 2423 checkPeerSessionDiagnostics(o[0]); |
| 2389 checkPeerSessionDiagnostics(o[1]); | 2424 checkPeerSessionDiagnostics(o[1]); |
| 2390 } | 2425 } |
| 2391 | 2426 |
| 2392 core.int buildCounterRoomLeaveDiagnostics = 0; | 2427 core.int buildCounterRoomLeaveDiagnostics = 0; |
| 2393 buildRoomLeaveDiagnostics() { | 2428 buildRoomLeaveDiagnostics() { |
| 2394 var o = new api.RoomLeaveDiagnostics(); | 2429 var o = new api.RoomLeaveDiagnostics(); |
| 2395 buildCounterRoomLeaveDiagnostics++; | 2430 buildCounterRoomLeaveDiagnostics++; |
| 2396 if (buildCounterRoomLeaveDiagnostics < 3) { | 2431 if (buildCounterRoomLeaveDiagnostics < 3) { |
| 2397 o.androidNetworkSubtype = 42; | 2432 o.androidNetworkSubtype = 42; |
| 2398 o.androidNetworkType = 42; | 2433 o.androidNetworkType = 42; |
| 2399 o.iosNetworkType = 42; | 2434 o.iosNetworkType = 42; |
| 2400 o.kind = "foo"; | 2435 o.kind = "foo"; |
| 2401 o.networkOperatorCode = "foo"; | 2436 o.networkOperatorCode = "foo"; |
| 2402 o.networkOperatorName = "foo"; | 2437 o.networkOperatorName = "foo"; |
| 2403 o.peerSession = buildUnnamed52(); | 2438 o.peerSession = buildUnnamed1104(); |
| 2404 o.socketsUsed = true; | 2439 o.socketsUsed = true; |
| 2405 } | 2440 } |
| 2406 buildCounterRoomLeaveDiagnostics--; | 2441 buildCounterRoomLeaveDiagnostics--; |
| 2407 return o; | 2442 return o; |
| 2408 } | 2443 } |
| 2409 | 2444 |
| 2410 checkRoomLeaveDiagnostics(api.RoomLeaveDiagnostics o) { | 2445 checkRoomLeaveDiagnostics(api.RoomLeaveDiagnostics o) { |
| 2411 buildCounterRoomLeaveDiagnostics++; | 2446 buildCounterRoomLeaveDiagnostics++; |
| 2412 if (buildCounterRoomLeaveDiagnostics < 3) { | 2447 if (buildCounterRoomLeaveDiagnostics < 3) { |
| 2413 unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); | 2448 unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); |
| 2414 unittest.expect(o.androidNetworkType, unittest.equals(42)); | 2449 unittest.expect(o.androidNetworkType, unittest.equals(42)); |
| 2415 unittest.expect(o.iosNetworkType, unittest.equals(42)); | 2450 unittest.expect(o.iosNetworkType, unittest.equals(42)); |
| 2416 unittest.expect(o.kind, unittest.equals('foo')); | 2451 unittest.expect(o.kind, unittest.equals('foo')); |
| 2417 unittest.expect(o.networkOperatorCode, unittest.equals('foo')); | 2452 unittest.expect(o.networkOperatorCode, unittest.equals('foo')); |
| 2418 unittest.expect(o.networkOperatorName, unittest.equals('foo')); | 2453 unittest.expect(o.networkOperatorName, unittest.equals('foo')); |
| 2419 checkUnnamed52(o.peerSession); | 2454 checkUnnamed1104(o.peerSession); |
| 2420 unittest.expect(o.socketsUsed, unittest.isTrue); | 2455 unittest.expect(o.socketsUsed, unittest.isTrue); |
| 2421 } | 2456 } |
| 2422 buildCounterRoomLeaveDiagnostics--; | 2457 buildCounterRoomLeaveDiagnostics--; |
| 2423 } | 2458 } |
| 2424 | 2459 |
| 2425 core.int buildCounterRoomLeaveRequest = 0; | 2460 core.int buildCounterRoomLeaveRequest = 0; |
| 2426 buildRoomLeaveRequest() { | 2461 buildRoomLeaveRequest() { |
| 2427 var o = new api.RoomLeaveRequest(); | 2462 var o = new api.RoomLeaveRequest(); |
| 2428 buildCounterRoomLeaveRequest++; | 2463 buildCounterRoomLeaveRequest++; |
| 2429 if (buildCounterRoomLeaveRequest < 3) { | 2464 if (buildCounterRoomLeaveRequest < 3) { |
| 2430 o.kind = "foo"; | 2465 o.kind = "foo"; |
| 2431 o.leaveDiagnostics = buildRoomLeaveDiagnostics(); | 2466 o.leaveDiagnostics = buildRoomLeaveDiagnostics(); |
| 2432 o.reason = "foo"; | 2467 o.reason = "foo"; |
| 2433 } | 2468 } |
| 2434 buildCounterRoomLeaveRequest--; | 2469 buildCounterRoomLeaveRequest--; |
| 2435 return o; | 2470 return o; |
| 2436 } | 2471 } |
| 2437 | 2472 |
| 2438 checkRoomLeaveRequest(api.RoomLeaveRequest o) { | 2473 checkRoomLeaveRequest(api.RoomLeaveRequest o) { |
| 2439 buildCounterRoomLeaveRequest++; | 2474 buildCounterRoomLeaveRequest++; |
| 2440 if (buildCounterRoomLeaveRequest < 3) { | 2475 if (buildCounterRoomLeaveRequest < 3) { |
| 2441 unittest.expect(o.kind, unittest.equals('foo')); | 2476 unittest.expect(o.kind, unittest.equals('foo')); |
| 2442 checkRoomLeaveDiagnostics(o.leaveDiagnostics); | 2477 checkRoomLeaveDiagnostics(o.leaveDiagnostics); |
| 2443 unittest.expect(o.reason, unittest.equals('foo')); | 2478 unittest.expect(o.reason, unittest.equals('foo')); |
| 2444 } | 2479 } |
| 2445 buildCounterRoomLeaveRequest--; | 2480 buildCounterRoomLeaveRequest--; |
| 2446 } | 2481 } |
| 2447 | 2482 |
| 2448 buildUnnamed53() { | 2483 buildUnnamed1105() { |
| 2449 var o = new core.List<api.Room>(); | 2484 var o = new core.List<api.Room>(); |
| 2450 o.add(buildRoom()); | 2485 o.add(buildRoom()); |
| 2451 o.add(buildRoom()); | 2486 o.add(buildRoom()); |
| 2452 return o; | 2487 return o; |
| 2453 } | 2488 } |
| 2454 | 2489 |
| 2455 checkUnnamed53(core.List<api.Room> o) { | 2490 checkUnnamed1105(core.List<api.Room> o) { |
| 2456 unittest.expect(o, unittest.hasLength(2)); | 2491 unittest.expect(o, unittest.hasLength(2)); |
| 2457 checkRoom(o[0]); | 2492 checkRoom(o[0]); |
| 2458 checkRoom(o[1]); | 2493 checkRoom(o[1]); |
| 2459 } | 2494 } |
| 2460 | 2495 |
| 2461 core.int buildCounterRoomList = 0; | 2496 core.int buildCounterRoomList = 0; |
| 2462 buildRoomList() { | 2497 buildRoomList() { |
| 2463 var o = new api.RoomList(); | 2498 var o = new api.RoomList(); |
| 2464 buildCounterRoomList++; | 2499 buildCounterRoomList++; |
| 2465 if (buildCounterRoomList < 3) { | 2500 if (buildCounterRoomList < 3) { |
| 2466 o.items = buildUnnamed53(); | 2501 o.items = buildUnnamed1105(); |
| 2467 o.kind = "foo"; | 2502 o.kind = "foo"; |
| 2468 o.nextPageToken = "foo"; | 2503 o.nextPageToken = "foo"; |
| 2469 } | 2504 } |
| 2470 buildCounterRoomList--; | 2505 buildCounterRoomList--; |
| 2471 return o; | 2506 return o; |
| 2472 } | 2507 } |
| 2473 | 2508 |
| 2474 checkRoomList(api.RoomList o) { | 2509 checkRoomList(api.RoomList o) { |
| 2475 buildCounterRoomList++; | 2510 buildCounterRoomList++; |
| 2476 if (buildCounterRoomList < 3) { | 2511 if (buildCounterRoomList < 3) { |
| 2477 checkUnnamed53(o.items); | 2512 checkUnnamed1105(o.items); |
| 2478 unittest.expect(o.kind, unittest.equals('foo')); | 2513 unittest.expect(o.kind, unittest.equals('foo')); |
| 2479 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2514 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2480 } | 2515 } |
| 2481 buildCounterRoomList--; | 2516 buildCounterRoomList--; |
| 2482 } | 2517 } |
| 2483 | 2518 |
| 2484 core.int buildCounterRoomModification = 0; | 2519 core.int buildCounterRoomModification = 0; |
| 2485 buildRoomModification() { | 2520 buildRoomModification() { |
| 2486 var o = new api.RoomModification(); | 2521 var o = new api.RoomModification(); |
| 2487 buildCounterRoomModification++; | 2522 buildCounterRoomModification++; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2528 unittest.expect(o.error, unittest.equals('foo')); | 2563 unittest.expect(o.error, unittest.equals('foo')); |
| 2529 unittest.expect(o.errorReason, unittest.equals('foo')); | 2564 unittest.expect(o.errorReason, unittest.equals('foo')); |
| 2530 unittest.expect(o.kind, unittest.equals('foo')); | 2565 unittest.expect(o.kind, unittest.equals('foo')); |
| 2531 unittest.expect(o.participantId, unittest.equals('foo')); | 2566 unittest.expect(o.participantId, unittest.equals('foo')); |
| 2532 unittest.expect(o.status, unittest.equals('foo')); | 2567 unittest.expect(o.status, unittest.equals('foo')); |
| 2533 unittest.expect(o.unreliableRoundtripLatencyMillis, unittest.equals(42)); | 2568 unittest.expect(o.unreliableRoundtripLatencyMillis, unittest.equals(42)); |
| 2534 } | 2569 } |
| 2535 buildCounterRoomP2PStatus--; | 2570 buildCounterRoomP2PStatus--; |
| 2536 } | 2571 } |
| 2537 | 2572 |
| 2538 buildUnnamed54() { | 2573 buildUnnamed1106() { |
| 2539 var o = new core.List<api.RoomP2PStatus>(); | 2574 var o = new core.List<api.RoomP2PStatus>(); |
| 2540 o.add(buildRoomP2PStatus()); | 2575 o.add(buildRoomP2PStatus()); |
| 2541 o.add(buildRoomP2PStatus()); | 2576 o.add(buildRoomP2PStatus()); |
| 2542 return o; | 2577 return o; |
| 2543 } | 2578 } |
| 2544 | 2579 |
| 2545 checkUnnamed54(core.List<api.RoomP2PStatus> o) { | 2580 checkUnnamed1106(core.List<api.RoomP2PStatus> o) { |
| 2546 unittest.expect(o, unittest.hasLength(2)); | 2581 unittest.expect(o, unittest.hasLength(2)); |
| 2547 checkRoomP2PStatus(o[0]); | 2582 checkRoomP2PStatus(o[0]); |
| 2548 checkRoomP2PStatus(o[1]); | 2583 checkRoomP2PStatus(o[1]); |
| 2549 } | 2584 } |
| 2550 | 2585 |
| 2551 core.int buildCounterRoomP2PStatuses = 0; | 2586 core.int buildCounterRoomP2PStatuses = 0; |
| 2552 buildRoomP2PStatuses() { | 2587 buildRoomP2PStatuses() { |
| 2553 var o = new api.RoomP2PStatuses(); | 2588 var o = new api.RoomP2PStatuses(); |
| 2554 buildCounterRoomP2PStatuses++; | 2589 buildCounterRoomP2PStatuses++; |
| 2555 if (buildCounterRoomP2PStatuses < 3) { | 2590 if (buildCounterRoomP2PStatuses < 3) { |
| 2556 o.kind = "foo"; | 2591 o.kind = "foo"; |
| 2557 o.updates = buildUnnamed54(); | 2592 o.updates = buildUnnamed1106(); |
| 2558 } | 2593 } |
| 2559 buildCounterRoomP2PStatuses--; | 2594 buildCounterRoomP2PStatuses--; |
| 2560 return o; | 2595 return o; |
| 2561 } | 2596 } |
| 2562 | 2597 |
| 2563 checkRoomP2PStatuses(api.RoomP2PStatuses o) { | 2598 checkRoomP2PStatuses(api.RoomP2PStatuses o) { |
| 2564 buildCounterRoomP2PStatuses++; | 2599 buildCounterRoomP2PStatuses++; |
| 2565 if (buildCounterRoomP2PStatuses < 3) { | 2600 if (buildCounterRoomP2PStatuses < 3) { |
| 2566 unittest.expect(o.kind, unittest.equals('foo')); | 2601 unittest.expect(o.kind, unittest.equals('foo')); |
| 2567 checkUnnamed54(o.updates); | 2602 checkUnnamed1106(o.updates); |
| 2568 } | 2603 } |
| 2569 buildCounterRoomP2PStatuses--; | 2604 buildCounterRoomP2PStatuses--; |
| 2570 } | 2605 } |
| 2571 | 2606 |
| 2572 buildUnnamed55() { | 2607 buildUnnamed1107() { |
| 2573 var o = new core.List<core.String>(); | 2608 var o = new core.List<core.String>(); |
| 2574 o.add("foo"); | 2609 o.add("foo"); |
| 2575 o.add("foo"); | 2610 o.add("foo"); |
| 2576 return o; | 2611 return o; |
| 2577 } | 2612 } |
| 2578 | 2613 |
| 2579 checkUnnamed55(core.List<core.String> o) { | 2614 checkUnnamed1107(core.List<core.String> o) { |
| 2580 unittest.expect(o, unittest.hasLength(2)); | 2615 unittest.expect(o, unittest.hasLength(2)); |
| 2581 unittest.expect(o[0], unittest.equals('foo')); | 2616 unittest.expect(o[0], unittest.equals('foo')); |
| 2582 unittest.expect(o[1], unittest.equals('foo')); | 2617 unittest.expect(o[1], unittest.equals('foo')); |
| 2583 } | 2618 } |
| 2584 | 2619 |
| 2585 core.int buildCounterRoomParticipant = 0; | 2620 core.int buildCounterRoomParticipant = 0; |
| 2586 buildRoomParticipant() { | 2621 buildRoomParticipant() { |
| 2587 var o = new api.RoomParticipant(); | 2622 var o = new api.RoomParticipant(); |
| 2588 buildCounterRoomParticipant++; | 2623 buildCounterRoomParticipant++; |
| 2589 if (buildCounterRoomParticipant < 3) { | 2624 if (buildCounterRoomParticipant < 3) { |
| 2590 o.autoMatched = true; | 2625 o.autoMatched = true; |
| 2591 o.autoMatchedPlayer = buildAnonymousPlayer(); | 2626 o.autoMatchedPlayer = buildAnonymousPlayer(); |
| 2592 o.capabilities = buildUnnamed55(); | 2627 o.capabilities = buildUnnamed1107(); |
| 2593 o.clientAddress = buildRoomClientAddress(); | 2628 o.clientAddress = buildRoomClientAddress(); |
| 2594 o.connected = true; | 2629 o.connected = true; |
| 2595 o.id = "foo"; | 2630 o.id = "foo"; |
| 2596 o.kind = "foo"; | 2631 o.kind = "foo"; |
| 2597 o.leaveReason = "foo"; | 2632 o.leaveReason = "foo"; |
| 2598 o.player = buildPlayer(); | 2633 o.player = buildPlayer(); |
| 2599 o.status = "foo"; | 2634 o.status = "foo"; |
| 2600 } | 2635 } |
| 2601 buildCounterRoomParticipant--; | 2636 buildCounterRoomParticipant--; |
| 2602 return o; | 2637 return o; |
| 2603 } | 2638 } |
| 2604 | 2639 |
| 2605 checkRoomParticipant(api.RoomParticipant o) { | 2640 checkRoomParticipant(api.RoomParticipant o) { |
| 2606 buildCounterRoomParticipant++; | 2641 buildCounterRoomParticipant++; |
| 2607 if (buildCounterRoomParticipant < 3) { | 2642 if (buildCounterRoomParticipant < 3) { |
| 2608 unittest.expect(o.autoMatched, unittest.isTrue); | 2643 unittest.expect(o.autoMatched, unittest.isTrue); |
| 2609 checkAnonymousPlayer(o.autoMatchedPlayer); | 2644 checkAnonymousPlayer(o.autoMatchedPlayer); |
| 2610 checkUnnamed55(o.capabilities); | 2645 checkUnnamed1107(o.capabilities); |
| 2611 checkRoomClientAddress(o.clientAddress); | 2646 checkRoomClientAddress(o.clientAddress); |
| 2612 unittest.expect(o.connected, unittest.isTrue); | 2647 unittest.expect(o.connected, unittest.isTrue); |
| 2613 unittest.expect(o.id, unittest.equals('foo')); | 2648 unittest.expect(o.id, unittest.equals('foo')); |
| 2614 unittest.expect(o.kind, unittest.equals('foo')); | 2649 unittest.expect(o.kind, unittest.equals('foo')); |
| 2615 unittest.expect(o.leaveReason, unittest.equals('foo')); | 2650 unittest.expect(o.leaveReason, unittest.equals('foo')); |
| 2616 checkPlayer(o.player); | 2651 checkPlayer(o.player); |
| 2617 unittest.expect(o.status, unittest.equals('foo')); | 2652 unittest.expect(o.status, unittest.equals('foo')); |
| 2618 } | 2653 } |
| 2619 buildCounterRoomParticipant--; | 2654 buildCounterRoomParticipant--; |
| 2620 } | 2655 } |
| 2621 | 2656 |
| 2622 buildUnnamed56() { | 2657 buildUnnamed1108() { |
| 2623 var o = new core.List<api.RoomParticipant>(); | 2658 var o = new core.List<api.RoomParticipant>(); |
| 2624 o.add(buildRoomParticipant()); | 2659 o.add(buildRoomParticipant()); |
| 2625 o.add(buildRoomParticipant()); | 2660 o.add(buildRoomParticipant()); |
| 2626 return o; | 2661 return o; |
| 2627 } | 2662 } |
| 2628 | 2663 |
| 2629 checkUnnamed56(core.List<api.RoomParticipant> o) { | 2664 checkUnnamed1108(core.List<api.RoomParticipant> o) { |
| 2630 unittest.expect(o, unittest.hasLength(2)); | 2665 unittest.expect(o, unittest.hasLength(2)); |
| 2631 checkRoomParticipant(o[0]); | 2666 checkRoomParticipant(o[0]); |
| 2632 checkRoomParticipant(o[1]); | 2667 checkRoomParticipant(o[1]); |
| 2633 } | 2668 } |
| 2634 | 2669 |
| 2635 core.int buildCounterRoomStatus = 0; | 2670 core.int buildCounterRoomStatus = 0; |
| 2636 buildRoomStatus() { | 2671 buildRoomStatus() { |
| 2637 var o = new api.RoomStatus(); | 2672 var o = new api.RoomStatus(); |
| 2638 buildCounterRoomStatus++; | 2673 buildCounterRoomStatus++; |
| 2639 if (buildCounterRoomStatus < 3) { | 2674 if (buildCounterRoomStatus < 3) { |
| 2640 o.autoMatchingStatus = buildRoomAutoMatchStatus(); | 2675 o.autoMatchingStatus = buildRoomAutoMatchStatus(); |
| 2641 o.kind = "foo"; | 2676 o.kind = "foo"; |
| 2642 o.participants = buildUnnamed56(); | 2677 o.participants = buildUnnamed1108(); |
| 2643 o.roomId = "foo"; | 2678 o.roomId = "foo"; |
| 2644 o.status = "foo"; | 2679 o.status = "foo"; |
| 2645 o.statusVersion = 42; | 2680 o.statusVersion = 42; |
| 2646 } | 2681 } |
| 2647 buildCounterRoomStatus--; | 2682 buildCounterRoomStatus--; |
| 2648 return o; | 2683 return o; |
| 2649 } | 2684 } |
| 2650 | 2685 |
| 2651 checkRoomStatus(api.RoomStatus o) { | 2686 checkRoomStatus(api.RoomStatus o) { |
| 2652 buildCounterRoomStatus++; | 2687 buildCounterRoomStatus++; |
| 2653 if (buildCounterRoomStatus < 3) { | 2688 if (buildCounterRoomStatus < 3) { |
| 2654 checkRoomAutoMatchStatus(o.autoMatchingStatus); | 2689 checkRoomAutoMatchStatus(o.autoMatchingStatus); |
| 2655 unittest.expect(o.kind, unittest.equals('foo')); | 2690 unittest.expect(o.kind, unittest.equals('foo')); |
| 2656 checkUnnamed56(o.participants); | 2691 checkUnnamed1108(o.participants); |
| 2657 unittest.expect(o.roomId, unittest.equals('foo')); | 2692 unittest.expect(o.roomId, unittest.equals('foo')); |
| 2658 unittest.expect(o.status, unittest.equals('foo')); | 2693 unittest.expect(o.status, unittest.equals('foo')); |
| 2659 unittest.expect(o.statusVersion, unittest.equals(42)); | 2694 unittest.expect(o.statusVersion, unittest.equals(42)); |
| 2660 } | 2695 } |
| 2661 buildCounterRoomStatus--; | 2696 buildCounterRoomStatus--; |
| 2662 } | 2697 } |
| 2663 | 2698 |
| 2664 core.int buildCounterScoreSubmission = 0; | 2699 core.int buildCounterScoreSubmission = 0; |
| 2665 buildScoreSubmission() { | 2700 buildScoreSubmission() { |
| 2666 var o = new api.ScoreSubmission(); | 2701 var o = new api.ScoreSubmission(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2747 if (buildCounterSnapshotImage < 3) { | 2782 if (buildCounterSnapshotImage < 3) { |
| 2748 unittest.expect(o.height, unittest.equals(42)); | 2783 unittest.expect(o.height, unittest.equals(42)); |
| 2749 unittest.expect(o.kind, unittest.equals('foo')); | 2784 unittest.expect(o.kind, unittest.equals('foo')); |
| 2750 unittest.expect(o.mimeType, unittest.equals('foo')); | 2785 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 2751 unittest.expect(o.url, unittest.equals('foo')); | 2786 unittest.expect(o.url, unittest.equals('foo')); |
| 2752 unittest.expect(o.width, unittest.equals(42)); | 2787 unittest.expect(o.width, unittest.equals(42)); |
| 2753 } | 2788 } |
| 2754 buildCounterSnapshotImage--; | 2789 buildCounterSnapshotImage--; |
| 2755 } | 2790 } |
| 2756 | 2791 |
| 2757 buildUnnamed57() { | 2792 buildUnnamed1109() { |
| 2758 var o = new core.List<api.Snapshot>(); | 2793 var o = new core.List<api.Snapshot>(); |
| 2759 o.add(buildSnapshot()); | 2794 o.add(buildSnapshot()); |
| 2760 o.add(buildSnapshot()); | 2795 o.add(buildSnapshot()); |
| 2761 return o; | 2796 return o; |
| 2762 } | 2797 } |
| 2763 | 2798 |
| 2764 checkUnnamed57(core.List<api.Snapshot> o) { | 2799 checkUnnamed1109(core.List<api.Snapshot> o) { |
| 2765 unittest.expect(o, unittest.hasLength(2)); | 2800 unittest.expect(o, unittest.hasLength(2)); |
| 2766 checkSnapshot(o[0]); | 2801 checkSnapshot(o[0]); |
| 2767 checkSnapshot(o[1]); | 2802 checkSnapshot(o[1]); |
| 2768 } | 2803 } |
| 2769 | 2804 |
| 2770 core.int buildCounterSnapshotListResponse = 0; | 2805 core.int buildCounterSnapshotListResponse = 0; |
| 2771 buildSnapshotListResponse() { | 2806 buildSnapshotListResponse() { |
| 2772 var o = new api.SnapshotListResponse(); | 2807 var o = new api.SnapshotListResponse(); |
| 2773 buildCounterSnapshotListResponse++; | 2808 buildCounterSnapshotListResponse++; |
| 2774 if (buildCounterSnapshotListResponse < 3) { | 2809 if (buildCounterSnapshotListResponse < 3) { |
| 2775 o.items = buildUnnamed57(); | 2810 o.items = buildUnnamed1109(); |
| 2776 o.kind = "foo"; | 2811 o.kind = "foo"; |
| 2777 o.nextPageToken = "foo"; | 2812 o.nextPageToken = "foo"; |
| 2778 } | 2813 } |
| 2779 buildCounterSnapshotListResponse--; | 2814 buildCounterSnapshotListResponse--; |
| 2780 return o; | 2815 return o; |
| 2781 } | 2816 } |
| 2782 | 2817 |
| 2783 checkSnapshotListResponse(api.SnapshotListResponse o) { | 2818 checkSnapshotListResponse(api.SnapshotListResponse o) { |
| 2784 buildCounterSnapshotListResponse++; | 2819 buildCounterSnapshotListResponse++; |
| 2785 if (buildCounterSnapshotListResponse < 3) { | 2820 if (buildCounterSnapshotListResponse < 3) { |
| 2786 checkUnnamed57(o.items); | 2821 checkUnnamed1109(o.items); |
| 2787 unittest.expect(o.kind, unittest.equals('foo')); | 2822 unittest.expect(o.kind, unittest.equals('foo')); |
| 2788 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2823 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2789 } | 2824 } |
| 2790 buildCounterSnapshotListResponse--; | 2825 buildCounterSnapshotListResponse--; |
| 2791 } | 2826 } |
| 2792 | 2827 |
| 2793 core.int buildCounterTurnBasedAutoMatchingCriteria = 0; | 2828 core.int buildCounterTurnBasedAutoMatchingCriteria = 0; |
| 2794 buildTurnBasedAutoMatchingCriteria() { | 2829 buildTurnBasedAutoMatchingCriteria() { |
| 2795 var o = new api.TurnBasedAutoMatchingCriteria(); | 2830 var o = new api.TurnBasedAutoMatchingCriteria(); |
| 2796 buildCounterTurnBasedAutoMatchingCriteria++; | 2831 buildCounterTurnBasedAutoMatchingCriteria++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2808 buildCounterTurnBasedAutoMatchingCriteria++; | 2843 buildCounterTurnBasedAutoMatchingCriteria++; |
| 2809 if (buildCounterTurnBasedAutoMatchingCriteria < 3) { | 2844 if (buildCounterTurnBasedAutoMatchingCriteria < 3) { |
| 2810 unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); | 2845 unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); |
| 2811 unittest.expect(o.kind, unittest.equals('foo')); | 2846 unittest.expect(o.kind, unittest.equals('foo')); |
| 2812 unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); | 2847 unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); |
| 2813 unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); | 2848 unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); |
| 2814 } | 2849 } |
| 2815 buildCounterTurnBasedAutoMatchingCriteria--; | 2850 buildCounterTurnBasedAutoMatchingCriteria--; |
| 2816 } | 2851 } |
| 2817 | 2852 |
| 2818 buildUnnamed58() { | 2853 buildUnnamed1110() { |
| 2819 var o = new core.List<api.TurnBasedMatchParticipant>(); | 2854 var o = new core.List<api.TurnBasedMatchParticipant>(); |
| 2820 o.add(buildTurnBasedMatchParticipant()); | 2855 o.add(buildTurnBasedMatchParticipant()); |
| 2821 o.add(buildTurnBasedMatchParticipant()); | 2856 o.add(buildTurnBasedMatchParticipant()); |
| 2822 return o; | 2857 return o; |
| 2823 } | 2858 } |
| 2824 | 2859 |
| 2825 checkUnnamed58(core.List<api.TurnBasedMatchParticipant> o) { | 2860 checkUnnamed1110(core.List<api.TurnBasedMatchParticipant> o) { |
| 2826 unittest.expect(o, unittest.hasLength(2)); | 2861 unittest.expect(o, unittest.hasLength(2)); |
| 2827 checkTurnBasedMatchParticipant(o[0]); | 2862 checkTurnBasedMatchParticipant(o[0]); |
| 2828 checkTurnBasedMatchParticipant(o[1]); | 2863 checkTurnBasedMatchParticipant(o[1]); |
| 2829 } | 2864 } |
| 2830 | 2865 |
| 2831 buildUnnamed59() { | 2866 buildUnnamed1111() { |
| 2832 var o = new core.List<api.ParticipantResult>(); | 2867 var o = new core.List<api.ParticipantResult>(); |
| 2833 o.add(buildParticipantResult()); | 2868 o.add(buildParticipantResult()); |
| 2834 o.add(buildParticipantResult()); | 2869 o.add(buildParticipantResult()); |
| 2835 return o; | 2870 return o; |
| 2836 } | 2871 } |
| 2837 | 2872 |
| 2838 checkUnnamed59(core.List<api.ParticipantResult> o) { | 2873 checkUnnamed1111(core.List<api.ParticipantResult> o) { |
| 2839 unittest.expect(o, unittest.hasLength(2)); | 2874 unittest.expect(o, unittest.hasLength(2)); |
| 2840 checkParticipantResult(o[0]); | 2875 checkParticipantResult(o[0]); |
| 2841 checkParticipantResult(o[1]); | 2876 checkParticipantResult(o[1]); |
| 2842 } | 2877 } |
| 2843 | 2878 |
| 2844 core.int buildCounterTurnBasedMatch = 0; | 2879 core.int buildCounterTurnBasedMatch = 0; |
| 2845 buildTurnBasedMatch() { | 2880 buildTurnBasedMatch() { |
| 2846 var o = new api.TurnBasedMatch(); | 2881 var o = new api.TurnBasedMatch(); |
| 2847 buildCounterTurnBasedMatch++; | 2882 buildCounterTurnBasedMatch++; |
| 2848 if (buildCounterTurnBasedMatch < 3) { | 2883 if (buildCounterTurnBasedMatch < 3) { |
| 2849 o.applicationId = "foo"; | 2884 o.applicationId = "foo"; |
| 2850 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); | 2885 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); |
| 2851 o.creationDetails = buildTurnBasedMatchModification(); | 2886 o.creationDetails = buildTurnBasedMatchModification(); |
| 2852 o.data = buildTurnBasedMatchData(); | 2887 o.data = buildTurnBasedMatchData(); |
| 2853 o.description = "foo"; | 2888 o.description = "foo"; |
| 2854 o.inviterId = "foo"; | 2889 o.inviterId = "foo"; |
| 2855 o.kind = "foo"; | 2890 o.kind = "foo"; |
| 2856 o.lastUpdateDetails = buildTurnBasedMatchModification(); | 2891 o.lastUpdateDetails = buildTurnBasedMatchModification(); |
| 2857 o.matchId = "foo"; | 2892 o.matchId = "foo"; |
| 2858 o.matchNumber = 42; | 2893 o.matchNumber = 42; |
| 2859 o.matchVersion = 42; | 2894 o.matchVersion = 42; |
| 2860 o.participants = buildUnnamed58(); | 2895 o.participants = buildUnnamed1110(); |
| 2861 o.pendingParticipantId = "foo"; | 2896 o.pendingParticipantId = "foo"; |
| 2862 o.previousMatchData = buildTurnBasedMatchData(); | 2897 o.previousMatchData = buildTurnBasedMatchData(); |
| 2863 o.rematchId = "foo"; | 2898 o.rematchId = "foo"; |
| 2864 o.results = buildUnnamed59(); | 2899 o.results = buildUnnamed1111(); |
| 2865 o.status = "foo"; | 2900 o.status = "foo"; |
| 2866 o.userMatchStatus = "foo"; | 2901 o.userMatchStatus = "foo"; |
| 2867 o.variant = 42; | 2902 o.variant = 42; |
| 2868 o.withParticipantId = "foo"; | 2903 o.withParticipantId = "foo"; |
| 2869 } | 2904 } |
| 2870 buildCounterTurnBasedMatch--; | 2905 buildCounterTurnBasedMatch--; |
| 2871 return o; | 2906 return o; |
| 2872 } | 2907 } |
| 2873 | 2908 |
| 2874 checkTurnBasedMatch(api.TurnBasedMatch o) { | 2909 checkTurnBasedMatch(api.TurnBasedMatch o) { |
| 2875 buildCounterTurnBasedMatch++; | 2910 buildCounterTurnBasedMatch++; |
| 2876 if (buildCounterTurnBasedMatch < 3) { | 2911 if (buildCounterTurnBasedMatch < 3) { |
| 2877 unittest.expect(o.applicationId, unittest.equals('foo')); | 2912 unittest.expect(o.applicationId, unittest.equals('foo')); |
| 2878 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); | 2913 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2879 checkTurnBasedMatchModification(o.creationDetails); | 2914 checkTurnBasedMatchModification(o.creationDetails); |
| 2880 checkTurnBasedMatchData(o.data); | 2915 checkTurnBasedMatchData(o.data); |
| 2881 unittest.expect(o.description, unittest.equals('foo')); | 2916 unittest.expect(o.description, unittest.equals('foo')); |
| 2882 unittest.expect(o.inviterId, unittest.equals('foo')); | 2917 unittest.expect(o.inviterId, unittest.equals('foo')); |
| 2883 unittest.expect(o.kind, unittest.equals('foo')); | 2918 unittest.expect(o.kind, unittest.equals('foo')); |
| 2884 checkTurnBasedMatchModification(o.lastUpdateDetails); | 2919 checkTurnBasedMatchModification(o.lastUpdateDetails); |
| 2885 unittest.expect(o.matchId, unittest.equals('foo')); | 2920 unittest.expect(o.matchId, unittest.equals('foo')); |
| 2886 unittest.expect(o.matchNumber, unittest.equals(42)); | 2921 unittest.expect(o.matchNumber, unittest.equals(42)); |
| 2887 unittest.expect(o.matchVersion, unittest.equals(42)); | 2922 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 2888 checkUnnamed58(o.participants); | 2923 checkUnnamed1110(o.participants); |
| 2889 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); | 2924 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); |
| 2890 checkTurnBasedMatchData(o.previousMatchData); | 2925 checkTurnBasedMatchData(o.previousMatchData); |
| 2891 unittest.expect(o.rematchId, unittest.equals('foo')); | 2926 unittest.expect(o.rematchId, unittest.equals('foo')); |
| 2892 checkUnnamed59(o.results); | 2927 checkUnnamed1111(o.results); |
| 2893 unittest.expect(o.status, unittest.equals('foo')); | 2928 unittest.expect(o.status, unittest.equals('foo')); |
| 2894 unittest.expect(o.userMatchStatus, unittest.equals('foo')); | 2929 unittest.expect(o.userMatchStatus, unittest.equals('foo')); |
| 2895 unittest.expect(o.variant, unittest.equals(42)); | 2930 unittest.expect(o.variant, unittest.equals(42)); |
| 2896 unittest.expect(o.withParticipantId, unittest.equals('foo')); | 2931 unittest.expect(o.withParticipantId, unittest.equals('foo')); |
| 2897 } | 2932 } |
| 2898 buildCounterTurnBasedMatch--; | 2933 buildCounterTurnBasedMatch--; |
| 2899 } | 2934 } |
| 2900 | 2935 |
| 2901 buildUnnamed60() { | 2936 buildUnnamed1112() { |
| 2902 var o = new core.List<core.String>(); | 2937 var o = new core.List<core.String>(); |
| 2903 o.add("foo"); | 2938 o.add("foo"); |
| 2904 o.add("foo"); | 2939 o.add("foo"); |
| 2905 return o; | 2940 return o; |
| 2906 } | 2941 } |
| 2907 | 2942 |
| 2908 checkUnnamed60(core.List<core.String> o) { | 2943 checkUnnamed1112(core.List<core.String> o) { |
| 2909 unittest.expect(o, unittest.hasLength(2)); | 2944 unittest.expect(o, unittest.hasLength(2)); |
| 2910 unittest.expect(o[0], unittest.equals('foo')); | 2945 unittest.expect(o[0], unittest.equals('foo')); |
| 2911 unittest.expect(o[1], unittest.equals('foo')); | 2946 unittest.expect(o[1], unittest.equals('foo')); |
| 2912 } | 2947 } |
| 2913 | 2948 |
| 2914 core.int buildCounterTurnBasedMatchCreateRequest = 0; | 2949 core.int buildCounterTurnBasedMatchCreateRequest = 0; |
| 2915 buildTurnBasedMatchCreateRequest() { | 2950 buildTurnBasedMatchCreateRequest() { |
| 2916 var o = new api.TurnBasedMatchCreateRequest(); | 2951 var o = new api.TurnBasedMatchCreateRequest(); |
| 2917 buildCounterTurnBasedMatchCreateRequest++; | 2952 buildCounterTurnBasedMatchCreateRequest++; |
| 2918 if (buildCounterTurnBasedMatchCreateRequest < 3) { | 2953 if (buildCounterTurnBasedMatchCreateRequest < 3) { |
| 2919 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); | 2954 o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); |
| 2920 o.invitedPlayerIds = buildUnnamed60(); | 2955 o.invitedPlayerIds = buildUnnamed1112(); |
| 2921 o.kind = "foo"; | 2956 o.kind = "foo"; |
| 2922 o.requestId = "foo"; | 2957 o.requestId = "foo"; |
| 2923 o.variant = 42; | 2958 o.variant = 42; |
| 2924 } | 2959 } |
| 2925 buildCounterTurnBasedMatchCreateRequest--; | 2960 buildCounterTurnBasedMatchCreateRequest--; |
| 2926 return o; | 2961 return o; |
| 2927 } | 2962 } |
| 2928 | 2963 |
| 2929 checkTurnBasedMatchCreateRequest(api.TurnBasedMatchCreateRequest o) { | 2964 checkTurnBasedMatchCreateRequest(api.TurnBasedMatchCreateRequest o) { |
| 2930 buildCounterTurnBasedMatchCreateRequest++; | 2965 buildCounterTurnBasedMatchCreateRequest++; |
| 2931 if (buildCounterTurnBasedMatchCreateRequest < 3) { | 2966 if (buildCounterTurnBasedMatchCreateRequest < 3) { |
| 2932 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); | 2967 checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); |
| 2933 checkUnnamed60(o.invitedPlayerIds); | 2968 checkUnnamed1112(o.invitedPlayerIds); |
| 2934 unittest.expect(o.kind, unittest.equals('foo')); | 2969 unittest.expect(o.kind, unittest.equals('foo')); |
| 2935 unittest.expect(o.requestId, unittest.equals('foo')); | 2970 unittest.expect(o.requestId, unittest.equals('foo')); |
| 2936 unittest.expect(o.variant, unittest.equals(42)); | 2971 unittest.expect(o.variant, unittest.equals(42)); |
| 2937 } | 2972 } |
| 2938 buildCounterTurnBasedMatchCreateRequest--; | 2973 buildCounterTurnBasedMatchCreateRequest--; |
| 2939 } | 2974 } |
| 2940 | 2975 |
| 2941 core.int buildCounterTurnBasedMatchData = 0; | 2976 core.int buildCounterTurnBasedMatchData = 0; |
| 2942 buildTurnBasedMatchData() { | 2977 buildTurnBasedMatchData() { |
| 2943 var o = new api.TurnBasedMatchData(); | 2978 var o = new api.TurnBasedMatchData(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2975 | 3010 |
| 2976 checkTurnBasedMatchDataRequest(api.TurnBasedMatchDataRequest o) { | 3011 checkTurnBasedMatchDataRequest(api.TurnBasedMatchDataRequest o) { |
| 2977 buildCounterTurnBasedMatchDataRequest++; | 3012 buildCounterTurnBasedMatchDataRequest++; |
| 2978 if (buildCounterTurnBasedMatchDataRequest < 3) { | 3013 if (buildCounterTurnBasedMatchDataRequest < 3) { |
| 2979 unittest.expect(o.data, unittest.equals('foo')); | 3014 unittest.expect(o.data, unittest.equals('foo')); |
| 2980 unittest.expect(o.kind, unittest.equals('foo')); | 3015 unittest.expect(o.kind, unittest.equals('foo')); |
| 2981 } | 3016 } |
| 2982 buildCounterTurnBasedMatchDataRequest--; | 3017 buildCounterTurnBasedMatchDataRequest--; |
| 2983 } | 3018 } |
| 2984 | 3019 |
| 2985 buildUnnamed61() { | 3020 buildUnnamed1113() { |
| 2986 var o = new core.List<api.TurnBasedMatch>(); | 3021 var o = new core.List<api.TurnBasedMatch>(); |
| 2987 o.add(buildTurnBasedMatch()); | 3022 o.add(buildTurnBasedMatch()); |
| 2988 o.add(buildTurnBasedMatch()); | 3023 o.add(buildTurnBasedMatch()); |
| 2989 return o; | 3024 return o; |
| 2990 } | 3025 } |
| 2991 | 3026 |
| 2992 checkUnnamed61(core.List<api.TurnBasedMatch> o) { | 3027 checkUnnamed1113(core.List<api.TurnBasedMatch> o) { |
| 2993 unittest.expect(o, unittest.hasLength(2)); | 3028 unittest.expect(o, unittest.hasLength(2)); |
| 2994 checkTurnBasedMatch(o[0]); | 3029 checkTurnBasedMatch(o[0]); |
| 2995 checkTurnBasedMatch(o[1]); | 3030 checkTurnBasedMatch(o[1]); |
| 2996 } | 3031 } |
| 2997 | 3032 |
| 2998 core.int buildCounterTurnBasedMatchList = 0; | 3033 core.int buildCounterTurnBasedMatchList = 0; |
| 2999 buildTurnBasedMatchList() { | 3034 buildTurnBasedMatchList() { |
| 3000 var o = new api.TurnBasedMatchList(); | 3035 var o = new api.TurnBasedMatchList(); |
| 3001 buildCounterTurnBasedMatchList++; | 3036 buildCounterTurnBasedMatchList++; |
| 3002 if (buildCounterTurnBasedMatchList < 3) { | 3037 if (buildCounterTurnBasedMatchList < 3) { |
| 3003 o.items = buildUnnamed61(); | 3038 o.items = buildUnnamed1113(); |
| 3004 o.kind = "foo"; | 3039 o.kind = "foo"; |
| 3005 o.nextPageToken = "foo"; | 3040 o.nextPageToken = "foo"; |
| 3006 } | 3041 } |
| 3007 buildCounterTurnBasedMatchList--; | 3042 buildCounterTurnBasedMatchList--; |
| 3008 return o; | 3043 return o; |
| 3009 } | 3044 } |
| 3010 | 3045 |
| 3011 checkTurnBasedMatchList(api.TurnBasedMatchList o) { | 3046 checkTurnBasedMatchList(api.TurnBasedMatchList o) { |
| 3012 buildCounterTurnBasedMatchList++; | 3047 buildCounterTurnBasedMatchList++; |
| 3013 if (buildCounterTurnBasedMatchList < 3) { | 3048 if (buildCounterTurnBasedMatchList < 3) { |
| 3014 checkUnnamed61(o.items); | 3049 checkUnnamed1113(o.items); |
| 3015 unittest.expect(o.kind, unittest.equals('foo')); | 3050 unittest.expect(o.kind, unittest.equals('foo')); |
| 3016 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3051 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3017 } | 3052 } |
| 3018 buildCounterTurnBasedMatchList--; | 3053 buildCounterTurnBasedMatchList--; |
| 3019 } | 3054 } |
| 3020 | 3055 |
| 3021 core.int buildCounterTurnBasedMatchModification = 0; | 3056 core.int buildCounterTurnBasedMatchModification = 0; |
| 3022 buildTurnBasedMatchModification() { | 3057 buildTurnBasedMatchModification() { |
| 3023 var o = new api.TurnBasedMatchModification(); | 3058 var o = new api.TurnBasedMatchModification(); |
| 3024 buildCounterTurnBasedMatchModification++; | 3059 buildCounterTurnBasedMatchModification++; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3086 checkTurnBasedMatchRematch(api.TurnBasedMatchRematch o) { | 3121 checkTurnBasedMatchRematch(api.TurnBasedMatchRematch o) { |
| 3087 buildCounterTurnBasedMatchRematch++; | 3122 buildCounterTurnBasedMatchRematch++; |
| 3088 if (buildCounterTurnBasedMatchRematch < 3) { | 3123 if (buildCounterTurnBasedMatchRematch < 3) { |
| 3089 unittest.expect(o.kind, unittest.equals('foo')); | 3124 unittest.expect(o.kind, unittest.equals('foo')); |
| 3090 checkTurnBasedMatch(o.previousMatch); | 3125 checkTurnBasedMatch(o.previousMatch); |
| 3091 checkTurnBasedMatch(o.rematch); | 3126 checkTurnBasedMatch(o.rematch); |
| 3092 } | 3127 } |
| 3093 buildCounterTurnBasedMatchRematch--; | 3128 buildCounterTurnBasedMatchRematch--; |
| 3094 } | 3129 } |
| 3095 | 3130 |
| 3096 buildUnnamed62() { | 3131 buildUnnamed1114() { |
| 3097 var o = new core.List<api.ParticipantResult>(); | 3132 var o = new core.List<api.ParticipantResult>(); |
| 3098 o.add(buildParticipantResult()); | 3133 o.add(buildParticipantResult()); |
| 3099 o.add(buildParticipantResult()); | 3134 o.add(buildParticipantResult()); |
| 3100 return o; | 3135 return o; |
| 3101 } | 3136 } |
| 3102 | 3137 |
| 3103 checkUnnamed62(core.List<api.ParticipantResult> o) { | 3138 checkUnnamed1114(core.List<api.ParticipantResult> o) { |
| 3104 unittest.expect(o, unittest.hasLength(2)); | 3139 unittest.expect(o, unittest.hasLength(2)); |
| 3105 checkParticipantResult(o[0]); | 3140 checkParticipantResult(o[0]); |
| 3106 checkParticipantResult(o[1]); | 3141 checkParticipantResult(o[1]); |
| 3107 } | 3142 } |
| 3108 | 3143 |
| 3109 core.int buildCounterTurnBasedMatchResults = 0; | 3144 core.int buildCounterTurnBasedMatchResults = 0; |
| 3110 buildTurnBasedMatchResults() { | 3145 buildTurnBasedMatchResults() { |
| 3111 var o = new api.TurnBasedMatchResults(); | 3146 var o = new api.TurnBasedMatchResults(); |
| 3112 buildCounterTurnBasedMatchResults++; | 3147 buildCounterTurnBasedMatchResults++; |
| 3113 if (buildCounterTurnBasedMatchResults < 3) { | 3148 if (buildCounterTurnBasedMatchResults < 3) { |
| 3114 o.data = buildTurnBasedMatchDataRequest(); | 3149 o.data = buildTurnBasedMatchDataRequest(); |
| 3115 o.kind = "foo"; | 3150 o.kind = "foo"; |
| 3116 o.matchVersion = 42; | 3151 o.matchVersion = 42; |
| 3117 o.results = buildUnnamed62(); | 3152 o.results = buildUnnamed1114(); |
| 3118 } | 3153 } |
| 3119 buildCounterTurnBasedMatchResults--; | 3154 buildCounterTurnBasedMatchResults--; |
| 3120 return o; | 3155 return o; |
| 3121 } | 3156 } |
| 3122 | 3157 |
| 3123 checkTurnBasedMatchResults(api.TurnBasedMatchResults o) { | 3158 checkTurnBasedMatchResults(api.TurnBasedMatchResults o) { |
| 3124 buildCounterTurnBasedMatchResults++; | 3159 buildCounterTurnBasedMatchResults++; |
| 3125 if (buildCounterTurnBasedMatchResults < 3) { | 3160 if (buildCounterTurnBasedMatchResults < 3) { |
| 3126 checkTurnBasedMatchDataRequest(o.data); | 3161 checkTurnBasedMatchDataRequest(o.data); |
| 3127 unittest.expect(o.kind, unittest.equals('foo')); | 3162 unittest.expect(o.kind, unittest.equals('foo')); |
| 3128 unittest.expect(o.matchVersion, unittest.equals(42)); | 3163 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 3129 checkUnnamed62(o.results); | 3164 checkUnnamed1114(o.results); |
| 3130 } | 3165 } |
| 3131 buildCounterTurnBasedMatchResults--; | 3166 buildCounterTurnBasedMatchResults--; |
| 3132 } | 3167 } |
| 3133 | 3168 |
| 3134 buildUnnamed63() { | 3169 buildUnnamed1115() { |
| 3135 var o = new core.List<api.TurnBasedMatch>(); | 3170 var o = new core.List<api.TurnBasedMatch>(); |
| 3136 o.add(buildTurnBasedMatch()); | 3171 o.add(buildTurnBasedMatch()); |
| 3137 o.add(buildTurnBasedMatch()); | 3172 o.add(buildTurnBasedMatch()); |
| 3138 return o; | 3173 return o; |
| 3139 } | 3174 } |
| 3140 | 3175 |
| 3141 checkUnnamed63(core.List<api.TurnBasedMatch> o) { | 3176 checkUnnamed1115(core.List<api.TurnBasedMatch> o) { |
| 3142 unittest.expect(o, unittest.hasLength(2)); | 3177 unittest.expect(o, unittest.hasLength(2)); |
| 3143 checkTurnBasedMatch(o[0]); | 3178 checkTurnBasedMatch(o[0]); |
| 3144 checkTurnBasedMatch(o[1]); | 3179 checkTurnBasedMatch(o[1]); |
| 3145 } | 3180 } |
| 3146 | 3181 |
| 3147 core.int buildCounterTurnBasedMatchSync = 0; | 3182 core.int buildCounterTurnBasedMatchSync = 0; |
| 3148 buildTurnBasedMatchSync() { | 3183 buildTurnBasedMatchSync() { |
| 3149 var o = new api.TurnBasedMatchSync(); | 3184 var o = new api.TurnBasedMatchSync(); |
| 3150 buildCounterTurnBasedMatchSync++; | 3185 buildCounterTurnBasedMatchSync++; |
| 3151 if (buildCounterTurnBasedMatchSync < 3) { | 3186 if (buildCounterTurnBasedMatchSync < 3) { |
| 3152 o.items = buildUnnamed63(); | 3187 o.items = buildUnnamed1115(); |
| 3153 o.kind = "foo"; | 3188 o.kind = "foo"; |
| 3154 o.moreAvailable = true; | 3189 o.moreAvailable = true; |
| 3155 o.nextPageToken = "foo"; | 3190 o.nextPageToken = "foo"; |
| 3156 } | 3191 } |
| 3157 buildCounterTurnBasedMatchSync--; | 3192 buildCounterTurnBasedMatchSync--; |
| 3158 return o; | 3193 return o; |
| 3159 } | 3194 } |
| 3160 | 3195 |
| 3161 checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { | 3196 checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { |
| 3162 buildCounterTurnBasedMatchSync++; | 3197 buildCounterTurnBasedMatchSync++; |
| 3163 if (buildCounterTurnBasedMatchSync < 3) { | 3198 if (buildCounterTurnBasedMatchSync < 3) { |
| 3164 checkUnnamed63(o.items); | 3199 checkUnnamed1115(o.items); |
| 3165 unittest.expect(o.kind, unittest.equals('foo')); | 3200 unittest.expect(o.kind, unittest.equals('foo')); |
| 3166 unittest.expect(o.moreAvailable, unittest.isTrue); | 3201 unittest.expect(o.moreAvailable, unittest.isTrue); |
| 3167 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3202 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3168 } | 3203 } |
| 3169 buildCounterTurnBasedMatchSync--; | 3204 buildCounterTurnBasedMatchSync--; |
| 3170 } | 3205 } |
| 3171 | 3206 |
| 3172 buildUnnamed64() { | 3207 buildUnnamed1116() { |
| 3173 var o = new core.List<api.ParticipantResult>(); | 3208 var o = new core.List<api.ParticipantResult>(); |
| 3174 o.add(buildParticipantResult()); | 3209 o.add(buildParticipantResult()); |
| 3175 o.add(buildParticipantResult()); | 3210 o.add(buildParticipantResult()); |
| 3176 return o; | 3211 return o; |
| 3177 } | 3212 } |
| 3178 | 3213 |
| 3179 checkUnnamed64(core.List<api.ParticipantResult> o) { | 3214 checkUnnamed1116(core.List<api.ParticipantResult> o) { |
| 3180 unittest.expect(o, unittest.hasLength(2)); | 3215 unittest.expect(o, unittest.hasLength(2)); |
| 3181 checkParticipantResult(o[0]); | 3216 checkParticipantResult(o[0]); |
| 3182 checkParticipantResult(o[1]); | 3217 checkParticipantResult(o[1]); |
| 3183 } | 3218 } |
| 3184 | 3219 |
| 3185 core.int buildCounterTurnBasedMatchTurn = 0; | 3220 core.int buildCounterTurnBasedMatchTurn = 0; |
| 3186 buildTurnBasedMatchTurn() { | 3221 buildTurnBasedMatchTurn() { |
| 3187 var o = new api.TurnBasedMatchTurn(); | 3222 var o = new api.TurnBasedMatchTurn(); |
| 3188 buildCounterTurnBasedMatchTurn++; | 3223 buildCounterTurnBasedMatchTurn++; |
| 3189 if (buildCounterTurnBasedMatchTurn < 3) { | 3224 if (buildCounterTurnBasedMatchTurn < 3) { |
| 3190 o.data = buildTurnBasedMatchDataRequest(); | 3225 o.data = buildTurnBasedMatchDataRequest(); |
| 3191 o.kind = "foo"; | 3226 o.kind = "foo"; |
| 3192 o.matchVersion = 42; | 3227 o.matchVersion = 42; |
| 3193 o.pendingParticipantId = "foo"; | 3228 o.pendingParticipantId = "foo"; |
| 3194 o.results = buildUnnamed64(); | 3229 o.results = buildUnnamed1116(); |
| 3195 } | 3230 } |
| 3196 buildCounterTurnBasedMatchTurn--; | 3231 buildCounterTurnBasedMatchTurn--; |
| 3197 return o; | 3232 return o; |
| 3198 } | 3233 } |
| 3199 | 3234 |
| 3200 checkTurnBasedMatchTurn(api.TurnBasedMatchTurn o) { | 3235 checkTurnBasedMatchTurn(api.TurnBasedMatchTurn o) { |
| 3201 buildCounterTurnBasedMatchTurn++; | 3236 buildCounterTurnBasedMatchTurn++; |
| 3202 if (buildCounterTurnBasedMatchTurn < 3) { | 3237 if (buildCounterTurnBasedMatchTurn < 3) { |
| 3203 checkTurnBasedMatchDataRequest(o.data); | 3238 checkTurnBasedMatchDataRequest(o.data); |
| 3204 unittest.expect(o.kind, unittest.equals('foo')); | 3239 unittest.expect(o.kind, unittest.equals('foo')); |
| 3205 unittest.expect(o.matchVersion, unittest.equals(42)); | 3240 unittest.expect(o.matchVersion, unittest.equals(42)); |
| 3206 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); | 3241 unittest.expect(o.pendingParticipantId, unittest.equals('foo')); |
| 3207 checkUnnamed64(o.results); | 3242 checkUnnamed1116(o.results); |
| 3208 } | 3243 } |
| 3209 buildCounterTurnBasedMatchTurn--; | 3244 buildCounterTurnBasedMatchTurn--; |
| 3210 } | 3245 } |
| 3211 | 3246 |
| 3212 | 3247 |
| 3213 main() { | 3248 main() { |
| 3214 unittest.group("obj-schema-AchievementDefinition", () { | 3249 unittest.group("obj-schema-AchievementDefinition", () { |
| 3215 unittest.test("to-json--from-json", () { | 3250 unittest.test("to-json--from-json", () { |
| 3216 var o = buildAchievementDefinition(); | 3251 var o = buildAchievementDefinition(); |
| 3217 var od = new api.AchievementDefinition.fromJson(o.toJson()); | 3252 var od = new api.AchievementDefinition.fromJson(o.toJson()); |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4089 var o = buildTurnBasedMatchTurn(); | 4124 var o = buildTurnBasedMatchTurn(); |
| 4090 var od = new api.TurnBasedMatchTurn.fromJson(o.toJson()); | 4125 var od = new api.TurnBasedMatchTurn.fromJson(o.toJson()); |
| 4091 checkTurnBasedMatchTurn(od); | 4126 checkTurnBasedMatchTurn(od); |
| 4092 }); | 4127 }); |
| 4093 }); | 4128 }); |
| 4094 | 4129 |
| 4095 | 4130 |
| 4096 unittest.group("resource-AchievementDefinitionsResourceApi", () { | 4131 unittest.group("resource-AchievementDefinitionsResourceApi", () { |
| 4097 unittest.test("method--list", () { | 4132 unittest.test("method--list", () { |
| 4098 | 4133 |
| 4099 var mock = new common_test.HttpServerMock(); | 4134 var mock = new HttpServerMock(); |
| 4100 api.AchievementDefinitionsResourceApi res = new api.GamesApi(mock).achieve
mentDefinitions; | 4135 api.AchievementDefinitionsResourceApi res = new api.GamesApi(mock).achieve
mentDefinitions; |
| 4101 var arg_language = "foo"; | 4136 var arg_language = "foo"; |
| 4102 var arg_maxResults = 42; | 4137 var arg_maxResults = 42; |
| 4103 var arg_pageToken = "foo"; | 4138 var arg_pageToken = "foo"; |
| 4104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4105 var path = (req.url).path; | 4140 var path = (req.url).path; |
| 4106 var pathOffset = 0; | 4141 var pathOffset = 0; |
| 4107 var index; | 4142 var index; |
| 4108 var subPart; | 4143 var subPart; |
| 4109 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4131 } | 4166 } |
| 4132 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4167 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4133 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4168 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4134 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4169 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4135 | 4170 |
| 4136 | 4171 |
| 4137 var h = { | 4172 var h = { |
| 4138 "content-type" : "application/json; charset=utf-8", | 4173 "content-type" : "application/json; charset=utf-8", |
| 4139 }; | 4174 }; |
| 4140 var resp = convert.JSON.encode(buildAchievementDefinitionsListResponse()
); | 4175 var resp = convert.JSON.encode(buildAchievementDefinitionsListResponse()
); |
| 4141 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4176 return new async.Future.value(stringResponse(200, h, resp)); |
| 4142 }), true); | 4177 }), true); |
| 4143 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.AchievementDefinitionsListResponse
response) { | 4178 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.AchievementDefinitionsListResponse
response) { |
| 4144 checkAchievementDefinitionsListResponse(response); | 4179 checkAchievementDefinitionsListResponse(response); |
| 4145 }))); | 4180 }))); |
| 4146 }); | 4181 }); |
| 4147 | 4182 |
| 4148 }); | 4183 }); |
| 4149 | 4184 |
| 4150 | 4185 |
| 4151 unittest.group("resource-AchievementsResourceApi", () { | 4186 unittest.group("resource-AchievementsResourceApi", () { |
| 4152 unittest.test("method--increment", () { | 4187 unittest.test("method--increment", () { |
| 4153 | 4188 |
| 4154 var mock = new common_test.HttpServerMock(); | 4189 var mock = new HttpServerMock(); |
| 4155 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4190 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4156 var arg_achievementId = "foo"; | 4191 var arg_achievementId = "foo"; |
| 4157 var arg_stepsToIncrement = 42; | 4192 var arg_stepsToIncrement = 42; |
| 4158 var arg_requestId = "foo"; | 4193 var arg_requestId = "foo"; |
| 4159 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4194 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4160 var path = (req.url).path; | 4195 var path = (req.url).path; |
| 4161 var pathOffset = 0; | 4196 var pathOffset = 0; |
| 4162 var index; | 4197 var index; |
| 4163 var subPart; | 4198 var subPart; |
| 4164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4192 } | 4227 } |
| 4193 } | 4228 } |
| 4194 unittest.expect(core.int.parse(queryMap["stepsToIncrement"].first), unit
test.equals(arg_stepsToIncrement)); | 4229 unittest.expect(core.int.parse(queryMap["stepsToIncrement"].first), unit
test.equals(arg_stepsToIncrement)); |
| 4195 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 4230 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 4196 | 4231 |
| 4197 | 4232 |
| 4198 var h = { | 4233 var h = { |
| 4199 "content-type" : "application/json; charset=utf-8", | 4234 "content-type" : "application/json; charset=utf-8", |
| 4200 }; | 4235 }; |
| 4201 var resp = convert.JSON.encode(buildAchievementIncrementResponse()); | 4236 var resp = convert.JSON.encode(buildAchievementIncrementResponse()); |
| 4202 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4237 return new async.Future.value(stringResponse(200, h, resp)); |
| 4203 }), true); | 4238 }), true); |
| 4204 res.increment(arg_achievementId, arg_stepsToIncrement, requestId: arg_requ
estId).then(unittest.expectAsync(((api.AchievementIncrementResponse response) { | 4239 res.increment(arg_achievementId, arg_stepsToIncrement, requestId: arg_requ
estId).then(unittest.expectAsync(((api.AchievementIncrementResponse response) { |
| 4205 checkAchievementIncrementResponse(response); | 4240 checkAchievementIncrementResponse(response); |
| 4206 }))); | 4241 }))); |
| 4207 }); | 4242 }); |
| 4208 | 4243 |
| 4209 unittest.test("method--list", () { | 4244 unittest.test("method--list", () { |
| 4210 | 4245 |
| 4211 var mock = new common_test.HttpServerMock(); | 4246 var mock = new HttpServerMock(); |
| 4212 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4247 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4213 var arg_playerId = "foo"; | 4248 var arg_playerId = "foo"; |
| 4214 var arg_language = "foo"; | 4249 var arg_language = "foo"; |
| 4215 var arg_maxResults = 42; | 4250 var arg_maxResults = 42; |
| 4216 var arg_pageToken = "foo"; | 4251 var arg_pageToken = "foo"; |
| 4217 var arg_state = "foo"; | 4252 var arg_state = "foo"; |
| 4218 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4253 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4219 var path = (req.url).path; | 4254 var path = (req.url).path; |
| 4220 var pathOffset = 0; | 4255 var pathOffset = 0; |
| 4221 var index; | 4256 var index; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4253 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4288 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4254 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4289 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4255 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4290 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4256 unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); | 4291 unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); |
| 4257 | 4292 |
| 4258 | 4293 |
| 4259 var h = { | 4294 var h = { |
| 4260 "content-type" : "application/json; charset=utf-8", | 4295 "content-type" : "application/json; charset=utf-8", |
| 4261 }; | 4296 }; |
| 4262 var resp = convert.JSON.encode(buildPlayerAchievementListResponse()); | 4297 var resp = convert.JSON.encode(buildPlayerAchievementListResponse()); |
| 4263 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4298 return new async.Future.value(stringResponse(200, h, resp)); |
| 4264 }), true); | 4299 }), true); |
| 4265 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken, state: arg_state).then(unittest.expectAsync(((api.Pla
yerAchievementListResponse response) { | 4300 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken, state: arg_state).then(unittest.expectAsync(((api.Pla
yerAchievementListResponse response) { |
| 4266 checkPlayerAchievementListResponse(response); | 4301 checkPlayerAchievementListResponse(response); |
| 4267 }))); | 4302 }))); |
| 4268 }); | 4303 }); |
| 4269 | 4304 |
| 4270 unittest.test("method--reveal", () { | 4305 unittest.test("method--reveal", () { |
| 4271 | 4306 |
| 4272 var mock = new common_test.HttpServerMock(); | 4307 var mock = new HttpServerMock(); |
| 4273 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4308 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4274 var arg_achievementId = "foo"; | 4309 var arg_achievementId = "foo"; |
| 4275 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4310 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4276 var path = (req.url).path; | 4311 var path = (req.url).path; |
| 4277 var pathOffset = 0; | 4312 var pathOffset = 0; |
| 4278 var index; | 4313 var index; |
| 4279 var subPart; | 4314 var subPart; |
| 4280 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4315 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4281 pathOffset += 1; | 4316 pathOffset += 1; |
| 4282 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4317 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4306 var keyvalue = part.split("="); | 4341 var keyvalue = part.split("="); |
| 4307 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4342 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4308 } | 4343 } |
| 4309 } | 4344 } |
| 4310 | 4345 |
| 4311 | 4346 |
| 4312 var h = { | 4347 var h = { |
| 4313 "content-type" : "application/json; charset=utf-8", | 4348 "content-type" : "application/json; charset=utf-8", |
| 4314 }; | 4349 }; |
| 4315 var resp = convert.JSON.encode(buildAchievementRevealResponse()); | 4350 var resp = convert.JSON.encode(buildAchievementRevealResponse()); |
| 4316 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4351 return new async.Future.value(stringResponse(200, h, resp)); |
| 4317 }), true); | 4352 }), true); |
| 4318 res.reveal(arg_achievementId).then(unittest.expectAsync(((api.AchievementR
evealResponse response) { | 4353 res.reveal(arg_achievementId).then(unittest.expectAsync(((api.AchievementR
evealResponse response) { |
| 4319 checkAchievementRevealResponse(response); | 4354 checkAchievementRevealResponse(response); |
| 4320 }))); | 4355 }))); |
| 4321 }); | 4356 }); |
| 4322 | 4357 |
| 4323 unittest.test("method--setStepsAtLeast", () { | 4358 unittest.test("method--setStepsAtLeast", () { |
| 4324 | 4359 |
| 4325 var mock = new common_test.HttpServerMock(); | 4360 var mock = new HttpServerMock(); |
| 4326 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4361 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4327 var arg_achievementId = "foo"; | 4362 var arg_achievementId = "foo"; |
| 4328 var arg_steps = 42; | 4363 var arg_steps = 42; |
| 4329 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4330 var path = (req.url).path; | 4365 var path = (req.url).path; |
| 4331 var pathOffset = 0; | 4366 var pathOffset = 0; |
| 4332 var index; | 4367 var index; |
| 4333 var subPart; | 4368 var subPart; |
| 4334 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4335 pathOffset += 1; | 4370 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4396 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4362 } | 4397 } |
| 4363 } | 4398 } |
| 4364 unittest.expect(core.int.parse(queryMap["steps"].first), unittest.equals
(arg_steps)); | 4399 unittest.expect(core.int.parse(queryMap["steps"].first), unittest.equals
(arg_steps)); |
| 4365 | 4400 |
| 4366 | 4401 |
| 4367 var h = { | 4402 var h = { |
| 4368 "content-type" : "application/json; charset=utf-8", | 4403 "content-type" : "application/json; charset=utf-8", |
| 4369 }; | 4404 }; |
| 4370 var resp = convert.JSON.encode(buildAchievementSetStepsAtLeastResponse()
); | 4405 var resp = convert.JSON.encode(buildAchievementSetStepsAtLeastResponse()
); |
| 4371 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4406 return new async.Future.value(stringResponse(200, h, resp)); |
| 4372 }), true); | 4407 }), true); |
| 4373 res.setStepsAtLeast(arg_achievementId, arg_steps).then(unittest.expectAsyn
c(((api.AchievementSetStepsAtLeastResponse response) { | 4408 res.setStepsAtLeast(arg_achievementId, arg_steps).then(unittest.expectAsyn
c(((api.AchievementSetStepsAtLeastResponse response) { |
| 4374 checkAchievementSetStepsAtLeastResponse(response); | 4409 checkAchievementSetStepsAtLeastResponse(response); |
| 4375 }))); | 4410 }))); |
| 4376 }); | 4411 }); |
| 4377 | 4412 |
| 4378 unittest.test("method--unlock", () { | 4413 unittest.test("method--unlock", () { |
| 4379 | 4414 |
| 4380 var mock = new common_test.HttpServerMock(); | 4415 var mock = new HttpServerMock(); |
| 4381 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4416 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4382 var arg_achievementId = "foo"; | 4417 var arg_achievementId = "foo"; |
| 4383 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4418 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4384 var path = (req.url).path; | 4419 var path = (req.url).path; |
| 4385 var pathOffset = 0; | 4420 var pathOffset = 0; |
| 4386 var index; | 4421 var index; |
| 4387 var subPart; | 4422 var subPart; |
| 4388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4423 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4389 pathOffset += 1; | 4424 pathOffset += 1; |
| 4390 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4425 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4414 var keyvalue = part.split("="); | 4449 var keyvalue = part.split("="); |
| 4415 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4416 } | 4451 } |
| 4417 } | 4452 } |
| 4418 | 4453 |
| 4419 | 4454 |
| 4420 var h = { | 4455 var h = { |
| 4421 "content-type" : "application/json; charset=utf-8", | 4456 "content-type" : "application/json; charset=utf-8", |
| 4422 }; | 4457 }; |
| 4423 var resp = convert.JSON.encode(buildAchievementUnlockResponse()); | 4458 var resp = convert.JSON.encode(buildAchievementUnlockResponse()); |
| 4424 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4459 return new async.Future.value(stringResponse(200, h, resp)); |
| 4425 }), true); | 4460 }), true); |
| 4426 res.unlock(arg_achievementId).then(unittest.expectAsync(((api.AchievementU
nlockResponse response) { | 4461 res.unlock(arg_achievementId).then(unittest.expectAsync(((api.AchievementU
nlockResponse response) { |
| 4427 checkAchievementUnlockResponse(response); | 4462 checkAchievementUnlockResponse(response); |
| 4428 }))); | 4463 }))); |
| 4429 }); | 4464 }); |
| 4430 | 4465 |
| 4431 unittest.test("method--updateMultiple", () { | 4466 unittest.test("method--updateMultiple", () { |
| 4432 | 4467 |
| 4433 var mock = new common_test.HttpServerMock(); | 4468 var mock = new HttpServerMock(); |
| 4434 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; | 4469 api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; |
| 4435 var arg_request = buildAchievementUpdateMultipleRequest(); | 4470 var arg_request = buildAchievementUpdateMultipleRequest(); |
| 4436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4471 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4437 var obj = new api.AchievementUpdateMultipleRequest.fromJson(json); | 4472 var obj = new api.AchievementUpdateMultipleRequest.fromJson(json); |
| 4438 checkAchievementUpdateMultipleRequest(obj); | 4473 checkAchievementUpdateMultipleRequest(obj); |
| 4439 | 4474 |
| 4440 var path = (req.url).path; | 4475 var path = (req.url).path; |
| 4441 var pathOffset = 0; | 4476 var pathOffset = 0; |
| 4442 var index; | 4477 var index; |
| 4443 var subPart; | 4478 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4463 var keyvalue = part.split("="); | 4498 var keyvalue = part.split("="); |
| 4464 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4499 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4465 } | 4500 } |
| 4466 } | 4501 } |
| 4467 | 4502 |
| 4468 | 4503 |
| 4469 var h = { | 4504 var h = { |
| 4470 "content-type" : "application/json; charset=utf-8", | 4505 "content-type" : "application/json; charset=utf-8", |
| 4471 }; | 4506 }; |
| 4472 var resp = convert.JSON.encode(buildAchievementUpdateMultipleResponse())
; | 4507 var resp = convert.JSON.encode(buildAchievementUpdateMultipleResponse())
; |
| 4473 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4508 return new async.Future.value(stringResponse(200, h, resp)); |
| 4474 }), true); | 4509 }), true); |
| 4475 res.updateMultiple(arg_request).then(unittest.expectAsync(((api.Achievemen
tUpdateMultipleResponse response) { | 4510 res.updateMultiple(arg_request).then(unittest.expectAsync(((api.Achievemen
tUpdateMultipleResponse response) { |
| 4476 checkAchievementUpdateMultipleResponse(response); | 4511 checkAchievementUpdateMultipleResponse(response); |
| 4477 }))); | 4512 }))); |
| 4478 }); | 4513 }); |
| 4479 | 4514 |
| 4480 }); | 4515 }); |
| 4481 | 4516 |
| 4482 | 4517 |
| 4483 unittest.group("resource-ApplicationsResourceApi", () { | 4518 unittest.group("resource-ApplicationsResourceApi", () { |
| 4484 unittest.test("method--get", () { | 4519 unittest.test("method--get", () { |
| 4485 | 4520 |
| 4486 var mock = new common_test.HttpServerMock(); | 4521 var mock = new HttpServerMock(); |
| 4487 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; | 4522 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; |
| 4488 var arg_applicationId = "foo"; | 4523 var arg_applicationId = "foo"; |
| 4489 var arg_language = "foo"; | 4524 var arg_language = "foo"; |
| 4490 var arg_platformType = "foo"; | 4525 var arg_platformType = "foo"; |
| 4491 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4492 var path = (req.url).path; | 4527 var path = (req.url).path; |
| 4493 var pathOffset = 0; | 4528 var pathOffset = 0; |
| 4494 var index; | 4529 var index; |
| 4495 var subPart; | 4530 var subPart; |
| 4496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4531 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4520 } | 4555 } |
| 4521 } | 4556 } |
| 4522 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4557 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4523 unittest.expect(queryMap["platformType"].first, unittest.equals(arg_plat
formType)); | 4558 unittest.expect(queryMap["platformType"].first, unittest.equals(arg_plat
formType)); |
| 4524 | 4559 |
| 4525 | 4560 |
| 4526 var h = { | 4561 var h = { |
| 4527 "content-type" : "application/json; charset=utf-8", | 4562 "content-type" : "application/json; charset=utf-8", |
| 4528 }; | 4563 }; |
| 4529 var resp = convert.JSON.encode(buildApplication()); | 4564 var resp = convert.JSON.encode(buildApplication()); |
| 4530 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4565 return new async.Future.value(stringResponse(200, h, resp)); |
| 4531 }), true); | 4566 }), true); |
| 4532 res.get(arg_applicationId, language: arg_language, platformType: arg_platf
ormType).then(unittest.expectAsync(((api.Application response) { | 4567 res.get(arg_applicationId, language: arg_language, platformType: arg_platf
ormType).then(unittest.expectAsync(((api.Application response) { |
| 4533 checkApplication(response); | 4568 checkApplication(response); |
| 4534 }))); | 4569 }))); |
| 4535 }); | 4570 }); |
| 4536 | 4571 |
| 4537 unittest.test("method--played", () { | 4572 unittest.test("method--played", () { |
| 4538 | 4573 |
| 4539 var mock = new common_test.HttpServerMock(); | 4574 var mock = new HttpServerMock(); |
| 4540 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; | 4575 api.ApplicationsResourceApi res = new api.GamesApi(mock).applications; |
| 4541 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4542 var path = (req.url).path; | 4577 var path = (req.url).path; |
| 4543 var pathOffset = 0; | 4578 var pathOffset = 0; |
| 4544 var index; | 4579 var index; |
| 4545 var subPart; | 4580 var subPart; |
| 4546 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4547 pathOffset += 1; | 4582 pathOffset += 1; |
| 4548 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4583 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4549 pathOffset += 9; | 4584 pathOffset += 9; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4565 var keyvalue = part.split("="); | 4600 var keyvalue = part.split("="); |
| 4566 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4601 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4567 } | 4602 } |
| 4568 } | 4603 } |
| 4569 | 4604 |
| 4570 | 4605 |
| 4571 var h = { | 4606 var h = { |
| 4572 "content-type" : "application/json; charset=utf-8", | 4607 "content-type" : "application/json; charset=utf-8", |
| 4573 }; | 4608 }; |
| 4574 var resp = ""; | 4609 var resp = ""; |
| 4575 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4610 return new async.Future.value(stringResponse(200, h, resp)); |
| 4576 }), true); | 4611 }), true); |
| 4577 res.played().then(unittest.expectAsync((_) {})); | 4612 res.played().then(unittest.expectAsync((_) {})); |
| 4578 }); | 4613 }); |
| 4579 | 4614 |
| 4580 }); | 4615 }); |
| 4581 | 4616 |
| 4582 | 4617 |
| 4583 unittest.group("resource-EventsResourceApi", () { | 4618 unittest.group("resource-EventsResourceApi", () { |
| 4584 unittest.test("method--listByPlayer", () { | 4619 unittest.test("method--listByPlayer", () { |
| 4585 | 4620 |
| 4586 var mock = new common_test.HttpServerMock(); | 4621 var mock = new HttpServerMock(); |
| 4587 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4622 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4588 var arg_language = "foo"; | 4623 var arg_language = "foo"; |
| 4589 var arg_maxResults = 42; | 4624 var arg_maxResults = 42; |
| 4590 var arg_pageToken = "foo"; | 4625 var arg_pageToken = "foo"; |
| 4591 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4626 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4592 var path = (req.url).path; | 4627 var path = (req.url).path; |
| 4593 var pathOffset = 0; | 4628 var pathOffset = 0; |
| 4594 var index; | 4629 var index; |
| 4595 var subPart; | 4630 var subPart; |
| 4596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4618 } | 4653 } |
| 4619 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4654 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4620 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4655 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4621 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4656 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4622 | 4657 |
| 4623 | 4658 |
| 4624 var h = { | 4659 var h = { |
| 4625 "content-type" : "application/json; charset=utf-8", | 4660 "content-type" : "application/json; charset=utf-8", |
| 4626 }; | 4661 }; |
| 4627 var resp = convert.JSON.encode(buildPlayerEventListResponse()); | 4662 var resp = convert.JSON.encode(buildPlayerEventListResponse()); |
| 4628 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4663 return new async.Future.value(stringResponse(200, h, resp)); |
| 4629 }), true); | 4664 }), true); |
| 4630 res.listByPlayer(language: arg_language, maxResults: arg_maxResults, pageT
oken: arg_pageToken).then(unittest.expectAsync(((api.PlayerEventListResponse res
ponse) { | 4665 res.listByPlayer(language: arg_language, maxResults: arg_maxResults, pageT
oken: arg_pageToken).then(unittest.expectAsync(((api.PlayerEventListResponse res
ponse) { |
| 4631 checkPlayerEventListResponse(response); | 4666 checkPlayerEventListResponse(response); |
| 4632 }))); | 4667 }))); |
| 4633 }); | 4668 }); |
| 4634 | 4669 |
| 4635 unittest.test("method--listDefinitions", () { | 4670 unittest.test("method--listDefinitions", () { |
| 4636 | 4671 |
| 4637 var mock = new common_test.HttpServerMock(); | 4672 var mock = new HttpServerMock(); |
| 4638 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4673 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4639 var arg_language = "foo"; | 4674 var arg_language = "foo"; |
| 4640 var arg_maxResults = 42; | 4675 var arg_maxResults = 42; |
| 4641 var arg_pageToken = "foo"; | 4676 var arg_pageToken = "foo"; |
| 4642 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4643 var path = (req.url).path; | 4678 var path = (req.url).path; |
| 4644 var pathOffset = 0; | 4679 var pathOffset = 0; |
| 4645 var index; | 4680 var index; |
| 4646 var subPart; | 4681 var subPart; |
| 4647 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4669 } | 4704 } |
| 4670 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4705 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4671 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4706 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4672 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4707 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4673 | 4708 |
| 4674 | 4709 |
| 4675 var h = { | 4710 var h = { |
| 4676 "content-type" : "application/json; charset=utf-8", | 4711 "content-type" : "application/json; charset=utf-8", |
| 4677 }; | 4712 }; |
| 4678 var resp = convert.JSON.encode(buildEventDefinitionListResponse()); | 4713 var resp = convert.JSON.encode(buildEventDefinitionListResponse()); |
| 4679 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4714 return new async.Future.value(stringResponse(200, h, resp)); |
| 4680 }), true); | 4715 }), true); |
| 4681 res.listDefinitions(language: arg_language, maxResults: arg_maxResults, pa
geToken: arg_pageToken).then(unittest.expectAsync(((api.EventDefinitionListRespo
nse response) { | 4716 res.listDefinitions(language: arg_language, maxResults: arg_maxResults, pa
geToken: arg_pageToken).then(unittest.expectAsync(((api.EventDefinitionListRespo
nse response) { |
| 4682 checkEventDefinitionListResponse(response); | 4717 checkEventDefinitionListResponse(response); |
| 4683 }))); | 4718 }))); |
| 4684 }); | 4719 }); |
| 4685 | 4720 |
| 4686 unittest.test("method--record", () { | 4721 unittest.test("method--record", () { |
| 4687 | 4722 |
| 4688 var mock = new common_test.HttpServerMock(); | 4723 var mock = new HttpServerMock(); |
| 4689 api.EventsResourceApi res = new api.GamesApi(mock).events; | 4724 api.EventsResourceApi res = new api.GamesApi(mock).events; |
| 4690 var arg_request = buildEventRecordRequest(); | 4725 var arg_request = buildEventRecordRequest(); |
| 4691 var arg_language = "foo"; | 4726 var arg_language = "foo"; |
| 4692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4727 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4693 var obj = new api.EventRecordRequest.fromJson(json); | 4728 var obj = new api.EventRecordRequest.fromJson(json); |
| 4694 checkEventRecordRequest(obj); | 4729 checkEventRecordRequest(obj); |
| 4695 | 4730 |
| 4696 var path = (req.url).path; | 4731 var path = (req.url).path; |
| 4697 var pathOffset = 0; | 4732 var pathOffset = 0; |
| 4698 var index; | 4733 var index; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4720 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4755 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4721 } | 4756 } |
| 4722 } | 4757 } |
| 4723 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4758 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4724 | 4759 |
| 4725 | 4760 |
| 4726 var h = { | 4761 var h = { |
| 4727 "content-type" : "application/json; charset=utf-8", | 4762 "content-type" : "application/json; charset=utf-8", |
| 4728 }; | 4763 }; |
| 4729 var resp = convert.JSON.encode(buildEventUpdateResponse()); | 4764 var resp = convert.JSON.encode(buildEventUpdateResponse()); |
| 4730 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4765 return new async.Future.value(stringResponse(200, h, resp)); |
| 4731 }), true); | 4766 }), true); |
| 4732 res.record(arg_request, language: arg_language).then(unittest.expectAsync(
((api.EventUpdateResponse response) { | 4767 res.record(arg_request, language: arg_language).then(unittest.expectAsync(
((api.EventUpdateResponse response) { |
| 4733 checkEventUpdateResponse(response); | 4768 checkEventUpdateResponse(response); |
| 4734 }))); | 4769 }))); |
| 4735 }); | 4770 }); |
| 4736 | 4771 |
| 4737 }); | 4772 }); |
| 4738 | 4773 |
| 4739 | 4774 |
| 4740 unittest.group("resource-LeaderboardsResourceApi", () { | 4775 unittest.group("resource-LeaderboardsResourceApi", () { |
| 4741 unittest.test("method--get", () { | 4776 unittest.test("method--get", () { |
| 4742 | 4777 |
| 4743 var mock = new common_test.HttpServerMock(); | 4778 var mock = new HttpServerMock(); |
| 4744 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; | 4779 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; |
| 4745 var arg_leaderboardId = "foo"; | 4780 var arg_leaderboardId = "foo"; |
| 4746 var arg_language = "foo"; | 4781 var arg_language = "foo"; |
| 4747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4782 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4748 var path = (req.url).path; | 4783 var path = (req.url).path; |
| 4749 var pathOffset = 0; | 4784 var pathOffset = 0; |
| 4750 var index; | 4785 var index; |
| 4751 var subPart; | 4786 var subPart; |
| 4752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4787 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4753 pathOffset += 1; | 4788 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4775 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4810 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4776 } | 4811 } |
| 4777 } | 4812 } |
| 4778 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4813 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4779 | 4814 |
| 4780 | 4815 |
| 4781 var h = { | 4816 var h = { |
| 4782 "content-type" : "application/json; charset=utf-8", | 4817 "content-type" : "application/json; charset=utf-8", |
| 4783 }; | 4818 }; |
| 4784 var resp = convert.JSON.encode(buildLeaderboard()); | 4819 var resp = convert.JSON.encode(buildLeaderboard()); |
| 4785 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4820 return new async.Future.value(stringResponse(200, h, resp)); |
| 4786 }), true); | 4821 }), true); |
| 4787 res.get(arg_leaderboardId, language: arg_language).then(unittest.expectAsy
nc(((api.Leaderboard response) { | 4822 res.get(arg_leaderboardId, language: arg_language).then(unittest.expectAsy
nc(((api.Leaderboard response) { |
| 4788 checkLeaderboard(response); | 4823 checkLeaderboard(response); |
| 4789 }))); | 4824 }))); |
| 4790 }); | 4825 }); |
| 4791 | 4826 |
| 4792 unittest.test("method--list", () { | 4827 unittest.test("method--list", () { |
| 4793 | 4828 |
| 4794 var mock = new common_test.HttpServerMock(); | 4829 var mock = new HttpServerMock(); |
| 4795 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; | 4830 api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; |
| 4796 var arg_language = "foo"; | 4831 var arg_language = "foo"; |
| 4797 var arg_maxResults = 42; | 4832 var arg_maxResults = 42; |
| 4798 var arg_pageToken = "foo"; | 4833 var arg_pageToken = "foo"; |
| 4799 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4834 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4800 var path = (req.url).path; | 4835 var path = (req.url).path; |
| 4801 var pathOffset = 0; | 4836 var pathOffset = 0; |
| 4802 var index; | 4837 var index; |
| 4803 var subPart; | 4838 var subPart; |
| 4804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4826 } | 4861 } |
| 4827 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4862 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4828 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4863 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4829 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4864 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4830 | 4865 |
| 4831 | 4866 |
| 4832 var h = { | 4867 var h = { |
| 4833 "content-type" : "application/json; charset=utf-8", | 4868 "content-type" : "application/json; charset=utf-8", |
| 4834 }; | 4869 }; |
| 4835 var resp = convert.JSON.encode(buildLeaderboardListResponse()); | 4870 var resp = convert.JSON.encode(buildLeaderboardListResponse()); |
| 4836 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4871 return new async.Future.value(stringResponse(200, h, resp)); |
| 4837 }), true); | 4872 }), true); |
| 4838 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.LeaderboardListResponse response) { | 4873 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.LeaderboardListResponse response) { |
| 4839 checkLeaderboardListResponse(response); | 4874 checkLeaderboardListResponse(response); |
| 4840 }))); | 4875 }))); |
| 4841 }); | 4876 }); |
| 4842 | 4877 |
| 4843 }); | 4878 }); |
| 4844 | 4879 |
| 4845 | 4880 |
| 4846 unittest.group("resource-MetagameResourceApi", () { | 4881 unittest.group("resource-MetagameResourceApi", () { |
| 4847 unittest.test("method--getMetagameConfig", () { | 4882 unittest.test("method--getMetagameConfig", () { |
| 4848 | 4883 |
| 4849 var mock = new common_test.HttpServerMock(); | 4884 var mock = new HttpServerMock(); |
| 4850 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; | 4885 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; |
| 4851 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4852 var path = (req.url).path; | 4887 var path = (req.url).path; |
| 4853 var pathOffset = 0; | 4888 var pathOffset = 0; |
| 4854 var index; | 4889 var index; |
| 4855 var subPart; | 4890 var subPart; |
| 4856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4891 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4857 pathOffset += 1; | 4892 pathOffset += 1; |
| 4858 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 4893 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| 4859 pathOffset += 9; | 4894 pathOffset += 9; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4875 var keyvalue = part.split("="); | 4910 var keyvalue = part.split("="); |
| 4876 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4911 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4877 } | 4912 } |
| 4878 } | 4913 } |
| 4879 | 4914 |
| 4880 | 4915 |
| 4881 var h = { | 4916 var h = { |
| 4882 "content-type" : "application/json; charset=utf-8", | 4917 "content-type" : "application/json; charset=utf-8", |
| 4883 }; | 4918 }; |
| 4884 var resp = convert.JSON.encode(buildMetagameConfig()); | 4919 var resp = convert.JSON.encode(buildMetagameConfig()); |
| 4885 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4920 return new async.Future.value(stringResponse(200, h, resp)); |
| 4886 }), true); | 4921 }), true); |
| 4887 res.getMetagameConfig().then(unittest.expectAsync(((api.MetagameConfig res
ponse) { | 4922 res.getMetagameConfig().then(unittest.expectAsync(((api.MetagameConfig res
ponse) { |
| 4888 checkMetagameConfig(response); | 4923 checkMetagameConfig(response); |
| 4889 }))); | 4924 }))); |
| 4890 }); | 4925 }); |
| 4891 | 4926 |
| 4892 unittest.test("method--listCategoriesByPlayer", () { | 4927 unittest.test("method--listCategoriesByPlayer", () { |
| 4893 | 4928 |
| 4894 var mock = new common_test.HttpServerMock(); | 4929 var mock = new HttpServerMock(); |
| 4895 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; | 4930 api.MetagameResourceApi res = new api.GamesApi(mock).metagame; |
| 4896 var arg_playerId = "foo"; | 4931 var arg_playerId = "foo"; |
| 4897 var arg_collection = "foo"; | 4932 var arg_collection = "foo"; |
| 4898 var arg_language = "foo"; | 4933 var arg_language = "foo"; |
| 4899 var arg_maxResults = 42; | 4934 var arg_maxResults = 42; |
| 4900 var arg_pageToken = "foo"; | 4935 var arg_pageToken = "foo"; |
| 4901 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4936 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4902 var path = (req.url).path; | 4937 var path = (req.url).path; |
| 4903 var pathOffset = 0; | 4938 var pathOffset = 0; |
| 4904 var index; | 4939 var index; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4938 } | 4973 } |
| 4939 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 4974 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4940 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4975 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4941 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4976 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4942 | 4977 |
| 4943 | 4978 |
| 4944 var h = { | 4979 var h = { |
| 4945 "content-type" : "application/json; charset=utf-8", | 4980 "content-type" : "application/json; charset=utf-8", |
| 4946 }; | 4981 }; |
| 4947 var resp = convert.JSON.encode(buildCategoryListResponse()); | 4982 var resp = convert.JSON.encode(buildCategoryListResponse()); |
| 4948 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4983 return new async.Future.value(stringResponse(200, h, resp)); |
| 4949 }), true); | 4984 }), true); |
| 4950 res.listCategoriesByPlayer(arg_playerId, arg_collection, language: arg_lan
guage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expec
tAsync(((api.CategoryListResponse response) { | 4985 res.listCategoriesByPlayer(arg_playerId, arg_collection, language: arg_lan
guage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expec
tAsync(((api.CategoryListResponse response) { |
| 4951 checkCategoryListResponse(response); | 4986 checkCategoryListResponse(response); |
| 4952 }))); | 4987 }))); |
| 4953 }); | 4988 }); |
| 4954 | 4989 |
| 4955 }); | 4990 }); |
| 4956 | 4991 |
| 4957 | 4992 |
| 4958 unittest.group("resource-PlayersResourceApi", () { | 4993 unittest.group("resource-PlayersResourceApi", () { |
| 4959 unittest.test("method--get", () { | 4994 unittest.test("method--get", () { |
| 4960 | 4995 |
| 4961 var mock = new common_test.HttpServerMock(); | 4996 var mock = new HttpServerMock(); |
| 4962 api.PlayersResourceApi res = new api.GamesApi(mock).players; | 4997 api.PlayersResourceApi res = new api.GamesApi(mock).players; |
| 4963 var arg_playerId = "foo"; | 4998 var arg_playerId = "foo"; |
| 4964 var arg_language = "foo"; | 4999 var arg_language = "foo"; |
| 4965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5000 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4966 var path = (req.url).path; | 5001 var path = (req.url).path; |
| 4967 var pathOffset = 0; | 5002 var pathOffset = 0; |
| 4968 var index; | 5003 var index; |
| 4969 var subPart; | 5004 var subPart; |
| 4970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4971 pathOffset += 1; | 5006 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4993 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5028 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4994 } | 5029 } |
| 4995 } | 5030 } |
| 4996 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5031 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 4997 | 5032 |
| 4998 | 5033 |
| 4999 var h = { | 5034 var h = { |
| 5000 "content-type" : "application/json; charset=utf-8", | 5035 "content-type" : "application/json; charset=utf-8", |
| 5001 }; | 5036 }; |
| 5002 var resp = convert.JSON.encode(buildPlayer()); | 5037 var resp = convert.JSON.encode(buildPlayer()); |
| 5003 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5038 return new async.Future.value(stringResponse(200, h, resp)); |
| 5004 }), true); | 5039 }), true); |
| 5005 res.get(arg_playerId, language: arg_language).then(unittest.expectAsync(((
api.Player response) { | 5040 res.get(arg_playerId, language: arg_language).then(unittest.expectAsync(((
api.Player response) { |
| 5006 checkPlayer(response); | 5041 checkPlayer(response); |
| 5007 }))); | 5042 }))); |
| 5008 }); | 5043 }); |
| 5009 | 5044 |
| 5010 unittest.test("method--list", () { | 5045 unittest.test("method--list", () { |
| 5011 | 5046 |
| 5012 var mock = new common_test.HttpServerMock(); | 5047 var mock = new HttpServerMock(); |
| 5013 api.PlayersResourceApi res = new api.GamesApi(mock).players; | 5048 api.PlayersResourceApi res = new api.GamesApi(mock).players; |
| 5014 var arg_collection = "foo"; | 5049 var arg_collection = "foo"; |
| 5015 var arg_language = "foo"; | 5050 var arg_language = "foo"; |
| 5016 var arg_maxResults = 42; | 5051 var arg_maxResults = 42; |
| 5017 var arg_pageToken = "foo"; | 5052 var arg_pageToken = "foo"; |
| 5018 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5053 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5019 var path = (req.url).path; | 5054 var path = (req.url).path; |
| 5020 var pathOffset = 0; | 5055 var pathOffset = 0; |
| 5021 var index; | 5056 var index; |
| 5022 var subPart; | 5057 var subPart; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5048 } | 5083 } |
| 5049 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5084 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5050 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5085 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5051 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5086 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5052 | 5087 |
| 5053 | 5088 |
| 5054 var h = { | 5089 var h = { |
| 5055 "content-type" : "application/json; charset=utf-8", | 5090 "content-type" : "application/json; charset=utf-8", |
| 5056 }; | 5091 }; |
| 5057 var resp = convert.JSON.encode(buildPlayerListResponse()); | 5092 var resp = convert.JSON.encode(buildPlayerListResponse()); |
| 5058 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5093 return new async.Future.value(stringResponse(200, h, resp)); |
| 5059 }), true); | 5094 }), true); |
| 5060 res.list(arg_collection, language: arg_language, maxResults: arg_maxResult
s, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlayerListResponse
response) { | 5095 res.list(arg_collection, language: arg_language, maxResults: arg_maxResult
s, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PlayerListResponse
response) { |
| 5061 checkPlayerListResponse(response); | 5096 checkPlayerListResponse(response); |
| 5062 }))); | 5097 }))); |
| 5063 }); | 5098 }); |
| 5064 | 5099 |
| 5065 }); | 5100 }); |
| 5066 | 5101 |
| 5067 | 5102 |
| 5068 unittest.group("resource-PushtokensResourceApi", () { | 5103 unittest.group("resource-PushtokensResourceApi", () { |
| 5069 unittest.test("method--remove", () { | 5104 unittest.test("method--remove", () { |
| 5070 | 5105 |
| 5071 var mock = new common_test.HttpServerMock(); | 5106 var mock = new HttpServerMock(); |
| 5072 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; | 5107 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; |
| 5073 var arg_request = buildPushTokenId(); | 5108 var arg_request = buildPushTokenId(); |
| 5074 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5075 var obj = new api.PushTokenId.fromJson(json); | 5110 var obj = new api.PushTokenId.fromJson(json); |
| 5076 checkPushTokenId(obj); | 5111 checkPushTokenId(obj); |
| 5077 | 5112 |
| 5078 var path = (req.url).path; | 5113 var path = (req.url).path; |
| 5079 var pathOffset = 0; | 5114 var pathOffset = 0; |
| 5080 var index; | 5115 var index; |
| 5081 var subPart; | 5116 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5101 var keyvalue = part.split("="); | 5136 var keyvalue = part.split("="); |
| 5102 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5137 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5103 } | 5138 } |
| 5104 } | 5139 } |
| 5105 | 5140 |
| 5106 | 5141 |
| 5107 var h = { | 5142 var h = { |
| 5108 "content-type" : "application/json; charset=utf-8", | 5143 "content-type" : "application/json; charset=utf-8", |
| 5109 }; | 5144 }; |
| 5110 var resp = ""; | 5145 var resp = ""; |
| 5111 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5146 return new async.Future.value(stringResponse(200, h, resp)); |
| 5112 }), true); | 5147 }), true); |
| 5113 res.remove(arg_request).then(unittest.expectAsync((_) {})); | 5148 res.remove(arg_request).then(unittest.expectAsync((_) {})); |
| 5114 }); | 5149 }); |
| 5115 | 5150 |
| 5116 unittest.test("method--update", () { | 5151 unittest.test("method--update", () { |
| 5117 | 5152 |
| 5118 var mock = new common_test.HttpServerMock(); | 5153 var mock = new HttpServerMock(); |
| 5119 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; | 5154 api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; |
| 5120 var arg_request = buildPushToken(); | 5155 var arg_request = buildPushToken(); |
| 5121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5122 var obj = new api.PushToken.fromJson(json); | 5157 var obj = new api.PushToken.fromJson(json); |
| 5123 checkPushToken(obj); | 5158 checkPushToken(obj); |
| 5124 | 5159 |
| 5125 var path = (req.url).path; | 5160 var path = (req.url).path; |
| 5126 var pathOffset = 0; | 5161 var pathOffset = 0; |
| 5127 var index; | 5162 var index; |
| 5128 var subPart; | 5163 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5148 var keyvalue = part.split("="); | 5183 var keyvalue = part.split("="); |
| 5149 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5150 } | 5185 } |
| 5151 } | 5186 } |
| 5152 | 5187 |
| 5153 | 5188 |
| 5154 var h = { | 5189 var h = { |
| 5155 "content-type" : "application/json; charset=utf-8", | 5190 "content-type" : "application/json; charset=utf-8", |
| 5156 }; | 5191 }; |
| 5157 var resp = ""; | 5192 var resp = ""; |
| 5158 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5193 return new async.Future.value(stringResponse(200, h, resp)); |
| 5159 }), true); | 5194 }), true); |
| 5160 res.update(arg_request).then(unittest.expectAsync((_) {})); | 5195 res.update(arg_request).then(unittest.expectAsync((_) {})); |
| 5161 }); | 5196 }); |
| 5162 | 5197 |
| 5163 }); | 5198 }); |
| 5164 | 5199 |
| 5165 | 5200 |
| 5166 unittest.group("resource-QuestMilestonesResourceApi", () { | 5201 unittest.group("resource-QuestMilestonesResourceApi", () { |
| 5167 unittest.test("method--claim", () { | 5202 unittest.test("method--claim", () { |
| 5168 | 5203 |
| 5169 var mock = new common_test.HttpServerMock(); | 5204 var mock = new HttpServerMock(); |
| 5170 api.QuestMilestonesResourceApi res = new api.GamesApi(mock).questMilestone
s; | 5205 api.QuestMilestonesResourceApi res = new api.GamesApi(mock).questMilestone
s; |
| 5171 var arg_questId = "foo"; | 5206 var arg_questId = "foo"; |
| 5172 var arg_milestoneId = "foo"; | 5207 var arg_milestoneId = "foo"; |
| 5173 var arg_requestId = "foo"; | 5208 var arg_requestId = "foo"; |
| 5174 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5175 var path = (req.url).path; | 5210 var path = (req.url).path; |
| 5176 var pathOffset = 0; | 5211 var pathOffset = 0; |
| 5177 var index; | 5212 var index; |
| 5178 var subPart; | 5213 var subPart; |
| 5179 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5214 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5213 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5248 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5214 } | 5249 } |
| 5215 } | 5250 } |
| 5216 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 5251 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 5217 | 5252 |
| 5218 | 5253 |
| 5219 var h = { | 5254 var h = { |
| 5220 "content-type" : "application/json; charset=utf-8", | 5255 "content-type" : "application/json; charset=utf-8", |
| 5221 }; | 5256 }; |
| 5222 var resp = ""; | 5257 var resp = ""; |
| 5223 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5258 return new async.Future.value(stringResponse(200, h, resp)); |
| 5224 }), true); | 5259 }), true); |
| 5225 res.claim(arg_questId, arg_milestoneId, arg_requestId).then(unittest.expec
tAsync((_) {})); | 5260 res.claim(arg_questId, arg_milestoneId, arg_requestId).then(unittest.expec
tAsync((_) {})); |
| 5226 }); | 5261 }); |
| 5227 | 5262 |
| 5228 }); | 5263 }); |
| 5229 | 5264 |
| 5230 | 5265 |
| 5231 unittest.group("resource-QuestsResourceApi", () { | 5266 unittest.group("resource-QuestsResourceApi", () { |
| 5232 unittest.test("method--accept", () { | 5267 unittest.test("method--accept", () { |
| 5233 | 5268 |
| 5234 var mock = new common_test.HttpServerMock(); | 5269 var mock = new HttpServerMock(); |
| 5235 api.QuestsResourceApi res = new api.GamesApi(mock).quests; | 5270 api.QuestsResourceApi res = new api.GamesApi(mock).quests; |
| 5236 var arg_questId = "foo"; | 5271 var arg_questId = "foo"; |
| 5237 var arg_language = "foo"; | 5272 var arg_language = "foo"; |
| 5238 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5273 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5239 var path = (req.url).path; | 5274 var path = (req.url).path; |
| 5240 var pathOffset = 0; | 5275 var pathOffset = 0; |
| 5241 var index; | 5276 var index; |
| 5242 var subPart; | 5277 var subPart; |
| 5243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5244 pathOffset += 1; | 5279 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5270 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5305 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5271 } | 5306 } |
| 5272 } | 5307 } |
| 5273 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5308 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5274 | 5309 |
| 5275 | 5310 |
| 5276 var h = { | 5311 var h = { |
| 5277 "content-type" : "application/json; charset=utf-8", | 5312 "content-type" : "application/json; charset=utf-8", |
| 5278 }; | 5313 }; |
| 5279 var resp = convert.JSON.encode(buildQuest()); | 5314 var resp = convert.JSON.encode(buildQuest()); |
| 5280 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5315 return new async.Future.value(stringResponse(200, h, resp)); |
| 5281 }), true); | 5316 }), true); |
| 5282 res.accept(arg_questId, language: arg_language).then(unittest.expectAsync(
((api.Quest response) { | 5317 res.accept(arg_questId, language: arg_language).then(unittest.expectAsync(
((api.Quest response) { |
| 5283 checkQuest(response); | 5318 checkQuest(response); |
| 5284 }))); | 5319 }))); |
| 5285 }); | 5320 }); |
| 5286 | 5321 |
| 5287 unittest.test("method--list", () { | 5322 unittest.test("method--list", () { |
| 5288 | 5323 |
| 5289 var mock = new common_test.HttpServerMock(); | 5324 var mock = new HttpServerMock(); |
| 5290 api.QuestsResourceApi res = new api.GamesApi(mock).quests; | 5325 api.QuestsResourceApi res = new api.GamesApi(mock).quests; |
| 5291 var arg_playerId = "foo"; | 5326 var arg_playerId = "foo"; |
| 5292 var arg_language = "foo"; | 5327 var arg_language = "foo"; |
| 5293 var arg_maxResults = 42; | 5328 var arg_maxResults = 42; |
| 5294 var arg_pageToken = "foo"; | 5329 var arg_pageToken = "foo"; |
| 5295 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5330 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5296 var path = (req.url).path; | 5331 var path = (req.url).path; |
| 5297 var pathOffset = 0; | 5332 var pathOffset = 0; |
| 5298 var index; | 5333 var index; |
| 5299 var subPart; | 5334 var subPart; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 5329 } | 5364 } |
| 5330 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5365 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5331 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5366 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5332 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5367 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5333 | 5368 |
| 5334 | 5369 |
| 5335 var h = { | 5370 var h = { |
| 5336 "content-type" : "application/json; charset=utf-8", | 5371 "content-type" : "application/json; charset=utf-8", |
| 5337 }; | 5372 }; |
| 5338 var resp = convert.JSON.encode(buildQuestListResponse()); | 5373 var resp = convert.JSON.encode(buildQuestListResponse()); |
| 5339 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5374 return new async.Future.value(stringResponse(200, h, resp)); |
| 5340 }), true); | 5375 }), true); |
| 5341 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.QuestListResponse res
ponse) { | 5376 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.QuestListResponse res
ponse) { |
| 5342 checkQuestListResponse(response); | 5377 checkQuestListResponse(response); |
| 5343 }))); | 5378 }))); |
| 5344 }); | 5379 }); |
| 5345 | 5380 |
| 5346 }); | 5381 }); |
| 5347 | 5382 |
| 5348 | 5383 |
| 5349 unittest.group("resource-RevisionsResourceApi", () { | 5384 unittest.group("resource-RevisionsResourceApi", () { |
| 5350 unittest.test("method--check", () { | 5385 unittest.test("method--check", () { |
| 5351 | 5386 |
| 5352 var mock = new common_test.HttpServerMock(); | 5387 var mock = new HttpServerMock(); |
| 5353 api.RevisionsResourceApi res = new api.GamesApi(mock).revisions; | 5388 api.RevisionsResourceApi res = new api.GamesApi(mock).revisions; |
| 5354 var arg_clientRevision = "foo"; | 5389 var arg_clientRevision = "foo"; |
| 5355 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5390 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5356 var path = (req.url).path; | 5391 var path = (req.url).path; |
| 5357 var pathOffset = 0; | 5392 var pathOffset = 0; |
| 5358 var index; | 5393 var index; |
| 5359 var subPart; | 5394 var subPart; |
| 5360 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5395 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5361 pathOffset += 1; | 5396 pathOffset += 1; |
| 5362 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5397 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5380 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5415 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5381 } | 5416 } |
| 5382 } | 5417 } |
| 5383 unittest.expect(queryMap["clientRevision"].first, unittest.equals(arg_cl
ientRevision)); | 5418 unittest.expect(queryMap["clientRevision"].first, unittest.equals(arg_cl
ientRevision)); |
| 5384 | 5419 |
| 5385 | 5420 |
| 5386 var h = { | 5421 var h = { |
| 5387 "content-type" : "application/json; charset=utf-8", | 5422 "content-type" : "application/json; charset=utf-8", |
| 5388 }; | 5423 }; |
| 5389 var resp = convert.JSON.encode(buildRevisionCheckResponse()); | 5424 var resp = convert.JSON.encode(buildRevisionCheckResponse()); |
| 5390 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5425 return new async.Future.value(stringResponse(200, h, resp)); |
| 5391 }), true); | 5426 }), true); |
| 5392 res.check(arg_clientRevision).then(unittest.expectAsync(((api.RevisionChec
kResponse response) { | 5427 res.check(arg_clientRevision).then(unittest.expectAsync(((api.RevisionChec
kResponse response) { |
| 5393 checkRevisionCheckResponse(response); | 5428 checkRevisionCheckResponse(response); |
| 5394 }))); | 5429 }))); |
| 5395 }); | 5430 }); |
| 5396 | 5431 |
| 5397 }); | 5432 }); |
| 5398 | 5433 |
| 5399 | 5434 |
| 5400 unittest.group("resource-RoomsResourceApi", () { | 5435 unittest.group("resource-RoomsResourceApi", () { |
| 5401 unittest.test("method--create", () { | 5436 unittest.test("method--create", () { |
| 5402 | 5437 |
| 5403 var mock = new common_test.HttpServerMock(); | 5438 var mock = new HttpServerMock(); |
| 5404 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5439 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5405 var arg_request = buildRoomCreateRequest(); | 5440 var arg_request = buildRoomCreateRequest(); |
| 5406 var arg_language = "foo"; | 5441 var arg_language = "foo"; |
| 5407 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5442 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5408 var obj = new api.RoomCreateRequest.fromJson(json); | 5443 var obj = new api.RoomCreateRequest.fromJson(json); |
| 5409 checkRoomCreateRequest(obj); | 5444 checkRoomCreateRequest(obj); |
| 5410 | 5445 |
| 5411 var path = (req.url).path; | 5446 var path = (req.url).path; |
| 5412 var pathOffset = 0; | 5447 var pathOffset = 0; |
| 5413 var index; | 5448 var index; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 5435 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5470 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5436 } | 5471 } |
| 5437 } | 5472 } |
| 5438 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5473 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5439 | 5474 |
| 5440 | 5475 |
| 5441 var h = { | 5476 var h = { |
| 5442 "content-type" : "application/json; charset=utf-8", | 5477 "content-type" : "application/json; charset=utf-8", |
| 5443 }; | 5478 }; |
| 5444 var resp = convert.JSON.encode(buildRoom()); | 5479 var resp = convert.JSON.encode(buildRoom()); |
| 5445 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5480 return new async.Future.value(stringResponse(200, h, resp)); |
| 5446 }), true); | 5481 }), true); |
| 5447 res.create(arg_request, language: arg_language).then(unittest.expectAsync(
((api.Room response) { | 5482 res.create(arg_request, language: arg_language).then(unittest.expectAsync(
((api.Room response) { |
| 5448 checkRoom(response); | 5483 checkRoom(response); |
| 5449 }))); | 5484 }))); |
| 5450 }); | 5485 }); |
| 5451 | 5486 |
| 5452 unittest.test("method--decline", () { | 5487 unittest.test("method--decline", () { |
| 5453 | 5488 |
| 5454 var mock = new common_test.HttpServerMock(); | 5489 var mock = new HttpServerMock(); |
| 5455 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5490 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5456 var arg_roomId = "foo"; | 5491 var arg_roomId = "foo"; |
| 5457 var arg_language = "foo"; | 5492 var arg_language = "foo"; |
| 5458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5459 var path = (req.url).path; | 5494 var path = (req.url).path; |
| 5460 var pathOffset = 0; | 5495 var pathOffset = 0; |
| 5461 var index; | 5496 var index; |
| 5462 var subPart; | 5497 var subPart; |
| 5463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5464 pathOffset += 1; | 5499 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5525 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5491 } | 5526 } |
| 5492 } | 5527 } |
| 5493 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5528 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5494 | 5529 |
| 5495 | 5530 |
| 5496 var h = { | 5531 var h = { |
| 5497 "content-type" : "application/json; charset=utf-8", | 5532 "content-type" : "application/json; charset=utf-8", |
| 5498 }; | 5533 }; |
| 5499 var resp = convert.JSON.encode(buildRoom()); | 5534 var resp = convert.JSON.encode(buildRoom()); |
| 5500 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5535 return new async.Future.value(stringResponse(200, h, resp)); |
| 5501 }), true); | 5536 }), true); |
| 5502 res.decline(arg_roomId, language: arg_language).then(unittest.expectAsync(
((api.Room response) { | 5537 res.decline(arg_roomId, language: arg_language).then(unittest.expectAsync(
((api.Room response) { |
| 5503 checkRoom(response); | 5538 checkRoom(response); |
| 5504 }))); | 5539 }))); |
| 5505 }); | 5540 }); |
| 5506 | 5541 |
| 5507 unittest.test("method--dismiss", () { | 5542 unittest.test("method--dismiss", () { |
| 5508 | 5543 |
| 5509 var mock = new common_test.HttpServerMock(); | 5544 var mock = new HttpServerMock(); |
| 5510 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5545 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5511 var arg_roomId = "foo"; | 5546 var arg_roomId = "foo"; |
| 5512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5547 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5513 var path = (req.url).path; | 5548 var path = (req.url).path; |
| 5514 var pathOffset = 0; | 5549 var pathOffset = 0; |
| 5515 var index; | 5550 var index; |
| 5516 var subPart; | 5551 var subPart; |
| 5517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5518 pathOffset += 1; | 5553 pathOffset += 1; |
| 5519 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 5554 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5543 var keyvalue = part.split("="); | 5578 var keyvalue = part.split("="); |
| 5544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5579 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5545 } | 5580 } |
| 5546 } | 5581 } |
| 5547 | 5582 |
| 5548 | 5583 |
| 5549 var h = { | 5584 var h = { |
| 5550 "content-type" : "application/json; charset=utf-8", | 5585 "content-type" : "application/json; charset=utf-8", |
| 5551 }; | 5586 }; |
| 5552 var resp = ""; | 5587 var resp = ""; |
| 5553 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5588 return new async.Future.value(stringResponse(200, h, resp)); |
| 5554 }), true); | 5589 }), true); |
| 5555 res.dismiss(arg_roomId).then(unittest.expectAsync((_) {})); | 5590 res.dismiss(arg_roomId).then(unittest.expectAsync((_) {})); |
| 5556 }); | 5591 }); |
| 5557 | 5592 |
| 5558 unittest.test("method--get", () { | 5593 unittest.test("method--get", () { |
| 5559 | 5594 |
| 5560 var mock = new common_test.HttpServerMock(); | 5595 var mock = new HttpServerMock(); |
| 5561 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5596 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5562 var arg_roomId = "foo"; | 5597 var arg_roomId = "foo"; |
| 5563 var arg_language = "foo"; | 5598 var arg_language = "foo"; |
| 5564 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5565 var path = (req.url).path; | 5600 var path = (req.url).path; |
| 5566 var pathOffset = 0; | 5601 var pathOffset = 0; |
| 5567 var index; | 5602 var index; |
| 5568 var subPart; | 5603 var subPart; |
| 5569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5604 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5570 pathOffset += 1; | 5605 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 5592 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5593 } | 5628 } |
| 5594 } | 5629 } |
| 5595 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5630 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5596 | 5631 |
| 5597 | 5632 |
| 5598 var h = { | 5633 var h = { |
| 5599 "content-type" : "application/json; charset=utf-8", | 5634 "content-type" : "application/json; charset=utf-8", |
| 5600 }; | 5635 }; |
| 5601 var resp = convert.JSON.encode(buildRoom()); | 5636 var resp = convert.JSON.encode(buildRoom()); |
| 5602 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5637 return new async.Future.value(stringResponse(200, h, resp)); |
| 5603 }), true); | 5638 }), true); |
| 5604 res.get(arg_roomId, language: arg_language).then(unittest.expectAsync(((ap
i.Room response) { | 5639 res.get(arg_roomId, language: arg_language).then(unittest.expectAsync(((ap
i.Room response) { |
| 5605 checkRoom(response); | 5640 checkRoom(response); |
| 5606 }))); | 5641 }))); |
| 5607 }); | 5642 }); |
| 5608 | 5643 |
| 5609 unittest.test("method--join", () { | 5644 unittest.test("method--join", () { |
| 5610 | 5645 |
| 5611 var mock = new common_test.HttpServerMock(); | 5646 var mock = new HttpServerMock(); |
| 5612 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5647 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5613 var arg_request = buildRoomJoinRequest(); | 5648 var arg_request = buildRoomJoinRequest(); |
| 5614 var arg_roomId = "foo"; | 5649 var arg_roomId = "foo"; |
| 5615 var arg_language = "foo"; | 5650 var arg_language = "foo"; |
| 5616 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5651 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5617 var obj = new api.RoomJoinRequest.fromJson(json); | 5652 var obj = new api.RoomJoinRequest.fromJson(json); |
| 5618 checkRoomJoinRequest(obj); | 5653 checkRoomJoinRequest(obj); |
| 5619 | 5654 |
| 5620 var path = (req.url).path; | 5655 var path = (req.url).path; |
| 5621 var pathOffset = 0; | 5656 var pathOffset = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 5651 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5652 } | 5687 } |
| 5653 } | 5688 } |
| 5654 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5689 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5655 | 5690 |
| 5656 | 5691 |
| 5657 var h = { | 5692 var h = { |
| 5658 "content-type" : "application/json; charset=utf-8", | 5693 "content-type" : "application/json; charset=utf-8", |
| 5659 }; | 5694 }; |
| 5660 var resp = convert.JSON.encode(buildRoom()); | 5695 var resp = convert.JSON.encode(buildRoom()); |
| 5661 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5696 return new async.Future.value(stringResponse(200, h, resp)); |
| 5662 }), true); | 5697 }), true); |
| 5663 res.join(arg_request, arg_roomId, language: arg_language).then(unittest.ex
pectAsync(((api.Room response) { | 5698 res.join(arg_request, arg_roomId, language: arg_language).then(unittest.ex
pectAsync(((api.Room response) { |
| 5664 checkRoom(response); | 5699 checkRoom(response); |
| 5665 }))); | 5700 }))); |
| 5666 }); | 5701 }); |
| 5667 | 5702 |
| 5668 unittest.test("method--leave", () { | 5703 unittest.test("method--leave", () { |
| 5669 | 5704 |
| 5670 var mock = new common_test.HttpServerMock(); | 5705 var mock = new HttpServerMock(); |
| 5671 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5706 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5672 var arg_request = buildRoomLeaveRequest(); | 5707 var arg_request = buildRoomLeaveRequest(); |
| 5673 var arg_roomId = "foo"; | 5708 var arg_roomId = "foo"; |
| 5674 var arg_language = "foo"; | 5709 var arg_language = "foo"; |
| 5675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5710 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5676 var obj = new api.RoomLeaveRequest.fromJson(json); | 5711 var obj = new api.RoomLeaveRequest.fromJson(json); |
| 5677 checkRoomLeaveRequest(obj); | 5712 checkRoomLeaveRequest(obj); |
| 5678 | 5713 |
| 5679 var path = (req.url).path; | 5714 var path = (req.url).path; |
| 5680 var pathOffset = 0; | 5715 var pathOffset = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 5710 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5745 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5711 } | 5746 } |
| 5712 } | 5747 } |
| 5713 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5748 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5714 | 5749 |
| 5715 | 5750 |
| 5716 var h = { | 5751 var h = { |
| 5717 "content-type" : "application/json; charset=utf-8", | 5752 "content-type" : "application/json; charset=utf-8", |
| 5718 }; | 5753 }; |
| 5719 var resp = convert.JSON.encode(buildRoom()); | 5754 var resp = convert.JSON.encode(buildRoom()); |
| 5720 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5755 return new async.Future.value(stringResponse(200, h, resp)); |
| 5721 }), true); | 5756 }), true); |
| 5722 res.leave(arg_request, arg_roomId, language: arg_language).then(unittest.e
xpectAsync(((api.Room response) { | 5757 res.leave(arg_request, arg_roomId, language: arg_language).then(unittest.e
xpectAsync(((api.Room response) { |
| 5723 checkRoom(response); | 5758 checkRoom(response); |
| 5724 }))); | 5759 }))); |
| 5725 }); | 5760 }); |
| 5726 | 5761 |
| 5727 unittest.test("method--list", () { | 5762 unittest.test("method--list", () { |
| 5728 | 5763 |
| 5729 var mock = new common_test.HttpServerMock(); | 5764 var mock = new HttpServerMock(); |
| 5730 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5765 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5731 var arg_language = "foo"; | 5766 var arg_language = "foo"; |
| 5732 var arg_maxResults = 42; | 5767 var arg_maxResults = 42; |
| 5733 var arg_pageToken = "foo"; | 5768 var arg_pageToken = "foo"; |
| 5734 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5735 var path = (req.url).path; | 5770 var path = (req.url).path; |
| 5736 var pathOffset = 0; | 5771 var pathOffset = 0; |
| 5737 var index; | 5772 var index; |
| 5738 var subPart; | 5773 var subPart; |
| 5739 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5774 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 5761 } | 5796 } |
| 5762 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5797 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5763 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5798 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5764 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5799 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5765 | 5800 |
| 5766 | 5801 |
| 5767 var h = { | 5802 var h = { |
| 5768 "content-type" : "application/json; charset=utf-8", | 5803 "content-type" : "application/json; charset=utf-8", |
| 5769 }; | 5804 }; |
| 5770 var resp = convert.JSON.encode(buildRoomList()); | 5805 var resp = convert.JSON.encode(buildRoomList()); |
| 5771 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5806 return new async.Future.value(stringResponse(200, h, resp)); |
| 5772 }), true); | 5807 }), true); |
| 5773 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.RoomList response) { | 5808 res.list(language: arg_language, maxResults: arg_maxResults, pageToken: ar
g_pageToken).then(unittest.expectAsync(((api.RoomList response) { |
| 5774 checkRoomList(response); | 5809 checkRoomList(response); |
| 5775 }))); | 5810 }))); |
| 5776 }); | 5811 }); |
| 5777 | 5812 |
| 5778 unittest.test("method--reportStatus", () { | 5813 unittest.test("method--reportStatus", () { |
| 5779 | 5814 |
| 5780 var mock = new common_test.HttpServerMock(); | 5815 var mock = new HttpServerMock(); |
| 5781 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; | 5816 api.RoomsResourceApi res = new api.GamesApi(mock).rooms; |
| 5782 var arg_request = buildRoomP2PStatuses(); | 5817 var arg_request = buildRoomP2PStatuses(); |
| 5783 var arg_roomId = "foo"; | 5818 var arg_roomId = "foo"; |
| 5784 var arg_language = "foo"; | 5819 var arg_language = "foo"; |
| 5785 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5820 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5786 var obj = new api.RoomP2PStatuses.fromJson(json); | 5821 var obj = new api.RoomP2PStatuses.fromJson(json); |
| 5787 checkRoomP2PStatuses(obj); | 5822 checkRoomP2PStatuses(obj); |
| 5788 | 5823 |
| 5789 var path = (req.url).path; | 5824 var path = (req.url).path; |
| 5790 var pathOffset = 0; | 5825 var pathOffset = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 5820 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5855 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5821 } | 5856 } |
| 5822 } | 5857 } |
| 5823 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5858 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5824 | 5859 |
| 5825 | 5860 |
| 5826 var h = { | 5861 var h = { |
| 5827 "content-type" : "application/json; charset=utf-8", | 5862 "content-type" : "application/json; charset=utf-8", |
| 5828 }; | 5863 }; |
| 5829 var resp = convert.JSON.encode(buildRoomStatus()); | 5864 var resp = convert.JSON.encode(buildRoomStatus()); |
| 5830 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5865 return new async.Future.value(stringResponse(200, h, resp)); |
| 5831 }), true); | 5866 }), true); |
| 5832 res.reportStatus(arg_request, arg_roomId, language: arg_language).then(uni
ttest.expectAsync(((api.RoomStatus response) { | 5867 res.reportStatus(arg_request, arg_roomId, language: arg_language).then(uni
ttest.expectAsync(((api.RoomStatus response) { |
| 5833 checkRoomStatus(response); | 5868 checkRoomStatus(response); |
| 5834 }))); | 5869 }))); |
| 5835 }); | 5870 }); |
| 5836 | 5871 |
| 5837 }); | 5872 }); |
| 5838 | 5873 |
| 5839 | 5874 |
| 5840 unittest.group("resource-ScoresResourceApi", () { | 5875 unittest.group("resource-ScoresResourceApi", () { |
| 5841 unittest.test("method--get", () { | 5876 unittest.test("method--get", () { |
| 5842 | 5877 |
| 5843 var mock = new common_test.HttpServerMock(); | 5878 var mock = new HttpServerMock(); |
| 5844 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 5879 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 5845 var arg_playerId = "foo"; | 5880 var arg_playerId = "foo"; |
| 5846 var arg_leaderboardId = "foo"; | 5881 var arg_leaderboardId = "foo"; |
| 5847 var arg_timeSpan = "foo"; | 5882 var arg_timeSpan = "foo"; |
| 5848 var arg_includeRankType = "foo"; | 5883 var arg_includeRankType = "foo"; |
| 5849 var arg_language = "foo"; | 5884 var arg_language = "foo"; |
| 5850 var arg_maxResults = 42; | 5885 var arg_maxResults = 42; |
| 5851 var arg_pageToken = "foo"; | 5886 var arg_pageToken = "foo"; |
| 5852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5853 var path = (req.url).path; | 5888 var path = (req.url).path; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5897 unittest.expect(queryMap["includeRankType"].first, unittest.equals(arg_i
ncludeRankType)); | 5932 unittest.expect(queryMap["includeRankType"].first, unittest.equals(arg_i
ncludeRankType)); |
| 5898 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5933 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5899 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5934 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5900 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5935 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5901 | 5936 |
| 5902 | 5937 |
| 5903 var h = { | 5938 var h = { |
| 5904 "content-type" : "application/json; charset=utf-8", | 5939 "content-type" : "application/json; charset=utf-8", |
| 5905 }; | 5940 }; |
| 5906 var resp = convert.JSON.encode(buildPlayerLeaderboardScoreListResponse()
); | 5941 var resp = convert.JSON.encode(buildPlayerLeaderboardScoreListResponse()
); |
| 5907 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5942 return new async.Future.value(stringResponse(200, h, resp)); |
| 5908 }), true); | 5943 }), true); |
| 5909 res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, includeRankType: ar
g_includeRankType, language: arg_language, maxResults: arg_maxResults, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.PlayerLeaderboardScoreListRespo
nse response) { | 5944 res.get(arg_playerId, arg_leaderboardId, arg_timeSpan, includeRankType: ar
g_includeRankType, language: arg_language, maxResults: arg_maxResults, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.PlayerLeaderboardScoreListRespo
nse response) { |
| 5910 checkPlayerLeaderboardScoreListResponse(response); | 5945 checkPlayerLeaderboardScoreListResponse(response); |
| 5911 }))); | 5946 }))); |
| 5912 }); | 5947 }); |
| 5913 | 5948 |
| 5914 unittest.test("method--list", () { | 5949 unittest.test("method--list", () { |
| 5915 | 5950 |
| 5916 var mock = new common_test.HttpServerMock(); | 5951 var mock = new HttpServerMock(); |
| 5917 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 5952 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 5918 var arg_leaderboardId = "foo"; | 5953 var arg_leaderboardId = "foo"; |
| 5919 var arg_collection = "foo"; | 5954 var arg_collection = "foo"; |
| 5920 var arg_timeSpan = "foo"; | 5955 var arg_timeSpan = "foo"; |
| 5921 var arg_language = "foo"; | 5956 var arg_language = "foo"; |
| 5922 var arg_maxResults = 42; | 5957 var arg_maxResults = 42; |
| 5923 var arg_pageToken = "foo"; | 5958 var arg_pageToken = "foo"; |
| 5924 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5959 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5925 var path = (req.url).path; | 5960 var path = (req.url).path; |
| 5926 var pathOffset = 0; | 5961 var pathOffset = 0; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5962 unittest.expect(queryMap["timeSpan"].first, unittest.equals(arg_timeSpan
)); | 5997 unittest.expect(queryMap["timeSpan"].first, unittest.equals(arg_timeSpan
)); |
| 5963 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 5998 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 5964 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5999 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5965 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6000 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5966 | 6001 |
| 5967 | 6002 |
| 5968 var h = { | 6003 var h = { |
| 5969 "content-type" : "application/json; charset=utf-8", | 6004 "content-type" : "application/json; charset=utf-8", |
| 5970 }; | 6005 }; |
| 5971 var resp = convert.JSON.encode(buildLeaderboardScores()); | 6006 var resp = convert.JSON.encode(buildLeaderboardScores()); |
| 5972 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6007 return new async.Future.value(stringResponse(200, h, resp)); |
| 5973 }), true); | 6008 }), true); |
| 5974 res.list(arg_leaderboardId, arg_collection, arg_timeSpan, language: arg_la
nguage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expe
ctAsync(((api.LeaderboardScores response) { | 6009 res.list(arg_leaderboardId, arg_collection, arg_timeSpan, language: arg_la
nguage, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expe
ctAsync(((api.LeaderboardScores response) { |
| 5975 checkLeaderboardScores(response); | 6010 checkLeaderboardScores(response); |
| 5976 }))); | 6011 }))); |
| 5977 }); | 6012 }); |
| 5978 | 6013 |
| 5979 unittest.test("method--listWindow", () { | 6014 unittest.test("method--listWindow", () { |
| 5980 | 6015 |
| 5981 var mock = new common_test.HttpServerMock(); | 6016 var mock = new HttpServerMock(); |
| 5982 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6017 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 5983 var arg_leaderboardId = "foo"; | 6018 var arg_leaderboardId = "foo"; |
| 5984 var arg_collection = "foo"; | 6019 var arg_collection = "foo"; |
| 5985 var arg_timeSpan = "foo"; | 6020 var arg_timeSpan = "foo"; |
| 5986 var arg_language = "foo"; | 6021 var arg_language = "foo"; |
| 5987 var arg_maxResults = 42; | 6022 var arg_maxResults = 42; |
| 5988 var arg_pageToken = "foo"; | 6023 var arg_pageToken = "foo"; |
| 5989 var arg_resultsAbove = 42; | 6024 var arg_resultsAbove = 42; |
| 5990 var arg_returnTopIfAbsent = true; | 6025 var arg_returnTopIfAbsent = true; |
| 5991 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6026 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6031 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6066 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6032 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6067 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6033 unittest.expect(core.int.parse(queryMap["resultsAbove"].first), unittest
.equals(arg_resultsAbove)); | 6068 unittest.expect(core.int.parse(queryMap["resultsAbove"].first), unittest
.equals(arg_resultsAbove)); |
| 6034 unittest.expect(queryMap["returnTopIfAbsent"].first, unittest.equals("$a
rg_returnTopIfAbsent")); | 6069 unittest.expect(queryMap["returnTopIfAbsent"].first, unittest.equals("$a
rg_returnTopIfAbsent")); |
| 6035 | 6070 |
| 6036 | 6071 |
| 6037 var h = { | 6072 var h = { |
| 6038 "content-type" : "application/json; charset=utf-8", | 6073 "content-type" : "application/json; charset=utf-8", |
| 6039 }; | 6074 }; |
| 6040 var resp = convert.JSON.encode(buildLeaderboardScores()); | 6075 var resp = convert.JSON.encode(buildLeaderboardScores()); |
| 6041 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6076 return new async.Future.value(stringResponse(200, h, resp)); |
| 6042 }), true); | 6077 }), true); |
| 6043 res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, language:
arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, resultsAbove
: arg_resultsAbove, returnTopIfAbsent: arg_returnTopIfAbsent).then(unittest.expe
ctAsync(((api.LeaderboardScores response) { | 6078 res.listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, language:
arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, resultsAbove
: arg_resultsAbove, returnTopIfAbsent: arg_returnTopIfAbsent).then(unittest.expe
ctAsync(((api.LeaderboardScores response) { |
| 6044 checkLeaderboardScores(response); | 6079 checkLeaderboardScores(response); |
| 6045 }))); | 6080 }))); |
| 6046 }); | 6081 }); |
| 6047 | 6082 |
| 6048 unittest.test("method--submit", () { | 6083 unittest.test("method--submit", () { |
| 6049 | 6084 |
| 6050 var mock = new common_test.HttpServerMock(); | 6085 var mock = new HttpServerMock(); |
| 6051 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6086 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6052 var arg_leaderboardId = "foo"; | 6087 var arg_leaderboardId = "foo"; |
| 6053 var arg_score = "foo"; | 6088 var arg_score = "foo"; |
| 6054 var arg_language = "foo"; | 6089 var arg_language = "foo"; |
| 6055 var arg_scoreTag = "foo"; | 6090 var arg_scoreTag = "foo"; |
| 6056 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6057 var path = (req.url).path; | 6092 var path = (req.url).path; |
| 6058 var pathOffset = 0; | 6093 var pathOffset = 0; |
| 6059 var index; | 6094 var index; |
| 6060 var subPart; | 6095 var subPart; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6090 } | 6125 } |
| 6091 unittest.expect(queryMap["score"].first, unittest.equals(arg_score)); | 6126 unittest.expect(queryMap["score"].first, unittest.equals(arg_score)); |
| 6092 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6127 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6093 unittest.expect(queryMap["scoreTag"].first, unittest.equals(arg_scoreTag
)); | 6128 unittest.expect(queryMap["scoreTag"].first, unittest.equals(arg_scoreTag
)); |
| 6094 | 6129 |
| 6095 | 6130 |
| 6096 var h = { | 6131 var h = { |
| 6097 "content-type" : "application/json; charset=utf-8", | 6132 "content-type" : "application/json; charset=utf-8", |
| 6098 }; | 6133 }; |
| 6099 var resp = convert.JSON.encode(buildPlayerScoreResponse()); | 6134 var resp = convert.JSON.encode(buildPlayerScoreResponse()); |
| 6100 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6135 return new async.Future.value(stringResponse(200, h, resp)); |
| 6101 }), true); | 6136 }), true); |
| 6102 res.submit(arg_leaderboardId, arg_score, language: arg_language, scoreTag:
arg_scoreTag).then(unittest.expectAsync(((api.PlayerScoreResponse response) { | 6137 res.submit(arg_leaderboardId, arg_score, language: arg_language, scoreTag:
arg_scoreTag).then(unittest.expectAsync(((api.PlayerScoreResponse response) { |
| 6103 checkPlayerScoreResponse(response); | 6138 checkPlayerScoreResponse(response); |
| 6104 }))); | 6139 }))); |
| 6105 }); | 6140 }); |
| 6106 | 6141 |
| 6107 unittest.test("method--submitMultiple", () { | 6142 unittest.test("method--submitMultiple", () { |
| 6108 | 6143 |
| 6109 var mock = new common_test.HttpServerMock(); | 6144 var mock = new HttpServerMock(); |
| 6110 api.ScoresResourceApi res = new api.GamesApi(mock).scores; | 6145 api.ScoresResourceApi res = new api.GamesApi(mock).scores; |
| 6111 var arg_request = buildPlayerScoreSubmissionList(); | 6146 var arg_request = buildPlayerScoreSubmissionList(); |
| 6112 var arg_language = "foo"; | 6147 var arg_language = "foo"; |
| 6113 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6148 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6114 var obj = new api.PlayerScoreSubmissionList.fromJson(json); | 6149 var obj = new api.PlayerScoreSubmissionList.fromJson(json); |
| 6115 checkPlayerScoreSubmissionList(obj); | 6150 checkPlayerScoreSubmissionList(obj); |
| 6116 | 6151 |
| 6117 var path = (req.url).path; | 6152 var path = (req.url).path; |
| 6118 var pathOffset = 0; | 6153 var pathOffset = 0; |
| 6119 var index; | 6154 var index; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6141 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6176 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6142 } | 6177 } |
| 6143 } | 6178 } |
| 6144 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6179 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6145 | 6180 |
| 6146 | 6181 |
| 6147 var h = { | 6182 var h = { |
| 6148 "content-type" : "application/json; charset=utf-8", | 6183 "content-type" : "application/json; charset=utf-8", |
| 6149 }; | 6184 }; |
| 6150 var resp = convert.JSON.encode(buildPlayerScoreListResponse()); | 6185 var resp = convert.JSON.encode(buildPlayerScoreListResponse()); |
| 6151 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6186 return new async.Future.value(stringResponse(200, h, resp)); |
| 6152 }), true); | 6187 }), true); |
| 6153 res.submitMultiple(arg_request, language: arg_language).then(unittest.expe
ctAsync(((api.PlayerScoreListResponse response) { | 6188 res.submitMultiple(arg_request, language: arg_language).then(unittest.expe
ctAsync(((api.PlayerScoreListResponse response) { |
| 6154 checkPlayerScoreListResponse(response); | 6189 checkPlayerScoreListResponse(response); |
| 6155 }))); | 6190 }))); |
| 6156 }); | 6191 }); |
| 6157 | 6192 |
| 6158 }); | 6193 }); |
| 6159 | 6194 |
| 6160 | 6195 |
| 6161 unittest.group("resource-SnapshotsResourceApi", () { | 6196 unittest.group("resource-SnapshotsResourceApi", () { |
| 6162 unittest.test("method--get", () { | 6197 unittest.test("method--get", () { |
| 6163 | 6198 |
| 6164 var mock = new common_test.HttpServerMock(); | 6199 var mock = new HttpServerMock(); |
| 6165 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; | 6200 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; |
| 6166 var arg_snapshotId = "foo"; | 6201 var arg_snapshotId = "foo"; |
| 6167 var arg_language = "foo"; | 6202 var arg_language = "foo"; |
| 6168 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6203 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6169 var path = (req.url).path; | 6204 var path = (req.url).path; |
| 6170 var pathOffset = 0; | 6205 var pathOffset = 0; |
| 6171 var index; | 6206 var index; |
| 6172 var subPart; | 6207 var subPart; |
| 6173 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6208 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6174 pathOffset += 1; | 6209 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6196 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6231 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6197 } | 6232 } |
| 6198 } | 6233 } |
| 6199 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6234 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6200 | 6235 |
| 6201 | 6236 |
| 6202 var h = { | 6237 var h = { |
| 6203 "content-type" : "application/json; charset=utf-8", | 6238 "content-type" : "application/json; charset=utf-8", |
| 6204 }; | 6239 }; |
| 6205 var resp = convert.JSON.encode(buildSnapshot()); | 6240 var resp = convert.JSON.encode(buildSnapshot()); |
| 6206 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6241 return new async.Future.value(stringResponse(200, h, resp)); |
| 6207 }), true); | 6242 }), true); |
| 6208 res.get(arg_snapshotId, language: arg_language).then(unittest.expectAsync(
((api.Snapshot response) { | 6243 res.get(arg_snapshotId, language: arg_language).then(unittest.expectAsync(
((api.Snapshot response) { |
| 6209 checkSnapshot(response); | 6244 checkSnapshot(response); |
| 6210 }))); | 6245 }))); |
| 6211 }); | 6246 }); |
| 6212 | 6247 |
| 6213 unittest.test("method--list", () { | 6248 unittest.test("method--list", () { |
| 6214 | 6249 |
| 6215 var mock = new common_test.HttpServerMock(); | 6250 var mock = new HttpServerMock(); |
| 6216 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; | 6251 api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; |
| 6217 var arg_playerId = "foo"; | 6252 var arg_playerId = "foo"; |
| 6218 var arg_language = "foo"; | 6253 var arg_language = "foo"; |
| 6219 var arg_maxResults = 42; | 6254 var arg_maxResults = 42; |
| 6220 var arg_pageToken = "foo"; | 6255 var arg_pageToken = "foo"; |
| 6221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6256 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6222 var path = (req.url).path; | 6257 var path = (req.url).path; |
| 6223 var pathOffset = 0; | 6258 var pathOffset = 0; |
| 6224 var index; | 6259 var index; |
| 6225 var subPart; | 6260 var subPart; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6255 } | 6290 } |
| 6256 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6291 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6257 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6292 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6258 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6293 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6259 | 6294 |
| 6260 | 6295 |
| 6261 var h = { | 6296 var h = { |
| 6262 "content-type" : "application/json; charset=utf-8", | 6297 "content-type" : "application/json; charset=utf-8", |
| 6263 }; | 6298 }; |
| 6264 var resp = convert.JSON.encode(buildSnapshotListResponse()); | 6299 var resp = convert.JSON.encode(buildSnapshotListResponse()); |
| 6265 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6300 return new async.Future.value(stringResponse(200, h, resp)); |
| 6266 }), true); | 6301 }), true); |
| 6267 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotListResponse
response) { | 6302 res.list(arg_playerId, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotListResponse
response) { |
| 6268 checkSnapshotListResponse(response); | 6303 checkSnapshotListResponse(response); |
| 6269 }))); | 6304 }))); |
| 6270 }); | 6305 }); |
| 6271 | 6306 |
| 6272 }); | 6307 }); |
| 6273 | 6308 |
| 6274 | 6309 |
| 6275 unittest.group("resource-TurnBasedMatchesResourceApi", () { | 6310 unittest.group("resource-TurnBasedMatchesResourceApi", () { |
| 6276 unittest.test("method--cancel", () { | 6311 unittest.test("method--cancel", () { |
| 6277 | 6312 |
| 6278 var mock = new common_test.HttpServerMock(); | 6313 var mock = new HttpServerMock(); |
| 6279 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6314 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6280 var arg_matchId = "foo"; | 6315 var arg_matchId = "foo"; |
| 6281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6316 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6282 var path = (req.url).path; | 6317 var path = (req.url).path; |
| 6283 var pathOffset = 0; | 6318 var pathOffset = 0; |
| 6284 var index; | 6319 var index; |
| 6285 var subPart; | 6320 var subPart; |
| 6286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6321 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6287 pathOffset += 1; | 6322 pathOffset += 1; |
| 6288 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6323 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6312 var keyvalue = part.split("="); | 6347 var keyvalue = part.split("="); |
| 6313 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6348 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6314 } | 6349 } |
| 6315 } | 6350 } |
| 6316 | 6351 |
| 6317 | 6352 |
| 6318 var h = { | 6353 var h = { |
| 6319 "content-type" : "application/json; charset=utf-8", | 6354 "content-type" : "application/json; charset=utf-8", |
| 6320 }; | 6355 }; |
| 6321 var resp = ""; | 6356 var resp = ""; |
| 6322 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6357 return new async.Future.value(stringResponse(200, h, resp)); |
| 6323 }), true); | 6358 }), true); |
| 6324 res.cancel(arg_matchId).then(unittest.expectAsync((_) {})); | 6359 res.cancel(arg_matchId).then(unittest.expectAsync((_) {})); |
| 6325 }); | 6360 }); |
| 6326 | 6361 |
| 6327 unittest.test("method--create", () { | 6362 unittest.test("method--create", () { |
| 6328 | 6363 |
| 6329 var mock = new common_test.HttpServerMock(); | 6364 var mock = new HttpServerMock(); |
| 6330 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6365 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6331 var arg_request = buildTurnBasedMatchCreateRequest(); | 6366 var arg_request = buildTurnBasedMatchCreateRequest(); |
| 6332 var arg_language = "foo"; | 6367 var arg_language = "foo"; |
| 6333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6368 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6334 var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); | 6369 var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); |
| 6335 checkTurnBasedMatchCreateRequest(obj); | 6370 checkTurnBasedMatchCreateRequest(obj); |
| 6336 | 6371 |
| 6337 var path = (req.url).path; | 6372 var path = (req.url).path; |
| 6338 var pathOffset = 0; | 6373 var pathOffset = 0; |
| 6339 var index; | 6374 var index; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6396 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6362 } | 6397 } |
| 6363 } | 6398 } |
| 6364 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6399 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6365 | 6400 |
| 6366 | 6401 |
| 6367 var h = { | 6402 var h = { |
| 6368 "content-type" : "application/json; charset=utf-8", | 6403 "content-type" : "application/json; charset=utf-8", |
| 6369 }; | 6404 }; |
| 6370 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6405 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6371 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6406 return new async.Future.value(stringResponse(200, h, resp)); |
| 6372 }), true); | 6407 }), true); |
| 6373 res.create(arg_request, language: arg_language).then(unittest.expectAsync(
((api.TurnBasedMatch response) { | 6408 res.create(arg_request, language: arg_language).then(unittest.expectAsync(
((api.TurnBasedMatch response) { |
| 6374 checkTurnBasedMatch(response); | 6409 checkTurnBasedMatch(response); |
| 6375 }))); | 6410 }))); |
| 6376 }); | 6411 }); |
| 6377 | 6412 |
| 6378 unittest.test("method--decline", () { | 6413 unittest.test("method--decline", () { |
| 6379 | 6414 |
| 6380 var mock = new common_test.HttpServerMock(); | 6415 var mock = new HttpServerMock(); |
| 6381 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6416 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6382 var arg_matchId = "foo"; | 6417 var arg_matchId = "foo"; |
| 6383 var arg_language = "foo"; | 6418 var arg_language = "foo"; |
| 6384 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6419 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6385 var path = (req.url).path; | 6420 var path = (req.url).path; |
| 6386 var pathOffset = 0; | 6421 var pathOffset = 0; |
| 6387 var index; | 6422 var index; |
| 6388 var subPart; | 6423 var subPart; |
| 6389 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6390 pathOffset += 1; | 6425 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6416 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6451 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6417 } | 6452 } |
| 6418 } | 6453 } |
| 6419 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6454 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6420 | 6455 |
| 6421 | 6456 |
| 6422 var h = { | 6457 var h = { |
| 6423 "content-type" : "application/json; charset=utf-8", | 6458 "content-type" : "application/json; charset=utf-8", |
| 6424 }; | 6459 }; |
| 6425 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6460 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6426 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6461 return new async.Future.value(stringResponse(200, h, resp)); |
| 6427 }), true); | 6462 }), true); |
| 6428 res.decline(arg_matchId, language: arg_language).then(unittest.expectAsync
(((api.TurnBasedMatch response) { | 6463 res.decline(arg_matchId, language: arg_language).then(unittest.expectAsync
(((api.TurnBasedMatch response) { |
| 6429 checkTurnBasedMatch(response); | 6464 checkTurnBasedMatch(response); |
| 6430 }))); | 6465 }))); |
| 6431 }); | 6466 }); |
| 6432 | 6467 |
| 6433 unittest.test("method--dismiss", () { | 6468 unittest.test("method--dismiss", () { |
| 6434 | 6469 |
| 6435 var mock = new common_test.HttpServerMock(); | 6470 var mock = new HttpServerMock(); |
| 6436 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6471 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6437 var arg_matchId = "foo"; | 6472 var arg_matchId = "foo"; |
| 6438 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6439 var path = (req.url).path; | 6474 var path = (req.url).path; |
| 6440 var pathOffset = 0; | 6475 var pathOffset = 0; |
| 6441 var index; | 6476 var index; |
| 6442 var subPart; | 6477 var subPart; |
| 6443 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6478 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6444 pathOffset += 1; | 6479 pathOffset += 1; |
| 6445 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); | 6480 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("games/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6469 var keyvalue = part.split("="); | 6504 var keyvalue = part.split("="); |
| 6470 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6471 } | 6506 } |
| 6472 } | 6507 } |
| 6473 | 6508 |
| 6474 | 6509 |
| 6475 var h = { | 6510 var h = { |
| 6476 "content-type" : "application/json; charset=utf-8", | 6511 "content-type" : "application/json; charset=utf-8", |
| 6477 }; | 6512 }; |
| 6478 var resp = ""; | 6513 var resp = ""; |
| 6479 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6514 return new async.Future.value(stringResponse(200, h, resp)); |
| 6480 }), true); | 6515 }), true); |
| 6481 res.dismiss(arg_matchId).then(unittest.expectAsync((_) {})); | 6516 res.dismiss(arg_matchId).then(unittest.expectAsync((_) {})); |
| 6482 }); | 6517 }); |
| 6483 | 6518 |
| 6484 unittest.test("method--finish", () { | 6519 unittest.test("method--finish", () { |
| 6485 | 6520 |
| 6486 var mock = new common_test.HttpServerMock(); | 6521 var mock = new HttpServerMock(); |
| 6487 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6522 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6488 var arg_request = buildTurnBasedMatchResults(); | 6523 var arg_request = buildTurnBasedMatchResults(); |
| 6489 var arg_matchId = "foo"; | 6524 var arg_matchId = "foo"; |
| 6490 var arg_language = "foo"; | 6525 var arg_language = "foo"; |
| 6491 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6492 var obj = new api.TurnBasedMatchResults.fromJson(json); | 6527 var obj = new api.TurnBasedMatchResults.fromJson(json); |
| 6493 checkTurnBasedMatchResults(obj); | 6528 checkTurnBasedMatchResults(obj); |
| 6494 | 6529 |
| 6495 var path = (req.url).path; | 6530 var path = (req.url).path; |
| 6496 var pathOffset = 0; | 6531 var pathOffset = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6526 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6561 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6527 } | 6562 } |
| 6528 } | 6563 } |
| 6529 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6564 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6530 | 6565 |
| 6531 | 6566 |
| 6532 var h = { | 6567 var h = { |
| 6533 "content-type" : "application/json; charset=utf-8", | 6568 "content-type" : "application/json; charset=utf-8", |
| 6534 }; | 6569 }; |
| 6535 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6570 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6536 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6571 return new async.Future.value(stringResponse(200, h, resp)); |
| 6537 }), true); | 6572 }), true); |
| 6538 res.finish(arg_request, arg_matchId, language: arg_language).then(unittest
.expectAsync(((api.TurnBasedMatch response) { | 6573 res.finish(arg_request, arg_matchId, language: arg_language).then(unittest
.expectAsync(((api.TurnBasedMatch response) { |
| 6539 checkTurnBasedMatch(response); | 6574 checkTurnBasedMatch(response); |
| 6540 }))); | 6575 }))); |
| 6541 }); | 6576 }); |
| 6542 | 6577 |
| 6543 unittest.test("method--get", () { | 6578 unittest.test("method--get", () { |
| 6544 | 6579 |
| 6545 var mock = new common_test.HttpServerMock(); | 6580 var mock = new HttpServerMock(); |
| 6546 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6581 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6547 var arg_matchId = "foo"; | 6582 var arg_matchId = "foo"; |
| 6548 var arg_includeMatchData = true; | 6583 var arg_includeMatchData = true; |
| 6549 var arg_language = "foo"; | 6584 var arg_language = "foo"; |
| 6550 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6551 var path = (req.url).path; | 6586 var path = (req.url).path; |
| 6552 var pathOffset = 0; | 6587 var pathOffset = 0; |
| 6553 var index; | 6588 var index; |
| 6554 var subPart; | 6589 var subPart; |
| 6555 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6590 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6579 } | 6614 } |
| 6580 } | 6615 } |
| 6581 unittest.expect(queryMap["includeMatchData"].first, unittest.equals("$ar
g_includeMatchData")); | 6616 unittest.expect(queryMap["includeMatchData"].first, unittest.equals("$ar
g_includeMatchData")); |
| 6582 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6617 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6583 | 6618 |
| 6584 | 6619 |
| 6585 var h = { | 6620 var h = { |
| 6586 "content-type" : "application/json; charset=utf-8", | 6621 "content-type" : "application/json; charset=utf-8", |
| 6587 }; | 6622 }; |
| 6588 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6623 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6589 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6624 return new async.Future.value(stringResponse(200, h, resp)); |
| 6590 }), true); | 6625 }), true); |
| 6591 res.get(arg_matchId, includeMatchData: arg_includeMatchData, language: arg
_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { | 6626 res.get(arg_matchId, includeMatchData: arg_includeMatchData, language: arg
_language).then(unittest.expectAsync(((api.TurnBasedMatch response) { |
| 6592 checkTurnBasedMatch(response); | 6627 checkTurnBasedMatch(response); |
| 6593 }))); | 6628 }))); |
| 6594 }); | 6629 }); |
| 6595 | 6630 |
| 6596 unittest.test("method--join", () { | 6631 unittest.test("method--join", () { |
| 6597 | 6632 |
| 6598 var mock = new common_test.HttpServerMock(); | 6633 var mock = new HttpServerMock(); |
| 6599 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6634 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6600 var arg_matchId = "foo"; | 6635 var arg_matchId = "foo"; |
| 6601 var arg_language = "foo"; | 6636 var arg_language = "foo"; |
| 6602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6603 var path = (req.url).path; | 6638 var path = (req.url).path; |
| 6604 var pathOffset = 0; | 6639 var pathOffset = 0; |
| 6605 var index; | 6640 var index; |
| 6606 var subPart; | 6641 var subPart; |
| 6607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6608 pathOffset += 1; | 6643 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6634 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6669 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6635 } | 6670 } |
| 6636 } | 6671 } |
| 6637 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6672 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6638 | 6673 |
| 6639 | 6674 |
| 6640 var h = { | 6675 var h = { |
| 6641 "content-type" : "application/json; charset=utf-8", | 6676 "content-type" : "application/json; charset=utf-8", |
| 6642 }; | 6677 }; |
| 6643 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6678 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6644 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6679 return new async.Future.value(stringResponse(200, h, resp)); |
| 6645 }), true); | 6680 }), true); |
| 6646 res.join(arg_matchId, language: arg_language).then(unittest.expectAsync(((
api.TurnBasedMatch response) { | 6681 res.join(arg_matchId, language: arg_language).then(unittest.expectAsync(((
api.TurnBasedMatch response) { |
| 6647 checkTurnBasedMatch(response); | 6682 checkTurnBasedMatch(response); |
| 6648 }))); | 6683 }))); |
| 6649 }); | 6684 }); |
| 6650 | 6685 |
| 6651 unittest.test("method--leave", () { | 6686 unittest.test("method--leave", () { |
| 6652 | 6687 |
| 6653 var mock = new common_test.HttpServerMock(); | 6688 var mock = new HttpServerMock(); |
| 6654 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6689 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6655 var arg_matchId = "foo"; | 6690 var arg_matchId = "foo"; |
| 6656 var arg_language = "foo"; | 6691 var arg_language = "foo"; |
| 6657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6658 var path = (req.url).path; | 6693 var path = (req.url).path; |
| 6659 var pathOffset = 0; | 6694 var pathOffset = 0; |
| 6660 var index; | 6695 var index; |
| 6661 var subPart; | 6696 var subPart; |
| 6662 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6663 pathOffset += 1; | 6698 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6689 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6724 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6690 } | 6725 } |
| 6691 } | 6726 } |
| 6692 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6727 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6693 | 6728 |
| 6694 | 6729 |
| 6695 var h = { | 6730 var h = { |
| 6696 "content-type" : "application/json; charset=utf-8", | 6731 "content-type" : "application/json; charset=utf-8", |
| 6697 }; | 6732 }; |
| 6698 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6733 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6699 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6734 return new async.Future.value(stringResponse(200, h, resp)); |
| 6700 }), true); | 6735 }), true); |
| 6701 res.leave(arg_matchId, language: arg_language).then(unittest.expectAsync((
(api.TurnBasedMatch response) { | 6736 res.leave(arg_matchId, language: arg_language).then(unittest.expectAsync((
(api.TurnBasedMatch response) { |
| 6702 checkTurnBasedMatch(response); | 6737 checkTurnBasedMatch(response); |
| 6703 }))); | 6738 }))); |
| 6704 }); | 6739 }); |
| 6705 | 6740 |
| 6706 unittest.test("method--leaveTurn", () { | 6741 unittest.test("method--leaveTurn", () { |
| 6707 | 6742 |
| 6708 var mock = new common_test.HttpServerMock(); | 6743 var mock = new HttpServerMock(); |
| 6709 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6744 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6710 var arg_matchId = "foo"; | 6745 var arg_matchId = "foo"; |
| 6711 var arg_matchVersion = 42; | 6746 var arg_matchVersion = 42; |
| 6712 var arg_language = "foo"; | 6747 var arg_language = "foo"; |
| 6713 var arg_pendingParticipantId = "foo"; | 6748 var arg_pendingParticipantId = "foo"; |
| 6714 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6749 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6715 var path = (req.url).path; | 6750 var path = (req.url).path; |
| 6716 var pathOffset = 0; | 6751 var pathOffset = 0; |
| 6717 var index; | 6752 var index; |
| 6718 var subPart; | 6753 var subPart; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6748 } | 6783 } |
| 6749 unittest.expect(core.int.parse(queryMap["matchVersion"].first), unittest
.equals(arg_matchVersion)); | 6784 unittest.expect(core.int.parse(queryMap["matchVersion"].first), unittest
.equals(arg_matchVersion)); |
| 6750 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6785 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6751 unittest.expect(queryMap["pendingParticipantId"].first, unittest.equals(
arg_pendingParticipantId)); | 6786 unittest.expect(queryMap["pendingParticipantId"].first, unittest.equals(
arg_pendingParticipantId)); |
| 6752 | 6787 |
| 6753 | 6788 |
| 6754 var h = { | 6789 var h = { |
| 6755 "content-type" : "application/json; charset=utf-8", | 6790 "content-type" : "application/json; charset=utf-8", |
| 6756 }; | 6791 }; |
| 6757 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 6792 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6758 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6793 return new async.Future.value(stringResponse(200, h, resp)); |
| 6759 }), true); | 6794 }), true); |
| 6760 res.leaveTurn(arg_matchId, arg_matchVersion, language: arg_language, pendi
ngParticipantId: arg_pendingParticipantId).then(unittest.expectAsync(((api.TurnB
asedMatch response) { | 6795 res.leaveTurn(arg_matchId, arg_matchVersion, language: arg_language, pendi
ngParticipantId: arg_pendingParticipantId).then(unittest.expectAsync(((api.TurnB
asedMatch response) { |
| 6761 checkTurnBasedMatch(response); | 6796 checkTurnBasedMatch(response); |
| 6762 }))); | 6797 }))); |
| 6763 }); | 6798 }); |
| 6764 | 6799 |
| 6765 unittest.test("method--list", () { | 6800 unittest.test("method--list", () { |
| 6766 | 6801 |
| 6767 var mock = new common_test.HttpServerMock(); | 6802 var mock = new HttpServerMock(); |
| 6768 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6803 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6769 var arg_includeMatchData = true; | 6804 var arg_includeMatchData = true; |
| 6770 var arg_language = "foo"; | 6805 var arg_language = "foo"; |
| 6771 var arg_maxCompletedMatches = 42; | 6806 var arg_maxCompletedMatches = 42; |
| 6772 var arg_maxResults = 42; | 6807 var arg_maxResults = 42; |
| 6773 var arg_pageToken = "foo"; | 6808 var arg_pageToken = "foo"; |
| 6774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6775 var path = (req.url).path; | 6810 var path = (req.url).path; |
| 6776 var pathOffset = 0; | 6811 var pathOffset = 0; |
| 6777 var index; | 6812 var index; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6803 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6838 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6804 unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), u
nittest.equals(arg_maxCompletedMatches)); | 6839 unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), u
nittest.equals(arg_maxCompletedMatches)); |
| 6805 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6840 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6806 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6841 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6807 | 6842 |
| 6808 | 6843 |
| 6809 var h = { | 6844 var h = { |
| 6810 "content-type" : "application/json; charset=utf-8", | 6845 "content-type" : "application/json; charset=utf-8", |
| 6811 }; | 6846 }; |
| 6812 var resp = convert.JSON.encode(buildTurnBasedMatchList()); | 6847 var resp = convert.JSON.encode(buildTurnBasedMatchList()); |
| 6813 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6848 return new async.Future.value(stringResponse(200, h, resp)); |
| 6814 }), true); | 6849 }), true); |
| 6815 res.list(includeMatchData: arg_includeMatchData, language: arg_language, m
axCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageTok
en: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchList response)
{ | 6850 res.list(includeMatchData: arg_includeMatchData, language: arg_language, m
axCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageTok
en: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchList response)
{ |
| 6816 checkTurnBasedMatchList(response); | 6851 checkTurnBasedMatchList(response); |
| 6817 }))); | 6852 }))); |
| 6818 }); | 6853 }); |
| 6819 | 6854 |
| 6820 unittest.test("method--rematch", () { | 6855 unittest.test("method--rematch", () { |
| 6821 | 6856 |
| 6822 var mock = new common_test.HttpServerMock(); | 6857 var mock = new HttpServerMock(); |
| 6823 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6858 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6824 var arg_matchId = "foo"; | 6859 var arg_matchId = "foo"; |
| 6825 var arg_language = "foo"; | 6860 var arg_language = "foo"; |
| 6826 var arg_requestId = "foo"; | 6861 var arg_requestId = "foo"; |
| 6827 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6828 var path = (req.url).path; | 6863 var path = (req.url).path; |
| 6829 var pathOffset = 0; | 6864 var pathOffset = 0; |
| 6830 var index; | 6865 var index; |
| 6831 var subPart; | 6866 var subPart; |
| 6832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6867 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6860 } | 6895 } |
| 6861 } | 6896 } |
| 6862 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6897 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6863 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); | 6898 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 6864 | 6899 |
| 6865 | 6900 |
| 6866 var h = { | 6901 var h = { |
| 6867 "content-type" : "application/json; charset=utf-8", | 6902 "content-type" : "application/json; charset=utf-8", |
| 6868 }; | 6903 }; |
| 6869 var resp = convert.JSON.encode(buildTurnBasedMatchRematch()); | 6904 var resp = convert.JSON.encode(buildTurnBasedMatchRematch()); |
| 6870 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6905 return new async.Future.value(stringResponse(200, h, resp)); |
| 6871 }), true); | 6906 }), true); |
| 6872 res.rematch(arg_matchId, language: arg_language, requestId: arg_requestId)
.then(unittest.expectAsync(((api.TurnBasedMatchRematch response) { | 6907 res.rematch(arg_matchId, language: arg_language, requestId: arg_requestId)
.then(unittest.expectAsync(((api.TurnBasedMatchRematch response) { |
| 6873 checkTurnBasedMatchRematch(response); | 6908 checkTurnBasedMatchRematch(response); |
| 6874 }))); | 6909 }))); |
| 6875 }); | 6910 }); |
| 6876 | 6911 |
| 6877 unittest.test("method--sync", () { | 6912 unittest.test("method--sync", () { |
| 6878 | 6913 |
| 6879 var mock = new common_test.HttpServerMock(); | 6914 var mock = new HttpServerMock(); |
| 6880 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6915 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6881 var arg_includeMatchData = true; | 6916 var arg_includeMatchData = true; |
| 6882 var arg_language = "foo"; | 6917 var arg_language = "foo"; |
| 6883 var arg_maxCompletedMatches = 42; | 6918 var arg_maxCompletedMatches = 42; |
| 6884 var arg_maxResults = 42; | 6919 var arg_maxResults = 42; |
| 6885 var arg_pageToken = "foo"; | 6920 var arg_pageToken = "foo"; |
| 6886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6887 var path = (req.url).path; | 6922 var path = (req.url).path; |
| 6888 var pathOffset = 0; | 6923 var pathOffset = 0; |
| 6889 var index; | 6924 var index; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6915 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 6950 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6916 unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), u
nittest.equals(arg_maxCompletedMatches)); | 6951 unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), u
nittest.equals(arg_maxCompletedMatches)); |
| 6917 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6952 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6918 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6953 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6919 | 6954 |
| 6920 | 6955 |
| 6921 var h = { | 6956 var h = { |
| 6922 "content-type" : "application/json; charset=utf-8", | 6957 "content-type" : "application/json; charset=utf-8", |
| 6923 }; | 6958 }; |
| 6924 var resp = convert.JSON.encode(buildTurnBasedMatchSync()); | 6959 var resp = convert.JSON.encode(buildTurnBasedMatchSync()); |
| 6925 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6960 return new async.Future.value(stringResponse(200, h, resp)); |
| 6926 }), true); | 6961 }), true); |
| 6927 res.sync(includeMatchData: arg_includeMatchData, language: arg_language, m
axCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageTok
en: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchSync response)
{ | 6962 res.sync(includeMatchData: arg_includeMatchData, language: arg_language, m
axCompletedMatches: arg_maxCompletedMatches, maxResults: arg_maxResults, pageTok
en: arg_pageToken).then(unittest.expectAsync(((api.TurnBasedMatchSync response)
{ |
| 6928 checkTurnBasedMatchSync(response); | 6963 checkTurnBasedMatchSync(response); |
| 6929 }))); | 6964 }))); |
| 6930 }); | 6965 }); |
| 6931 | 6966 |
| 6932 unittest.test("method--takeTurn", () { | 6967 unittest.test("method--takeTurn", () { |
| 6933 | 6968 |
| 6934 var mock = new common_test.HttpServerMock(); | 6969 var mock = new HttpServerMock(); |
| 6935 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; | 6970 api.TurnBasedMatchesResourceApi res = new api.GamesApi(mock).turnBasedMatc
hes; |
| 6936 var arg_request = buildTurnBasedMatchTurn(); | 6971 var arg_request = buildTurnBasedMatchTurn(); |
| 6937 var arg_matchId = "foo"; | 6972 var arg_matchId = "foo"; |
| 6938 var arg_language = "foo"; | 6973 var arg_language = "foo"; |
| 6939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6974 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6940 var obj = new api.TurnBasedMatchTurn.fromJson(json); | 6975 var obj = new api.TurnBasedMatchTurn.fromJson(json); |
| 6941 checkTurnBasedMatchTurn(obj); | 6976 checkTurnBasedMatchTurn(obj); |
| 6942 | 6977 |
| 6943 var path = (req.url).path; | 6978 var path = (req.url).path; |
| 6944 var pathOffset = 0; | 6979 var pathOffset = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6974 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7009 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6975 } | 7010 } |
| 6976 } | 7011 } |
| 6977 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); | 7012 unittest.expect(queryMap["language"].first, unittest.equals(arg_language
)); |
| 6978 | 7013 |
| 6979 | 7014 |
| 6980 var h = { | 7015 var h = { |
| 6981 "content-type" : "application/json; charset=utf-8", | 7016 "content-type" : "application/json; charset=utf-8", |
| 6982 }; | 7017 }; |
| 6983 var resp = convert.JSON.encode(buildTurnBasedMatch()); | 7018 var resp = convert.JSON.encode(buildTurnBasedMatch()); |
| 6984 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7019 return new async.Future.value(stringResponse(200, h, resp)); |
| 6985 }), true); | 7020 }), true); |
| 6986 res.takeTurn(arg_request, arg_matchId, language: arg_language).then(unitte
st.expectAsync(((api.TurnBasedMatch response) { | 7021 res.takeTurn(arg_request, arg_matchId, language: arg_language).then(unitte
st.expectAsync(((api.TurnBasedMatch response) { |
| 6987 checkTurnBasedMatch(response); | 7022 checkTurnBasedMatch(response); |
| 6988 }))); | 7023 }))); |
| 6989 }); | 7024 }); |
| 6990 | 7025 |
| 6991 }); | 7026 }); |
| 6992 | 7027 |
| 6993 | 7028 |
| 6994 } | 7029 } |
| 6995 | 7030 |
| OLD | NEW |