2015-09-22 22:17:11 +00:00
|
|
|
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2016-02-21 06:00:11 +00:00
|
|
|
import 'package:flutter_tools/src/android/android_device.dart';
|
2015-09-22 22:17:11 +00:00
|
|
|
import 'package:test/test.dart';
|
|
|
|
|
2016-02-13 20:00:41 +00:00
|
|
|
import 'src/context.dart';
|
2016-02-07 03:19:50 +00:00
|
|
|
|
2016-03-10 01:43:14 +00:00
|
|
|
void main() {
|
2015-09-22 22:17:11 +00:00
|
|
|
group('android_device', () {
|
2016-02-07 03:19:50 +00:00
|
|
|
testUsingContext('stores the requested id', () {
|
2015-10-12 02:42:50 +00:00
|
|
|
String deviceId = '1234';
|
2016-02-06 04:44:32 +00:00
|
|
|
AndroidDevice device = new AndroidDevice(deviceId);
|
|
|
|
expect(device.id, equals(deviceId));
|
2015-09-22 22:17:11 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|