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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_browsertest.cc

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test fixed. Re-sorted methods of StateImpl and IMM. Created 6 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
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | chrome/browser/chromeos/preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_local_account_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
index 077d915a5a320e28d8005ade2a3af3070fd8f74b..17071d6ee28fe368b10e27633e937aaec4f08ad9 100644
--- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
@@ -692,7 +692,9 @@ class DeviceLocalAccountTest : public DevicePolicyCrosBrowserTest,
&layouts_from_locale);
ASSERT_FALSE(layouts_from_locale.empty());
EXPECT_EQ(layouts_from_locale.front(),
- input_method_manager->GetCurrentInputMethod().id());
+ input_method_manager->GetActiveIMEState()
+ ->GetCurrentInputMethod()
+ .id());
}
const std::string user_id_1_;
@@ -1499,8 +1501,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, NoRecommendedLocaleSwitch) {
// Verify that the locale and keyboard layout have been applied.
EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
EXPECT_EQ(public_session_input_method_id_,
- chromeos::input_method::InputMethodManager::Get()->
- GetCurrentInputMethod().id());
+ chromeos::input_method::InputMethodManager::Get()
+ ->GetActiveIMEState()
+ ->GetCurrentInputMethod()
+ .id());
}
IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, OneRecommendedLocale) {
@@ -1748,8 +1752,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, MultipleRecommendedLocales) {
// Verify that the locale and keyboard layout have been applied.
EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
EXPECT_EQ(public_session_input_method_id_,
- chromeos::input_method::InputMethodManager::Get()->
- GetCurrentInputMethod().id());
+ chromeos::input_method::InputMethodManager::Get()
+ ->GetActiveIMEState()
+ ->GetCurrentInputMethod()
+ .id());
}
IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest,
@@ -1873,8 +1879,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, TermsOfServiceWithLocaleSwitch) {
// Verify that the locale and keyboard layout have been applied.
EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
EXPECT_EQ(public_session_input_method_id_,
- chromeos::input_method::InputMethodManager::Get()->
- GetCurrentInputMethod().id());
+ chromeos::input_method::InputMethodManager::Get()
+ ->GetActiveIMEState()
+ ->GetCurrentInputMethod()
+ .id());
// Click the accept button.
ASSERT_TRUE(content::ExecuteScript(contents_,
@@ -1885,8 +1893,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, TermsOfServiceWithLocaleSwitch) {
// Verify that the locale and keyboard layout are still in force.
EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
EXPECT_EQ(public_session_input_method_id_,
- chromeos::input_method::InputMethodManager::Get()->
- GetCurrentInputMethod().id());
+ chromeos::input_method::InputMethodManager::Get()
+ ->GetActiveIMEState()
+ ->GetCurrentInputMethod()
+ .id());
}
class TermsOfServiceDownloadTest : public DeviceLocalAccountTest,
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | chrome/browser/chromeos/preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698