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

Unified Diff: ash/test/ash_test_base.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: 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
Index: ash/test/ash_test_base.h
diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h
index 830001ccc8af382d07a12013b285322ad35cd94f..37453cbb15c08fac675d9228d8d4ae557f7119a8 100644
--- a/ash/test/ash_test_base.h
+++ b/ash/test/ash_test_base.h
@@ -95,6 +95,14 @@ class AshTestBase : public testing::Test {
aura::test::EventGenerator& GetEventGenerator();
protected:
+ enum UserSessionBlockReason {
+ FIRST_BLOCK_REASON,
+ BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON,
+ BLOCKED_BY_LOGIN_SCREEN,
+ BLOCKED_BY_USER_ADDING_SCREEN,
+ NUMBER_OF_BLOCK_REASONS
+ };
+
// True if the running environment supports multiple displays,
// or false otherwise (e.g. win8 bot).
static bool SupportsMultipleDisplays();
@@ -110,6 +118,12 @@ class AshTestBase : public testing::Test {
void SetSessionStarted(bool session_started);
void SetUserLoggedIn(bool user_logged_in);
void SetCanLockScreen(bool can_lock_screen);
+ void SetUserAddingScreenRunning(bool user_adding_screen_running);
+
+ // Methods to emulate blocking and unblocking user session with given
+ // |block_reason|.
+ void BlockUserSession(UserSessionBlockReason block_reason);
+ void UnblockUserSession();
private:
bool setup_called_;

Powered by Google App Engine
This is Rietveld 408576698