| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var usb = chrome.usb; | 5 var usb = chrome.usb; |
| 6 | 6 |
| 7 function getDevices() { | 7 function getDevices() { |
| 8 usb.getDevices({ | 8 usb.getDevices({ |
| 9 vendorId: 0, | 9 vendorId: 0, |
| 10 productId: 0 | 10 productId: 0 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 productId: 0 | 22 productId: 0 |
| 23 }, function(devices) { | 23 }, function(devices) { |
| 24 usb.closeDevice(devices[0]); | 24 usb.closeDevice(devices[0]); |
| 25 chrome.test.succeed(); | 25 chrome.test.succeed(); |
| 26 }); | 26 }); |
| 27 } | 27 } |
| 28 | 28 |
| 29 chrome.test.runTests([ | 29 chrome.test.runTests([ |
| 30 getDevices, explicitCloseDevice | 30 getDevices, explicitCloseDevice |
| 31 ]); | 31 ]); |
| OLD | NEW |