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 2ae1c14fe8ff18858d6e397a9ad58accd69ac333..82067281140d7e0632774e2ff2c9dd7988f74854 100644 |
--- a/chrome/browser/devtools/device/usb/android_usb_browsertest.cc |
+++ b/chrome/browser/devtools/device/usb/android_usb_browsertest.cc |
@@ -144,20 +144,8 @@ class MockUsbDeviceHandle : public UsbDeviceHandle { |
} |
virtual bool ResetDevice() OVERRIDE { return true; } |
- |
- virtual bool GetManufacturer(base::string16* manufacturer) OVERRIDE { |
- *manufacturer = base::UTF8ToUTF16(kDeviceManufacturer); |
- return true; |
- } |
- |
- virtual bool GetProduct(base::string16* product) OVERRIDE { |
- *product = base::UTF8ToUTF16(kDeviceModel); |
- return true; |
- } |
- |
- virtual bool GetSerial(base::string16* serial) OVERRIDE { |
- *serial = base::UTF8ToUTF16(kDeviceSerial); |
- return true; |
+ virtual bool GetStringDescriptor(uint8_t string_id, base::string16* content) { |
+ return false; |
} |
// Async IO. Can be called on any thread. |
@@ -379,6 +367,21 @@ class MockUsbDevice : public UsbDevice { |
return config_desc_; |
} |
+ virtual bool GetManufacturer(base::string16* manufacturer) OVERRIDE { |
+ *manufacturer = base::UTF8ToUTF16(kDeviceManufacturer); |
+ return true; |
+ } |
+ |
+ virtual bool GetProduct(base::string16* product) OVERRIDE { |
+ *product = base::UTF8ToUTF16(kDeviceModel); |
+ return true; |
+ } |
+ |
+ virtual bool GetSerialNumber(base::string16* serial) OVERRIDE { |
+ *serial = base::UTF8ToUTF16(kDeviceSerial); |
+ return true; |
+ } |
+ |
virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) OVERRIDE { |
return true; |
} |