Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: generated/googleapis/test/gamesmanagement/v1management_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 buildUnnamed744() { 54 buildUnnamed1003() {
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 checkUnnamed744(core.List<api.AchievementResetResponse> o) { 61 checkUnnamed1003(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 = buildUnnamed744(); 73 o.results = buildUnnamed1003();
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 checkUnnamed744(o.results); 83 checkUnnamed1003(o.results);
84 } 84 }
85 buildCounterAchievementResetAllResponse--; 85 buildCounterAchievementResetAllResponse--;
86 } 86 }
87 87
88 buildUnnamed745() { 88 buildUnnamed1004() {
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 checkUnnamed745(core.List<core.String> o) { 95 checkUnnamed1004(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 = buildUnnamed745(); 106 o.achievementIds = buildUnnamed1004();
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 checkUnnamed745(o.achievementIds); 116 checkUnnamed1004(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
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 buildUnnamed746() { 147 buildUnnamed1005() {
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 checkUnnamed746(core.List<core.String> o) { 154 checkUnnamed1005(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 = buildUnnamed746(); 165 o.eventIds = buildUnnamed1005();
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 checkUnnamed746(o.eventIds); 175 checkUnnamed1005(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
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 buildUnnamed747() { 273 buildUnnamed1006() {
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 checkUnnamed747(core.List<api.HiddenPlayer> o) { 280 checkUnnamed1006(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 = buildUnnamed747(); 291 o.items = buildUnnamed1006();
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 checkUnnamed747(o.items); 302 checkUnnamed1006(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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 unittest.expect(o.kind, unittest.equals('foo')); 359 unittest.expect(o.kind, unittest.equals('foo'));
360 checkGamesPlayedResource(o.lastPlayedWith); 360 checkGamesPlayedResource(o.lastPlayedWith);
361 checkPlayerName(o.name); 361 checkPlayerName(o.name);
362 unittest.expect(o.originalPlayerId, unittest.equals('foo')); 362 unittest.expect(o.originalPlayerId, unittest.equals('foo'));
363 unittest.expect(o.playerId, unittest.equals('foo')); 363 unittest.expect(o.playerId, unittest.equals('foo'));
364 unittest.expect(o.title, unittest.equals('foo')); 364 unittest.expect(o.title, unittest.equals('foo'));
365 } 365 }
366 buildCounterPlayer--; 366 buildCounterPlayer--;
367 } 367 }
368 368
369 buildUnnamed748() { 369 buildUnnamed1007() {
370 var o = new core.List<api.PlayerScoreResetResponse>(); 370 var o = new core.List<api.PlayerScoreResetResponse>();
371 o.add(buildPlayerScoreResetResponse()); 371 o.add(buildPlayerScoreResetResponse());
372 o.add(buildPlayerScoreResetResponse()); 372 o.add(buildPlayerScoreResetResponse());
373 return o; 373 return o;
374 } 374 }
375 375
376 checkUnnamed748(core.List<api.PlayerScoreResetResponse> o) { 376 checkUnnamed1007(core.List<api.PlayerScoreResetResponse> o) {
377 unittest.expect(o, unittest.hasLength(2)); 377 unittest.expect(o, unittest.hasLength(2));
378 checkPlayerScoreResetResponse(o[0]); 378 checkPlayerScoreResetResponse(o[0]);
379 checkPlayerScoreResetResponse(o[1]); 379 checkPlayerScoreResetResponse(o[1]);
380 } 380 }
381 381
382 core.int buildCounterPlayerScoreResetAllResponse = 0; 382 core.int buildCounterPlayerScoreResetAllResponse = 0;
383 buildPlayerScoreResetAllResponse() { 383 buildPlayerScoreResetAllResponse() {
384 var o = new api.PlayerScoreResetAllResponse(); 384 var o = new api.PlayerScoreResetAllResponse();
385 buildCounterPlayerScoreResetAllResponse++; 385 buildCounterPlayerScoreResetAllResponse++;
386 if (buildCounterPlayerScoreResetAllResponse < 3) { 386 if (buildCounterPlayerScoreResetAllResponse < 3) {
387 o.kind = "foo"; 387 o.kind = "foo";
388 o.results = buildUnnamed748(); 388 o.results = buildUnnamed1007();
389 } 389 }
390 buildCounterPlayerScoreResetAllResponse--; 390 buildCounterPlayerScoreResetAllResponse--;
391 return o; 391 return o;
392 } 392 }
393 393
394 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) { 394 checkPlayerScoreResetAllResponse(api.PlayerScoreResetAllResponse o) {
395 buildCounterPlayerScoreResetAllResponse++; 395 buildCounterPlayerScoreResetAllResponse++;
396 if (buildCounterPlayerScoreResetAllResponse < 3) { 396 if (buildCounterPlayerScoreResetAllResponse < 3) {
397 unittest.expect(o.kind, unittest.equals('foo')); 397 unittest.expect(o.kind, unittest.equals('foo'));
398 checkUnnamed748(o.results); 398 checkUnnamed1007(o.results);
399 } 399 }
400 buildCounterPlayerScoreResetAllResponse--; 400 buildCounterPlayerScoreResetAllResponse--;
401 } 401 }
402 402
403 buildUnnamed749() { 403 buildUnnamed1008() {
404 var o = new core.List<core.String>(); 404 var o = new core.List<core.String>();
405 o.add("foo"); 405 o.add("foo");
406 o.add("foo"); 406 o.add("foo");
407 return o; 407 return o;
408 } 408 }
409 409
410 checkUnnamed749(core.List<core.String> o) { 410 checkUnnamed1008(core.List<core.String> o) {
411 unittest.expect(o, unittest.hasLength(2)); 411 unittest.expect(o, unittest.hasLength(2));
412 unittest.expect(o[0], unittest.equals('foo')); 412 unittest.expect(o[0], unittest.equals('foo'));
413 unittest.expect(o[1], unittest.equals('foo')); 413 unittest.expect(o[1], unittest.equals('foo'));
414 } 414 }
415 415
416 core.int buildCounterPlayerScoreResetResponse = 0; 416 core.int buildCounterPlayerScoreResetResponse = 0;
417 buildPlayerScoreResetResponse() { 417 buildPlayerScoreResetResponse() {
418 var o = new api.PlayerScoreResetResponse(); 418 var o = new api.PlayerScoreResetResponse();
419 buildCounterPlayerScoreResetResponse++; 419 buildCounterPlayerScoreResetResponse++;
420 if (buildCounterPlayerScoreResetResponse < 3) { 420 if (buildCounterPlayerScoreResetResponse < 3) {
421 o.definitionId = "foo"; 421 o.definitionId = "foo";
422 o.kind = "foo"; 422 o.kind = "foo";
423 o.resetScoreTimeSpans = buildUnnamed749(); 423 o.resetScoreTimeSpans = buildUnnamed1008();
424 } 424 }
425 buildCounterPlayerScoreResetResponse--; 425 buildCounterPlayerScoreResetResponse--;
426 return o; 426 return o;
427 } 427 }
428 428
429 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) { 429 checkPlayerScoreResetResponse(api.PlayerScoreResetResponse o) {
430 buildCounterPlayerScoreResetResponse++; 430 buildCounterPlayerScoreResetResponse++;
431 if (buildCounterPlayerScoreResetResponse < 3) { 431 if (buildCounterPlayerScoreResetResponse < 3) {
432 unittest.expect(o.definitionId, unittest.equals('foo')); 432 unittest.expect(o.definitionId, unittest.equals('foo'));
433 unittest.expect(o.kind, unittest.equals('foo')); 433 unittest.expect(o.kind, unittest.equals('foo'));
434 checkUnnamed749(o.resetScoreTimeSpans); 434 checkUnnamed1008(o.resetScoreTimeSpans);
435 } 435 }
436 buildCounterPlayerScoreResetResponse--; 436 buildCounterPlayerScoreResetResponse--;
437 } 437 }
438 438
439 buildUnnamed750() { 439 buildUnnamed1009() {
440 var o = new core.List<core.String>(); 440 var o = new core.List<core.String>();
441 o.add("foo"); 441 o.add("foo");
442 o.add("foo"); 442 o.add("foo");
443 return o; 443 return o;
444 } 444 }
445 445
446 checkUnnamed750(core.List<core.String> o) { 446 checkUnnamed1009(core.List<core.String> o) {
447 unittest.expect(o, unittest.hasLength(2)); 447 unittest.expect(o, unittest.hasLength(2));
448 unittest.expect(o[0], unittest.equals('foo')); 448 unittest.expect(o[0], unittest.equals('foo'));
449 unittest.expect(o[1], unittest.equals('foo')); 449 unittest.expect(o[1], unittest.equals('foo'));
450 } 450 }
451 451
452 core.int buildCounterQuestsResetMultipleForAllRequest = 0; 452 core.int buildCounterQuestsResetMultipleForAllRequest = 0;
453 buildQuestsResetMultipleForAllRequest() { 453 buildQuestsResetMultipleForAllRequest() {
454 var o = new api.QuestsResetMultipleForAllRequest(); 454 var o = new api.QuestsResetMultipleForAllRequest();
455 buildCounterQuestsResetMultipleForAllRequest++; 455 buildCounterQuestsResetMultipleForAllRequest++;
456 if (buildCounterQuestsResetMultipleForAllRequest < 3) { 456 if (buildCounterQuestsResetMultipleForAllRequest < 3) {
457 o.kind = "foo"; 457 o.kind = "foo";
458 o.questIds = buildUnnamed750(); 458 o.questIds = buildUnnamed1009();
459 } 459 }
460 buildCounterQuestsResetMultipleForAllRequest--; 460 buildCounterQuestsResetMultipleForAllRequest--;
461 return o; 461 return o;
462 } 462 }
463 463
464 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) { 464 checkQuestsResetMultipleForAllRequest(api.QuestsResetMultipleForAllRequest o) {
465 buildCounterQuestsResetMultipleForAllRequest++; 465 buildCounterQuestsResetMultipleForAllRequest++;
466 if (buildCounterQuestsResetMultipleForAllRequest < 3) { 466 if (buildCounterQuestsResetMultipleForAllRequest < 3) {
467 unittest.expect(o.kind, unittest.equals('foo')); 467 unittest.expect(o.kind, unittest.equals('foo'));
468 checkUnnamed750(o.questIds); 468 checkUnnamed1009(o.questIds);
469 } 469 }
470 buildCounterQuestsResetMultipleForAllRequest--; 470 buildCounterQuestsResetMultipleForAllRequest--;
471 } 471 }
472 472
473 buildUnnamed751() { 473 buildUnnamed1010() {
474 var o = new core.List<core.String>(); 474 var o = new core.List<core.String>();
475 o.add("foo"); 475 o.add("foo");
476 o.add("foo"); 476 o.add("foo");
477 return o; 477 return o;
478 } 478 }
479 479
480 checkUnnamed751(core.List<core.String> o) { 480 checkUnnamed1010(core.List<core.String> o) {
481 unittest.expect(o, unittest.hasLength(2)); 481 unittest.expect(o, unittest.hasLength(2));
482 unittest.expect(o[0], unittest.equals('foo')); 482 unittest.expect(o[0], unittest.equals('foo'));
483 unittest.expect(o[1], unittest.equals('foo')); 483 unittest.expect(o[1], unittest.equals('foo'));
484 } 484 }
485 485
486 core.int buildCounterScoresResetMultipleForAllRequest = 0; 486 core.int buildCounterScoresResetMultipleForAllRequest = 0;
487 buildScoresResetMultipleForAllRequest() { 487 buildScoresResetMultipleForAllRequest() {
488 var o = new api.ScoresResetMultipleForAllRequest(); 488 var o = new api.ScoresResetMultipleForAllRequest();
489 buildCounterScoresResetMultipleForAllRequest++; 489 buildCounterScoresResetMultipleForAllRequest++;
490 if (buildCounterScoresResetMultipleForAllRequest < 3) { 490 if (buildCounterScoresResetMultipleForAllRequest < 3) {
491 o.kind = "foo"; 491 o.kind = "foo";
492 o.leaderboardIds = buildUnnamed751(); 492 o.leaderboardIds = buildUnnamed1010();
493 } 493 }
494 buildCounterScoresResetMultipleForAllRequest--; 494 buildCounterScoresResetMultipleForAllRequest--;
495 return o; 495 return o;
496 } 496 }
497 497
498 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) { 498 checkScoresResetMultipleForAllRequest(api.ScoresResetMultipleForAllRequest o) {
499 buildCounterScoresResetMultipleForAllRequest++; 499 buildCounterScoresResetMultipleForAllRequest++;
500 if (buildCounterScoresResetMultipleForAllRequest < 3) { 500 if (buildCounterScoresResetMultipleForAllRequest < 3) {
501 unittest.expect(o.kind, unittest.equals('foo')); 501 unittest.expect(o.kind, unittest.equals('foo'));
502 checkUnnamed751(o.leaderboardIds); 502 checkUnnamed1010(o.leaderboardIds);
503 } 503 }
504 buildCounterScoresResetMultipleForAllRequest--; 504 buildCounterScoresResetMultipleForAllRequest--;
505 } 505 }
506 506
507 507
508 main() { 508 main() {
509 unittest.group("obj-schema-AchievementResetAllResponse", () { 509 unittest.group("obj-schema-AchievementResetAllResponse", () {
510 unittest.test("to-json--from-json", () { 510 unittest.test("to-json--from-json", () {
511 var o = buildAchievementResetAllResponse(); 511 var o = buildAchievementResetAllResponse();
512 var od = new api.AchievementResetAllResponse.fromJson(o.toJson()); 512 var od = new api.AchievementResetAllResponse.fromJson(o.toJson());
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 return new async.Future.value(stringResponse(200, h, resp)); 1955 return new async.Future.value(stringResponse(200, h, resp));
1956 }), true); 1956 }), true);
1957 res.resetForAllPlayers().then(unittest.expectAsync((_) {})); 1957 res.resetForAllPlayers().then(unittest.expectAsync((_) {}));
1958 }); 1958 });
1959 1959
1960 }); 1960 });
1961 1961
1962 1962
1963 } 1963 }
1964 1964
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698