| 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 UI_AURA_TEST_AURA_TEST_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 namespace test { | 16 namespace test { |
| 17 | 17 |
| 18 class TestDesktopDelegate; |
| 19 |
| 18 // A base class for aura unit tests. | 20 // A base class for aura unit tests. |
| 19 class AURA_EXPORT AuraTestBase : public testing::Test { | 21 class AURA_EXPORT AuraTestBase : public testing::Test { |
| 20 public: | 22 public: |
| 21 AuraTestBase(); | 23 AuraTestBase(); |
| 22 virtual ~AuraTestBase(); | 24 virtual ~AuraTestBase(); |
| 23 | 25 |
| 26 TestDesktopDelegate* GetTestDesktopDelegate(); |
| 27 |
| 24 // testing::Test: | 28 // testing::Test: |
| 25 virtual void SetUp() OVERRIDE; | 29 virtual void SetUp() OVERRIDE; |
| 26 virtual void TearDown() OVERRIDE; | 30 virtual void TearDown() OVERRIDE; |
| 27 | 31 |
| 28 private: | 32 private: |
| 29 MessageLoopForUI message_loop_; | 33 MessageLoopForUI message_loop_; |
| 30 bool setup_called_; | 34 bool setup_called_; |
| 31 bool teardown_called_; | 35 bool teardown_called_; |
| 32 | 36 |
| 33 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); | 37 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); |
| 34 }; | 38 }; |
| 35 | 39 |
| 36 } // namespace test | 40 } // namespace test |
| 37 } // namespace aura | 41 } // namespace aura |
| 38 | 42 |
| 39 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 43 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
| OLD | NEW |