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

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

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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 | « device/udev_linux/udev1_loader.h ('k') | device/usb/mock_usb_device_handle.h » ('j') | no next file with comments »
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 <stdint.h>
11
10 #include <string> 12 #include <string>
11 13
12 #include "device/usb/usb_device_handle.h" 14 #include "device/usb/usb_device_handle.h"
13 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
14 16
15 namespace device { 17 namespace device {
16 18
17 class MockUsbDevice : public UsbDevice { 19 class MockUsbDevice : public UsbDevice {
18 public: 20 public:
19 MockUsbDevice(uint16_t vendor_id, uint16_t product_id); 21 MockUsbDevice(uint16_t vendor_id, uint16_t product_id);
(...skipping 22 matching lines...) Expand all
42 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>)); 44 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>));
43 MOCK_METHOD0(GetActiveConfiguration, const device::UsbConfigDescriptor*()); 45 MOCK_METHOD0(GetActiveConfiguration, const device::UsbConfigDescriptor*());
44 46
45 private: 47 private:
46 ~MockUsbDevice() override; 48 ~MockUsbDevice() override;
47 }; 49 };
48 50
49 } // namespace device 51 } // namespace device
50 52
51 #endif // DEVICE_USB_MOCK_USB_DEVICE_H_ 53 #endif // DEVICE_USB_MOCK_USB_DEVICE_H_
OLDNEW
« no previous file with comments | « device/udev_linux/udev1_loader.h ('k') | device/usb/mock_usb_device_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698