| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |
| 6 #define UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/aura/test/aura_test_base.h" | 9 #include "ui/aura/test/aura_test_base.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 // A base class for aura unit tests that use mus. You can also use AuraTestBase | 14 // A base class for aura unit tests that use mus. You can also use AuraTestBase |
| 15 // directly and call EnableMus() before SetUp(). Prefer this if you don't need | 15 // directly and call EnableMusWithTestWindowTree() before SetUp(). Prefer this |
| 16 // to subclass and want to target mus. | 16 // if you don't need to subclass and want to target mus. |
| 17 // | 17 // |
| 18 // This test class sets up the connection to mus as the window manager. | 18 // This test class sets up the connection to mus as the window manager. |
| 19 class AuraMusWmTestBase : public AuraTestBase { | 19 class AuraMusWmTestBase : public AuraTestBase { |
| 20 public: | 20 public: |
| 21 AuraMusWmTestBase(); | 21 AuraMusWmTestBase(); |
| 22 ~AuraMusWmTestBase() override; | 22 ~AuraMusWmTestBase() override; |
| 23 | 23 |
| 24 // AuraTestBase: | 24 // AuraTestBase: |
| 25 void SetUp() override; | 25 void SetUp() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(AuraMusWmTestBase); | 28 DISALLOW_COPY_AND_ASSIGN(AuraMusWmTestBase); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 // A base class for aura unit tests that use mus. You can also use AuraTestBase | 31 // A base class for aura unit tests that use mus. You can also use AuraTestBase |
| 32 // directly and call EnableMus() before SetUp(). Prefer this if you don't need | 32 // directly and call EnableMusWithTestWindowTree() before SetUp(). Prefer this |
| 33 // to subclass and want to target mus. | 33 // if you don't need to subclass and want to target mus. |
| 34 // | 34 // |
| 35 // This test class sets up the connection to mus as a normal client (not the | 35 // This test class sets up the connection to mus as a normal client (not the |
| 36 // window manager). | 36 // window manager). |
| 37 class AuraMusClientTestBase : public AuraTestBase { | 37 class AuraMusClientTestBase : public AuraTestBase { |
| 38 public: | 38 public: |
| 39 AuraMusClientTestBase(); | 39 AuraMusClientTestBase(); |
| 40 ~AuraMusClientTestBase() override; | 40 ~AuraMusClientTestBase() override; |
| 41 | 41 |
| 42 // AuraTestBase: | 42 // AuraTestBase: |
| 43 void SetUp() override; | 43 void SetUp() override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(AuraMusClientTestBase); | 46 DISALLOW_COPY_AND_ASSIGN(AuraMusClientTestBase); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace test | 49 } // namespace test |
| 50 } // namespace aura | 50 } // namespace aura |
| 51 | 51 |
| 52 #endif // UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ | 52 #endif // UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |
| OLD | NEW |