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

Unified Diff: content/test/content_test_suite.cc

Issue 10383298: Move RegisterContentSchemes from public url_constants into non-public url_schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow content/common/savable_url_schemes.h to be included by url_constants.cc 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
« no previous file with comments | « content/test/content_test_suite.h ('k') | content/test/content_test_suite_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_suite.cc
diff --git a/content/test/content_test_suite.cc b/content/test/content_test_suite.cc
index 60506ac0c7c873e18223f3fa643fe9596b495ead..36e72292408e5101f24e114e8e5662165a002ddb 100644
--- a/content/test/content_test_suite.cc
+++ b/content/test/content_test_suite.cc
@@ -6,12 +6,9 @@
#include "base/logging.h"
#include "content/browser/mock_content_browser_client.h"
-#include "content/public/common/content_paths.h"
-#include "content/public/common/url_constants.h"
#include "content/test/test_content_client.h"
#include "content/test/test_content_client_initializer.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/base/ui_base_paths.h"
#if defined(USE_AURA)
#include "ui/aura/test/test_aura_initializer.h"
@@ -20,8 +17,6 @@
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
-#include "ui/compositor/compositor_setup.h"
-
namespace {
@@ -47,8 +42,10 @@ class TestInitializationListener : public testing::EmptyTestEventListener {
} // namespace
+namespace content {
+
ContentTestSuite::ContentTestSuite(int argc, char** argv)
- : base::TestSuite(argc, argv) {
+ : ContentTestSuiteBase(argc, argv) {
#if defined(USE_AURA)
aura_initializer_.reset(new aura::test::TestAuraInitializer);
#endif
@@ -62,21 +59,15 @@ void ContentTestSuite::Initialize() {
base::mac::ScopedNSAutoreleasePool autorelease_pool;
#endif
- base::TestSuite::Initialize();
-
- TestContentClient client_for_init;
- content::SetContentClient(&client_for_init);
- content::RegisterContentSchemes(false);
- content::SetContentClient(NULL);
-
- content::RegisterPathProvider();
- ui::RegisterPathProvider();
-
- // Mock out the compositor on platforms that use it.
- ui::SetupTestCompositor();
+ ContentTestSuiteBase::Initialize();
testing::TestEventListeners& listeners =
testing::UnitTest::GetInstance()->listeners();
listeners.Append(new TestInitializationListener);
}
+ContentClient* ContentTestSuite::CreateClientForInitialization() {
+ return new TestContentClient();
+}
+
+} // namespace content
« no previous file with comments | « content/test/content_test_suite.h ('k') | content/test/content_test_suite_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698