summaryrefslogtreecommitdiffstats
path: root/device/hid/fake_input_service_linux.h
blob: 1b46d9895c4992892ec9fd3b9120f2b39609e3fb (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
// 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_HID_FAKE_INPUT_SERVICE_LINUX_H_
#define DEVICE_HID_FAKE_INPUT_SERVICE_LINUX_H_

#include <string>

#include "device/hid/input_service_linux.h"

namespace device {

class FakeInputServiceLinux : public InputServiceLinux {

 public:
  FakeInputServiceLinux();
  ~FakeInputServiceLinux() override;

  void AddDeviceForTesting(const InputDeviceInfo& info);
  void RemoveDeviceForTesting(const std::string& id);
  void ClearDeviceList();

  DISALLOW_COPY_AND_ASSIGN(FakeInputServiceLinux);
};

}  // namespace device

#endif  // DEVICE_HID_FAKE_INPUT_SERVICE_LINUX_H_