summaryrefslogtreecommitdiffstats
path: root/device/core/mock_device_client.h
blob: e085c635ce935cd8cb4b1d03a13328afaae57749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_CORE_MOCK_DEVICE_CLIENT_H_
#define DEVICE_CORE_MOCK_DEVICE_CLIENT_H_

#include "base/memory/scoped_ptr.h"
#include "device/core/device_client.h"

namespace device {

class HidService;
class MockHidService;
class MockUsbService;
class UsbService;

class MockDeviceClient : device::DeviceClient {
 public:
  MockDeviceClient();
  ~MockDeviceClient() override;

  // device::DeviceClient implementation:
  UsbService* GetUsbService() override;
  HidService* GetHidService() override;

  // Accessors for the mock instances.
  MockHidService* hid_service();
  MockUsbService* usb_service();

 private:
  scoped_ptr<MockHidService> hid_service_;
  scoped_ptr<MockUsbService> usb_service_;
};

}  // namespace device

#endif  // DEVICE_CORE_MOCK_DEVICE_CLIENT_H_