Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: extensions/test/data/api_test/usb/list_interfaces/test.js

Issue 826283002: Add support for sending a USB SET_CONFIGURATION request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/common/api/usb.idl ('k') | extensions/test/data/api_test/usb/reset_device/test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 var tests = [ 7 var tests = [
8 function listInterfaces() { 8 function listInterfaces() {
9 usb.findDevices({vendorId: 0, productId: 0}, function (devices) { 9 usb.findDevices({vendorId: 0, productId: 0}, function (devices) {
10 var device = devices[0]; 10 var device = devices[0];
11 usb.listInterfaces(device, function (result) { 11 usb.listInterfaces(device, function (result) {
12 chrome.test.assertNoLastError();
12 chrome.test.succeed(); 13 chrome.test.succeed();
13 }); 14 });
14 }); 15 });
15 } 16 }
16 ]; 17 ];
17 18
18 chrome.test.runTests(tests); 19 chrome.test.runTests(tests);
OLDNEW
« no previous file with comments | « extensions/common/api/usb.idl ('k') | extensions/test/data/api_test/usb/reset_device/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698