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

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try to make tests happy by still creating shared context Created 6 years, 11 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/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.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) 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/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { 237 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) {
238 if (static_cast<size_t>(GetActiveViewCount()) == count) 238 if (static_cast<size_t>(GetActiveViewCount()) == count)
239 return FastShutdownIfPossible(); 239 return FastShutdownIfPossible();
240 return false; 240 return false;
241 } 241 }
242 242
243 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { 243 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const {
244 return base::TimeDelta::FromMilliseconds(0); 244 return base::TimeDelta::FromMilliseconds(0);
245 } 245 }
246 246
247 void MockRenderProcessHost::SurfaceUpdated(int32 surface_id) {
248 }
249
250 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { 247 void MockRenderProcessHost::ResumeRequestsForView(int route_id) {
251 } 248 }
252 249
253 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 250 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
254 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 251 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
255 } 252 }
256 253
257 #if defined(ENABLE_WEBRTC) 254 #if defined(ENABLE_WEBRTC)
258 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { 255 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) {
259 } 256 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 295 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
299 it != processes_.end(); ++it) { 296 it != processes_.end(); ++it) {
300 if (*it == host) { 297 if (*it == host) {
301 processes_.weak_erase(it); 298 processes_.weak_erase(it);
302 break; 299 break;
303 } 300 }
304 } 301 }
305 } 302 }
306 303
307 } // content 304 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698