OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/blink/test/cc_blink_test_suite.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/threading/thread_id_name_manager.h" | 8 #include "base/threading/thread_id_name_manager.h" |
9 #include "cc/test/paths.h" | |
10 #include "ui/gl/gl_surface.h" | |
11 | 9 |
12 namespace cc { | 10 namespace cc_blink { |
13 | 11 |
14 CCTestSuite::CCTestSuite(int argc, char** argv) | 12 CCBlinkTestSuite::CCBlinkTestSuite(int argc, char** argv) |
15 : base::TestSuite(argc, argv) {} | 13 : base::TestSuite(argc, argv) {} |
16 | 14 |
17 CCTestSuite::~CCTestSuite() {} | 15 CCBlinkTestSuite::~CCBlinkTestSuite() {} |
18 | 16 |
19 void CCTestSuite::Initialize() { | 17 void CCBlinkTestSuite::Initialize() { |
20 base::TestSuite::Initialize(); | 18 base::TestSuite::Initialize(); |
21 gfx::GLSurface::InitializeOneOffForTests(); | |
22 CCPaths::RegisterPathProvider(); | |
23 | 19 |
24 message_loop_.reset(new base::MessageLoop); | 20 message_loop_.reset(new base::MessageLoop); |
25 | 21 |
26 base::ThreadIdNameManager::GetInstance()->SetName( | 22 base::ThreadIdNameManager::GetInstance()->SetName( |
27 base::PlatformThread::CurrentId(), | 23 base::PlatformThread::CurrentId(), |
28 "Main"); | 24 "Main"); |
29 } | 25 } |
30 | 26 |
31 void CCTestSuite::Shutdown() { | 27 void CCBlinkTestSuite::Shutdown() { |
32 message_loop_ = nullptr; | 28 message_loop_ = nullptr; |
33 | 29 |
34 base::TestSuite::Shutdown(); | 30 base::TestSuite::Shutdown(); |
35 } | 31 } |
36 | 32 |
37 } // namespace cc | 33 } // namespace cc_blink |
OLD | NEW |