Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: content/test/test_render_view_host.cc

Issue 423393008: Keep a copy of page id in RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698