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

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

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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 | « content/public/test/browser_test_base.cc ('k') | content/public/test/content_test_suite_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/content_test_suite_base.h
===================================================================
--- content/public/test/content_test_suite_base.h (revision 257432)
+++ content/public/test/content_test_suite_base.h (working copy)
@@ -10,7 +10,6 @@
#include "base/test/test_suite.h"
namespace content {
-
class ContentClient;
// A basis upon which test suites that use content can be built. This suite
@@ -22,17 +21,16 @@
virtual void Initialize() OVERRIDE;
- // Creates a ContentClient for use during test suite initialization.
- virtual ContentClient* CreateClientForInitialization() = 0;
+ // The methods below are for unit test setup.
- // If set to false, prevents Initialize() to load external libraries
- // to the process. By default loading is enabled.
- void set_external_libraries_enabled(bool val) {
- external_libraries_enabled_ = val;
- }
+ // Registers content's schemes. During this call, the given content_client is
+ // registered temporarily so that it can provide additional schemes.
+ static void RegisterContentSchemes(ContentClient* content_client);
+ // Registers renderer/utility/gpu processes to run in-thread.
+ void RegisterInProcessThreads();
+
private:
- bool external_libraries_enabled_;
DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBase);
};
« no previous file with comments | « content/public/test/browser_test_base.cc ('k') | content/public/test/content_test_suite_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698