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; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed626() { | 54 buildUnnamed633() { |
55 var o = new core.List<api.AchievementResetResponse>(); | 55 var o = new core.List<api.AchievementResetResponse>(); |
56 o.add(buildAchievementResetResponse()); | 56 o.add(buildAchievementResetResponse()); |
57 o.add(buildAchievementResetResponse()); | 57 o.add(buildAchievementResetResponse()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed626(core.List<api.AchievementResetResponse> o) { | 61 checkUnnamed633(core.List<api.AchievementResetResponse> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkAchievementResetResponse(o[0]); | 63 checkAchievementResetResponse(o[0]); |
64 checkAchievementResetResponse(o[1]); | 64 checkAchievementResetResponse(o[1]); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAchievementResetAllResponse = 0; | 67 core.int buildCounterAchievementResetAllResponse = 0; |
68 buildAchievementResetAllResponse() { | 68 buildAchievementResetAllResponse() { |
69 var o = new api.AchievementResetAllResponse(); | 69 var o = new api.AchievementResetAllResponse(); |
70 buildCounterAchievementResetAllResponse++; | 70 buildCounterAchievementResetAllResponse++; |
71 if (buildCounterAchievementResetAllResponse < 3) { | 71 if (buildCounterAchievementResetAllResponse < 3) { |
72 o.kind = "foo"; | 72 o.kind = "foo"; |
73 o.results = buildUnnamed626(); | 73 o.results = buildUnnamed633(); |
74 } | 74 } |
75 buildCounterAchievementResetAllResponse--; | 75 buildCounterAchievementResetAllResponse--; |
76 return o; | 76 return o; |
77 } | 77 } |
78 | 78 |
79 checkAchievementResetAllResponse(api.AchievementResetAllResponse o) { | 79 checkAchievementResetAllResponse(api.AchievementResetAllResponse o) { |
80 buildCounterAchievementResetAllResponse++; | 80 buildCounterAchievementResetAllResponse++; |
81 if (buildCounterAchievementResetAllResponse < 3) { | 81 if (buildCounterAchievementResetAllResponse < 3) { |
82 unittest.expect(o.kind, unittest.equals('foo')); | 82 unittest.expect(o.kind, unittest.equals('foo')); |
83 checkUnnamed626(o.results); | 83 checkUnnamed633(o.results); |
84 } | 84 } |
85 buildCounterAchievementResetAllResponse--; | 85 buildCounterAchievementResetAllResponse--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed627() { | 88 buildUnnamed634() { |
89 var o = new core.List<core.String>(); | 89 var o = new core.List<core.String>(); |
90 o.add("foo"); | 90 o.add("foo"); |
91 o.add("foo"); | 91 o.add("foo"); |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUnnamed627(core.List<core.String> o) { | 95 checkUnnamed634(core.List<core.String> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
99 } | 99 } |
100 | 100 |
101 core.int buildCounterAchievementResetMultipleForAllRequest = 0; | 101 core.int buildCounterAchievementResetMultipleForAllRequest = 0; |
102 buildAchievementResetMultipleForAllRequest() { | 102 buildAchievementResetMultipleForAllRequest() { |
103 var o = new api.AchievementResetMultipleForAllRequest(); | 103 var o = new api.AchievementResetMultipleForAllRequest(); |
104 buildCounterAchievementResetMultipleForAllRequest++; | 104 buildCounterAchievementResetMultipleForAllRequest++; |
105 if (buildCounterAchievementResetMultipleForAllRequest < 3) { | 105 if (buildCounterAchievementResetMultipleForAllRequest < 3) { |
106 o.achievementIds = buildUnnamed627(); | 106 o.achievementIds = buildUnnamed634(); |
107 o.kind = "foo"; | 107 o.kind = "foo"; |
108 } | 108 } |
109 buildCounterAchievementResetMultipleForAllRequest--; | 109 buildCounterAchievementResetMultipleForAllRequest--; |
110 return o; | 110 return o; |
111 } | 111 } |
112 | 112 |
113 checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllReq
uest o) { | 113 checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllReq
uest o) { |
114 buildCounterAchievementResetMultipleForAllRequest++; | 114 buildCounterAchievementResetMultipleForAllRequest++; |
115 if (buildCounterAchievementResetMultipleForAllRequest < 3) { | 115 if (buildCounterAchievementResetMultipleForAllRequest < 3) { |
116 checkUnnamed627(o.achievementIds); | 116 checkUnnamed634(o.achievementIds); |
117 unittest.expect(o.kind, unittest.equals('foo')); | 117 unittest.expect(o.kind, unittest.equals('foo')); |
118 } | 118 } |
119 buildCounterAchievementResetMultipleForAllRequest--; | 119 buildCounterAchievementResetMultipleForAllRequest--; |
120 } | 120 } |
121 | 121 |
122 core.int buildCounterAchievementResetResponse = 0; | 122 core.int buildCounterAchievementResetResponse = 0; |
123 buildAchievementResetResponse() { | 123 buildAchievementResetResponse() { |
124 var o = new api.AchievementResetResponse(); | 124 var o = new api.AchievementResetResponse(); |
125 buildCounterAchievementResetResponse++; | 125 buildCounterAchievementResetResponse++; |
126 if (buildCounterAchievementResetResponse < 3) { | 126 if (buildCounterAchievementResetResponse < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
137 buildCounterAchievementResetResponse++; | 137 buildCounterAchievementResetResponse++; |
138 if (buildCounterAchievementResetResponse < 3) { | 138 if (buildCounterAchievementResetResponse < 3) { |
139 unittest.expect(o.currentState, unittest.equals('foo')); | 139 unittest.expect(o.currentState, unittest.equals('foo')); |
140 unittest.expect(o.definitionId, unittest.equals('foo')); | 140 unittest.expect(o.definitionId, unittest.equals('foo')); |
141 unittest.expect(o.kind, unittest.equals('foo')); | 141 unittest.expect(o.kind, unittest.equals('foo')); |
142 unittest.expect(o.updateOccurred, unittest.isTrue); | 142 unittest.expect(o.updateOccurred, unittest.isTrue); |
143 } | 143 } |
144 buildCounterAchievementResetResponse--; | 144 buildCounterAchievementResetResponse--; |
145 } | 145 } |
146 | 146 |
147 buildUnnamed628() { | 147 buildUnnamed635() { |
148 var o = new core.List<core.String>(); | 148 var o = new core.List<core.String>(); |
149 o.add("foo"); | 149 o.add("foo"); |
150 o.add("foo"); | 150 o.add("foo"); |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkUnnamed628(core.List<core.String> o) { | 154 checkUnnamed635(core.List<core.String> o) { |
155 unittest.expect(o, unittest.hasLength(2)); | 155 unittest.expect(o, unittest.hasLength(2)); |
156 unittest.expect(o[0], unittest.equals('foo')); | 156 unittest.expect(o[0], unittest.equals('foo')); |
157 unittest.expect(o[1], unittest.equals('foo')); | 157 unittest.expect(o[1], unittest.equals('foo')); |
158 } | 158 } |
159 | 159 |
160 core.int buildCounterEventsResetMultipleForAllRequest = 0; | 160 core.int buildCounterEventsResetMultipleForAllRequest = 0; |
161 buildEventsResetMultipleForAllRequest() { | 161 buildEventsResetMultipleForAllRequest() { |
162 var o = new api.EventsResetMultipleForAllRequest(); | 162 var o = new api.EventsResetMultipleForAllRequest(); |
163 buildCounterEventsResetMultipleForAllRequest++; | 163 buildCounterEventsResetMultipleForAllRequest++; |
164 if (buildCounterEventsResetMultipleForAllRequest < 3) { | 164 if (buildCounterEventsResetMultipleForAllRequest < 3) { |
165 o.eventIds = buildUnnamed628(); | 165 o.eventIds = buildUnnamed635(); |
166 o.kind = "foo"; | 166 o.kind = "foo"; |
167 } | 167 } |
168 buildCounterEventsResetMultipleForAllRequest--; | 168 buildCounterEventsResetMultipleForAllRequest--; |
169 return o; | 169 return o; |
170 } | 170 } |
171 | 171 |
172 checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { | 172 checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { |
173 buildCounterEventsResetMultipleForAllRequest++; | 173 buildCounterEventsResetMultipleForAllRequest++; |
174 if (buildCounterEventsResetMultipleForAllRequest < 3) { | 174 if (buildCounterEventsResetMultipleForAllRequest < 3) { |
175 checkUnnamed628(o.eventIds); | 175 checkUnnamed635(o.eventIds); |
176 unittest.expect(o.kind, unittest.equals('foo')); | 176 unittest.expect(o.kind, unittest.equals('foo')); |
177 } | 177 } |
178 buildCounterEventsResetMultipleForAllRequest--; | 178 buildCounterEventsResetMultipleForAllRequest--; |
179 } | 179 } |
180 | 180 |
181 core.int buildCounterGamesPlayedResource = 0; | 181 core.int buildCounterGamesPlayedResource = 0; |
182 buildGamesPlayedResource() { | 182 buildGamesPlayedResource() { |
183 var o = new api.GamesPlayedResource(); | 183 var o = new api.GamesPlayedResource(); |
184 buildCounterGamesPlayedResource++; | 184 buildCounterGamesPlayedResource++; |
185 if (buildCounterGamesPlayedResource < 3) { | 185 if (buildCounterGamesPlayedResource < 3) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 checkHiddenPlayer(api.HiddenPlayer o) { | 263 checkHiddenPlayer(api.HiddenPlayer o) { |
264 buildCounterHiddenPlayer++; | 264 buildCounterHiddenPlayer++; |
265 if (buildCounterHiddenPlayer < 3) { | 265 if (buildCounterHiddenPlayer < 3) { |
266 unittest.expect(o.hiddenTimeMillis, unittest.equals('foo')); | 266 unittest.expect(o.hiddenTimeMillis, unittest.equals('foo')); |
267 unittest.expect(o.kind, unittest.equals('foo')); | 267 unittest.expect(o.kind, unittest.equals('foo')); |
268 checkPlayer(o.player); | 268 checkPlayer(o.player); |
269 } | 269 } |
270 buildCounterHiddenPlayer--; | 270 buildCounterHiddenPlayer--; |
271 } | 271 } |
272 | 272 |
273 buildUnnamed629() { | 273 buildUnnamed636() { |
274 var o = new core.List<api.HiddenPlayer>(); | 274 var o = new core.List<api.HiddenPlayer>(); |
275 o.add(buildHiddenPlayer()); | 275 o.add(buildHiddenPlayer()); |
276 o.add(buildHiddenPlayer()); | 276 o.add(buildHiddenPlayer()); |
277 return o; | 277 return o; |
278 } | 278 } |
279 | 279 |
280 checkUnnamed629(core.List<api.HiddenPlayer> o) { | 280 checkUnnamed636(core.List<api.HiddenPlayer> o) { |
281 unittest.expect(o, unittest.hasLength(2)); | 281 unittest.expect(o, unittest.hasLength(2)); |
282 checkHiddenPlayer(o[0]); | 282 checkHiddenPlayer(o[0]); |
283 checkHiddenPlayer(o[1]); | 283 checkHiddenPlayer(o[1]); |
284 } | 284 } |
285 | 285 |
286 core.int buildCounterHiddenPlayerList = 0; | 286 core.int buildCounterHiddenPlayerList = 0; |
287 buildHiddenPlayerList() { | 287 buildHiddenPlayerList() { |
288 var o = new api.HiddenPlayerList(); | 288 var o = new api.HiddenPlayerList(); |
289 buildCounterHiddenPlayerList++; | 289 buildCounterHiddenPlayerList++; |
290 if (buildCounterHiddenPlayerList < 3) { | 290 if (buildCounterHiddenPlayerList < 3) { |
291 o.items = buildUnnamed629(); | 291 o.items = buildUnnamed636(); |
292 o.kind = "foo"; | 292 o.kind = "foo"; |
293 o.nextPageToken = "foo"; | 293 o.nextPageToken = "foo"; |
294 } | 294 } |
295 buildCounterHiddenPlayerList--; | 295 buildCounterHiddenPlayerList--; |
296 return o; | 296 return o; |
297 } | 297 } |
298 | 298 |
299 checkHiddenPlayerList(api.HiddenPlayerList o) { | 299 checkHiddenPlayerList(api.HiddenPlayerList o) { |
300 buildCounterHiddenPlayerList++; | 300 buildCounterHiddenPlayerList++; |
301 if (buildCounterHiddenPlayerList < 3) { | 301 if (buildCounterHiddenPlayerList < 3) { |
302 checkUnnamed629(o.items); | 302 checkUnnamed636(o.items); |
303 unittest.expect(o.kind, unittest.equals('foo')); | 303 unittest.expect(o.kind, unittest.equals('foo')); |
304 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 304 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
305 } | 305 } |
306 buildCounterHiddenPlayerList--; | 306 buildCounterHiddenPlayerList--; |
307 } | 307 } |
308 | 308 |
309 core.int buildCounterPlayerName = 0; | 309 core.int buildCounterPlayerName = 0; |
310 buildPlayerName() { | 310 buildPlayerName() { |
311 var o = new api.PlayerName(); | 311 var o = new api.PlayerName(); |
312 buildCounterPlayerName++; | 312 buildCounterPlayerName++; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 checkGamesPlayedResource(o.lastPlayedWith); | 361 checkGamesPlayedResource(o.lastPlayedWith); |
362 checkPlayerName(o.name); | 362 checkPlayerName(o.name); |
363 unittest.expect(o.originalPlayerId, unittest.equals('foo')); | 363 unittest.expect(o.originalPlayerId, unittest.equals('foo')); |
364 unittest.expect(o.playerId, unittest.equals('foo')); | 364 unittest.expect(o.playerId, unittest.equals('foo')); |
365 checkProfileSettings(o.profileSettings); | 365 checkProfileSettings(o.profileSettings); |
366 unittest.expect(o.title, unittest.equals('foo')); | 366 unittest.expect(o.title, unittest.equals('foo')); |
367 } | 367 } |
368 buildCounterPlayer--; | 368 buildCounterPlayer--; |
369 } | 369 } |
370 | 370 |
371 buildUnnamed630() { | 371 buildUnnamed637() { |
372 var o = new core.List<api.PlayerScoreResetResponse>(); | 372 var o = new core.List<api.PlayerScoreResetResponse>(); |
373 o.add(buildPlayerScoreResetResponse()); | 373 o.add(buildPlayerScoreResetResponse()); |
374 o.add(buildPlayerScoreResetResponse()); | 374 o.add(buildPlayerScoreResetResponse()); |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkUnnamed630(core.List<api.PlayerScoreResetResponse> o) { | 378 checkUnnamed637(core.List<api.PlayerScoreResetResponse> o) { |
379 unittest.expect(o, unittest.hasLength(2)); | 379 unittest.expect(o, unittest.hasLength(2)); |
380 checkPlayerScoreResetResponse(o[0]); | 380 checkPlayerScoreResetResponse(o[0]); |
381 checkPlayerScoreResetResponse(o[1]); | 381 checkPlayerScoreResetResponse(o[1]); |
382 } | 382 } |
383 | 383 |
384 core.int buildCounterPlayerScoreResetAllResponse = 0; | 384 core.int buildCounterPlayerScoreResetAllResponse = 0; |
385 buildPlayerScoreResetAllResponse() { | 385 buildPlayerScoreResetAllResponse() { |
386 var o = new api.PlayerScoreResetAllResponse(); | 386 var o = new api.PlayerScoreResetAllResponse(); |
387 buildCounterPlayerScoreResetAllResponse++; | 387 buildCounterPlayerScoreResetAllResponse++; |
388 if (buildCounterPlayerScoreResetAllResponse < 3) { | 388 if (buildCounterPlayerScoreResetAllResponse < 3) { |
389 o.kind = "foo"; | 389 o.kind = "foo"; |
390 o.results = buildUnnamed630(); | 390 o.results = buildUnnamed637(); |
391 } | 391 } |
392 buildCounterPlayerScoreResetAllResponse--; | 392 buildCounterPlayerScoreResetAllResponse--; |
393 return o; | 393 return o; |
394 } | 394 } |
395 | 395 |
396 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { | 396 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { |
397 buildCounterPlayerScoreResetAllResponse++; | 397 buildCounterPlayerScoreResetAllResponse++; |
398 if (buildCounterPlayerScoreResetAllResponse < 3) { | 398 if (buildCounterPlayerScoreResetAllResponse < 3) { |
399 unittest.expect(o.kind, unittest.equals('foo')); | 399 unittest.expect(o.kind, unittest.equals('foo')); |
400 checkUnnamed630(o.results); | 400 checkUnnamed637(o.results); |
401 } | 401 } |
402 buildCounterPlayerScoreResetAllResponse--; | 402 buildCounterPlayerScoreResetAllResponse--; |
403 } | 403 } |
404 | 404 |
405 buildUnnamed631() { | 405 buildUnnamed638() { |
406 var o = new core.List<core.String>(); | 406 var o = new core.List<core.String>(); |
407 o.add("foo"); | 407 o.add("foo"); |
408 o.add("foo"); | 408 o.add("foo"); |
409 return o; | 409 return o; |
410 } | 410 } |
411 | 411 |
412 checkUnnamed631(core.List<core.String> o) { | 412 checkUnnamed638(core.List<core.String> o) { |
413 unittest.expect(o, unittest.hasLength(2)); | 413 unittest.expect(o, unittest.hasLength(2)); |
414 unittest.expect(o[0], unittest.equals('foo')); | 414 unittest.expect(o[0], unittest.equals('foo')); |
415 unittest.expect(o[1], unittest.equals('foo')); | 415 unittest.expect(o[1], unittest.equals('foo')); |
416 } | 416 } |
417 | 417 |
418 core.int buildCounterPlayerScoreResetResponse = 0; | 418 core.int buildCounterPlayerScoreResetResponse = 0; |
419 buildPlayerScoreResetResponse() { | 419 buildPlayerScoreResetResponse() { |
420 var o = new api.PlayerScoreResetResponse(); | 420 var o = new api.PlayerScoreResetResponse(); |
421 buildCounterPlayerScoreResetResponse++; | 421 buildCounterPlayerScoreResetResponse++; |
422 if (buildCounterPlayerScoreResetResponse < 3) { | 422 if (buildCounterPlayerScoreResetResponse < 3) { |
423 o.definitionId = "foo"; | 423 o.definitionId = "foo"; |
424 o.kind = "foo"; | 424 o.kind = "foo"; |
425 o.resetScoreTimeSpans = buildUnnamed631(); | 425 o.resetScoreTimeSpans = buildUnnamed638(); |
426 } | 426 } |
427 buildCounterPlayerScoreResetResponse--; | 427 buildCounterPlayerScoreResetResponse--; |
428 return o; | 428 return o; |
429 } | 429 } |
430 | 430 |
431 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { | 431 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { |
432 buildCounterPlayerScoreResetResponse++; | 432 buildCounterPlayerScoreResetResponse++; |
433 if (buildCounterPlayerScoreResetResponse < 3) { | 433 if (buildCounterPlayerScoreResetResponse < 3) { |
434 unittest.expect(o.definitionId, unittest.equals('foo')); | 434 unittest.expect(o.definitionId, unittest.equals('foo')); |
435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
436 checkUnnamed631(o.resetScoreTimeSpans); | 436 checkUnnamed638(o.resetScoreTimeSpans); |
437 } | 437 } |
438 buildCounterPlayerScoreResetResponse--; | 438 buildCounterPlayerScoreResetResponse--; |
439 } | 439 } |
440 | 440 |
441 core.int buildCounterProfileSettings = 0; | 441 core.int buildCounterProfileSettings = 0; |
442 buildProfileSettings() { | 442 buildProfileSettings() { |
443 var o = new api.ProfileSettings(); | 443 var o = new api.ProfileSettings(); |
444 buildCounterProfileSettings++; | 444 buildCounterProfileSettings++; |
445 if (buildCounterProfileSettings < 3) { | 445 if (buildCounterProfileSettings < 3) { |
446 o.kind = "foo"; | 446 o.kind = "foo"; |
447 o.profileVisible = true; | 447 o.profileVisible = true; |
448 } | 448 } |
449 buildCounterProfileSettings--; | 449 buildCounterProfileSettings--; |
450 return o; | 450 return o; |
451 } | 451 } |
452 | 452 |
453 checkProfileSettings(api.ProfileSettings o) { | 453 checkProfileSettings(api.ProfileSettings o) { |
454 buildCounterProfileSettings++; | 454 buildCounterProfileSettings++; |
455 if (buildCounterProfileSettings < 3) { | 455 if (buildCounterProfileSettings < 3) { |
456 unittest.expect(o.kind, unittest.equals('foo')); | 456 unittest.expect(o.kind, unittest.equals('foo')); |
457 unittest.expect(o.profileVisible, unittest.isTrue); | 457 unittest.expect(o.profileVisible, unittest.isTrue); |
458 } | 458 } |
459 buildCounterProfileSettings--; | 459 buildCounterProfileSettings--; |
460 } | 460 } |
461 | 461 |
462 buildUnnamed632() { | 462 buildUnnamed639() { |
463 var o = new core.List<core.String>(); | 463 var o = new core.List<core.String>(); |
464 o.add("foo"); | 464 o.add("foo"); |
465 o.add("foo"); | 465 o.add("foo"); |
466 return o; | 466 return o; |
467 } | 467 } |
468 | 468 |
469 checkUnnamed632(core.List<core.String> o) { | 469 checkUnnamed639(core.List<core.String> o) { |
470 unittest.expect(o, unittest.hasLength(2)); | 470 unittest.expect(o, unittest.hasLength(2)); |
471 unittest.expect(o[0], unittest.equals('foo')); | 471 unittest.expect(o[0], unittest.equals('foo')); |
472 unittest.expect(o[1], unittest.equals('foo')); | 472 unittest.expect(o[1], unittest.equals('foo')); |
473 } | 473 } |
474 | 474 |
475 core.int buildCounterQuestsResetMultipleForAllRequest = 0; | 475 core.int buildCounterQuestsResetMultipleForAllRequest = 0; |
476 buildQuestsResetMultipleForAllRequest() { | 476 buildQuestsResetMultipleForAllRequest() { |
477 var o = new api.QuestsResetMultipleForAllRequest(); | 477 var o = new api.QuestsResetMultipleForAllRequest(); |
478 buildCounterQuestsResetMultipleForAllRequest++; | 478 buildCounterQuestsResetMultipleForAllRequest++; |
479 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 479 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
480 o.kind = "foo"; | 480 o.kind = "foo"; |
481 o.questIds = buildUnnamed632(); | 481 o.questIds = buildUnnamed639(); |
482 } | 482 } |
483 buildCounterQuestsResetMultipleForAllRequest--; | 483 buildCounterQuestsResetMultipleForAllRequest--; |
484 return o; | 484 return o; |
485 } | 485 } |
486 | 486 |
487 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { | 487 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { |
488 buildCounterQuestsResetMultipleForAllRequest++; | 488 buildCounterQuestsResetMultipleForAllRequest++; |
489 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 489 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
490 unittest.expect(o.kind, unittest.equals('foo')); | 490 unittest.expect(o.kind, unittest.equals('foo')); |
491 checkUnnamed632(o.questIds); | 491 checkUnnamed639(o.questIds); |
492 } | 492 } |
493 buildCounterQuestsResetMultipleForAllRequest--; | 493 buildCounterQuestsResetMultipleForAllRequest--; |
494 } | 494 } |
495 | 495 |
496 buildUnnamed633() { | 496 buildUnnamed640() { |
497 var o = new core.List<core.String>(); | 497 var o = new core.List<core.String>(); |
498 o.add("foo"); | 498 o.add("foo"); |
499 o.add("foo"); | 499 o.add("foo"); |
500 return o; | 500 return o; |
501 } | 501 } |
502 | 502 |
503 checkUnnamed633(core.List<core.String> o) { | 503 checkUnnamed640(core.List<core.String> o) { |
504 unittest.expect(o, unittest.hasLength(2)); | 504 unittest.expect(o, unittest.hasLength(2)); |
505 unittest.expect(o[0], unittest.equals('foo')); | 505 unittest.expect(o[0], unittest.equals('foo')); |
506 unittest.expect(o[1], unittest.equals('foo')); | 506 unittest.expect(o[1], unittest.equals('foo')); |
507 } | 507 } |
508 | 508 |
509 core.int buildCounterScoresResetMultipleForAllRequest = 0; | 509 core.int buildCounterScoresResetMultipleForAllRequest = 0; |
510 buildScoresResetMultipleForAllRequest() { | 510 buildScoresResetMultipleForAllRequest() { |
511 var o = new api.ScoresResetMultipleForAllRequest(); | 511 var o = new api.ScoresResetMultipleForAllRequest(); |
512 buildCounterScoresResetMultipleForAllRequest++; | 512 buildCounterScoresResetMultipleForAllRequest++; |
513 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 513 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
514 o.kind = "foo"; | 514 o.kind = "foo"; |
515 o.leaderboardIds = buildUnnamed633(); | 515 o.leaderboardIds = buildUnnamed640(); |
516 } | 516 } |
517 buildCounterScoresResetMultipleForAllRequest--; | 517 buildCounterScoresResetMultipleForAllRequest--; |
518 return o; | 518 return o; |
519 } | 519 } |
520 | 520 |
521 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { | 521 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { |
522 buildCounterScoresResetMultipleForAllRequest++; | 522 buildCounterScoresResetMultipleForAllRequest++; |
523 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 523 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
524 unittest.expect(o.kind, unittest.equals('foo')); | 524 unittest.expect(o.kind, unittest.equals('foo')); |
525 checkUnnamed633(o.leaderboardIds); | 525 checkUnnamed640(o.leaderboardIds); |
526 } | 526 } |
527 buildCounterScoresResetMultipleForAllRequest--; | 527 buildCounterScoresResetMultipleForAllRequest--; |
528 } | 528 } |
529 | 529 |
530 | 530 |
531 main() { | 531 main() { |
532 unittest.group("obj-schema-AchievementResetAllResponse", () { | 532 unittest.group("obj-schema-AchievementResetAllResponse", () { |
533 unittest.test("to-json--from-json", () { | 533 unittest.test("to-json--from-json", () { |
534 var o = buildAchievementResetAllResponse(); | 534 var o = buildAchievementResetAllResponse(); |
535 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); | 535 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); |
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 return new async.Future.value(stringResponse(200, h, resp)); | 1987 return new async.Future.value(stringResponse(200, h, resp)); |
1988 }), true); | 1988 }), true); |
1989 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); | 1989 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); |
1990 }); | 1990 }); |
1991 | 1991 |
1992 }); | 1992 }); |
1993 | 1993 |
1994 | 1994 |
1995 } | 1995 } |
1996 | 1996 |
OLD | NEW |