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

Unified Diff: ash/test/test_system_tray_delegate.h

Issue 2060003002: ash: Add a unit test for the system update tray item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movetraydelegate
Patch Set: rebase 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
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 244eac211fe3ea23d2335a2baf00a8e03bfd7fb8..f83022fbdcb49429054d1d3d1e733677752e70ed 100644
--- a/ash/test/test_system_tray_delegate.h
+++ b/ash/test/test_system_tray_delegate.h
@@ -17,6 +17,11 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
TestSystemTrayDelegate();
~TestSystemTrayDelegate() override;
+ // Sets whether a system update is required. Defaults to false. Static so
+ // tests can set the value before the system tray is constructed. Reset in
+ // AshTestHelper::TearDown.
+ static void SetSystemUpdateRequired(bool required);
+
// Changes the login status when initially the delegate is created. This will
// be called before AshTestBase::SetUp() to test the case when chrome is
// restarted right after the login (such like a flag is set).
@@ -45,6 +50,7 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
// Overridden from SystemTrayDelegate:
LoginStatus GetUserLoginStatus() const override;
bool IsUserSupervised() const override;
+ void GetSystemUpdateInfo(UpdateInfo* info) const override;
bool ShouldShowDisplayNotification() override;
bool GetSessionStartTime(base::TimeTicks* session_start_time) override;
bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698