OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef DEVICE_CORE_MOCK_DEVICE_CLIENT_H_ | |
6 #define DEVICE_CORE_MOCK_DEVICE_CLIENT_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "device/core/device_client.h" | |
11 | |
12 namespace device { | |
13 | |
14 class HidService; | |
15 class MockHidService; | |
16 class MockUsbService; | |
17 class UsbService; | |
18 | |
19 class MockDeviceClient : device::DeviceClient { | |
20 public: | |
21 MockDeviceClient(); | |
22 ~MockDeviceClient() override; | |
23 | |
24 // device::DeviceClient implementation: | |
25 UsbService* GetUsbService() override; | |
26 HidService* GetHidService() override; | |
27 | |
28 // Accessors for the mock instances. | |
29 MockHidService* hid_service(); | |
30 MockUsbService* usb_service(); | |
31 | |
32 private: | |
33 std::unique_ptr<MockHidService> hid_service_; | |
34 std::unique_ptr<MockUsbService> usb_service_; | |
35 }; | |
36 | |
37 } // namespace device | |
38 | |
39 #endif // DEVICE_CORE_MOCK_DEVICE_CLIENT_H_ | |
OLD | NEW |