| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <sys/types.h> | 6 #include <sys/types.h> |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/test/base/in_process_browser_test.h" | 31 #include "chrome/test/base/in_process_browser_test.h" |
| 32 #include "chromeos/chromeos_switches.h" | 32 #include "chromeos/chromeos_switches.h" |
| 33 #include "components/feedback/tracing_manager.h" | 33 #include "components/feedback/tracing_manager.h" |
| 34 #include "components/prefs/pref_service.h" | 34 #include "components/prefs/pref_service.h" |
| 35 #include "components/prefs/pref_store.h" | 35 #include "components/prefs/pref_store.h" |
| 36 #include "components/prefs/writeable_pref_store.h" | 36 #include "components/prefs/writeable_pref_store.h" |
| 37 #include "components/user_manager/user_manager.h" | 37 #include "components/user_manager/user_manager.h" |
| 38 #include "content/public/common/service_manager_connection.h" | 38 #include "content/public/common/service_manager_connection.h" |
| 39 #include "content/public/test/test_utils.h" | 39 #include "content/public/test/test_utils.h" |
| 40 #include "services/preferences/public/cpp/pref_client_store.h" | |
| 41 #include "services/preferences/public/interfaces/preferences.mojom.h" | |
| 42 #include "services/service_manager/public/cpp/connector.h" | 40 #include "services/service_manager/public/cpp/connector.h" |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
| 44 #include "ui/base/ime/chromeos/fake_ime_keyboard.h" | 42 #include "ui/base/ime/chromeos/fake_ime_keyboard.h" |
| 45 #include "ui/events/event_utils.h" | 43 #include "ui/events/event_utils.h" |
| 46 | 44 |
| 47 namespace chromeos { | 45 namespace chromeos { |
| 48 | 46 |
| 49 namespace { | 47 namespace { |
| 50 | 48 |
| 51 const char* const kTestUsers[] = {"test-user1@gmail.com", | 49 const char* const kTestUsers[] = {"test-user1@gmail.com", |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 !prefs1->GetBoolean(prefs::kTapToClickEnabled)); | 275 !prefs1->GetBoolean(prefs::kTapToClickEnabled)); |
| 278 CheckLocalStateCorrespondsToPrefs(prefs1); | 276 CheckLocalStateCorrespondsToPrefs(prefs1); |
| 279 | 277 |
| 280 // Switch user back. | 278 // Switch user back. |
| 281 user_manager->SwitchActiveUser(test_users_[0]); | 279 user_manager->SwitchActiveUser(test_users_[0]); |
| 282 CheckSettingsCorrespondToPrefs(prefs1); | 280 CheckSettingsCorrespondToPrefs(prefs1); |
| 283 CheckLocalStateCorrespondsToPrefs(prefs1); | 281 CheckLocalStateCorrespondsToPrefs(prefs1); |
| 284 } | 282 } |
| 285 | 283 |
| 286 } // namespace chromeos | 284 } // namespace chromeos |
| OLD | NEW |