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

Unified Diff: chrome/browser/ui/webui/options/multilanguage_options_browsertest.cc

Issue 2919343005: Remove tests for deprecated Options UI (Closed)
Patch Set: and more Created 3 years, 6 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/ui/webui/options/multilanguage_options_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/multilanguage_options_browsertest.cc b/chrome/browser/ui/webui/options/multilanguage_options_browsertest.cc
deleted file mode 100644
index 4c95d59f7b962fcc9bed2fb51b6ff1a87a2b0e42..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/multilanguage_options_browsertest.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/options/multilanguage_options_browsertest.h"
-
-#include <string>
-
-#include "base/command_line.h"
-#include "build/build_config.h"
-#include "chrome/browser/ui/browser_window.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/pref_names.h"
-#include "components/prefs/pref_service.h"
-#include "components/spellcheck/browser/pref_names.h"
-
-MultilanguageOptionsBrowserTest::MultilanguageOptionsBrowserTest() {
-}
-
-MultilanguageOptionsBrowserTest::~MultilanguageOptionsBrowserTest() {
-}
-
-void MultilanguageOptionsBrowserTest::ClearSpellcheckDictionaries() {
- SetDictionariesPref(base::ListValue());
-}
-
-void MultilanguageOptionsBrowserTest::SetUpOnMainThread() {
- WebUIBrowserTest::SetUpOnMainThread();
-#if defined(OS_CHROMEOS)
- std::string setting_name = prefs::kLanguagePreferredLanguages;
-#else
- std::string setting_name = prefs::kAcceptLanguages;
-#endif
-
- PrefService* pref_service = browser()->profile()->GetPrefs();
- pref_service->SetString(setting_name, "fr,es,de,en");
- base::ListValue dictionaries;
- dictionaries.AppendString("fr");
- SetDictionariesPref(dictionaries);
- pref_service->SetString(spellcheck::prefs::kSpellCheckDictionary,
- std::string());
-}
-
-void MultilanguageOptionsBrowserTest::SetDictionariesPref(
- const base::ListValue& value) {
- browser()->profile()->GetPrefs()->Set(
- spellcheck::prefs::kSpellCheckDictionaries, value);
-}

Powered by Google App Engine
This is Rietveld 408576698