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

Side by Side Diff: device/usb/mock_usb_device.h

Issue 1337413003: Match against all configurations in UsbDeviceFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | device/usb/mock_usb_device.cc » ('j') | device/usb/usb_device_filter.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef DEVICE_USB_MOCK_USB_DEVICE_H_ 5 #ifndef DEVICE_USB_MOCK_USB_DEVICE_H_
6 #define DEVICE_USB_MOCK_USB_DEVICE_H_ 6 #define DEVICE_USB_MOCK_USB_DEVICE_H_
7 7
8 #include "device/usb/usb_device.h" 8 #include "device/usb/usb_device.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 uint16 product_id, 21 uint16 product_id,
22 const std::string& manufacturer_string, 22 const std::string& manufacturer_string,
23 const std::string& product_string, 23 const std::string& product_string,
24 const std::string& serial_number); 24 const std::string& serial_number);
25 MockUsbDevice(uint16 vendor_id, 25 MockUsbDevice(uint16 vendor_id,
26 uint16 product_id, 26 uint16 product_id,
27 const std::string& manufacturer_string, 27 const std::string& manufacturer_string,
28 const std::string& product_string, 28 const std::string& product_string,
29 const std::string& serial_number, 29 const std::string& serial_number,
30 const GURL& webusb_landing_page); 30 const GURL& webusb_landing_page);
31 MockUsbDevice(uint16 vendor_id,
32 uint16 product_id,
33 const UsbConfigDescriptor& configuration);
31 34
32 MOCK_METHOD1(Open, void(const OpenCallback&)); 35 MOCK_METHOD1(Open, void(const OpenCallback&));
33 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>)); 36 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>));
34 MOCK_METHOD0(GetActiveConfiguration, const device::UsbConfigDescriptor*()); 37 MOCK_METHOD0(GetActiveConfiguration, const device::UsbConfigDescriptor*());
35 38
36 private: 39 private:
37 ~MockUsbDevice() override; 40 ~MockUsbDevice() override;
38 }; 41 };
39 42
40 } // namespace device 43 } // namespace device
41 44
42 #endif // DEVICE_USB_MOCK_USB_DEVICE_H_ 45 #endif // DEVICE_USB_MOCK_USB_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | device/usb/mock_usb_device.cc » ('j') | device/usb/usb_device_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698