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

Unified Diff: ash/test/test_session_state_delegate.h

Issue 19945004: Modal window in user session not blocks user adding screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compilation for win. Created 7 years, 5 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/test/ash_test_base.cc ('k') | ash/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/test/test_session_state_delegate.h
diff --git a/ash/test/test_session_state_delegate.h b/ash/test/test_session_state_delegate.h
index f9466ff1c5fb8aec7afb9b22b0873bb44da541da..520c634f635e4d8a0b8098601f536f827f301960 100644
--- a/ash/test/test_session_state_delegate.h
+++ b/ash/test/test_session_state_delegate.h
@@ -29,6 +29,7 @@ class TestSessionStateDelegate : public SessionStateDelegate {
virtual bool IsScreenLocked() const OVERRIDE;
virtual void LockScreen() OVERRIDE;
virtual void UnlockScreen() OVERRIDE;
+ virtual bool IsUserSessionBlocked() const OVERRIDE;
virtual const base::string16 GetUserDisplayName(
ash::MultiProfileIndex index) const OVERRIDE;
virtual const std::string GetUserEmail(
@@ -61,6 +62,10 @@ class TestSessionStateDelegate : public SessionStateDelegate {
// is an active user.
void SetCanLockScreen(bool can_lock_screen);
+ // Updates the internal state that indicates whether user adding screen is
+ // running now.
+ void SetUserAddingScreenRunning(bool user_adding_screen_running);
+
private:
// Whether a session is in progress and there is an active user.
bool has_active_user_;
@@ -77,6 +82,9 @@ class TestSessionStateDelegate : public SessionStateDelegate {
// Whether the screen is currently locked.
bool screen_locked_;
+ // Whether user addding screen is running now.
+ bool user_adding_screen_running_;
+
// The number of users logged in.
int logged_in_users_;
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/test_session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698