• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
7 
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"
12 
13 namespace aura {
14 namespace test {
15 class AuraTestHelper;
16 }
17 }
18 
19 namespace base {
20 class MessageLoopForUI;
21 }
22 
23 namespace wm {
24 class WMState;
25 }
26 
27 namespace views {
28 
29 class ViewsTestHelperAura : public ViewsTestHelper {
30  public:
31   ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
32                       ui::ContextFactory* context_factory);
33   virtual ~ViewsTestHelperAura();
34 
35   // Overridden from ViewsTestHelper:
36   virtual void SetUp() OVERRIDE;
37   virtual void TearDown() OVERRIDE;
38   virtual gfx::NativeWindow GetContext() OVERRIDE;
39 
40  private:
41   ui::ContextFactory* context_factory_;
42   scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
43   scoped_ptr<wm::WMState> wm_state_;
44 
45   DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura);
46 };
47 
48 }  // namespace views
49 
50 #endif  // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
51