| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 resetDevice() { | 7 function resetDevice() { |
| 8 usb.findDevices({vendorId: 0, productId: 0}, function(devices) { | 8 usb.findDevices({vendorId: 0, productId: 0}, function(devices) { |
| 9 usb.resetDevice(devices[0], function(result) { | 9 usb.resetDevice(devices[0], function(result) { |
| 10 chrome.test.assertEq(result, true); | 10 chrome.test.assertEq(result, true); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ); | 26 ); |
| 27 chrome.test.succeed(); | 27 chrome.test.succeed(); |
| 28 }); | 28 }); |
| 29 }); | 29 }); |
| 30 }); | 30 }); |
| 31 }); | 31 }); |
| 32 }); | 32 }); |
| 33 } | 33 } |
| 34 | 34 |
| 35 chrome.test.runTests([resetDevice]); | 35 chrome.test.runTests([resetDevice]); |
| OLD | NEW |