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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 void TestRenderViewHost::TestOnStartDragging( | 339 void TestRenderViewHost::TestOnStartDragging( |
340 const DropData& drop_data) { | 340 const DropData& drop_data) { |
341 blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery; | 341 blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery; |
342 DragEventSourceInfo event_info; | 342 DragEventSourceInfo event_info; |
343 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), | 343 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), |
344 event_info); | 344 event_info); |
345 } | 345 } |
346 | 346 |
347 void TestRenderViewHost::TestOnUpdateStateWithFile( | 347 void TestRenderViewHost::TestOnUpdateStateWithFile( |
348 int process_id, | 348 int page_id, |
349 const base::FilePath& file_path) { | 349 const base::FilePath& file_path) { |
350 OnUpdateState(process_id, | 350 OnUpdateState(page_id, |
351 PageState::CreateForTesting(GURL("http://www.google.com"), | 351 PageState::CreateForTesting(GURL("http://www.google.com"), |
352 false, | 352 false, |
353 "data", | 353 "data", |
354 &file_path)); | 354 &file_path)); |
355 } | 355 } |
356 | 356 |
357 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { | 357 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |
358 simulate_fetch_via_proxy_ = proxy; | 358 simulate_fetch_via_proxy_ = proxy; |
359 } | 359 } |
360 | 360 |
(...skipping 26 matching lines...) Expand all Loading... |
387 | 387 |
388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
389 return static_cast<TestRenderFrameHost*>(main_rfh()); | 389 return static_cast<TestRenderFrameHost*>(main_rfh()); |
390 } | 390 } |
391 | 391 |
392 TestWebContents* RenderViewHostImplTestHarness::contents() { | 392 TestWebContents* RenderViewHostImplTestHarness::contents() { |
393 return static_cast<TestWebContents*>(web_contents()); | 393 return static_cast<TestWebContents*>(web_contents()); |
394 } | 394 } |
395 | 395 |
396 } // namespace content | 396 } // namespace content |
OLD | NEW |