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

Unified Diff: content/test/content_test_suite.cc

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/test/content_test_suite.h ('k') | ui/views/corewm/desktop_capture_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_suite.cc
===================================================================
--- content/test/content_test_suite.cc (revision 257432)
+++ content/test/content_test_suite.cc (working copy)
@@ -7,8 +7,9 @@
#include "base/base_paths.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "content/public/common/content_client.h"
+#include "content/public/common/content_paths.h"
#include "content/public/test/test_content_client_initializer.h"
-#include "content/test/test_content_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"
@@ -19,6 +20,7 @@
#if !defined(OS_IOS)
#include "base/base_switches.h"
#include "base/command_line.h"
+#include "media/base/media.h"
#include "ui/gl/gl_surface.h"
#endif
@@ -70,7 +72,13 @@
#endif
ContentTestSuiteBase::Initialize();
+ {
+ ContentClient client;
+ ContentTestSuiteBase::RegisterContentSchemes(&client);
+ }
+ RegisterPathProvider();
#if !defined(OS_IOS)
+ media::InitializeMediaLibraryForTesting();
// When running in a child process for Mac sandbox tests, the sandbox exists
// to initialize GL, so don't do it here.
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestChildProcess))
@@ -81,8 +89,4 @@
listeners.Append(new TestInitializationListener);
}
-ContentClient* ContentTestSuite::CreateClientForInitialization() {
- return new TestContentClient();
-}
-
} // namespace content
« no previous file with comments | « content/test/content_test_suite.h ('k') | ui/views/corewm/desktop_capture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698