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

Unified Diff: content/public/test/test_content_client_initializer.h

Issue 10510005: Hide TestRenderViewHostFactory from embedders since it depends on internal content classes. Expose … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: content/public/test/test_content_client_initializer.h
===================================================================
--- content/public/test/test_content_client_initializer.h (revision 140261)
+++ content/public/test/test_content_client_initializer.h (working copy)
@@ -15,6 +15,8 @@
class ContentClient;
class MockContentBrowserClient;
+class MockRenderProcessHostFactory;
+class TestRenderViewHostFactory;
// Initializes various objects needed to run unit tests that use content::
// objects. Currently this includes setting up the notification service,
@@ -24,10 +26,17 @@
TestContentClientInitializer();
~TestContentClientInitializer();
+ // Enables switching RenderViewHost creation to use the test version instead
+ // of the real implementation. This will list throughout the lifetime of this
Avi (use Gerrit) 2012/06/04 14:26:51 s/list/last/
jam 2012/06/04 14:46:14 Done.
+ // class.
+ void CreateTestRenderViewHosts();
+
private:
scoped_ptr<NotificationServiceImpl> notification_service_;
scoped_ptr<ContentClient> content_client_;
scoped_ptr<MockContentBrowserClient> content_browser_client_;
+ scoped_ptr<content::MockRenderProcessHostFactory> rph_factory_;
+ scoped_ptr<TestRenderViewHostFactory> test_render_view_host_factory_;
DISALLOW_COPY_AND_ASSIGN(TestContentClientInitializer);
};
« no previous file with comments | « content/public/browser/render_process_host_factory.h ('k') | content/test/test_content_client_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698