OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/prefs/pref_service.h" | |
6 #include "chrome/browser/chromeos/settings/cros_settings.h" | 5 #include "chrome/browser/chromeos/settings/cros_settings.h" |
7 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
8 #include "chrome/common/pref_names.h" | 7 #include "chrome/common/pref_names.h" |
9 #include "chromeos/settings/cros_settings_names.h" | 8 #include "chromeos/settings/cros_settings_names.h" |
| 9 #include "components/prefs/pref_service.h" |
10 | 10 |
11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeOSInfoPrivateTest) { | 11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeOSInfoPrivateTest) { |
12 // Set the initial timezone different from what JS function | 12 // Set the initial timezone different from what JS function |
13 // timezoneSetTest() will attempt to set. | 13 // timezoneSetTest() will attempt to set. |
14 base::StringValue initial_timezone("America/Los_Angeles"); | 14 base::StringValue initial_timezone("America/Los_Angeles"); |
15 chromeos::CrosSettings::Get()->Set(chromeos::kSystemTimezone, | 15 chromeos::CrosSettings::Get()->Set(chromeos::kSystemTimezone, |
16 initial_timezone); | 16 initial_timezone); |
17 | 17 |
18 // Check that accessibility settings are set to default values. | 18 // Check that accessibility settings are set to default values. |
19 PrefService* prefs = profile()->GetPrefs(); | 19 PrefService* prefs = profile()->GetPrefs(); |
(...skipping 12 matching lines...) Expand all Loading... |
32 // Check that all accessibility settings have been flipped by the test. | 32 // Check that all accessibility settings have been flipped by the test. |
33 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); | 33 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); |
34 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); | 34 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); |
35 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled)); | 35 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled)); |
36 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityHighContrastEnabled)); | 36 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityHighContrastEnabled)); |
37 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityScreenMagnifierEnabled)); | 37 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityScreenMagnifierEnabled)); |
38 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityAutoclickEnabled)); | 38 ASSERT_TRUE(prefs->GetBoolean(prefs::kAccessibilityAutoclickEnabled)); |
39 | 39 |
40 ASSERT_TRUE(prefs->GetBoolean(prefs::kLanguageSendFunctionKeys)); | 40 ASSERT_TRUE(prefs->GetBoolean(prefs::kLanguageSendFunctionKeys)); |
41 } | 41 } |
OLD | NEW |