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

Side by Side Diff: content/test/test_web_contents.cc

Issue 117693002: Make RenderFrameHostManager swap RenderFrameHosts, not RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts 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_view_host_factory.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 #include "content/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/frame_host/navigation_entry_impl.h" 10 #include "content/browser/frame_host/navigation_entry_impl.h"
(...skipping 25 matching lines...) Expand all
36 TestWebContents* test_web_contents = new TestWebContents(browser_context); 36 TestWebContents* test_web_contents = new TestWebContents(browser_context);
37 test_web_contents->Init(WebContents::CreateParams(browser_context, instance)); 37 test_web_contents->Init(WebContents::CreateParams(browser_context, instance));
38 return test_web_contents; 38 return test_web_contents;
39 } 39 }
40 40
41 TestWebContents::~TestWebContents() { 41 TestWebContents::~TestWebContents() {
42 EXPECT_FALSE(expect_set_history_length_and_prune_); 42 EXPECT_FALSE(expect_set_history_length_and_prune_);
43 } 43 }
44 44
45 RenderViewHost* TestWebContents::GetPendingRenderViewHost() const { 45 RenderViewHost* TestWebContents::GetPendingRenderViewHost() const {
46 return GetRenderManager()->pending_render_view_host_; 46 return GetRenderManager()->pending_render_view_host();
47 } 47 }
48 48
49 TestRenderViewHost* TestWebContents::pending_test_rvh() const { 49 TestRenderViewHost* TestWebContents::pending_test_rvh() const {
50 return static_cast<TestRenderViewHost*>(GetPendingRenderViewHost()); 50 return static_cast<TestRenderViewHost*>(GetPendingRenderViewHost());
51 } 51 }
52 52
53 void TestWebContents::TestDidNavigate(RenderViewHost* render_view_host, 53 void TestWebContents::TestDidNavigate(RenderViewHost* render_view_host,
54 int page_id, 54 int page_id,
55 const GURL& url, 55 const GURL& url,
56 PageTransition transition) { 56 PageTransition transition) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 void TestWebContents::ShowCreatedWidget(int route_id, 244 void TestWebContents::ShowCreatedWidget(int route_id,
245 const gfx::Rect& initial_pos) { 245 const gfx::Rect& initial_pos) {
246 } 246 }
247 247
248 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 248 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
249 } 249 }
250 250
251 } // namespace content 251 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698