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

Side by Side Diff: cc/test/cc_test_suite.cc

Issue 19403002: Use a direct include of the message_loop header in cc/, chrome_frame/, cloud_print/, components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | « cc/resources/worker_pool.h ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/cc_test_suite.h" 5 #include "cc/test/cc_test_suite.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/threading/thread_id_name_manager.h" 11 #include "base/threading/thread_id_name_manager.h"
12 #include "cc/base/switches.h" 12 #include "cc/base/switches.h"
13 #include "cc/test/paths.h" 13 #include "cc/test/paths.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 CCTestSuite::CCTestSuite(int argc, char** argv) 17 CCTestSuite::CCTestSuite(int argc, char** argv)
18 : base::TestSuite(argc, argv) {} 18 : base::TestSuite(argc, argv) {}
19 19
20 CCTestSuite::~CCTestSuite() {} 20 CCTestSuite::~CCTestSuite() {}
21 21
22 void CCTestSuite::Initialize() { 22 void CCTestSuite::Initialize() {
23 base::TestSuite::Initialize(); 23 base::TestSuite::Initialize();
24 RegisterPathProvider(); 24 RegisterPathProvider();
25 25
26 message_loop_.reset(new base::MessageLoop); 26 message_loop_.reset(new base::MessageLoop);
27 27
28 base::ThreadIdNameManager::GetInstance()->SetName( 28 base::ThreadIdNameManager::GetInstance()->SetName(
29 base::PlatformThread::CurrentId(), 29 base::PlatformThread::CurrentId(),
30 "Main"); 30 "Main");
31 } 31 }
32 32
33 void CCTestSuite::Shutdown() { 33 void CCTestSuite::Shutdown() {
34 message_loop_.reset(); 34 message_loop_.reset();
35 35
36 base::TestSuite::Shutdown(); 36 base::TestSuite::Shutdown();
37 } 37 }
38 38
39 } // namespace cc 39 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/worker_pool.h ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698