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

Unified Diff: chrome/browser/devtools/device/usb/android_usb_browsertest.cc

Issue 1857033002: Include USB device version in chrome.usb.Device fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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 | device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/device/usb/android_usb_browsertest.cc
diff --git a/chrome/browser/devtools/device/usb/android_usb_browsertest.cc b/chrome/browser/devtools/device/usb/android_usb_browsertest.cc
index 4e051657823091aa0f4043f274fd047781884c60..294cb66133df7f78881288001ad3c0a1e4b21b29 100644
--- a/chrome/browser/devtools/device/usb/android_usb_browsertest.cc
+++ b/chrome/browser/devtools/device/usb/android_usb_browsertest.cc
@@ -396,8 +396,13 @@ template <class T>
class MockUsbDevice : public UsbDevice {
public:
MockUsbDevice()
- : UsbDevice(0,
- 0,
+ : UsbDevice(0x0200, // usb_version
+ 0, // device_class
+ 0, // device_subclass
+ 0, // device_protocol
+ 0, // vendor_id
+ 0, // product_id
+ 0x0100, // device_version
base::UTF8ToUTF16(kDeviceManufacturer),
base::UTF8ToUTF16(kDeviceModel),
base::UTF8ToUTF16(kDeviceSerial)),
« no previous file with comments | « no previous file | device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698