| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/system/tray/default_system_tray_delegate.h" | 8 #include "ash/system/tray/default_system_tray_delegate.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 // Updates the session length limit so that the limit will come from now in | 37 // Updates the session length limit so that the limit will come from now in |
| 38 // |new_limit|. | 38 // |new_limit|. |
| 39 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit); | 39 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit); |
| 40 | 40 |
| 41 // Clears the session length limit. | 41 // Clears the session length limit. |
| 42 void ClearSessionLengthLimit(); | 42 void ClearSessionLengthLimit(); |
| 43 | 43 |
| 44 // Overridden from SystemTrayDelegate: | 44 // Overridden from SystemTrayDelegate: |
| 45 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE; | 45 virtual user::LoginStatus GetUserLoginStatus() const override; |
| 46 virtual bool IsUserSupervised() const OVERRIDE; | 46 virtual bool IsUserSupervised() const override; |
| 47 virtual bool ShouldShowDisplayNotification() OVERRIDE; | 47 virtual bool ShouldShowDisplayNotification() override; |
| 48 virtual bool GetSessionStartTime( | 48 virtual bool GetSessionStartTime( |
| 49 base::TimeTicks* session_start_time) OVERRIDE; | 49 base::TimeTicks* session_start_time) override; |
| 50 virtual bool GetSessionLengthLimit( | 50 virtual bool GetSessionLengthLimit( |
| 51 base::TimeDelta* session_length_limit) OVERRIDE; | 51 base::TimeDelta* session_length_limit) override; |
| 52 virtual void ShutDown() OVERRIDE; | 52 virtual void ShutDown() override; |
| 53 virtual void SignOut() OVERRIDE; | 53 virtual void SignOut() override; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 bool should_show_display_notification_; | 56 bool should_show_display_notification_; |
| 57 user::LoginStatus login_status_; | 57 user::LoginStatus login_status_; |
| 58 base::TimeDelta session_length_limit_; | 58 base::TimeDelta session_length_limit_; |
| 59 bool session_length_limit_set_; | 59 bool session_length_limit_set_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 61 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace test | 64 } // namespace test |
| 65 } // namespace ash | 65 } // namespace ash |
| 66 | 66 |
| 67 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 67 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |