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

Side by Side Diff: content/test/test_render_view_host.h

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on Charlie's latest review. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/test/test_render_frame_host_factory.cc ('k') | content/test/test_render_view_host.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_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/browser/renderer_host/render_view_host_impl.h" 14 #include "content/browser/renderer_host/render_view_host_impl.h"
15 #include "content/browser/renderer_host/render_widget_host_view_base.h" 15 #include "content/browser/renderer_host/render_widget_host_view_base.h"
16 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "content/public/test/test_renderer_host.h" 17 #include "content/public/test/test_renderer_host.h"
18 #include "content/test/test_render_frame_host.h"
18 #include "ui/base/layout.h" 19 #include "ui/base/layout.h"
19 #include "ui/gfx/vector2d_f.h" 20 #include "ui/gfx/vector2d_f.h"
20 21
21 // This file provides a testing framework for mocking out the RenderProcessHost 22 // This file provides a testing framework for mocking out the RenderProcessHost
22 // layer. It allows you to test RenderViewHost, WebContentsImpl, 23 // layer. It allows you to test RenderViewHost, WebContentsImpl,
23 // NavigationController, and other layers above that without running an actual 24 // NavigationController, and other layers above that without running an actual
24 // renderer process. 25 // renderer process.
25 // 26 //
26 // To use, derive your test base class from RenderViewHostImplTestHarness. 27 // To use, derive your test base class from RenderViewHostImplTestHarness.
27 28
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 366
366 // Adds methods to get straight at the impl classes. 367 // Adds methods to get straight at the impl classes.
367 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness { 368 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness {
368 public: 369 public:
369 RenderViewHostImplTestHarness(); 370 RenderViewHostImplTestHarness();
370 virtual ~RenderViewHostImplTestHarness(); 371 virtual ~RenderViewHostImplTestHarness();
371 372
372 TestRenderViewHost* test_rvh(); 373 TestRenderViewHost* test_rvh();
373 TestRenderViewHost* pending_test_rvh(); 374 TestRenderViewHost* pending_test_rvh();
374 TestRenderViewHost* active_test_rvh(); 375 TestRenderViewHost* active_test_rvh();
376 TestRenderFrameHost* main_test_rfh();
375 TestWebContents* contents(); 377 TestWebContents* contents();
376 378
377 private: 379 private:
378 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> 380 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors>
379 ScopedSetSupportedScaleFactors; 381 ScopedSetSupportedScaleFactors;
380 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 382 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
381 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 383 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
382 }; 384 };
383 385
384 } // namespace content 386 } // namespace content
385 387
386 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 388 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/test/test_render_frame_host_factory.cc ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698