Chromium Code Reviews| 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" |
|
jam
2012/05/24 19:49:26
not needed?
grt (UTC plus 2)
2012/05/24 20:33:14
This is where RegisterContentSchemes lives.
|
| +#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 |