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

Unified Diff: chrome/browser/renderer_host/mock_render_process_host.h

Issue 18432: Factor out the test web contents from the WebContents unit test so that it ca... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/mock_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/mock_render_process_host.h
===================================================================
--- chrome/browser/renderer_host/mock_render_process_host.h (revision 8331)
+++ chrome/browser/renderer_host/mock_render_process_host.h (working copy)
@@ -44,13 +44,19 @@
virtual void OnChannelConnected(int32 peer_pid);
private:
- // RenderProcessHost implementation (protected portion).
- virtual void Unregister();
-
// Stores IPC messages that would have been sent to the renderer.
IPC::TestSink sink_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};
+class MockRenderProcessHostFactory : public RenderProcessHostFactory {
+ public:
+ virtual ~MockRenderProcessHostFactory() {}
+ virtual RenderProcessHost* CreateRenderProcessHost(
+ Profile* profile) const {
+ return new MockRenderProcessHost(profile);
+ }
+};
+
#endif // CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
« no previous file with comments | « no previous file | chrome/browser/renderer_host/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698