Chromium Code Reviews| 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; |
|
James Cook
2016/06/30 21:15:47
Can you use *info = current_ime_? If not, can you
Azure Wei
2016/07/01 03:48:05
Done.
|
| + 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 |