| OLD | NEW |
| 1 library googleapis.appstate.v1.test; | 1 library googleapis.appstate.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 buildCounterGetResponse++; | 69 buildCounterGetResponse++; |
| 70 if (buildCounterGetResponse < 3) { | 70 if (buildCounterGetResponse < 3) { |
| 71 unittest.expect(o.currentStateVersion, unittest.equals('foo')); | 71 unittest.expect(o.currentStateVersion, unittest.equals('foo')); |
| 72 unittest.expect(o.data, unittest.equals('foo')); | 72 unittest.expect(o.data, unittest.equals('foo')); |
| 73 unittest.expect(o.kind, unittest.equals('foo')); | 73 unittest.expect(o.kind, unittest.equals('foo')); |
| 74 unittest.expect(o.stateKey, unittest.equals(42)); | 74 unittest.expect(o.stateKey, unittest.equals(42)); |
| 75 } | 75 } |
| 76 buildCounterGetResponse--; | 76 buildCounterGetResponse--; |
| 77 } | 77 } |
| 78 | 78 |
| 79 buildUnnamed2778() { | 79 buildUnnamed2872() { |
| 80 var o = new core.List<api.GetResponse>(); | 80 var o = new core.List<api.GetResponse>(); |
| 81 o.add(buildGetResponse()); | 81 o.add(buildGetResponse()); |
| 82 o.add(buildGetResponse()); | 82 o.add(buildGetResponse()); |
| 83 return o; | 83 return o; |
| 84 } | 84 } |
| 85 | 85 |
| 86 checkUnnamed2778(core.List<api.GetResponse> o) { | 86 checkUnnamed2872(core.List<api.GetResponse> o) { |
| 87 unittest.expect(o, unittest.hasLength(2)); | 87 unittest.expect(o, unittest.hasLength(2)); |
| 88 checkGetResponse(o[0]); | 88 checkGetResponse(o[0]); |
| 89 checkGetResponse(o[1]); | 89 checkGetResponse(o[1]); |
| 90 } | 90 } |
| 91 | 91 |
| 92 core.int buildCounterListResponse = 0; | 92 core.int buildCounterListResponse = 0; |
| 93 buildListResponse() { | 93 buildListResponse() { |
| 94 var o = new api.ListResponse(); | 94 var o = new api.ListResponse(); |
| 95 buildCounterListResponse++; | 95 buildCounterListResponse++; |
| 96 if (buildCounterListResponse < 3) { | 96 if (buildCounterListResponse < 3) { |
| 97 o.items = buildUnnamed2778(); | 97 o.items = buildUnnamed2872(); |
| 98 o.kind = "foo"; | 98 o.kind = "foo"; |
| 99 o.maximumKeyCount = 42; | 99 o.maximumKeyCount = 42; |
| 100 } | 100 } |
| 101 buildCounterListResponse--; | 101 buildCounterListResponse--; |
| 102 return o; | 102 return o; |
| 103 } | 103 } |
| 104 | 104 |
| 105 checkListResponse(api.ListResponse o) { | 105 checkListResponse(api.ListResponse o) { |
| 106 buildCounterListResponse++; | 106 buildCounterListResponse++; |
| 107 if (buildCounterListResponse < 3) { | 107 if (buildCounterListResponse < 3) { |
| 108 checkUnnamed2778(o.items); | 108 checkUnnamed2872(o.items); |
| 109 unittest.expect(o.kind, unittest.equals('foo')); | 109 unittest.expect(o.kind, unittest.equals('foo')); |
| 110 unittest.expect(o.maximumKeyCount, unittest.equals(42)); | 110 unittest.expect(o.maximumKeyCount, unittest.equals(42)); |
| 111 } | 111 } |
| 112 buildCounterListResponse--; | 112 buildCounterListResponse--; |
| 113 } | 113 } |
| 114 | 114 |
| 115 core.int buildCounterUpdateRequest = 0; | 115 core.int buildCounterUpdateRequest = 0; |
| 116 buildUpdateRequest() { | 116 buildUpdateRequest() { |
| 117 var o = new api.UpdateRequest(); | 117 var o = new api.UpdateRequest(); |
| 118 buildCounterUpdateRequest++; | 118 buildCounterUpdateRequest++; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStat
eVersion).then(unittest.expectAsync(((api.WriteResult response) { | 446 res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStat
eVersion).then(unittest.expectAsync(((api.WriteResult response) { |
| 447 checkWriteResult(response); | 447 checkWriteResult(response); |
| 448 }))); | 448 }))); |
| 449 }); | 449 }); |
| 450 | 450 |
| 451 }); | 451 }); |
| 452 | 452 |
| 453 | 453 |
| 454 } | 454 } |
| 455 | 455 |
| OLD | NEW |