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

Unified Diff: ash/system/session_length_limit/tray_session_length_limit.h

Issue 108213009: Adds TraySessionLengthLimitTest to ash_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/system/session_length_limit/tray_session_length_limit.h
diff --git a/ash/system/session_length_limit/tray_session_length_limit.h b/ash/system/session_length_limit/tray_session_length_limit.h
index 94ce1371bac5f0fd3999e91b7de2bdc223886be8..6fcd76ef45a9720fab291d5b45b64a73f1d5e33b 100644
--- a/ash/system/session_length_limit/tray_session_length_limit.h
+++ b/ash/system/session_length_limit/tray_session_length_limit.h
@@ -14,6 +14,11 @@
#include "base/timer/timer.h"
namespace ash {
+
+namespace test {
+class TraySessionLengthLimitTest;
+}
+
namespace internal {
namespace tray {
@@ -21,8 +26,8 @@ class RemainingSessionTimeTrayView;
}
// Adds a countdown timer to the system tray if the session length is limited.
-class TraySessionLengthLimit : public SystemTrayItem,
- public SessionLengthLimitObserver {
+class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem,
+ public SessionLengthLimitObserver {
public:
enum LimitState {
LIMIT_NONE,
@@ -47,8 +52,14 @@ class TraySessionLengthLimit : public SystemTrayItem,
base::TimeDelta GetRemainingSessionTime() const;
private:
+ friend class test::TraySessionLengthLimitTest;
+
+ static const char kNotificationId[];
+
void Update();
+ bool IsTrayViewVisibleForTest();
+
tray::RemainingSessionTimeTrayView* tray_view_;
LimitState limit_state_;

Powered by Google App Engine
This is Rietveld 408576698