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/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
6 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 6 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
8 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
9 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
10 #include "content/browser/web_contents/navigation_controller_impl.h" | 10 #include "content/browser/web_contents/navigation_controller_impl.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 params.redirects = std::vector<GURL>(); | 316 params.redirects = std::vector<GURL>(); |
317 params.should_update_history = true; | 317 params.should_update_history = true; |
318 params.searchable_form_url = GURL(); | 318 params.searchable_form_url = GURL(); |
319 params.searchable_form_encoding = std::string(); | 319 params.searchable_form_encoding = std::string(); |
320 params.password_form = PasswordForm(); | 320 params.password_form = PasswordForm(); |
321 params.security_info = std::string(); | 321 params.security_info = std::string(); |
322 params.gesture = NavigationGestureUser; | 322 params.gesture = NavigationGestureUser; |
323 params.contents_mime_type = contents_mime_type_; | 323 params.contents_mime_type = contents_mime_type_; |
324 params.is_post = false; | 324 params.is_post = false; |
325 params.was_within_same_page = false; | 325 params.was_within_same_page = false; |
326 params.http_status_code = 0; | 326 params.http_status_code = 200; |
327 params.socket_address.set_host("2001:db8::1"); | 327 params.socket_address.set_host("2001:db8::1"); |
328 params.socket_address.set_port(80); | 328 params.socket_address.set_port(80); |
329 params.was_fetched_via_proxy = simulate_fetch_via_proxy_; | 329 params.was_fetched_via_proxy = simulate_fetch_via_proxy_; |
330 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url)); | 330 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url)); |
331 params.original_request_url = original_request_url; | 331 params.original_request_url = original_request_url; |
332 | 332 |
333 ViewHostMsg_FrameNavigate msg(1, params); | 333 ViewHostMsg_FrameNavigate msg(1, params); |
334 OnMsgNavigate(msg); | 334 OnMsgNavigate(msg); |
335 } | 335 } |
336 | 336 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 380 |
381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
382 return static_cast<TestRenderViewHost*>(active_rvh()); | 382 return static_cast<TestRenderViewHost*>(active_rvh()); |
383 } | 383 } |
384 | 384 |
385 TestWebContents* RenderViewHostImplTestHarness::contents() { | 385 TestWebContents* RenderViewHostImplTestHarness::contents() { |
386 return static_cast<TestWebContents*>(web_contents()); | 386 return static_cast<TestWebContents*>(web_contents()); |
387 } | 387 } |
388 | 388 |
389 } // namespace content | 389 } // namespace content |
OLD | NEW |