OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "device/usb/mock_usb_device.h" | 5 #include "device/usb/mock_usb_device.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 | 8 |
9 namespace device { | 9 namespace device { |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const std::string& serial_number, | 31 const std::string& serial_number, |
32 const GURL& webusb_landing_page) | 32 const GURL& webusb_landing_page) |
33 : UsbDevice(vendor_id, | 33 : UsbDevice(vendor_id, |
34 product_id, | 34 product_id, |
35 base::UTF8ToUTF16(manufacturer_string), | 35 base::UTF8ToUTF16(manufacturer_string), |
36 base::UTF8ToUTF16(product_string), | 36 base::UTF8ToUTF16(product_string), |
37 base::UTF8ToUTF16(serial_number)) { | 37 base::UTF8ToUTF16(serial_number)) { |
38 webusb_landing_page_ = webusb_landing_page; | 38 webusb_landing_page_ = webusb_landing_page; |
39 } | 39 } |
40 | 40 |
| 41 MockUsbDevice::MockUsbDevice(uint16 vendor_id, |
| 42 uint16 product_id, |
| 43 const UsbConfigDescriptor& configuration) |
| 44 : MockUsbDevice(vendor_id, product_id) { |
| 45 configurations_.push_back(configuration); |
| 46 } |
| 47 |
41 MockUsbDevice::~MockUsbDevice() { | 48 MockUsbDevice::~MockUsbDevice() { |
42 } | 49 } |
43 | 50 |
44 } // namespace device | 51 } // namespace device |
OLD | NEW |