| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |