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

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

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/chrome.gyp » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "base/gfx/rect.h" 7 #include "base/gfx/rect.h"
8 #include "chrome/browser/renderer_host/test/test_backing_store.h" 8 #include "chrome/browser/renderer_host/test/test_backing_store.h"
9 #include "chrome/browser/tab_contents/test_tab_contents.h" 9 #include "chrome/browser/tab_contents/test_tab_contents.h"
10 #include "chrome/common/dom_storage_common.h" 10 #include "chrome/common/dom_storage_common.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return gfx::Rect(); 84 return gfx::Rect();
85 } 85 }
86 86
87 gfx::Rect TestRenderWidgetHostView::GetRootWindowRect() { 87 gfx::Rect TestRenderWidgetHostView::GetRootWindowRect() {
88 return gfx::Rect(); 88 return gfx::Rect();
89 } 89 }
90 90
91 void TestRenderWidgetHostView::SetActive(bool active) { 91 void TestRenderWidgetHostView::SetActive(bool active) {
92 // <viettrungluu@gmail.com>: Do I need to do anything here? 92 // <viettrungluu@gmail.com>: Do I need to do anything here?
93 } 93 }
94
95 gfx::PluginWindowHandle
96 TestRenderWidgetHostView::AllocateFakePluginWindowHandle() {
97 return NULL;
98 }
99
100 void TestRenderWidgetHostView::DestroyFakePluginWindowHandle(
101 gfx::PluginWindowHandle window) {
102 }
103
104 void TestRenderWidgetHostView::GPUPluginSetIOSurface(
105 gfx::PluginWindowHandle window,
106 int32 width,
107 int32 height,
108 uint64 io_surface_identifier) {
109 }
110
111 void TestRenderWidgetHostView::GPUPluginBuffersSwapped(
112 gfx::PluginWindowHandle window) {
113 }
114
115 void TestRenderWidgetHostView::DrawGPUPluginInstances(CGLContextObj context) {
116 }
94 #endif 117 #endif
95 118
96 void RenderViewHostTestHarness::NavigateAndCommit(const GURL& url) { 119 void RenderViewHostTestHarness::NavigateAndCommit(const GURL& url) {
97 controller().LoadURL(url, GURL(), 0); 120 controller().LoadURL(url, GURL(), 0);
98 rvh()->SendNavigate(process()->max_page_id() + 1, url); 121 rvh()->SendNavigate(process()->max_page_id() + 1, url);
99 } 122 }
100 123
101 void RenderViewHostTestHarness::SetUp() { 124 void RenderViewHostTestHarness::SetUp() {
102 // See comment above profile_ decl for why we check for NULL here. 125 // See comment above profile_ decl for why we check for NULL here.
103 if (!profile_.get()) 126 if (!profile_.get())
104 profile_.reset(new TestingProfile()); 127 profile_.reset(new TestingProfile());
105 128
106 // This will be deleted when the TabContents goes away. 129 // This will be deleted when the TabContents goes away.
107 SiteInstance* instance = SiteInstance::CreateSiteInstance(profile_.get()); 130 SiteInstance* instance = SiteInstance::CreateSiteInstance(profile_.get());
108 131
109 contents_.reset(new TestTabContents(profile_.get(), instance)); 132 contents_.reset(new TestTabContents(profile_.get(), instance));
110 133
111 user_data_manager_.reset(UserDataManager::Create()); 134 user_data_manager_.reset(UserDataManager::Create());
112 } 135 }
113 136
114 void RenderViewHostTestHarness::TearDown() { 137 void RenderViewHostTestHarness::TearDown() {
115 contents_.reset(); 138 contents_.reset();
116 139
117 // Make sure that we flush any messages related to TabContents destruction 140 // Make sure that we flush any messages related to TabContents destruction
118 // before we destroy the profile. 141 // before we destroy the profile.
119 MessageLoop::current()->RunAllPending(); 142 MessageLoop::current()->RunAllPending();
120 } 143 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698