| 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
|
|
|
|
|