| OLD | NEW |
| 1 library googleapis.reseller.v1.test; | 1 library googleapis.reseller.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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 checkSeats(o.seats); | 275 checkSeats(o.seats); |
| 276 unittest.expect(o.skuId, unittest.equals('foo')); | 276 unittest.expect(o.skuId, unittest.equals('foo')); |
| 277 unittest.expect(o.status, unittest.equals('foo')); | 277 unittest.expect(o.status, unittest.equals('foo')); |
| 278 unittest.expect(o.subscriptionId, unittest.equals('foo')); | 278 unittest.expect(o.subscriptionId, unittest.equals('foo')); |
| 279 checkSubscriptionTransferInfo(o.transferInfo); | 279 checkSubscriptionTransferInfo(o.transferInfo); |
| 280 checkSubscriptionTrialSettings(o.trialSettings); | 280 checkSubscriptionTrialSettings(o.trialSettings); |
| 281 } | 281 } |
| 282 buildCounterSubscription--; | 282 buildCounterSubscription--; |
| 283 } | 283 } |
| 284 | 284 |
| 285 buildUnnamed960() { | 285 buildUnnamed655() { |
| 286 var o = new core.List<api.Subscription>(); | 286 var o = new core.List<api.Subscription>(); |
| 287 o.add(buildSubscription()); | 287 o.add(buildSubscription()); |
| 288 o.add(buildSubscription()); | 288 o.add(buildSubscription()); |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkUnnamed960(core.List<api.Subscription> o) { | 292 checkUnnamed655(core.List<api.Subscription> o) { |
| 293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
| 294 checkSubscription(o[0]); | 294 checkSubscription(o[0]); |
| 295 checkSubscription(o[1]); | 295 checkSubscription(o[1]); |
| 296 } | 296 } |
| 297 | 297 |
| 298 core.int buildCounterSubscriptions = 0; | 298 core.int buildCounterSubscriptions = 0; |
| 299 buildSubscriptions() { | 299 buildSubscriptions() { |
| 300 var o = new api.Subscriptions(); | 300 var o = new api.Subscriptions(); |
| 301 buildCounterSubscriptions++; | 301 buildCounterSubscriptions++; |
| 302 if (buildCounterSubscriptions < 3) { | 302 if (buildCounterSubscriptions < 3) { |
| 303 o.kind = "foo"; | 303 o.kind = "foo"; |
| 304 o.nextPageToken = "foo"; | 304 o.nextPageToken = "foo"; |
| 305 o.subscriptions = buildUnnamed960(); | 305 o.subscriptions = buildUnnamed655(); |
| 306 } | 306 } |
| 307 buildCounterSubscriptions--; | 307 buildCounterSubscriptions--; |
| 308 return o; | 308 return o; |
| 309 } | 309 } |
| 310 | 310 |
| 311 checkSubscriptions(api.Subscriptions o) { | 311 checkSubscriptions(api.Subscriptions o) { |
| 312 buildCounterSubscriptions++; | 312 buildCounterSubscriptions++; |
| 313 if (buildCounterSubscriptions < 3) { | 313 if (buildCounterSubscriptions < 3) { |
| 314 unittest.expect(o.kind, unittest.equals('foo')); | 314 unittest.expect(o.kind, unittest.equals('foo')); |
| 315 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 315 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 316 checkUnnamed960(o.subscriptions); | 316 checkUnnamed655(o.subscriptions); |
| 317 } | 317 } |
| 318 buildCounterSubscriptions--; | 318 buildCounterSubscriptions--; |
| 319 } | 319 } |
| 320 | 320 |
| 321 | 321 |
| 322 main() { | 322 main() { |
| 323 unittest.group("obj-schema-Address", () { | 323 unittest.group("obj-schema-Address", () { |
| 324 unittest.test("to-json--from-json", () { | 324 unittest.test("to-json--from-json", () { |
| 325 var o = buildAddress(); | 325 var o = buildAddress(); |
| 326 var od = new api.Address.fromJson(o.toJson()); | 326 var od = new api.Address.fromJson(o.toJson()); |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.exp
ectAsync(((api.Subscription response) { | 1112 res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.exp
ectAsync(((api.Subscription response) { |
| 1113 checkSubscription(response); | 1113 checkSubscription(response); |
| 1114 }))); | 1114 }))); |
| 1115 }); | 1115 }); |
| 1116 | 1116 |
| 1117 }); | 1117 }); |
| 1118 | 1118 |
| 1119 | 1119 |
| 1120 } | 1120 } |
| 1121 | 1121 |
| OLD | NEW |