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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 TestSystemTrayDelegate* GetSystemTrayDelegate(); | 158 TestSystemTrayDelegate* GetSystemTrayDelegate(); |
159 | 159 |
160 // Utility methods to emulate user logged in or not, session started or not | 160 // Utility methods to emulate user logged in or not, session started or not |
161 // and user able to lock screen or not cases. | 161 // and user able to lock screen or not cases. |
162 void SetSessionStarted(bool session_started); | 162 void SetSessionStarted(bool session_started); |
163 // Sets the SessionState to active, marking the begining of transitioning to | 163 // Sets the SessionState to active, marking the begining of transitioning to |
164 // a user session. The session is considered blocked until SetSessionStarted | 164 // a user session. The session is considered blocked until SetSessionStarted |
165 // is called. | 165 // is called. |
166 void SetSessionStarting(); | 166 void SetSessionStarting(); |
167 void SetUserLoggedIn(bool user_logged_in); | 167 void SetUserLoggedIn(bool user_logged_in); |
168 void SetShouldLockScreenBeforeSuspending(bool should_lock); | 168 void SetShouldLockScreenAutomatically(bool should_lock); |
169 void SetUserAddingScreenRunning(bool user_adding_screen_running); | 169 void SetUserAddingScreenRunning(bool user_adding_screen_running); |
170 | 170 |
171 // Methods to emulate blocking and unblocking user session with given | 171 // Methods to emulate blocking and unblocking user session with given |
172 // |block_reason|. | 172 // |block_reason|. |
173 void BlockUserSession(UserSessionBlockReason block_reason); | 173 void BlockUserSession(UserSessionBlockReason block_reason); |
174 void UnblockUserSession(); | 174 void UnblockUserSession(); |
175 | 175 |
176 void DisableIME(); | 176 void DisableIME(); |
177 | 177 |
178 // Swap the primary display with the secondary. | 178 // Swap the primary display with the secondary. |
(...skipping 23 matching lines...) Expand all Loading... |
202 ~NoSessionAshTestBase() override {} | 202 ~NoSessionAshTestBase() override {} |
203 | 203 |
204 private: | 204 private: |
205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace test | 208 } // namespace test |
209 } // namespace ash | 209 } // namespace ash |
210 | 210 |
211 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 211 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |