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

Unified Diff: chrome/browser/chromeos/device/input_service_proxy_factory.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: 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: chrome/browser/chromeos/device/input_service_proxy_factory.h
diff --git a/chrome/browser/chromeos/device/input_service_proxy_factory.h b/chrome/browser/chromeos/device/input_service_proxy_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..26e9dc39459916b73734f93f12e15dd38a9b7626
--- /dev/null
+++ b/chrome/browser/chromeos/device/input_service_proxy_factory.h
@@ -0,0 +1,31 @@
+// Copyright 2014 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 CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_
+
+#include "chrome/browser/chromeos/device/input_service_proxy.h"
+
+namespace chromeos {
+
+// A factory class for building an InputServiceProxy.
+class InputServiceProxyFactory {
+ public:
+ // Returns a new instance of InputServiceProxy.
+ static InputServiceProxy* GetProxy();
+
+ // Sets the factory for producing FakeInputService instances and back.
+ static void SetFakeForTesting(bool to_fake);
+
+ // Returns true iff the factory is set for producing fakes.
+ static bool IsFakeSetForTesting();
+
+ private:
+ static bool in_fake_mode_;
+};
+
+} // namespace chromeos
+
+
+#endif // CHROME_BROWSER_CHROMEOS_DEVICE_INPUT_SERVICE_PROXY_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698