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