Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: wm/test/wm_test_base.h

Issue 11485006: Add window manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Push gfx::AcceleratedWidget usage into platform specific code. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « wm/test/test_shell_delegate.cc ('k') | wm/test/wm_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..be882845e29fd4c0506a89b1e577f65861bce3de
--- /dev/null
+++ b/wm/test/wm_test_base.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2013 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_
« no previous file with comments | « wm/test/test_shell_delegate.cc ('k') | wm/test/wm_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698