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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 void TestRenderViewHost::TestOnStartDragging( | 344 void TestRenderViewHost::TestOnStartDragging( |
345 const DropData& drop_data) { | 345 const DropData& drop_data) { |
346 blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery; | 346 blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery; |
347 DragEventSourceInfo event_info; | 347 DragEventSourceInfo event_info; |
348 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), | 348 OnStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Vector2d(), |
349 event_info); | 349 event_info); |
350 } | 350 } |
351 | 351 |
352 void TestRenderViewHost::TestOnUpdateStateWithFile( | 352 void TestRenderViewHost::TestOnUpdateStateWithFile( |
353 int process_id, | 353 int page_id, |
354 const base::FilePath& file_path) { | 354 const base::FilePath& file_path) { |
355 OnUpdateState(process_id, | 355 OnUpdateState(page_id, |
356 PageState::CreateForTesting(GURL("http://www.google.com"), | 356 PageState::CreateForTesting(GURL("http://www.google.com"), |
357 false, | 357 false, |
358 "data", | 358 "data", |
359 &file_path)); | 359 &file_path)); |
360 } | 360 } |
361 | 361 |
362 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { | 362 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { |
363 simulate_fetch_via_proxy_ = proxy; | 363 simulate_fetch_via_proxy_ = proxy; |
364 } | 364 } |
365 | 365 |
(...skipping 28 matching lines...) Expand all Loading... |
394 | 394 |
395 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 395 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
396 return contents()->GetMainFrame(); | 396 return contents()->GetMainFrame(); |
397 } | 397 } |
398 | 398 |
399 TestWebContents* RenderViewHostImplTestHarness::contents() { | 399 TestWebContents* RenderViewHostImplTestHarness::contents() { |
400 return static_cast<TestWebContents*>(web_contents()); | 400 return static_cast<TestWebContents*>(web_contents()); |
401 } | 401 } |
402 | 402 |
403 } // namespace content | 403 } // namespace content |
OLD | NEW |