Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1501)

Unified Diff: device/hid/fake_input_service_linux.h

Issue 913773002: Created fakes for HID-detection screen testing. Initial browsertest added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TaskRunner used for InputServiceProxy. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/hid/BUILD.gn ('k') | device/hid/fake_input_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/fake_input_service_linux.h
diff --git a/device/hid/fake_input_service_linux.h b/device/hid/fake_input_service_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b46d9895c4992892ec9fd3b9120f2b39609e3fb
--- /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_
« no previous file with comments | « device/hid/BUILD.gn ('k') | device/hid/fake_input_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698