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

Side by Side Diff: content/test/content_test_suite_base.cc

Issue 10826311: Move the corresponding cc files from content\test to be alongside their headers in content\public\t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/browser_test_utils.cc ('k') | content/test/download_test_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/test/content_test_suite_base.h"
6
7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/test/test_suite.h"
11 #include "content/common/url_schemes.h"
12 #include "content/public/common/content_client.h"
13 #include "content/public/common/content_paths.h"
14 #include "media/base/media.h"
15 #include "ui/base/ui_base_paths.h"
16 #include "ui/compositor/compositor_setup.h"
17
18 namespace content {
19
20 ContentTestSuiteBase::ContentTestSuiteBase(int argc, char** argv)
21 : base::TestSuite(argc, argv),
22 external_libraries_enabled_(true) {
23 }
24
25 void ContentTestSuiteBase::Initialize() {
26 base::TestSuite::Initialize();
27
28 if (external_libraries_enabled_)
29 media::InitializeMediaLibraryForTesting();
30
31 scoped_ptr<ContentClient> client_for_init(CreateClientForInitialization());
32 SetContentClient(client_for_init.get());
33 RegisterContentSchemes(false);
34 SetContentClient(NULL);
35
36 RegisterPathProvider();
37 ui::RegisterPathProvider();
38
39 // Mock out the compositor on platforms that use it.
40 ui::SetupTestCompositor();
41 }
42
43 } // namespace content
OLDNEW
« no previous file with comments | « content/test/browser_test_utils.cc ('k') | content/test/download_test_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698