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

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

Issue 1156473007: Enables the user to select multiple languages for spellchecking (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits and presubmit warnings. Created 5 years, 5 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.h
diff --git a/chrome/browser/ui/webui/options/multilanguage_options_browsertest.h b/chrome/browser/ui/webui/options/multilanguage_options_browsertest.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f19e175ac128e4c4415f8f8964c8f25b2dd2eff
--- /dev/null
+++ b/chrome/browser/ui/webui/options/multilanguage_options_browsertest.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MULTILANGUAGE_OPTIONS_BROWSERTEST_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MULTILANGUAGE_OPTIONS_BROWSERTEST_H_
+
+#include "base/macros.h"
+#include "chrome/test/base/web_ui_browser_test.h"
+
+// This is a helper class used by multilanguage_options_webui_browsertest.js
+// to flip the enable-multilingual-spellchecker command line switch and set
+// the AcceptLanguages and SpellcheckDictionaries preferences.
+class MultilanguageOptionsBrowserTest : public WebUIBrowserTest {
+ public:
+ MultilanguageOptionsBrowserTest();
+ ~MultilanguageOptionsBrowserTest() override;
+ // Set the kSpellCheckDictionaries preference to an empty list value.
+ void ClearSpellcheckDictionaries();
+
+ private:
+ void SetUpCommandLine(base::CommandLine* command_line) override;
+ void SetUpOnMainThread() override;
+ void SetDictionariesPref(const base::ListValue& value);
+
+ DISALLOW_COPY_AND_ASSIGN(MultilanguageOptionsBrowserTest);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MULTILANGUAGE_OPTIONS_BROWSERTEST_H_

Powered by Google App Engine
This is Rietveld 408576698