| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
| 6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } | 110 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } |
| 111 | 111 |
| 112 void RunAllPendingInMessageLoop(); | 112 void RunAllPendingInMessageLoop(); |
| 113 | 113 |
| 114 TestScreenshotDelegate* GetScreenshotDelegate(); | 114 TestScreenshotDelegate* GetScreenshotDelegate(); |
| 115 TestSystemTrayDelegate* GetSystemTrayDelegate(); | 115 TestSystemTrayDelegate* GetSystemTrayDelegate(); |
| 116 | 116 |
| 117 // Utility methods to emulate user logged in or not, session started or not | 117 // Utility methods to emulate user logged in or not, session started or not |
| 118 // and user able to lock screen or not cases. | 118 // and user able to lock screen or not cases. |
| 119 void SetSessionStarted(bool session_started); | 119 void SetSessionStarted(bool session_started); |
| 120 void SetSessionStarting(); |
| 120 void SetUserLoggedIn(bool user_logged_in); | 121 void SetUserLoggedIn(bool user_logged_in); |
| 121 void SetCanLockScreen(bool can_lock_screen); | 122 void SetCanLockScreen(bool can_lock_screen); |
| 122 void SetShouldLockScreenBeforeSuspending(bool should_lock); | 123 void SetShouldLockScreenBeforeSuspending(bool should_lock); |
| 123 void SetUserAddingScreenRunning(bool user_adding_screen_running); | 124 void SetUserAddingScreenRunning(bool user_adding_screen_running); |
| 124 | 125 |
| 125 // Methods to emulate blocking and unblocking user session with given | 126 // Methods to emulate blocking and unblocking user session with given |
| 126 // |block_reason|. | 127 // |block_reason|. |
| 127 void BlockUserSession(UserSessionBlockReason block_reason); | 128 void BlockUserSession(UserSessionBlockReason block_reason); |
| 128 void UnblockUserSession(); | 129 void UnblockUserSession(); |
| 129 | 130 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 154 ~NoSessionAshTestBase() override {} | 155 ~NoSessionAshTestBase() override {} |
| 155 | 156 |
| 156 private: | 157 private: |
| 157 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 158 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 158 }; | 159 }; |
| 159 | 160 |
| 160 } // namespace test | 161 } // namespace test |
| 161 } // namespace ash | 162 } // namespace ash |
| 162 | 163 |
| 163 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 164 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |