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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.h

Issue 5273011: An experimental fix for Bug 64726... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | « no previous file | chrome/browser/renderer_host/test/test_render_view_host.cc » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // 42 //
43 // To use, derive your test base class from RenderViewHostTestHarness. 43 // To use, derive your test base class from RenderViewHostTestHarness.
44 44
45 // TestRenderViewHostView ------------------------------------------------------ 45 // TestRenderViewHostView ------------------------------------------------------
46 46
47 // Subclass the RenderViewHost's view so that we can call Show(), etc., 47 // Subclass the RenderViewHost's view so that we can call Show(), etc.,
48 // without having side-effects. 48 // without having side-effects.
49 class TestRenderWidgetHostView : public RenderWidgetHostView { 49 class TestRenderWidgetHostView : public RenderWidgetHostView {
50 public: 50 public:
51 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); 51 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh);
52 virtual ~TestRenderWidgetHostView();
52 53
53 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 54 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
54 const gfx::Rect& pos) {} 55 const gfx::Rect& pos) {}
55 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) {} 56 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) {}
56 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; } 57 virtual RenderWidgetHost* GetRenderWidgetHost() const { return NULL; }
57 virtual void DidBecomeSelected() {} 58 virtual void DidBecomeSelected() {}
58 virtual void WasHidden() {} 59 virtual void WasHidden() {}
59 virtual void SetSize(const gfx::Size& size) {} 60 virtual void SetSize(const gfx::Size& size) {}
60 virtual gfx::NativeView GetNativeView() { return NULL; } 61 virtual gfx::NativeView GetNativeView() { return NULL; }
61 virtual void MovePluginWindows( 62 virtual void MovePluginWindows(
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 289
289 MockRenderProcessHostFactory rph_factory_; 290 MockRenderProcessHostFactory rph_factory_;
290 TestRenderViewHostFactory rvh_factory_; 291 TestRenderViewHostFactory rvh_factory_;
291 292
292 scoped_ptr<TestTabContents> contents_; 293 scoped_ptr<TestTabContents> contents_;
293 294
294 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
295 }; 296 };
296 297
297 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 298 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698