Chromium Code Reviews| 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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 public: | 21 public: |
| 22 AuraTestBase(); | 22 AuraTestBase(); |
| 23 virtual ~AuraTestBase(); | 23 virtual ~AuraTestBase(); |
| 24 | 24 |
| 25 TestStackingClient* GetTestStackingClient(); | 25 TestStackingClient* GetTestStackingClient(); |
| 26 | 26 |
| 27 // testing::Test: | 27 // testing::Test: |
| 28 virtual void SetUp() OVERRIDE; | 28 virtual void SetUp() OVERRIDE; |
| 29 virtual void TearDown() OVERRIDE; | 29 virtual void TearDown() OVERRIDE; |
| 30 | 30 |
| 31 protected: | |
| 32 // Flushes message loop. | |
| 33 void FlushMessageLoop(); | |
|
oshima
2011/11/11 21:08:07
Can you rename to RunAllPendingInMessageLoop()?
(t
| |
| 34 | |
| 31 private: | 35 private: |
| 32 MessageLoopForUI message_loop_; | 36 MessageLoopForUI message_loop_; |
| 33 bool setup_called_; | 37 bool setup_called_; |
| 34 bool teardown_called_; | 38 bool teardown_called_; |
| 35 | 39 |
| 36 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); | 40 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); |
| 37 }; | 41 }; |
| 38 | 42 |
| 39 } // namespace test | 43 } // namespace test |
| 40 } // namespace aura | 44 } // namespace aura |
| 41 | 45 |
| 42 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 46 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
| OLD | NEW |