| OLD | NEW |
| 1 library googleapis.licensing.v1.test; | 1 library googleapis.licensing.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { | 98 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { |
| 99 buildCounterLicenseAssignmentInsert++; | 99 buildCounterLicenseAssignmentInsert++; |
| 100 if (buildCounterLicenseAssignmentInsert < 3) { | 100 if (buildCounterLicenseAssignmentInsert < 3) { |
| 101 unittest.expect(o.userId, unittest.equals('foo')); | 101 unittest.expect(o.userId, unittest.equals('foo')); |
| 102 } | 102 } |
| 103 buildCounterLicenseAssignmentInsert--; | 103 buildCounterLicenseAssignmentInsert--; |
| 104 } | 104 } |
| 105 | 105 |
| 106 buildUnnamed2086() { | 106 buildUnnamed2104() { |
| 107 var o = new core.List<api.LicenseAssignment>(); | 107 var o = new core.List<api.LicenseAssignment>(); |
| 108 o.add(buildLicenseAssignment()); | 108 o.add(buildLicenseAssignment()); |
| 109 o.add(buildLicenseAssignment()); | 109 o.add(buildLicenseAssignment()); |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkUnnamed2086(core.List<api.LicenseAssignment> o) { | 113 checkUnnamed2104(core.List<api.LicenseAssignment> o) { |
| 114 unittest.expect(o, unittest.hasLength(2)); | 114 unittest.expect(o, unittest.hasLength(2)); |
| 115 checkLicenseAssignment(o[0]); | 115 checkLicenseAssignment(o[0]); |
| 116 checkLicenseAssignment(o[1]); | 116 checkLicenseAssignment(o[1]); |
| 117 } | 117 } |
| 118 | 118 |
| 119 core.int buildCounterLicenseAssignmentList = 0; | 119 core.int buildCounterLicenseAssignmentList = 0; |
| 120 buildLicenseAssignmentList() { | 120 buildLicenseAssignmentList() { |
| 121 var o = new api.LicenseAssignmentList(); | 121 var o = new api.LicenseAssignmentList(); |
| 122 buildCounterLicenseAssignmentList++; | 122 buildCounterLicenseAssignmentList++; |
| 123 if (buildCounterLicenseAssignmentList < 3) { | 123 if (buildCounterLicenseAssignmentList < 3) { |
| 124 o.etag = "foo"; | 124 o.etag = "foo"; |
| 125 o.items = buildUnnamed2086(); | 125 o.items = buildUnnamed2104(); |
| 126 o.kind = "foo"; | 126 o.kind = "foo"; |
| 127 o.nextPageToken = "foo"; | 127 o.nextPageToken = "foo"; |
| 128 } | 128 } |
| 129 buildCounterLicenseAssignmentList--; | 129 buildCounterLicenseAssignmentList--; |
| 130 return o; | 130 return o; |
| 131 } | 131 } |
| 132 | 132 |
| 133 checkLicenseAssignmentList(api.LicenseAssignmentList o) { | 133 checkLicenseAssignmentList(api.LicenseAssignmentList o) { |
| 134 buildCounterLicenseAssignmentList++; | 134 buildCounterLicenseAssignmentList++; |
| 135 if (buildCounterLicenseAssignmentList < 3) { | 135 if (buildCounterLicenseAssignmentList < 3) { |
| 136 unittest.expect(o.etag, unittest.equals('foo')); | 136 unittest.expect(o.etag, unittest.equals('foo')); |
| 137 checkUnnamed2086(o.items); | 137 checkUnnamed2104(o.items); |
| 138 unittest.expect(o.kind, unittest.equals('foo')); | 138 unittest.expect(o.kind, unittest.equals('foo')); |
| 139 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 139 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 140 } | 140 } |
| 141 buildCounterLicenseAssignmentList--; | 141 buildCounterLicenseAssignmentList--; |
| 142 } | 142 } |
| 143 | 143 |
| 144 | 144 |
| 145 main() { | 145 main() { |
| 146 unittest.group("obj-schema-LicenseAssignment", () { | 146 unittest.group("obj-schema-LicenseAssignment", () { |
| 147 unittest.test("to-json--from-json", () { | 147 unittest.test("to-json--from-json", () { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync1(((api.LicenseAssignment response) { | 495 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync1(((api.LicenseAssignment response) { |
| 496 checkLicenseAssignment(response); | 496 checkLicenseAssignment(response); |
| 497 }))); | 497 }))); |
| 498 }); | 498 }); |
| 499 | 499 |
| 500 }); | 500 }); |
| 501 | 501 |
| 502 | 502 |
| 503 } | 503 } |
| 504 | 504 |
| OLD | NEW |