OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/aura/test/aura_test_helper.h" | 12 #include "ui/aura/test/aura_test_helper.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace test { | 15 namespace test { |
16 | 16 |
17 class AshTestBase : public testing::Test { | 17 class AshTestBase : public testing::Test { |
18 public: | 18 public: |
19 AshTestBase(); | 19 AshTestBase(); |
20 virtual ~AshTestBase(); | 20 virtual ~AshTestBase(); |
21 | 21 |
22 // testing::Test: | 22 // testing::Test: |
23 virtual void SetUp() OVERRIDE; | 23 virtual void SetUp() OVERRIDE; |
24 virtual void TearDown() OVERRIDE; | 24 virtual void TearDown() OVERRIDE; |
25 | 25 |
26 protected: | 26 protected: |
27 // Overridden by test cases to specify what window mode to run the shell in. | |
28 virtual bool GetOverrideWindowMode(Shell::WindowMode* window_mode); | |
29 | |
30 void RunAllPendingInMessageLoop(); | 27 void RunAllPendingInMessageLoop(); |
31 | 28 |
32 private: | 29 private: |
33 aura::test::AuraTestHelper helper_; | 30 aura::test::AuraTestHelper helper_; |
34 | 31 |
35 DISALLOW_COPY_AND_ASSIGN(AshTestBase); | 32 DISALLOW_COPY_AND_ASSIGN(AshTestBase); |
36 }; | 33 }; |
37 | 34 |
38 } // namespace test | 35 } // namespace test |
39 } // namespace ash | 36 } // namespace ash |
40 | 37 |
41 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 38 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |