summaryrefslogtreecommitdiffstats
path: root/device/test/test_device_client.h
blob: 95cfc57bbec1b064b9a974203871aa9eccbd418c (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
// 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.

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

namespace base {
class SingleThreadTaskRunner;
}

namespace device {

class HidService;
class UsbService;

class TestDeviceClient : public DeviceClient {
 public:
  TestDeviceClient(scoped_refptr<base::SingleThreadTaskRunner> task_runner);
  ~TestDeviceClient() override;

 private:
  HidService* GetHidService() override;
  UsbService* GetUsbService() override;

  scoped_ptr<HidService> hid_service_;
  scoped_ptr<UsbService> usb_service_;
  scoped_refptr<base::SingleThreadTaskRunner> blocking_task_runner_;
};

}  // namespace device