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

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

Issue 2741313002: Renamed WasWithinSamePage to WasWithinSameDocument. (Closed)
Patch Set: Addressed review comments Created 3 years, 9 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
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | content/test/test_web_contents.h » ('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 #include "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 params->nav_entry_id = nav_entry_id; 42 params->nav_entry_id = nav_entry_id;
43 params->url = url; 43 params->url = url;
44 params->referrer = Referrer(); 44 params->referrer = Referrer();
45 params->transition = transition; 45 params->transition = transition;
46 params->redirects = std::vector<GURL>(); 46 params->redirects = std::vector<GURL>();
47 params->should_update_history = false; 47 params->should_update_history = false;
48 params->searchable_form_url = GURL(); 48 params->searchable_form_url = GURL();
49 params->searchable_form_encoding = std::string(); 49 params->searchable_form_encoding = std::string();
50 params->did_create_new_entry = did_create_new_entry; 50 params->did_create_new_entry = did_create_new_entry;
51 params->gesture = NavigationGestureUser; 51 params->gesture = NavigationGestureUser;
52 params->was_within_same_page = false; 52 params->was_within_same_document = false;
53 params->method = "GET"; 53 params->method = "GET";
54 params->page_state = PageState::CreateFromURL(url); 54 params->page_state = PageState::CreateFromURL(url);
55 } 55 }
56 56
57 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) 57 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
58 : rwh_(RenderWidgetHostImpl::From(rwh)), 58 : rwh_(RenderWidgetHostImpl::From(rwh)),
59 is_showing_(false), 59 is_showing_(false),
60 is_occluded_(false), 60 is_occluded_(false),
61 did_swap_compositor_frame_(false) { 61 did_swap_compositor_frame_(false) {
62 #if defined(OS_ANDROID) 62 #if defined(OS_ANDROID)
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 305 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
306 return contents()->GetMainFrame(); 306 return contents()->GetMainFrame();
307 } 307 }
308 308
309 TestWebContents* RenderViewHostImplTestHarness::contents() { 309 TestWebContents* RenderViewHostImplTestHarness::contents() {
310 return static_cast<TestWebContents*>(web_contents()); 310 return static_cast<TestWebContents*>(web_contents());
311 } 311 }
312 312
313 } // namespace content 313 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698