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

Unified Diff: ash/test/test_system_tray_delegate.cc

Issue 2271483003: Updates the IME list when the IME has refreshed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« ash/common/system/tray/ime_info.h ('K') | « ash/test/test_system_tray_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f620a4b572c8598fbe659e79f4a32b8fa7253015..a7e5ab69f2140eeb081e3714b621f4826bf24dc0 100644
--- a/ash/test/test_system_tray_delegate.cc
+++ b/ash/test/test_system_tray_delegate.cc
@@ -67,6 +67,13 @@ void TestSystemTrayDelegate::SetCurrentIME(const IMEInfo& info) {
current_ime_ = info;
}
+void TestSystemTrayDelegate::SetAvailableIMEList(const IMEInfoList& list) {
+ ime_list_.clear();
James Cook 2016/08/24 16:03:53 Does ime_list_ = list; work?
Azure Wei 2016/08/25 02:10:44 Done.
+ for (auto ime : list) {
+ ime_list_.push_back(ime);
+ }
+}
+
LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const {
// Initial login status has been changed for testing.
if (g_initial_status != LoginStatus::USER &&
@@ -142,5 +149,11 @@ void TestSystemTrayDelegate::GetCurrentIME(IMEInfo* info) {
*info = current_ime_;
}
+void TestSystemTrayDelegate::GetAvailableIMEList(IMEInfoList* list) {
+ for (size_t i = 0; i < ime_list_.size(); i++) {
James Cook 2016/08/24 16:03:53 Does *list = ime_list_; work?
Azure Wei 2016/08/25 02:10:44 Done.
+ list->push_back(ime_list_[i]);
+ }
+}
+
} // namespace test
} // namespace ash
« ash/common/system/tray/ime_info.h ('K') | « ash/test/test_system_tray_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698