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

Unified Diff: device/test/usb_test_gadget_impl.cc

Issue 436213005: usb_gadget: Switch to official Google product IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/usb_gadget/usb_constants.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/usb_test_gadget_impl.cc
diff --git a/device/test/usb_test_gadget_impl.cc b/device/test/usb_test_gadget_impl.cc
index 6667b25311d76d88bba95991c684f427809167c8..59a5faa686dfcad13929d1c499aa50304c945947 100644
--- a/device/test/usb_test_gadget_impl.cc
+++ b/device/test/usb_test_gadget_impl.cc
@@ -58,10 +58,10 @@ struct UsbTestGadgetConfiguration {
};
static const struct UsbTestGadgetConfiguration kConfigurations[] = {
- { UsbTestGadget::DEFAULT, "/unconfigure", 0x2000 },
- { UsbTestGadget::KEYBOARD, "/keyboard/configure", 0x2001 },
- { UsbTestGadget::MOUSE, "/mouse/configure", 0x2002 },
- { UsbTestGadget::HID_ECHO, "/hid_echo/configure", 0x2003 },
+ { UsbTestGadget::DEFAULT, "/unconfigure", 0x58F0 },
+ { UsbTestGadget::KEYBOARD, "/keyboard/configure", 0x58F1 },
+ { UsbTestGadget::MOUSE, "/mouse/configure", 0x58F2 },
+ { UsbTestGadget::HID_ECHO, "/hid_echo/configure", 0x58F3 },
};
class UsbTestGadgetImpl : public UsbTestGadget {
@@ -206,7 +206,7 @@ bool UsbTestGadgetImpl::FindUnclaimed() {
for (std::vector<scoped_refptr<UsbDevice> >::const_iterator iter =
devices.begin(); iter != devices.end(); ++iter) {
const scoped_refptr<UsbDevice> &device = *iter;
- if (device->vendor_id() == 0x18D1 && device->product_id() == 0x2000) {
+ if (device->vendor_id() == 0x18D1 && device->product_id() == 0x58F0) {
scoped_refptr<UsbDeviceHandle> handle = device->Open();
if (handle.get() == NULL) {
continue;
« no previous file with comments | « no previous file | tools/usb_gadget/usb_constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698