2016-01-28 06:38:57 +00:00
|
|
|
// Copyright 2016 The Chromium Authors. All rights reserved.
|
2016-01-27 22:03:41 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
import 'package:flutter_tools/src/device.dart';
|
|
|
|
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() {
|
2016-01-27 22:03:41 +00:00
|
|
|
group('DeviceManager', () {
|
2016-02-07 03:19:50 +00:00
|
|
|
testUsingContext('getDevices', () async {
|
2016-01-27 22:03:41 +00:00
|
|
|
// Test that DeviceManager.getDevices() doesn't throw.
|
|
|
|
DeviceManager deviceManager = new DeviceManager();
|
|
|
|
List<Device> devices = await deviceManager.getDevices();
|
|
|
|
expect(devices, isList);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|