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

Side by Side Diff: ui/views/test/views_test_helper_aura.h

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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 unified diff | Download patch
« no previous file with comments | « ui/views/test/views_test_helper.h ('k') | ui/views/test/views_test_helper_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ 6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 13 matching lines...) Expand all
24 24
25 namespace base { 25 namespace base {
26 class MessageLoopForUI; 26 class MessageLoopForUI;
27 } 27 }
28 28
29 namespace views { 29 namespace views {
30 30
31 class ViewsTestHelperAura : public ViewsTestHelper { 31 class ViewsTestHelperAura : public ViewsTestHelper {
32 public: 32 public:
33 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, 33 ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
34 ui::ContextFactory* context_factory); 34 ui::ContextFactory* context_factory,
35 ui::ContextFactoryPrivate* context_factory_private);
35 ~ViewsTestHelperAura() override; 36 ~ViewsTestHelperAura() override;
36 37
37 void EnableMusWithWindowTreeClient( 38 void EnableMusWithWindowTreeClient(
38 aura::WindowTreeClient* window_tree_client); 39 aura::WindowTreeClient* window_tree_client);
39 40
40 // Overridden from ViewsTestHelper: 41 // Overridden from ViewsTestHelper:
41 void SetUp() override; 42 void SetUp() override;
42 void TearDown() override; 43 void TearDown() override;
43 gfx::NativeWindow GetContext() override; 44 gfx::NativeWindow GetContext() override;
44 45
45 private: 46 private:
46 ui::ContextFactory* context_factory_; 47 ui::ContextFactory* context_factory_;
48 ui::ContextFactoryPrivate* context_factory_private_;
47 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; 49 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_;
48 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 50 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); 52 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura);
51 }; 53 };
52 54
53 } // namespace views 55 } // namespace views
54 56
55 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ 57 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/test/views_test_helper.h ('k') | ui/views/test/views_test_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698