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

Unified Diff: ash/test/ash_test_base.h

Issue 21519002: Prevent mouse from getting stuck on second display in login (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 c0567be5f20980dabff8bd22128ecaec1e652372..5e8fdd2adc66ce40873dd822b4139951a90268a8 100644
--- a/ash/test/ash_test_base.h
+++ b/ash/test/ash_test_base.h
@@ -110,6 +110,8 @@ class AshTestBase : public testing::Test {
// or false otherwise (e.g. win8 bot).
static bool SupportsHostWindowResize();
+ void set_start_session(bool start_session) { start_session_ = start_session; }
+
void RunAllPendingInMessageLoop();
// Utility methods to emulate user logged in or not, session started or not
@@ -127,6 +129,8 @@ class AshTestBase : public testing::Test {
private:
bool setup_called_;
bool teardown_called_;
+ // |SetUp()| doesn't activate session if this is set to false.
+ bool start_session_;
content::TestBrowserThreadBundle thread_bundle_;
scoped_ptr<AshTestHelper> ash_test_helper_;
scoped_ptr<aura::test::EventGenerator> event_generator_;
@@ -141,6 +145,17 @@ class AshTestBase : public testing::Test {
DISALLOW_COPY_AND_ASSIGN(AshTestBase);
};
+class NoSessionAshTestBase : public AshTestBase {
+ public:
+ NoSessionAshTestBase() {
+ set_start_session(false);
+ }
+ virtual ~NoSessionAshTestBase() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
+};
+
} // namespace test
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698