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 buildUnnamed718() { | 54 buildUnnamed1766() { |
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 checkUnnamed718(core.List<api.AchievementResetResponse> o) { | 61 checkUnnamed1766(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 = buildUnnamed718(); | 73 o.results = buildUnnamed1766(); |
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 checkUnnamed718(o.results); | 83 checkUnnamed1766(o.results); |
84 } | 84 } |
85 buildCounterAchievementResetAllResponse--; | 85 buildCounterAchievementResetAllResponse--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed719() { | 88 buildUnnamed1767() { |
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 checkUnnamed719(core.List<core.String> o) { | 95 checkUnnamed1767(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 = buildUnnamed719(); | 106 o.achievementIds = buildUnnamed1767(); |
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 checkUnnamed719(o.achievementIds); | 116 checkUnnamed1767(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 buildUnnamed720() { | 147 buildUnnamed1768() { |
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 checkUnnamed720(core.List<core.String> o) { | 154 checkUnnamed1768(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 = buildUnnamed720(); | 165 o.eventIds = buildUnnamed1768(); |
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 checkUnnamed720(o.eventIds); | 175 checkUnnamed1768(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 buildUnnamed721() { | 273 buildUnnamed1769() { |
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 checkUnnamed721(core.List<api.HiddenPlayer> o) { | 280 checkUnnamed1769(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 = buildUnnamed721(); | 291 o.items = buildUnnamed1769(); |
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 checkUnnamed721(o.items); | 302 checkUnnamed1769(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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 checkGamesPlayerExperienceInfoResource(o.experienceInfo); | 353 checkGamesPlayerExperienceInfoResource(o.experienceInfo); |
354 unittest.expect(o.kind, unittest.equals('foo')); | 354 unittest.expect(o.kind, unittest.equals('foo')); |
355 checkGamesPlayedResource(o.lastPlayedWith); | 355 checkGamesPlayedResource(o.lastPlayedWith); |
356 checkPlayerName(o.name); | 356 checkPlayerName(o.name); |
357 unittest.expect(o.playerId, unittest.equals('foo')); | 357 unittest.expect(o.playerId, unittest.equals('foo')); |
358 unittest.expect(o.title, unittest.equals('foo')); | 358 unittest.expect(o.title, unittest.equals('foo')); |
359 } | 359 } |
360 buildCounterPlayer--; | 360 buildCounterPlayer--; |
361 } | 361 } |
362 | 362 |
363 buildUnnamed722() { | 363 buildUnnamed1770() { |
364 var o = new core.List<api.PlayerScoreResetResponse>(); | 364 var o = new core.List<api.PlayerScoreResetResponse>(); |
365 o.add(buildPlayerScoreResetResponse()); | 365 o.add(buildPlayerScoreResetResponse()); |
366 o.add(buildPlayerScoreResetResponse()); | 366 o.add(buildPlayerScoreResetResponse()); |
367 return o; | 367 return o; |
368 } | 368 } |
369 | 369 |
370 checkUnnamed722(core.List<api.PlayerScoreResetResponse> o) { | 370 checkUnnamed1770(core.List<api.PlayerScoreResetResponse> o) { |
371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
372 checkPlayerScoreResetResponse(o[0]); | 372 checkPlayerScoreResetResponse(o[0]); |
373 checkPlayerScoreResetResponse(o[1]); | 373 checkPlayerScoreResetResponse(o[1]); |
374 } | 374 } |
375 | 375 |
376 core.int buildCounterPlayerScoreResetAllResponse = 0; | 376 core.int buildCounterPlayerScoreResetAllResponse = 0; |
377 buildPlayerScoreResetAllResponse() { | 377 buildPlayerScoreResetAllResponse() { |
378 var o = new api.PlayerScoreResetAllResponse(); | 378 var o = new api.PlayerScoreResetAllResponse(); |
379 buildCounterPlayerScoreResetAllResponse++; | 379 buildCounterPlayerScoreResetAllResponse++; |
380 if (buildCounterPlayerScoreResetAllResponse < 3) { | 380 if (buildCounterPlayerScoreResetAllResponse < 3) { |
381 o.kind = "foo"; | 381 o.kind = "foo"; |
382 o.results = buildUnnamed722(); | 382 o.results = buildUnnamed1770(); |
383 } | 383 } |
384 buildCounterPlayerScoreResetAllResponse--; | 384 buildCounterPlayerScoreResetAllResponse--; |
385 return o; | 385 return o; |
386 } | 386 } |
387 | 387 |
388 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { | 388 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { |
389 buildCounterPlayerScoreResetAllResponse++; | 389 buildCounterPlayerScoreResetAllResponse++; |
390 if (buildCounterPlayerScoreResetAllResponse < 3) { | 390 if (buildCounterPlayerScoreResetAllResponse < 3) { |
391 unittest.expect(o.kind, unittest.equals('foo')); | 391 unittest.expect(o.kind, unittest.equals('foo')); |
392 checkUnnamed722(o.results); | 392 checkUnnamed1770(o.results); |
393 } | 393 } |
394 buildCounterPlayerScoreResetAllResponse--; | 394 buildCounterPlayerScoreResetAllResponse--; |
395 } | 395 } |
396 | 396 |
397 buildUnnamed723() { | 397 buildUnnamed1771() { |
398 var o = new core.List<core.String>(); | 398 var o = new core.List<core.String>(); |
399 o.add("foo"); | 399 o.add("foo"); |
400 o.add("foo"); | 400 o.add("foo"); |
401 return o; | 401 return o; |
402 } | 402 } |
403 | 403 |
404 checkUnnamed723(core.List<core.String> o) { | 404 checkUnnamed1771(core.List<core.String> o) { |
405 unittest.expect(o, unittest.hasLength(2)); | 405 unittest.expect(o, unittest.hasLength(2)); |
406 unittest.expect(o[0], unittest.equals('foo')); | 406 unittest.expect(o[0], unittest.equals('foo')); |
407 unittest.expect(o[1], unittest.equals('foo')); | 407 unittest.expect(o[1], unittest.equals('foo')); |
408 } | 408 } |
409 | 409 |
410 core.int buildCounterPlayerScoreResetResponse = 0; | 410 core.int buildCounterPlayerScoreResetResponse = 0; |
411 buildPlayerScoreResetResponse() { | 411 buildPlayerScoreResetResponse() { |
412 var o = new api.PlayerScoreResetResponse(); | 412 var o = new api.PlayerScoreResetResponse(); |
413 buildCounterPlayerScoreResetResponse++; | 413 buildCounterPlayerScoreResetResponse++; |
414 if (buildCounterPlayerScoreResetResponse < 3) { | 414 if (buildCounterPlayerScoreResetResponse < 3) { |
415 o.definitionId = "foo"; | 415 o.definitionId = "foo"; |
416 o.kind = "foo"; | 416 o.kind = "foo"; |
417 o.resetScoreTimeSpans = buildUnnamed723(); | 417 o.resetScoreTimeSpans = buildUnnamed1771(); |
418 } | 418 } |
419 buildCounterPlayerScoreResetResponse--; | 419 buildCounterPlayerScoreResetResponse--; |
420 return o; | 420 return o; |
421 } | 421 } |
422 | 422 |
423 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { | 423 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { |
424 buildCounterPlayerScoreResetResponse++; | 424 buildCounterPlayerScoreResetResponse++; |
425 if (buildCounterPlayerScoreResetResponse < 3) { | 425 if (buildCounterPlayerScoreResetResponse < 3) { |
426 unittest.expect(o.definitionId, unittest.equals('foo')); | 426 unittest.expect(o.definitionId, unittest.equals('foo')); |
427 unittest.expect(o.kind, unittest.equals('foo')); | 427 unittest.expect(o.kind, unittest.equals('foo')); |
428 checkUnnamed723(o.resetScoreTimeSpans); | 428 checkUnnamed1771(o.resetScoreTimeSpans); |
429 } | 429 } |
430 buildCounterPlayerScoreResetResponse--; | 430 buildCounterPlayerScoreResetResponse--; |
431 } | 431 } |
432 | 432 |
433 buildUnnamed724() { | 433 buildUnnamed1772() { |
434 var o = new core.List<core.String>(); | 434 var o = new core.List<core.String>(); |
435 o.add("foo"); | 435 o.add("foo"); |
436 o.add("foo"); | 436 o.add("foo"); |
437 return o; | 437 return o; |
438 } | 438 } |
439 | 439 |
440 checkUnnamed724(core.List<core.String> o) { | 440 checkUnnamed1772(core.List<core.String> o) { |
441 unittest.expect(o, unittest.hasLength(2)); | 441 unittest.expect(o, unittest.hasLength(2)); |
442 unittest.expect(o[0], unittest.equals('foo')); | 442 unittest.expect(o[0], unittest.equals('foo')); |
443 unittest.expect(o[1], unittest.equals('foo')); | 443 unittest.expect(o[1], unittest.equals('foo')); |
444 } | 444 } |
445 | 445 |
446 core.int buildCounterQuestsResetMultipleForAllRequest = 0; | 446 core.int buildCounterQuestsResetMultipleForAllRequest = 0; |
447 buildQuestsResetMultipleForAllRequest() { | 447 buildQuestsResetMultipleForAllRequest() { |
448 var o = new api.QuestsResetMultipleForAllRequest(); | 448 var o = new api.QuestsResetMultipleForAllRequest(); |
449 buildCounterQuestsResetMultipleForAllRequest++; | 449 buildCounterQuestsResetMultipleForAllRequest++; |
450 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 450 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
451 o.kind = "foo"; | 451 o.kind = "foo"; |
452 o.questIds = buildUnnamed724(); | 452 o.questIds = buildUnnamed1772(); |
453 } | 453 } |
454 buildCounterQuestsResetMultipleForAllRequest--; | 454 buildCounterQuestsResetMultipleForAllRequest--; |
455 return o; | 455 return o; |
456 } | 456 } |
457 | 457 |
458 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { | 458 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { |
459 buildCounterQuestsResetMultipleForAllRequest++; | 459 buildCounterQuestsResetMultipleForAllRequest++; |
460 if (buildCounterQuestsResetMultipleForAllRequest < 3) { | 460 if (buildCounterQuestsResetMultipleForAllRequest < 3) { |
461 unittest.expect(o.kind, unittest.equals('foo')); | 461 unittest.expect(o.kind, unittest.equals('foo')); |
462 checkUnnamed724(o.questIds); | 462 checkUnnamed1772(o.questIds); |
463 } | 463 } |
464 buildCounterQuestsResetMultipleForAllRequest--; | 464 buildCounterQuestsResetMultipleForAllRequest--; |
465 } | 465 } |
466 | 466 |
467 buildUnnamed725() { | 467 buildUnnamed1773() { |
468 var o = new core.List<core.String>(); | 468 var o = new core.List<core.String>(); |
469 o.add("foo"); | 469 o.add("foo"); |
470 o.add("foo"); | 470 o.add("foo"); |
471 return o; | 471 return o; |
472 } | 472 } |
473 | 473 |
474 checkUnnamed725(core.List<core.String> o) { | 474 checkUnnamed1773(core.List<core.String> o) { |
475 unittest.expect(o, unittest.hasLength(2)); | 475 unittest.expect(o, unittest.hasLength(2)); |
476 unittest.expect(o[0], unittest.equals('foo')); | 476 unittest.expect(o[0], unittest.equals('foo')); |
477 unittest.expect(o[1], unittest.equals('foo')); | 477 unittest.expect(o[1], unittest.equals('foo')); |
478 } | 478 } |
479 | 479 |
480 core.int buildCounterScoresResetMultipleForAllRequest = 0; | 480 core.int buildCounterScoresResetMultipleForAllRequest = 0; |
481 buildScoresResetMultipleForAllRequest() { | 481 buildScoresResetMultipleForAllRequest() { |
482 var o = new api.ScoresResetMultipleForAllRequest(); | 482 var o = new api.ScoresResetMultipleForAllRequest(); |
483 buildCounterScoresResetMultipleForAllRequest++; | 483 buildCounterScoresResetMultipleForAllRequest++; |
484 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 484 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
485 o.kind = "foo"; | 485 o.kind = "foo"; |
486 o.leaderboardIds = buildUnnamed725(); | 486 o.leaderboardIds = buildUnnamed1773(); |
487 } | 487 } |
488 buildCounterScoresResetMultipleForAllRequest--; | 488 buildCounterScoresResetMultipleForAllRequest--; |
489 return o; | 489 return o; |
490 } | 490 } |
491 | 491 |
492 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { | 492 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { |
493 buildCounterScoresResetMultipleForAllRequest++; | 493 buildCounterScoresResetMultipleForAllRequest++; |
494 if (buildCounterScoresResetMultipleForAllRequest < 3) { | 494 if (buildCounterScoresResetMultipleForAllRequest < 3) { |
495 unittest.expect(o.kind, unittest.equals('foo')); | 495 unittest.expect(o.kind, unittest.equals('foo')); |
496 checkUnnamed725(o.leaderboardIds); | 496 checkUnnamed1773(o.leaderboardIds); |
497 } | 497 } |
498 buildCounterScoresResetMultipleForAllRequest--; | 498 buildCounterScoresResetMultipleForAllRequest--; |
499 } | 499 } |
500 | 500 |
501 | 501 |
502 main() { | 502 main() { |
503 unittest.group("obj-schema-AchievementResetAllResponse", () { | 503 unittest.group("obj-schema-AchievementResetAllResponse", () { |
504 unittest.test("to-json--from-json", () { | 504 unittest.test("to-json--from-json", () { |
505 var o = buildAchievementResetAllResponse(); | 505 var o = buildAchievementResetAllResponse(); |
506 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); | 506 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1949 return new async.Future.value(stringResponse(200, h, resp)); | 1949 return new async.Future.value(stringResponse(200, h, resp)); |
1950 }), true); | 1950 }), true); |
1951 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); | 1951 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); |
1952 }); | 1952 }); |
1953 | 1953 |
1954 }); | 1954 }); |
1955 | 1955 |
1956 | 1956 |
1957 } | 1957 } |
1958 | 1958 |
OLD | NEW |