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

Unified Diff: device/hid/fake_input_service_linux.cc

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: FakeInputServiceLinux used instead of FakeInputServiceProxy. 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
Index: device/hid/fake_input_service_linux.cc
diff --git a/device/hid/fake_input_service_linux.cc b/device/hid/fake_input_service_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f8e1ef4c38fae699b5c14bc32220400135167d6
--- /dev/null
+++ b/device/hid/fake_input_service_linux.cc
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
Nikita (slow) 2015/02/13 12:31:45 nit: 2015
merkulova 2015/02/13 12:58:06 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "device/hid/fake_input_service_linux.h"
+
+#include <string>
+#include <vector>
+
+namespace device {
+
+FakeInputServiceLinux::FakeInputServiceLinux() {
+}
+
+FakeInputServiceLinux::~FakeInputServiceLinux() {
+}
+
+void FakeInputServiceLinux::AddDeviceForTesting(const InputDeviceInfo& info) {
+ AddDevice(info);
+}
+
+void FakeInputServiceLinux::RemoveDeviceForTesting(const std::string& id) {
+ RemoveDevice(id);
+}
+
+void FakeInputServiceLinux::ClearDeviceList() {
+ devices_.clear();
+}
+
+} // namespace device

Powered by Google App Engine
This is Rietveld 408576698