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

Side by Side Diff: ash/test/ash_test_base.h

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: comment Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ash/system/chromeos/power/power_event_observer_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/power_event_observer_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698