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

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

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
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 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void RemovePendingView() OVERRIDE; 66 virtual void RemovePendingView() OVERRIDE;
67 virtual void SetSuddenTerminationAllowed(bool allowed) OVERRIDE; 67 virtual void SetSuddenTerminationAllowed(bool allowed) OVERRIDE;
68 virtual bool SuddenTerminationAllowed() const OVERRIDE; 68 virtual bool SuddenTerminationAllowed() const OVERRIDE;
69 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 69 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
70 virtual bool InSameStoragePartition( 70 virtual bool InSameStoragePartition(
71 StoragePartition* partition) const OVERRIDE; 71 StoragePartition* partition) const OVERRIDE;
72 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; 72 virtual IPC::ChannelProxy* GetChannel() OVERRIDE;
73 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; 73 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE;
74 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; 74 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE;
75 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; 75 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE;
76 virtual void SurfaceUpdated(int32 surface_id) OVERRIDE;
77 virtual void ResumeRequestsForView(int route_id) OVERRIDE; 76 virtual void ResumeRequestsForView(int route_id) OVERRIDE;
78 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; 77 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE;
79 #if defined(ENABLE_WEBRTC) 78 #if defined(ENABLE_WEBRTC)
80 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; 79 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
81 virtual void DisableAecDump() OVERRIDE; 80 virtual void DisableAecDump() OVERRIDE;
82 #endif 81 #endif
83 82
84 // IPC::Sender via RenderProcessHost. 83 // IPC::Sender via RenderProcessHost.
85 virtual bool Send(IPC::Message* msg) OVERRIDE; 84 virtual bool Send(IPC::Message* msg) OVERRIDE;
86 85
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // for deleting all MockRenderProcessHosts that have not deleted by a test in 138 // for deleting all MockRenderProcessHosts that have not deleted by a test in
140 // the destructor and prevent them from being leaked. 139 // the destructor and prevent them from being leaked.
141 mutable ScopedVector<MockRenderProcessHost> processes_; 140 mutable ScopedVector<MockRenderProcessHost> processes_;
142 141
143 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 142 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
144 }; 143 };
145 144
146 } // namespace content 145 } // namespace content
147 146
148 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 147 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698