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

Unified Diff: chrome/browser/spellchecker/spelling_service_client_unittest.cc

Issue 2254533003: Rename spellcheck::pref::kEnableContinuousSpellcheck to ...::kEnableSpellcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spelling_service_client_unittest.cc
diff --git a/chrome/browser/spellchecker/spelling_service_client_unittest.cc b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
index 00384c205456e7cfe0e8cb4aedf1f37bbac4f649..429f7f43f6089fe5d750e0520d603ed48e375ba7 100644
--- a/chrome/browser/spellchecker/spelling_service_client_unittest.cc
+++ b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
@@ -331,7 +331,7 @@ TEST_F(SpellingServiceClientTest, RequestTextCheck) {
};
PrefService* pref = profile_.GetPrefs();
- pref->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck, true);
+ pref->SetBoolean(spellcheck::prefs::kEnableSpellcheck, true);
pref->SetBoolean(spellcheck::prefs::kSpellCheckUseSpellingService, true);
for (size_t i = 0; i < arraysize(kTests); ++i) {
@@ -366,12 +366,12 @@ TEST_F(SpellingServiceClientTest, AvailableServices) {
// When a user disables spellchecking or prevent using the Spelling service,
// this function should return false both for suggestions and for spellcheck.
PrefService* pref = profile_.GetPrefs();
- pref->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck, false);
+ pref->SetBoolean(spellcheck::prefs::kEnableSpellcheck, false);
pref->SetBoolean(spellcheck::prefs::kSpellCheckUseSpellingService, false);
EXPECT_FALSE(client_.IsAvailable(&profile_, kSuggest));
EXPECT_FALSE(client_.IsAvailable(&profile_, kSpellcheck));
- pref->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck, true);
+ pref->SetBoolean(spellcheck::prefs::kEnableSpellcheck, true);
pref->SetBoolean(spellcheck::prefs::kSpellCheckUseSpellingService, true);
// For locales supported by the SpellCheck service, this function returns
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service_browsertest.cc ('k') | components/spellcheck/browser/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698