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

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

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unittests and adding one EXPECT clause. Created 8 years, 7 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/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { 63 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() {
64 return NULL; 64 return NULL;
65 } 65 }
66 66
67 bool TestRenderWidgetHostView::HasFocus() const { 67 bool TestRenderWidgetHostView::HasFocus() const {
68 return true; 68 return true;
69 } 69 }
70 70
71 bool TestRenderWidgetHostView::HasSurface() const {
72 return false;
73 }
74
71 void TestRenderWidgetHostView::Show() { 75 void TestRenderWidgetHostView::Show() {
72 is_showing_ = true; 76 is_showing_ = true;
73 } 77 }
74 78
75 void TestRenderWidgetHostView::Hide() { 79 void TestRenderWidgetHostView::Hide() {
76 is_showing_ = false; 80 is_showing_ = false;
77 } 81 }
78 82
79 bool TestRenderWidgetHostView::IsShowing() { 83 bool TestRenderWidgetHostView::IsShowing() {
80 return is_showing_; 84 return is_showing_;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 330
327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 331 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
328 return static_cast<TestRenderViewHost*>(active_rvh()); 332 return static_cast<TestRenderViewHost*>(active_rvh());
329 } 333 }
330 334
331 TestWebContents* RenderViewHostImplTestHarness::contents() { 335 TestWebContents* RenderViewHostImplTestHarness::contents() {
332 return static_cast<TestWebContents*>(web_contents()); 336 return static_cast<TestWebContents*>(web_contents());
333 } 337 }
334 338
335 } // namespace content 339 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698