| Index: wm/test/wm_test_base.h
|
| diff --git a/wm/test/wm_test_base.h b/wm/test/wm_test_base.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0130bd3b30e3e5fb43ca9ab929c9db7c876b1cd
|
| --- /dev/null
|
| +++ b/wm/test/wm_test_base.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WM_TEST_WM_TEST_BASE_H_
|
| +#define WM_TEST_WM_TEST_BASE_H_
|
| +
|
| +#include "ash/shell.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "base/message_loop.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +#include "ui/aura/env_observer.h"
|
| +
|
| +namespace wm {
|
| +namespace test {
|
| +
|
| +class WmTestBase : public testing::Test {
|
| + public:
|
| + WmTestBase();
|
| + virtual ~WmTestBase();
|
| +
|
| + MessageLoopForUI* message_loop() { return &message_loop_; }
|
| +
|
| + // Overridden from testing::Test:
|
| + virtual void SetUp() OVERRIDE;
|
| + virtual void TearDown() OVERRIDE;
|
| +
|
| + protected:
|
| + void RunAllPendingInMessageLoop();
|
| +
|
| + private:
|
| + MessageLoopForUI message_loop_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WmTestBase);
|
| +};
|
| +
|
| +} // namespace test
|
| +} // namespace wm
|
| +
|
| +#endif // WM_TEST_WM_TEST_BASE_H_
|
|
|