1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 function getDevices() {
11 }, function(devices
) {
12 usb
.openDevice(devices
[0], function(handle
) {
13 usb
.closeDevice(handle
);
14 chrome
.test
.succeed();
19 function explicitCloseDevice() {
23 }, function(devices
) {
24 usb
.closeDevice(devices
[0]);
25 chrome
.test
.succeed();
29 chrome
.test
.runTests([
30 getDevices
, explicitCloseDevice