Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/chromeos/extensions/info_private_apitest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698