diff options
author | merkulova <merkulova@chromium.org> | 2015-03-02 00:45:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-02 08:46:30 +0000 |
commit | 4209a162a2a4a9b49c9096909fbfadb7a2608b72 (patch) | |
tree | d1e160362b99dc8a80865d645573caa7354276ad /device/hid/fake_input_service_linux.h | |
parent | c3a3f671f8e0c5777c6bc825f21d61c6bcafbec3 (diff) | |
download | chromium_src-4209a162a2a4a9b49c9096909fbfadb7a2608b72.zip chromium_src-4209a162a2a4a9b49c9096909fbfadb7a2608b72.tar.gz chromium_src-4209a162a2a4a9b49c9096909fbfadb7a2608b72.tar.bz2 |
Created fakes for HID-detection screen testing. Initial browsertest added.
BUG=456779
TBR=keybuk@chromium.org
Review URL: https://codereview.chromium.org/913773002
Cr-Commit-Position: refs/heads/master@{#318667}
Diffstat (limited to 'device/hid/fake_input_service_linux.h')
-rw-r--r-- | device/hid/fake_input_service_linux.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/device/hid/fake_input_service_linux.h b/device/hid/fake_input_service_linux.h new file mode 100644 index 0000000..1b46d98 --- /dev/null +++ b/device/hid/fake_input_service_linux.h @@ -0,0 +1,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_ |