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

Side by Side Diff: content/public/test/render_view_test.h

Issue 801973002: Introduce CompositorDependencies for RenderWidgetCompositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compdep: . Created 6 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 | « content/content_tests.gypi ('k') | content/public/test/render_view_test.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace gfx { 28 namespace gfx {
29 class Rect; 29 class Rect;
30 } 30 }
31 31
32 namespace content { 32 namespace content {
33 class ContentBrowserClient; 33 class ContentBrowserClient;
34 class ContentClient; 34 class ContentClient;
35 class ContentRendererClient; 35 class ContentRendererClient;
36 class FakeCompositorDependencies;
36 class MockRenderProcess; 37 class MockRenderProcess;
37 class PageState; 38 class PageState;
38 class RendererMainPlatformDelegate; 39 class RendererMainPlatformDelegate;
39 class RendererBlinkPlatformImplNoSandboxImpl; 40 class RendererBlinkPlatformImplNoSandboxImpl;
40 class RendererScheduler; 41 class RendererScheduler;
41 class RenderView; 42 class RenderView;
42 43
43 class RenderViewTest : public testing::Test { 44 class RenderViewTest : public testing::Test {
44 public: 45 public:
45 // A special BlinkPlatformImpl class for getting rid off the dependency to the 46 // A special BlinkPlatformImpl class for getting rid off the dependency to the
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 135
135 // Allows a subclass to customize the initial size of the RenderView. 136 // Allows a subclass to customize the initial size of the RenderView.
136 virtual scoped_ptr<ViewMsg_Resize_Params> InitialSizeParams(); 137 virtual scoped_ptr<ViewMsg_Resize_Params> InitialSizeParams();
137 138
138 // testing::Test 139 // testing::Test
139 void SetUp() override; 140 void SetUp() override;
140 141
141 void TearDown() override; 142 void TearDown() override;
142 143
143 base::MessageLoop msg_loop_; 144 base::MessageLoop msg_loop_;
145 scoped_ptr<FakeCompositorDependencies> compositor_deps_;
144 scoped_ptr<MockRenderProcess> mock_process_; 146 scoped_ptr<MockRenderProcess> mock_process_;
145 // We use a naked pointer because we don't want to expose RenderViewImpl in 147 // We use a naked pointer because we don't want to expose RenderViewImpl in
146 // the embedder's namespace. 148 // the embedder's namespace.
147 RenderView* view_; 149 RenderView* view_;
148 RendererBlinkPlatformImplNoSandbox blink_platform_impl_; 150 RendererBlinkPlatformImplNoSandbox blink_platform_impl_;
149 scoped_ptr<ContentClient> content_client_; 151 scoped_ptr<ContentClient> content_client_;
150 scoped_ptr<ContentBrowserClient> content_browser_client_; 152 scoped_ptr<ContentBrowserClient> content_browser_client_;
151 scoped_ptr<ContentRendererClient> content_renderer_client_; 153 scoped_ptr<ContentRendererClient> content_renderer_client_;
152 scoped_ptr<MockRenderThread> render_thread_; 154 scoped_ptr<MockRenderThread> render_thread_;
153 155
154 // Used to setup the process so renderers can run. 156 // Used to setup the process so renderers can run.
155 scoped_ptr<RendererMainPlatformDelegate> platform_; 157 scoped_ptr<RendererMainPlatformDelegate> platform_;
156 scoped_ptr<MainFunctionParams> params_; 158 scoped_ptr<MainFunctionParams> params_;
157 scoped_ptr<base::CommandLine> command_line_; 159 scoped_ptr<base::CommandLine> command_line_;
158 160
159 #if defined(OS_MACOSX) 161 #if defined(OS_MACOSX)
160 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 162 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
161 #endif 163 #endif
162 164
163 private: 165 private:
164 void GoToOffset(int offset, const PageState& state); 166 void GoToOffset(int offset, const PageState& state);
165 }; 167 };
166 168
167 } // namespace content 169 } // namespace content
168 170
169 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 171 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698