| OLD | NEW |
| 1 library googleapis.gamesManagement.v1management.test; | 1 library googleapis.gamesManagement.v1management.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; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/gamesmanagement/v1management.dart' as api; | 15 import 'package:googleapis/gamesmanagement/v1management.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed864() { | 19 buildUnnamed461() { |
| 20 var o = new core.List<api.AchievementResetResponse>(); | 20 var o = new core.List<api.AchievementResetResponse>(); |
| 21 o.add(buildAchievementResetResponse()); | 21 o.add(buildAchievementResetResponse()); |
| 22 o.add(buildAchievementResetResponse()); | 22 o.add(buildAchievementResetResponse()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed864(core.List<api.AchievementResetResponse> o) { | 26 checkUnnamed461(core.List<api.AchievementResetResponse> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkAchievementResetResponse(o[0]); | 28 checkAchievementResetResponse(o[0]); |
| 29 checkAchievementResetResponse(o[1]); | 29 checkAchievementResetResponse(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterAchievementResetAllResponse = 0; | 32 core.int buildCounterAchievementResetAllResponse = 0; |
| 33 buildAchievementResetAllResponse() { | 33 buildAchievementResetAllResponse() { |
| 34 var o = new api.AchievementResetAllResponse(); | 34 var o = new api.AchievementResetAllResponse(); |
| 35 buildCounterAchievementResetAllResponse++; | 35 buildCounterAchievementResetAllResponse++; |
| 36 if (buildCounterAchievementResetAllResponse < 3) { | 36 if (buildCounterAchievementResetAllResponse < 3) { |
| 37 o.kind = "foo"; | 37 o.kind = "foo"; |
| 38 o.results = buildUnnamed864(); | 38 o.results = buildUnnamed461(); |
| 39 } | 39 } |
| 40 buildCounterAchievementResetAllResponse--; | 40 buildCounterAchievementResetAllResponse--; |
| 41 return o; | 41 return o; |
| 42 } | 42 } |
| 43 | 43 |
| 44 checkAchievementResetAllResponse(api.AchievementResetAllResponse o) { | 44 checkAchievementResetAllResponse(api.AchievementResetAllResponse o) { |
| 45 buildCounterAchievementResetAllResponse++; | 45 buildCounterAchievementResetAllResponse++; |
| 46 if (buildCounterAchievementResetAllResponse < 3) { | 46 if (buildCounterAchievementResetAllResponse < 3) { |
| 47 unittest.expect(o.kind, unittest.equals('foo')); | 47 unittest.expect(o.kind, unittest.equals('foo')); |
| 48 checkUnnamed864(o.results); | 48 checkUnnamed461(o.results); |
| 49 } | 49 } |
| 50 buildCounterAchievementResetAllResponse--; | 50 buildCounterAchievementResetAllResponse--; |
| 51 } | 51 } |
| 52 | 52 |
| 53 buildUnnamed865() { | 53 buildUnnamed462() { |
| 54 var o = new core.List<core.String>(); | 54 var o = new core.List<core.String>(); |
| 55 o.add("foo"); | 55 o.add("foo"); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 return o; | 57 return o; |
| 58 } | 58 } |
| 59 | 59 |
| 60 checkUnnamed865(core.List<core.String> o) { | 60 checkUnnamed462(core.List<core.String> o) { |
| 61 unittest.expect(o, unittest.hasLength(2)); | 61 unittest.expect(o, unittest.hasLength(2)); |
| 62 unittest.expect(o[0], unittest.equals('foo')); | 62 unittest.expect(o[0], unittest.equals('foo')); |
| 63 unittest.expect(o[1], unittest.equals('foo')); | 63 unittest.expect(o[1], unittest.equals('foo')); |
| 64 } | 64 } |
| 65 | 65 |
| 66 core.int buildCounterAchievementResetMultipleForAllRequest = 0; | 66 core.int buildCounterAchievementResetMultipleForAllRequest = 0; |
| 67 buildAchievementResetMultipleForAllRequest() { | 67 buildAchievementResetMultipleForAllRequest() { |
| 68 var o = new api.AchievementResetMultipleForAllRequest(); | 68 var o = new api.AchievementResetMultipleForAllRequest(); |
| 69 buildCounterAchievementResetMultipleForAllRequest++; | 69 buildCounterAchievementResetMultipleForAllRequest++; |
| 70 if (buildCounterAchievementResetMultipleForAllRequest < 3) { | 70 if (buildCounterAchievementResetMultipleForAllRequest < 3) { |
| 71 o.achievementIds = buildUnnamed865(); | 71 o.achievementIds = buildUnnamed462(); |
| 72 o.kind = "foo"; | 72 o.kind = "foo"; |
| 73 } | 73 } |
| 74 buildCounterAchievementResetMultipleForAllRequest--; | 74 buildCounterAchievementResetMultipleForAllRequest--; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllReq
uest o) { | 78 checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllReq
uest o) { |
| 79 buildCounterAchievementResetMultipleForAllRequest++; | 79 buildCounterAchievementResetMultipleForAllRequest++; |
| 80 if (buildCounterAchievementResetMultipleForAllRequest < 3) { | 80 if (buildCounterAchievementResetMultipleForAllRequest < 3) { |
| 81 checkUnnamed865(o.achievementIds); | 81 checkUnnamed462(o.achievementIds); |
| 82 unittest.expect(o.kind, unittest.equals('foo')); | 82 unittest.expect(o.kind, unittest.equals('foo')); |
| 83 } | 83 } |
| 84 buildCounterAchievementResetMultipleForAllRequest--; | 84 buildCounterAchievementResetMultipleForAllRequest--; |
| 85 } | 85 } |
| 86 | 86 |
| 87 core.int buildCounterAchievementResetResponse = 0; | 87 core.int buildCounterAchievementResetResponse = 0; |
| 88 buildAchievementResetResponse() { | 88 buildAchievementResetResponse() { |
| 89 var o = new api.AchievementResetResponse(); | 89 var o = new api.AchievementResetResponse(); |
| 90 buildCounterAchievementResetResponse++; | 90 buildCounterAchievementResetResponse++; |
| 91 if (buildCounterAchievementResetResponse < 3) { | 91 if (buildCounterAchievementResetResponse < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 102 buildCounterAchievementResetResponse++; | 102 buildCounterAchievementResetResponse++; |
| 103 if (buildCounterAchievementResetResponse < 3) { | 103 if (buildCounterAchievementResetResponse < 3) { |
| 104 unittest.expect(o.currentState, unittest.equals('foo')); | 104 unittest.expect(o.currentState, unittest.equals('foo')); |
| 105 unittest.expect(o.definitionId, unittest.equals('foo')); | 105 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 106 unittest.expect(o.kind, unittest.equals('foo')); | 106 unittest.expect(o.kind, unittest.equals('foo')); |
| 107 unittest.expect(o.updateOccurred, unittest.isTrue); | 107 unittest.expect(o.updateOccurred, unittest.isTrue); |
| 108 } | 108 } |
| 109 buildCounterAchievementResetResponse--; | 109 buildCounterAchievementResetResponse--; |
| 110 } | 110 } |
| 111 | 111 |
| 112 buildUnnamed866() { | 112 buildUnnamed463() { |
| 113 var o = new core.List<core.String>(); | 113 var o = new core.List<core.String>(); |
| 114 o.add("foo"); | 114 o.add("foo"); |
| 115 o.add("foo"); | 115 o.add("foo"); |
| 116 return o; | 116 return o; |
| 117 } | 117 } |
| 118 | 118 |
| 119 checkUnnamed866(core.List<core.String> o) { | 119 checkUnnamed463(core.List<core.String> o) { |
| 120 unittest.expect(o, unittest.hasLength(2)); | 120 unittest.expect(o, unittest.hasLength(2)); |
| 121 unittest.expect(o[0], unittest.equals('foo')); | 121 unittest.expect(o[0], unittest.equals('foo')); |
| 122 unittest.expect(o[1], unittest.equals('foo')); | 122 unittest.expect(o[1], unittest.equals('foo')); |
| 123 } | 123 } |
| 124 | 124 |
| 125 core.int buildCounterEventsResetMultipleForAllRequest = 0; | 125 core.int buildCounterEventsResetMultipleForAllRequest = 0; |
| 126 buildEventsResetMultipleForAllRequest() { | 126 buildEventsResetMultipleForAllRequest() { |
| 127 var o = new api.EventsResetMultipleForAllRequest(); | 127 var o = new api.EventsResetMultipleForAllRequest(); |
| 128 buildCounterEventsResetMultipleForAllRequest++; | 128 buildCounterEventsResetMultipleForAllRequest++; |
| 129 if (buildCounterEventsResetMultipleForAllRequest < 3) { | 129 if (buildCounterEventsResetMultipleForAllRequest < 3) { |
| 130 o.eventIds = buildUnnamed866(); | 130 o.eventIds = buildUnnamed463(); |
| 131 o.kind = "foo"; | 131 o.kind = "foo"; |
| 132 } | 132 } |
| 133 buildCounterEventsResetMultipleForAllRequest--; | 133 buildCounterEventsResetMultipleForAllRequest--; |
| 134 return o; | 134 return o; |
| 135 } | 135 } |
| 136 | 136 |
| 137 checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { | 137 checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { |
| 138 buildCounterEventsResetMultipleForAllRequest++; | 138 buildCounterEventsResetMultipleForAllRequest++; |
| 139 if (buildCounterEventsResetMultipleForAllRequest < 3) { | 139 if (buildCounterEventsResetMultipleForAllRequest < 3) { |
| 140 checkUnnamed866(o.eventIds); | 140 checkUnnamed463(o.eventIds); |
| 141 unittest.expect(o.kind, unittest.equals('foo')); | 141 unittest.expect(o.kind, unittest.equals('foo')); |
| 142 } | 142 } |
| 143 buildCounterEventsResetMultipleForAllRequest--; | 143 buildCounterEventsResetMultipleForAllRequest--; |
| 144 } | 144 } |
| 145 | 145 |
| 146 core.int buildCounterGamesPlayedResource = 0; | 146 core.int buildCounterGamesPlayedResource = 0; |
| 147 buildGamesPlayedResource() { | 147 buildGamesPlayedResource() { |
| 148 var o = new api.GamesPlayedResource(); | 148 var o = new api.GamesPlayedResource(); |
| 149 buildCounterGamesPlayedResource++; | 149 buildCounterGamesPlayedResource++; |
| 150 if (buildCounterGamesPlayedResource < 3) { | 150 if (buildCounterGamesPlayedResource < 3) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 checkHiddenPlayer(api.HiddenPlayer o) { | 228 checkHiddenPlayer(api.HiddenPlayer o) { |
| 229 buildCounterHiddenPlayer++; | 229 buildCounterHiddenPlayer++; |
| 230 if (buildCounterHiddenPlayer < 3) { | 230 if (buildCounterHiddenPlayer < 3) { |
| 231 unittest.expect(o.hiddenTimeMillis, unittest.equals('foo')); | 231 unittest.expect(o.hiddenTimeMillis, unittest.equals('foo')); |
| 232 unittest.expect(o.kind, unittest.equals('foo')); | 232 unittest.expect(o.kind, unittest.equals('foo')); |
| 233 checkPlayer(o.player); | 233 checkPlayer(o.player); |
| 234 } | 234 } |
| 235 buildCounterHiddenPlayer--; | 235 buildCounterHiddenPlayer--; |
| 236 } | 236 } |
| 237 | 237 |
| 238 buildUnnamed867() { | 238 buildUnnamed464() { |
| 239 var o = new core.List<api.HiddenPlayer>(); | 239 var o = new core.List<api.HiddenPlayer>(); |
| 240 o.add(buildHiddenPlayer()); | 240 o.add(buildHiddenPlayer()); |
| 241 o.add(buildHiddenPlayer()); | 241 o.add(buildHiddenPlayer()); |
| 242 return o; | 242 return o; |
| 243 } | 243 } |
| 244 | 244 |
| 245 checkUnnamed867(core.List<api.HiddenPlayer> o) { | 245 checkUnnamed464(core.List<api.HiddenPlayer> o) { |
| 246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
| 247 checkHiddenPlayer(o[0]); | 247 checkHiddenPlayer(o[0]); |
| 248 checkHiddenPlayer(o[1]); | 248 checkHiddenPlayer(o[1]); |
| 249 } | 249 } |
| 250 | 250 |
| 251 core.int buildCounterHiddenPlayerList = 0; | 251 core.int buildCounterHiddenPlayerList = 0; |
| 252 buildHiddenPlayerList() { | 252 buildHiddenPlayerList() { |
| 253 var o = new api.HiddenPlayerList(); | 253 var o = new api.HiddenPlayerList(); |
| 254 buildCounterHiddenPlayerList++; | 254 buildCounterHiddenPlayerList++; |
| 255 if (buildCounterHiddenPlayerList < 3) { | 255 if (buildCounterHiddenPlayerList < 3) { |
| 256 o.items = buildUnnamed867(); | 256 o.items = buildUnnamed464(); |
| 257 o.kind = "foo"; | 257 o.kind = "foo"; |
| 258 o.nextPageToken = "foo"; | 258 o.nextPageToken = "foo"; |
| 259 } | 259 } |
| 260 buildCounterHiddenPlayerList--; | 260 buildCounterHiddenPlayerList--; |
| 261 return o; | 261 return o; |
| 262 } | 262 } |
| 263 | 263 |
| 264 checkHiddenPlayerList(api.HiddenPlayerList o) { | 264 checkHiddenPlayerList(api.HiddenPlayerList o) { |
| 265 buildCounterHiddenPlayerList++; | 265 buildCounterHiddenPlayerList++; |
| 266 if (buildCounterHiddenPlayerList < 3) { | 266 if (buildCounterHiddenPlayerList < 3) { |
| 267 checkUnnamed867(o.items); | 267 checkUnnamed464(o.items); |
| 268 unittest.expect(o.kind, unittest.equals('foo')); | 268 unittest.expect(o.kind, unittest.equals('foo')); |
| 269 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 269 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 270 } | 270 } |
| 271 buildCounterHiddenPlayerList--; | 271 buildCounterHiddenPlayerList--; |
| 272 } | 272 } |
| 273 | 273 |
| 274 core.int buildCounterPlayerName = 0; | 274 core.int buildCounterPlayerName = 0; |
| 275 buildPlayerName() { | 275 buildPlayerName() { |
| 276 var o = new api.PlayerName(); | 276 var o = new api.PlayerName(); |
| 277 buildCounterPlayerName++; | 277 buildCounterPlayerName++; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 checkGamesPlayerExperienceInfoResource(o.experienceInfo); | 318 checkGamesPlayerExperienceInfoResource(o.experienceInfo); |
| 319 unittest.expect(o.kind, unittest.equals('foo')); | 319 unittest.expect(o.kind, unittest.equals('foo')); |
| 320 checkGamesPlayedResource(o.lastPlayedWith); | 320 checkGamesPlayedResource(o.lastPlayedWith); |
| 321 checkPlayerName(o.name); | 321 checkPlayerName(o.name); |
| 322 unittest.expect(o.playerId, unittest.equals('foo')); | 322 unittest.expect(o.playerId, unittest.equals('foo')); |
| 323 unittest.expect(o.title, unittest.equals('foo')); | 323 unittest.expect(o.title, unittest.equals('foo')); |
| 324 } | 324 } |
| 325 buildCounterPlayer--; | 325 buildCounterPlayer--; |
| 326 } | 326 } |
| 327 | 327 |
| 328 buildUnnamed868() { | 328 buildUnnamed465() { |
| 329 var o = new core.List<api.PlayerScoreResetResponse>(); | 329 var o = new core.List<api.PlayerScoreResetResponse>(); |
| 330 o.add(buildPlayerScoreResetResponse()); | 330 o.add(buildPlayerScoreResetResponse()); |
| 331 o.add(buildPlayerScoreResetResponse()); | 331 o.add(buildPlayerScoreResetResponse()); |
| 332 return o; | 332 return o; |
| 333 } | 333 } |
| 334 | 334 |
| 335 checkUnnamed868(core.List<api.PlayerScoreResetResponse> o) { | 335 checkUnnamed465(core.List<api.PlayerScoreResetResponse> o) { |
| 336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
| 337 checkPlayerScoreResetResponse(o[0]); | 337 checkPlayerScoreResetResponse(o[0]); |
| 338 checkPlayerScoreResetResponse(o[1]); | 338 checkPlayerScoreResetResponse(o[1]); |
| 339 } | 339 } |
| 340 | 340 |
| 341 core.int buildCounterPlayerScoreResetAllResponse = 0; | 341 core.int buildCounterPlayerScoreResetAllResponse = 0; |
| 342 buildPlayerScoreResetAllResponse() { | 342 buildPlayerScoreResetAllResponse() { |
| 343 var o = new api.PlayerScoreResetAllResponse(); | 343 var o = new api.PlayerScoreResetAllResponse(); |
| 344 buildCounterPlayerScoreResetAllResponse++; | 344 buildCounterPlayerScoreResetAllResponse++; |
| 345 if (buildCounterPlayerScoreResetAllResponse < 3) { | 345 if (buildCounterPlayerScoreResetAllResponse < 3) { |
| 346 o.kind = "foo"; | 346 o.kind = "foo"; |
| 347 o.results = buildUnnamed868(); | 347 o.results = buildUnnamed465(); |
| 348 } | 348 } |
| 349 buildCounterPlayerScoreResetAllResponse--; | 349 buildCounterPlayerScoreResetAllResponse--; |
| 350 return o; | 350 return o; |
| 351 } | 351 } |
| 352 | 352 |
| 353 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { | 353 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { |
| 354 buildCounterPlayerScoreResetAllResponse++; | 354 buildCounterPlayerScoreResetAllResponse++; |
| 355 if (buildCounterPlayerScoreResetAllResponse < 3) { | 355 if (buildCounterPlayerScoreResetAllResponse < 3) { |
| 356 unittest.expect(o.kind, unittest.equals('foo')); | 356 unittest.expect(o.kind, unittest.equals('foo')); |
| 357 checkUnnamed868(o.results); | 357 checkUnnamed465(o.results); |
| 358 } | 358 } |
| 359 buildCounterPlayerScoreResetAllResponse--; | 359 buildCounterPlayerScoreResetAllResponse--; |
| 360 } | 360 } |
| 361 | 361 |
| 362 buildUnnamed869() { | 362 buildUnnamed466() { |
| 363 var o = new core.List<core.String>(); | 363 var o = new core.List<core.String>(); |
| 364 o.add("foo"); | 364 o.add("foo"); |
| 365 o.add("foo"); | 365 o.add("foo"); |
| 366 return o; | 366 return o; |
| 367 } | 367 } |
| 368 | 368 |
| 369 checkUnnamed869(core.List<core.String> o) { | 369 checkUnnamed466(core.List<core.String> o) { |
| 370 unittest.expect(o, unittest.hasLength(2)); | 370 unittest.expect(o, unittest.hasLength(2)); |
| 371 unittest.expect(o[0], unittest.equals('foo')); | 371 unittest.expect(o[0], unittest.equals('foo')); |
| 372 unittest.expect(o[1], unittest.equals('foo')); | 372 unittest.expect(o[1], unittest.equals('foo')); |
| 373 } | 373 } |
| 374 | 374 |
| 375 core.int buildCounterPlayerScoreResetResponse = 0; | 375 core.int buildCounterPlayerScoreResetResponse = 0; |
| 376 buildPlayerScoreResetResponse() { | 376 buildPlayerScoreResetResponse() { |
| 377 var o = new api.PlayerScoreResetResponse(); | 377 var o = new api.PlayerScoreResetResponse(); |
| 378 buildCounterPlayerScoreResetResponse++; | 378 buildCounterPlayerScoreResetResponse++; |
| 379 if (buildCounterPlayerScoreResetResponse < 3) { | 379 if (buildCounterPlayerScoreResetResponse < 3) { |
| 380 o.definitionId = "foo"; | 380 o.definitionId = "foo"; |
| 381 o.kind = "foo"; | 381 o.kind = "foo"; |
| 382 o.resetScoreTimeSpans = buildUnnamed869(); | 382 o.resetScoreTimeSpans = buildUnnamed466(); |
| 383 } | 383 } |
| 384 buildCounterPlayerScoreResetResponse--; | 384 buildCounterPlayerScoreResetResponse--; |
| 385 return o; | 385 return o; |
| 386 } | 386 } |
| 387 | 387 |
| 388 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { | 388 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { |
| 389 buildCounterPlayerScoreResetResponse++; | 389 buildCounterPlayerScoreResetResponse++; |
| 390 if (buildCounterPlayerScoreResetResponse < 3) { | 390 if (buildCounterPlayerScoreResetResponse < 3) { |
| 391 unittest.expect(o.definitionId, unittest.equals('foo')); | 391 unittest.expect(o.definitionId, unittest.equals('foo')); |
| 392 unittest.expect(o.kind, unittest.equals('foo')); | 392 unittest.expect(o.kind, unittest.equals('foo')); |
| 393 checkUnnamed869(o.resetScoreTimeSpans); | 393 checkUnnamed466(o.resetScoreTimeSpans); |
| 394 } | 394 } |
| 395 buildCounterPlayerScoreResetResponse--; | 395 buildCounterPlayerScoreResetResponse--; |
| 396 } | 396 } |
| 397 | 397 |
| 398 buildUnnamed870() { | 398 buildUnnamed467() { |
| 399 var o = new core.List<core.String>(); | 399 var o = new core.List<core.String>(); |
| 400 o.add("foo"); | 400 o.add("foo"); |
| 401 o.add("foo"); | 401 o.add("foo"); |
| 402 return o; | 402 return o; |
| 403 } | 403 } |
| 404 | 404 |
| 405 checkUnnamed870(core.List<core.String> o) { | 405 checkUnnamed467(core.List<core.String> o) { |
| 406 unittest.expect(o, unittest.hasLength(2)); | 406 unittest.expect(o, unittest.hasLength(2)); |
| 407 unittest.expect(o[0], unittest.equals('foo')); | 407 unittest.expect(o[0], unittest.equals('foo')); |
| 408 unittest.expect(o[1], unittest.equals('foo')); | 408 unittest.expect(o[1], unittest.equals('foo')); |
| 409 } | 409 } |
| 410 | 410 |
| 411 core.int buildCounterQuestsResetMultipleForAllRequest = 0; | 411 core.int buildCounterQuestsResetMultipleForAllRequest = 0; |
| 412 buildQuestsResetMultipleForAllRequest() { | 412 buildQuestsResetMultipleForAllRequest() { |
| 413 var o = new api.QuestsResetMultipleForAllRequest(); | 413 var o = new api.QuestsResetMultipleForAllRequest(); |
| 414 buildCounterQuestsResetMultipleForAllRequest++; | 414 buildCounterQuestsResetMultipleForAllRequest++; |
| 415 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 415 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
| 416 o.kind = "foo"; | 416 o.kind = "foo"; |
| 417 o.questIds = buildUnnamed870(); | 417 o.questIds = buildUnnamed467(); |
| 418 } | 418 } |
| 419 buildCounterQuestsResetMultipleForAllRequest--; | 419 buildCounterQuestsResetMultipleForAllRequest--; |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { | 423 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { |
| 424 buildCounterQuestsResetMultipleForAllRequest++; | 424 buildCounterQuestsResetMultipleForAllRequest++; |
| 425 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 425 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
| 426 unittest.expect(o.kind, unittest.equals('foo')); | 426 unittest.expect(o.kind, unittest.equals('foo')); |
| 427 checkUnnamed870(o.questIds); | 427 checkUnnamed467(o.questIds); |
| 428 } | 428 } |
| 429 buildCounterQuestsResetMultipleForAllRequest--; | 429 buildCounterQuestsResetMultipleForAllRequest--; |
| 430 } | 430 } |
| 431 | 431 |
| 432 buildUnnamed871() { | 432 buildUnnamed468() { |
| 433 var o = new core.List<core.String>(); | 433 var o = new core.List<core.String>(); |
| 434 o.add("foo"); | 434 o.add("foo"); |
| 435 o.add("foo"); | 435 o.add("foo"); |
| 436 return o; | 436 return o; |
| 437 } | 437 } |
| 438 | 438 |
| 439 checkUnnamed871(core.List<core.String> o) { | 439 checkUnnamed468(core.List<core.String> o) { |
| 440 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
| 441 unittest.expect(o[0], unittest.equals('foo')); | 441 unittest.expect(o[0], unittest.equals('foo')); |
| 442 unittest.expect(o[1], unittest.equals('foo')); | 442 unittest.expect(o[1], unittest.equals('foo')); |
| 443 } | 443 } |
| 444 | 444 |
| 445 core.int buildCounterScoresResetMultipleForAllRequest = 0; | 445 core.int buildCounterScoresResetMultipleForAllRequest = 0; |
| 446 buildScoresResetMultipleForAllRequest() { | 446 buildScoresResetMultipleForAllRequest() { |
| 447 var o = new api.ScoresResetMultipleForAllRequest(); | 447 var o = new api.ScoresResetMultipleForAllRequest(); |
| 448 buildCounterScoresResetMultipleForAllRequest++; | 448 buildCounterScoresResetMultipleForAllRequest++; |
| 449 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 449 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
| 450 o.kind = "foo"; | 450 o.kind = "foo"; |
| 451 o.leaderboardIds = buildUnnamed871(); | 451 o.leaderboardIds = buildUnnamed468(); |
| 452 } | 452 } |
| 453 buildCounterScoresResetMultipleForAllRequest--; | 453 buildCounterScoresResetMultipleForAllRequest--; |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { | 457 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { |
| 458 buildCounterScoresResetMultipleForAllRequest++; | 458 buildCounterScoresResetMultipleForAllRequest++; |
| 459 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 459 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
| 460 unittest.expect(o.kind, unittest.equals('foo')); | 460 unittest.expect(o.kind, unittest.equals('foo')); |
| 461 checkUnnamed871(o.leaderboardIds); | 461 checkUnnamed468(o.leaderboardIds); |
| 462 } | 462 } |
| 463 buildCounterScoresResetMultipleForAllRequest--; | 463 buildCounterScoresResetMultipleForAllRequest--; |
| 464 } | 464 } |
| 465 | 465 |
| 466 | 466 |
| 467 main() { | 467 main() { |
| 468 unittest.group("obj-schema-AchievementResetAllResponse", () { | 468 unittest.group("obj-schema-AchievementResetAllResponse", () { |
| 469 unittest.test("to-json--from-json", () { | 469 unittest.test("to-json--from-json", () { |
| 470 var o = buildAchievementResetAllResponse(); | 470 var o = buildAchievementResetAllResponse(); |
| 471 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); | 471 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); |
| (...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1914 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1915 }), true); | 1915 }), true); |
| 1916 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); | 1916 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); |
| 1917 }); | 1917 }); |
| 1918 | 1918 |
| 1919 }); | 1919 }); |
| 1920 | 1920 |
| 1921 | 1921 |
| 1922 } | 1922 } |
| 1923 | 1923 |
| OLD | NEW |