OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WM_TEST_WM_TEST_BASE_H_ |
| 6 #define WM_TEST_WM_TEST_BASE_H_ |
| 7 |
| 8 #include "ash/shell.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/aura/env_observer.h" |
| 13 |
| 14 namespace wm { |
| 15 namespace test { |
| 16 |
| 17 class WmTestBase : public testing::Test { |
| 18 public: |
| 19 WmTestBase(); |
| 20 virtual ~WmTestBase(); |
| 21 |
| 22 MessageLoopForUI* message_loop() { return &message_loop_; } |
| 23 |
| 24 // Overridden from testing::Test: |
| 25 virtual void SetUp() OVERRIDE; |
| 26 virtual void TearDown() OVERRIDE; |
| 27 |
| 28 protected: |
| 29 void RunAllPendingInMessageLoop(); |
| 30 |
| 31 private: |
| 32 MessageLoopForUI message_loop_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(WmTestBase); |
| 35 }; |
| 36 |
| 37 } // namespace test |
| 38 } // namespace wm |
| 39 |
| 40 #endif // WM_TEST_WM_TEST_BASE_H_ |
OLD | NEW |