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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 9838009: Clean up a few TODO items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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
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/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/renderer_host/test_render_view_host.h" 6 #include "content/browser/renderer_host/test_render_view_host.h"
7 #include "content/browser/site_instance_impl.h" 7 #include "content/browser/site_instance_impl.h"
8 #include "content/browser/tab_contents/navigation_controller_impl.h" 8 #include "content/browser/tab_contents/navigation_controller_impl.h"
9 #include "content/browser/tab_contents/test_tab_contents.h" 9 #include "content/browser/tab_contents/test_tab_contents.h"
10 #include "content/common/dom_storage_common.h" 10 #include "content/common/dom_storage_common.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 void TestRenderViewHost::SimulateWasHidden() { 282 void TestRenderViewHost::SimulateWasHidden() {
283 WasHidden(); 283 WasHidden();
284 } 284 }
285 285
286 void TestRenderViewHost::SimulateWasRestored() { 286 void TestRenderViewHost::SimulateWasRestored() {
287 WasRestored(); 287 WasRestored();
288 } 288 }
289 289
290 bool TestRenderViewHost::TestOnMessageReceived(const IPC::Message& msg) {
291 return OnMessageReceived(msg);
292 }
293
294 void TestRenderViewHost::TestOnMsgStartDragging( 290 void TestRenderViewHost::TestOnMsgStartDragging(
295 const WebDropData& drop_data) { 291 const WebDropData& drop_data) {
296 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery; 292 WebKit::WebDragOperationsMask drag_operation = WebKit::WebDragOperationEvery;
297 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point()); 293 OnMsgStartDragging(drop_data, drag_operation, SkBitmap(), gfx::Point());
298 } 294 }
299 295
300 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) { 296 void TestRenderViewHost::set_simulate_fetch_via_proxy(bool proxy) {
301 simulate_fetch_via_proxy_ = proxy; 297 simulate_fetch_via_proxy_ = proxy;
302 } 298 }
303 299
(...skipping 13 matching lines...) Expand all
317 313
318 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 314 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
319 return static_cast<TestRenderViewHost*>(active_rvh()); 315 return static_cast<TestRenderViewHost*>(active_rvh());
320 } 316 }
321 317
322 TestTabContents* RenderViewHostImplTestHarness::contents() { 318 TestTabContents* RenderViewHostImplTestHarness::contents() {
323 return static_cast<TestTabContents*>(web_contents()); 319 return static_cast<TestTabContents*>(web_contents());
324 } 320 }
325 321
326 } // namespace content 322 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698