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

Unified Diff: ash/common/test/test_session_state_delegate.h

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: comment Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/session/session_state_delegate.h ('k') | ash/common/test/test_session_state_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_session_state_delegate.h
diff --git a/ash/common/test/test_session_state_delegate.h b/ash/common/test/test_session_state_delegate.h
index 14af1e84601736283cd86330f728cbcf1c882980..9e8cf2dfcf010f1078463537b62c304a42f52f1b 100644
--- a/ash/common/test/test_session_state_delegate.h
+++ b/ash/common/test/test_session_state_delegate.h
@@ -38,7 +38,7 @@ class TestSessionStateDelegate : public SessionStateDelegate {
bool IsActiveUserSessionStarted() const override;
bool CanLockScreen() const override;
bool IsScreenLocked() const override;
- bool ShouldLockScreenBeforeSuspending() const override;
+ bool ShouldLockScreenAutomatically() const override;
void LockScreen() override;
void UnlockScreen() override;
bool IsUserSessionBlocked() const override;
@@ -72,8 +72,8 @@ class TestSessionStateDelegate : public SessionStateDelegate {
// is an active user.
static void SetCanLockScreen(bool can_lock_screen);
- // Updates |should_lock_screen_before_suspending_|.
- void SetShouldLockScreenBeforeSuspending(bool should_lock);
+ // Updates |should_lock_screen_automatically_|.
+ void SetShouldLockScreenAutomatically(bool should_lock);
// Updates the internal state that indicates whether user adding screen is
// running now.
@@ -89,8 +89,8 @@ class TestSessionStateDelegate : public SessionStateDelegate {
// when this is |true| and there is an active user.
bool can_lock_screen_;
- // Return value for ShouldLockScreenBeforeSuspending().
- bool should_lock_screen_before_suspending_;
+ // Return value for ShouldLockScreenAutomatically().
+ bool should_lock_screen_automatically_;
// Whether the screen is currently locked.
bool screen_locked_;
« no previous file with comments | « ash/common/session/session_state_delegate.h ('k') | ash/common/test/test_session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698