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

Unified Diff: ash/test/test_system_tray_delegate.h

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
Index: ash/test/test_system_tray_delegate.h
diff --git a/ash/test/test_system_tray_delegate.h b/ash/test/test_system_tray_delegate.h
index 57ab96a3ffd52f3219524ec2bfb390f31718e5a2..8371845bebf158c51fc599e69f89228ae1a71dc0 100644
--- a/ash/test/test_system_tray_delegate.h
+++ b/ash/test/test_system_tray_delegate.h
@@ -51,6 +51,9 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
// Sets the IME info.
void SetCurrentIME(const IMEInfo& info);
+ // Sets the list of available IMEs.
+ void SetAvailableIMEList(const IMEInfoList& list);
+
// Overridden from SystemTrayDelegate:
LoginStatus GetUserLoginStatus() const override;
bool IsUserSupervised() const override;
@@ -64,6 +67,7 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
SystemTray* tray) override;
void GetCurrentIME(IMEInfo* info) override;
+ void GetAvailableIMEList(IMEInfoList* list) override;
private:
bool should_show_display_notification_;
@@ -71,6 +75,7 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
base::TimeDelta session_length_limit_;
bool session_length_limit_set_;
IMEInfo current_ime_;
+ IMEInfoList ime_list_;
DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698