refactor the list command

This commit is contained in:
Devon Carew
2016-01-27 14:03:41 -08:00
parent f0a62d6453
commit 7ac4e6248f
6 changed files with 212 additions and 146 deletions

View File

@@ -0,0 +1,19 @@
// 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.
import 'package:flutter_tools/src/device.dart';
import 'package:test/test.dart';
main() => defineTests();
defineTests() {
group('DeviceManager', () {
test('getDevices', () async {
// Test that DeviceManager.getDevices() doesn't throw.
DeviceManager deviceManager = new DeviceManager();
List<Device> devices = await deviceManager.getDevices();
expect(devices, isList);
});
});
}