#include "chrome/browser/renderer_context_menu/spelling_options_submenu_observer.h"
#include <memory>
#include "base/values.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/renderer_context_menu/mock_render_view_context_menu.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/language/core/browser/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/spellcheck/browser/pref_names.h"
#include "content/public/browser/context_menu_params.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class SpellingOptionsSubMenuObserverTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest, ToggleSpelling) { … }
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest,
ToggleSpellingWithEnhancedSpellCheck) { … }
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest, SelectMultilingual) { … }
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest,
SelectFirstLanguage) { … }
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest,
SingleLanguageSelected) { … }
IN_PROC_BROWSER_TEST_F(SpellingOptionsSubMenuObserverTest,
SelectTheOnlyLanguage) { … }
}