Roll src/third_party/WebKit 6f84130:7353389 (svn 184386:184391)
[chromium-blink-merge.git] / ui / views / test / views_test_helper_aura.h
blob87d48aee8a4f7dc042e4288b58f9f6f1539bf20a
1 // Copyright 2014 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.
5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/views/test/views_test_helper.h"
13 namespace aura {
14 namespace test {
15 class AuraTestHelper;
19 namespace base {
20 class MessageLoopForUI;
23 namespace wm {
24 class WMState;
27 namespace views {
29 class ViewsTestHelperAura : public ViewsTestHelper {
30 public:
31 ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
32 ui::ContextFactory* context_factory);
33 virtual ~ViewsTestHelperAura();
35 // Overridden from ViewsTestHelper:
36 virtual void SetUp() override;
37 virtual void TearDown() override;
38 virtual gfx::NativeWindow GetContext() override;
40 private:
41 ui::ContextFactory* context_factory_;
42 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
43 scoped_ptr<wm::WMState> wm_state_;
45 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura);
48 } // namespace views
50 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_