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

Unified Diff: content/test/content_test_suite_base.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_base.h ('k') | content/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_suite_base.cc
diff --git a/content/test/content_test_suite_base.cc b/content/test/content_test_suite_base.cc
new file mode 100644
index 0000000000000000000000000000000000000000..09738fb947a4a42da1baba991df2b365f126042d
--- /dev/null
+++ b/content/test/content_test_suite_base.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/test/content_test_suite_base.h"
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/test/test_suite.h"
+#include "content/common/url_schemes.h"
+#include "content/public/common/content_client.h"
+#include "content/public/common/content_paths.h"
+#include "ui/base/ui_base_paths.h"
+#include "ui/compositor/compositor_setup.h"
+
+namespace content {
+
+ContentTestSuiteBase::ContentTestSuiteBase(int argc, char** argv)
+ : base::TestSuite(argc, argv) {
+}
+
+void ContentTestSuiteBase::Initialize() {
+ base::TestSuite::Initialize();
+
+ scoped_ptr<ContentClient> client_for_init(CreateClientForInitialization());
+ SetContentClient(client_for_init.get());
+ RegisterContentSchemes(false);
+ SetContentClient(NULL);
+
+ RegisterPathProvider();
+ ui::RegisterPathProvider();
+
+ // Mock out the compositor on platforms that use it.
+ ui::SetupTestCompositor();
+}
+
+} // namespace content
« no previous file with comments | « content/test/content_test_suite_base.h ('k') | content/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698