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

Unified Diff: ash/test/test_system_tray_delegate.cc

Issue 1996563002: Add ImeMenuTray element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change SetWindowState() with SetImeWindow(). Created 4 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: ash/test/test_system_tray_delegate.cc
diff --git a/ash/test/test_system_tray_delegate.cc b/ash/test/test_system_tray_delegate.cc
index 6074b3928af2b501f544cea6b82e1ea66bc70655..7e7901e79e754fd7fd564452b828dde9b8529762 100644
--- a/ash/test/test_system_tray_delegate.cc
+++ b/ash/test/test_system_tray_delegate.cc
@@ -55,6 +55,10 @@ void TestSystemTrayDelegate::ClearSessionLengthLimit() {
session_length_limit_set_ = false;
}
+void TestSystemTrayDelegate::SetCurrentIME(const IMEInfo& info) {
+ current_ime_ = info;
+}
+
LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const {
// Initial login status has been changed for testing.
if (g_initial_status != LoginStatus::USER &&
@@ -108,5 +112,13 @@ void TestSystemTrayDelegate::SignOut() {
base::MessageLoop::current()->QuitWhenIdle();
}
+void TestSystemTrayDelegate::GetCurrentIME(IMEInfo* info) {
+ info->id = current_ime_.id;
+ info->name = current_ime_.name;
+ info->medium_name = current_ime_.medium_name;
+ info->short_name = current_ime_.short_name;
+ info->third_party = current_ime_.third_party;
+}
+
} // namespace test
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698