| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/system/input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" | 8 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 #include "ui/ozone/public/input_controller.h" | 10 #include "ui/ozone/public/input_controller.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // static | 180 // static |
| 181 void InputDeviceSettings::SetSettingsForTesting( | 181 void InputDeviceSettings::SetSettingsForTesting( |
| 182 FakeInputDeviceSettings* test_settings) { | 182 FakeInputDeviceSettings* test_settings) { |
| 183 if (g_test_instance == test_settings) | 183 if (g_test_instance == test_settings) |
| 184 return; | 184 return; |
| 185 delete g_test_instance; | 185 delete g_test_instance; |
| 186 g_test_instance = test_settings; | 186 g_test_instance = test_settings; |
| 187 } | 187 } |
| 188 | 188 |
| 189 // static |
| 190 bool InputDeviceSettings::DidSetSettingsForTesting() { |
| 191 return g_test_instance; |
| 192 } |
| 193 |
| 189 } // namespace system | 194 } // namespace system |
| 190 } // namespace chromeos | 195 } // namespace chromeos |
| OLD | NEW |