| OLD | NEW |
| 1 library googleapis.androiddeviceprovisioning.v1.test; | 1 library googleapis.androiddeviceprovisioning.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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 | 211 |
| 212 core.int buildCounterDeviceIdentifier = 0; | 212 core.int buildCounterDeviceIdentifier = 0; |
| 213 buildDeviceIdentifier() { | 213 buildDeviceIdentifier() { |
| 214 var o = new api.DeviceIdentifier(); | 214 var o = new api.DeviceIdentifier(); |
| 215 buildCounterDeviceIdentifier++; | 215 buildCounterDeviceIdentifier++; |
| 216 if (buildCounterDeviceIdentifier < 3) { | 216 if (buildCounterDeviceIdentifier < 3) { |
| 217 o.imei = "foo"; | 217 o.imei = "foo"; |
| 218 o.manufacturer = "foo"; | 218 o.manufacturer = "foo"; |
| 219 o.meid = "foo"; | 219 o.meid = "foo"; |
| 220 o.model = "foo"; | |
| 221 o.serialNumber = "foo"; | 220 o.serialNumber = "foo"; |
| 222 } | 221 } |
| 223 buildCounterDeviceIdentifier--; | 222 buildCounterDeviceIdentifier--; |
| 224 return o; | 223 return o; |
| 225 } | 224 } |
| 226 | 225 |
| 227 checkDeviceIdentifier(api.DeviceIdentifier o) { | 226 checkDeviceIdentifier(api.DeviceIdentifier o) { |
| 228 buildCounterDeviceIdentifier++; | 227 buildCounterDeviceIdentifier++; |
| 229 if (buildCounterDeviceIdentifier < 3) { | 228 if (buildCounterDeviceIdentifier < 3) { |
| 230 unittest.expect(o.imei, unittest.equals('foo')); | 229 unittest.expect(o.imei, unittest.equals('foo')); |
| 231 unittest.expect(o.manufacturer, unittest.equals('foo')); | 230 unittest.expect(o.manufacturer, unittest.equals('foo')); |
| 232 unittest.expect(o.meid, unittest.equals('foo')); | 231 unittest.expect(o.meid, unittest.equals('foo')); |
| 233 unittest.expect(o.model, unittest.equals('foo')); | |
| 234 unittest.expect(o.serialNumber, unittest.equals('foo')); | 232 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 235 } | 233 } |
| 236 buildCounterDeviceIdentifier--; | 234 buildCounterDeviceIdentifier--; |
| 237 } | 235 } |
| 238 | 236 |
| 239 buildUnnamed56() { | 237 buildUnnamed56() { |
| 240 var o = new core.Map<core.String, core.String>(); | 238 var o = new core.Map<core.String, core.String>(); |
| 241 o["x"] = "foo"; | 239 o["x"] = "foo"; |
| 242 o["y"] = "foo"; | 240 o["y"] = "foo"; |
| 243 return o; | 241 return o; |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 res.updateMetadataAsync(arg_request, arg_partnerId).then(unittest.expectAs
ync1(((api.Operation response) { | 1610 res.updateMetadataAsync(arg_request, arg_partnerId).then(unittest.expectAs
ync1(((api.Operation response) { |
| 1613 checkOperation(response); | 1611 checkOperation(response); |
| 1614 }))); | 1612 }))); |
| 1615 }); | 1613 }); |
| 1616 | 1614 |
| 1617 }); | 1615 }); |
| 1618 | 1616 |
| 1619 | 1617 |
| 1620 } | 1618 } |
| 1621 | 1619 |
| OLD | NEW |