| 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/common/system/tray/default_system_tray_delegate.h" | 8 #include "ash/common/system/tray/default_system_tray_delegate.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Updates the session length limit so that the limit will come from now in | 38 // Updates the session length limit so that the limit will come from now in |
| 39 // |new_limit|. | 39 // |new_limit|. |
| 40 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit); | 40 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit); |
| 41 | 41 |
| 42 // Clears the session length limit. | 42 // Clears the session length limit. |
| 43 void ClearSessionLengthLimit(); | 43 void ClearSessionLengthLimit(); |
| 44 | 44 |
| 45 // Overridden from SystemTrayDelegate: | 45 // Overridden from SystemTrayDelegate: |
| 46 LoginStatus GetUserLoginStatus() const override; | 46 LoginStatus GetUserLoginStatus() const override; |
| 47 bool IsUserSupervised() const override; | 47 bool IsUserSupervised() const override; |
| 48 void GetSystemUpdateInfo(UpdateInfo* info) const override; |
| 48 bool ShouldShowDisplayNotification() override; | 49 bool ShouldShowDisplayNotification() override; |
| 49 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; | 50 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; |
| 50 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; | 51 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
| 51 void SignOut() override; | 52 void SignOut() override; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 bool should_show_display_notification_; | 55 bool should_show_display_notification_; |
| 55 LoginStatus login_status_; | 56 LoginStatus login_status_; |
| 56 base::TimeDelta session_length_limit_; | 57 base::TimeDelta session_length_limit_; |
| 57 bool session_length_limit_set_; | 58 bool session_length_limit_set_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 60 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace test | 63 } // namespace test |
| 63 } // namespace ash | 64 } // namespace ash |
| 64 | 65 |
| 65 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 66 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |