Chromium Code Reviews| Index: chrome/browser/chromeos/login/hid_detection_browsertest.cc |
| diff --git a/chrome/browser/chromeos/login/hid_detection_browsertest.cc b/chrome/browser/chromeos/login/hid_detection_browsertest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..35caf94fa4de94d4bebb40424b903aa006c3fca9 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/hid_detection_browsertest.cc |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
ygorshenin1
2014/04/24 11:30:24
Add some tests or remove this file from the curren
merkulova
2014/04/24 12:49:46
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/chromeos/device/input_service_proxy.h" |
| +#include "chrome/browser/chromeos/login/login_manager_test.h" |
| +#include "content/public/test/browser_test_utils.h" |
| + |
| +using device::InputServiceLinux; |
| + |
| +typedef InputServiceLinux::InputDeviceInfo InputDeviceInfo; |
| + |
| +namespace chromeos { |
| + |
| +namespace { |
| + |
| +const char kKeyboardId[] = "keyboard"; |
| +const char kMouseId[] = "mouse"; |
| + |
| +} // namespace |
| + |
| +class HIDDetectionTest : public LoginManagerTest { |
| + public: |
| + HIDDetectionTest() : LoginManagerTest(false) { |
| + } |
| + virtual ~HIDDetectionTest() {} |
| + |
| + bool JSExecuted(const std::string& script) { |
| + return content::ExecuteScript(web_contents(), script); |
| + } |
| + |
| +}; |
| + |
| +} // namespace chromeos |