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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

Issue 10073002: TabContents -> WebContentsImpl, part 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a few Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/resource_request_info_impl.cc ('k') | no next file » | 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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/browser/renderer_host/render_view_host_impl.h" 12 #include "content/browser/renderer_host/render_view_host_impl.h"
13 #include "content/browser/renderer_host/render_widget_host_view_base.h" 13 #include "content/browser/renderer_host/render_widget_host_view_base.h"
14 #include "content/public/common/page_transition_types.h" 14 #include "content/public/common/page_transition_types.h"
15 #include "content/test/test_renderer_host.h" 15 #include "content/test/test_renderer_host.h"
16 16
17 // This file provides a testing framework for mocking out the RenderProcessHost 17 // This file provides a testing framework for mocking out the RenderProcessHost
18 // layer. It allows you to test RenderViewHost, TabContents, 18 // layer. It allows you to test RenderViewHost, WebContentsImpl,
19 // NavigationController, and other layers above that without running an actual 19 // NavigationController, and other layers above that without running an actual
20 // renderer process. 20 // renderer process.
21 // 21 //
22 // To use, derive your test base class from RenderViewHostImplTestHarness. 22 // To use, derive your test base class from RenderViewHostImplTestHarness.
23 23
24 struct ViewHostMsg_FrameNavigate_Params; 24 struct ViewHostMsg_FrameNavigate_Params;
25 25
26 namespace gfx { 26 namespace gfx {
27 class Rect; 27 class Rect;
28 } 28 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 #if defined(COMPILER_MSVC) 175 #if defined(COMPILER_MSVC)
176 // See comment for same warning on RenderViewHostImpl. 176 // See comment for same warning on RenderViewHostImpl.
177 #pragma warning(push) 177 #pragma warning(push)
178 #pragma warning(disable: 4250) 178 #pragma warning(disable: 4250)
179 #endif 179 #endif
180 180
181 // TestRenderViewHost ---------------------------------------------------------- 181 // TestRenderViewHost ----------------------------------------------------------
182 182
183 // TODO(brettw) this should use a TestWebContents which should be generalized 183 // TODO(brettw) this should use a TestWebContents which should be generalized
184 // from the TabContents test. We will probably also need that class' version of 184 // from the WebContentsImpl test. We will probably also need that class' version
185 // CreateRenderViewForRenderManager when more complicate tests start using this. 185 // of CreateRenderViewForRenderManager when more complicated tests start using
186 // this.
186 // 187 //
187 // Note that users outside of content must use this class by getting 188 // Note that users outside of content must use this class by getting
188 // the separate content::RenderViewHostTester interface via 189 // the separate content::RenderViewHostTester interface via
189 // RenderViewHostTester::For(rvh) on the RenderViewHost they want to 190 // RenderViewHostTester::For(rvh) on the RenderViewHost they want to
190 // drive tests on. 191 // drive tests on.
191 // 192 //
192 // Users within content may directly static_cast from a 193 // Users within content may directly static_cast from a
193 // RenderViewHost* to a TestRenderViewHost*. 194 // RenderViewHost* to a TestRenderViewHost*.
194 // 195 //
195 // The reasons we do it this way rather than extending the parallel 196 // The reasons we do it this way rather than extending the parallel
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 TestRenderViewHost* active_test_rvh(); 312 TestRenderViewHost* active_test_rvh();
312 TestWebContents* contents(); 313 TestWebContents* contents();
313 314
314 private: 315 private:
315 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 316 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
316 }; 317 };
317 318
318 } // namespace content 319 } // namespace content
319 320
320 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 321 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_request_info_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698