| OLD | NEW |
| 1 library googleapis.games.v1.test; | 1 library googleapis.games.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 unittest.expect(o.secondary, unittest.equals('foo')); | 495 unittest.expect(o.secondary, unittest.equals('foo')); |
| 496 } | 496 } |
| 497 buildCounterApplicationCategory--; | 497 buildCounterApplicationCategory--; |
| 498 } | 498 } |
| 499 | 499 |
| 500 core.int buildCounterApplicationVerifyResponse = 0; | 500 core.int buildCounterApplicationVerifyResponse = 0; |
| 501 buildApplicationVerifyResponse() { | 501 buildApplicationVerifyResponse() { |
| 502 var o = new api.ApplicationVerifyResponse(); | 502 var o = new api.ApplicationVerifyResponse(); |
| 503 buildCounterApplicationVerifyResponse++; | 503 buildCounterApplicationVerifyResponse++; |
| 504 if (buildCounterApplicationVerifyResponse < 3) { | 504 if (buildCounterApplicationVerifyResponse < 3) { |
| 505 o.alternatePlayerId = "foo"; |
| 505 o.kind = "foo"; | 506 o.kind = "foo"; |
| 506 o.playerId = "foo"; | 507 o.playerId = "foo"; |
| 507 } | 508 } |
| 508 buildCounterApplicationVerifyResponse--; | 509 buildCounterApplicationVerifyResponse--; |
| 509 return o; | 510 return o; |
| 510 } | 511 } |
| 511 | 512 |
| 512 checkApplicationVerifyResponse(api.ApplicationVerifyResponse o) { | 513 checkApplicationVerifyResponse(api.ApplicationVerifyResponse o) { |
| 513 buildCounterApplicationVerifyResponse++; | 514 buildCounterApplicationVerifyResponse++; |
| 514 if (buildCounterApplicationVerifyResponse < 3) { | 515 if (buildCounterApplicationVerifyResponse < 3) { |
| 516 unittest.expect(o.alternatePlayerId, unittest.equals('foo')); |
| 515 unittest.expect(o.kind, unittest.equals('foo')); | 517 unittest.expect(o.kind, unittest.equals('foo')); |
| 516 unittest.expect(o.playerId, unittest.equals('foo')); | 518 unittest.expect(o.playerId, unittest.equals('foo')); |
| 517 } | 519 } |
| 518 buildCounterApplicationVerifyResponse--; | 520 buildCounterApplicationVerifyResponse--; |
| 519 } | 521 } |
| 520 | 522 |
| 521 core.int buildCounterCategory = 0; | 523 core.int buildCounterCategory = 0; |
| 522 buildCategory() { | 524 buildCategory() { |
| 523 var o = new api.Category(); | 525 var o = new api.Category(); |
| 524 buildCounterCategory++; | 526 buildCounterCategory++; |
| (...skipping 6585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7110 res.takeTurn(arg_request, arg_matchId, language: arg_language).then(unitte
st.expectAsync(((api.TurnBasedMatch response) { | 7112 res.takeTurn(arg_request, arg_matchId, language: arg_language).then(unitte
st.expectAsync(((api.TurnBasedMatch response) { |
| 7111 checkTurnBasedMatch(response); | 7113 checkTurnBasedMatch(response); |
| 7112 }))); | 7114 }))); |
| 7113 }); | 7115 }); |
| 7114 | 7116 |
| 7115 }); | 7117 }); |
| 7116 | 7118 |
| 7117 | 7119 |
| 7118 } | 7120 } |
| 7119 | 7121 |
| OLD | NEW |