OLD | NEW |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 params->page_id = page_id; | 44 params->page_id = page_id; |
45 params->nav_entry_id = nav_entry_id; | 45 params->nav_entry_id = nav_entry_id; |
46 params->url = url; | 46 params->url = url; |
47 params->referrer = Referrer(); | 47 params->referrer = Referrer(); |
48 params->transition = transition; | 48 params->transition = transition; |
49 params->redirects = std::vector<GURL>(); | 49 params->redirects = std::vector<GURL>(); |
50 params->should_update_history = false; | 50 params->should_update_history = false; |
51 params->searchable_form_url = GURL(); | 51 params->searchable_form_url = GURL(); |
52 params->searchable_form_encoding = std::string(); | 52 params->searchable_form_encoding = std::string(); |
53 params->did_create_new_entry = did_create_new_entry; | 53 params->did_create_new_entry = did_create_new_entry; |
54 params->security_info = std::string(); | |
55 params->gesture = NavigationGestureUser; | 54 params->gesture = NavigationGestureUser; |
56 params->was_within_same_page = false; | 55 params->was_within_same_page = false; |
57 params->method = "GET"; | 56 params->method = "GET"; |
58 params->page_state = PageState::CreateFromURL(url); | 57 params->page_state = PageState::CreateFromURL(url); |
59 } | 58 } |
60 | 59 |
61 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) | 60 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) |
62 : rwh_(RenderWidgetHostImpl::From(rwh)), | 61 : rwh_(RenderWidgetHostImpl::From(rwh)), |
63 is_showing_(false), | 62 is_showing_(false), |
64 is_occluded_(false), | 63 is_occluded_(false), |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 338 |
340 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 339 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
341 return contents()->GetMainFrame(); | 340 return contents()->GetMainFrame(); |
342 } | 341 } |
343 | 342 |
344 TestWebContents* RenderViewHostImplTestHarness::contents() { | 343 TestWebContents* RenderViewHostImplTestHarness::contents() { |
345 return static_cast<TestWebContents*>(web_contents()); | 344 return static_cast<TestWebContents*>(web_contents()); |
346 } | 345 } |
347 | 346 |
348 } // namespace content | 347 } // namespace content |
OLD | NEW |