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

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

Issue 1847183002: Use interface associations to check function permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit and fixed Windows build. 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 unified diff | Download patch
« no previous file with comments | « device/device_tests.gyp ('k') | device/usb/mojo/device_impl.cc » ('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_HANDLE_H_ 5 #ifndef DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_
6 #define DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ 6 #define DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<uint32_t>& packet_lengths, 57 const std::vector<uint32_t>& packet_lengths,
58 unsigned int timeout, 58 unsigned int timeout,
59 const IsochronousTransferCallback& callback)); 59 const IsochronousTransferCallback& callback));
60 MOCK_METHOD6(GenericTransfer, 60 MOCK_METHOD6(GenericTransfer,
61 void(UsbEndpointDirection direction, 61 void(UsbEndpointDirection direction,
62 uint8_t endpoint, 62 uint8_t endpoint,
63 scoped_refptr<net::IOBuffer> buffer, 63 scoped_refptr<net::IOBuffer> buffer,
64 size_t length, 64 size_t length,
65 unsigned int timeout, 65 unsigned int timeout,
66 const TransferCallback& callback)); 66 const TransferCallback& callback));
67 MOCK_METHOD2(FindInterfaceByEndpoint, 67 MOCK_METHOD1(FindInterfaceByEndpoint,
68 bool(uint8_t endpoint_address, uint8_t* interface_number)); 68 const UsbInterfaceDescriptor*(uint8_t endpoint_address));
69 69
70 private: 70 private:
71 ~MockUsbDeviceHandle() override; 71 ~MockUsbDeviceHandle() override;
72 72
73 UsbDevice* device_; 73 UsbDevice* device_;
74 }; 74 };
75 75
76 } // namespace device 76 } // namespace device
77 77
78 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ 78 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_
OLDNEW
« no previous file with comments | « device/device_tests.gyp ('k') | device/usb/mojo/device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698