OLD | NEW |
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 "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "cc/test/paths.h" | 8 #include "cc/test/paths.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 namespace test { | |
12 | 11 |
13 CCTestSuite::CCTestSuite(int argc, char** argv) | 12 CCTestSuite::CCTestSuite(int argc, char** argv) |
14 : base::TestSuite(argc, argv) {} | 13 : base::TestSuite(argc, argv) {} |
15 | 14 |
16 CCTestSuite::~CCTestSuite() {} | 15 CCTestSuite::~CCTestSuite() {} |
17 | 16 |
18 void CCTestSuite::Initialize() { | 17 void CCTestSuite::Initialize() { |
19 base::TestSuite::Initialize(); | 18 base::TestSuite::Initialize(); |
20 RegisterPathProvider(); | 19 RegisterPathProvider(); |
21 message_loop_.reset(new MessageLoop); | 20 message_loop_.reset(new MessageLoop); |
22 } | 21 } |
23 | 22 |
24 void CCTestSuite::Shutdown() { | 23 void CCTestSuite::Shutdown() { |
25 message_loop_.reset(); | 24 message_loop_.reset(); |
26 | 25 |
27 base::TestSuite::Shutdown(); | 26 base::TestSuite::Shutdown(); |
28 } | 27 } |
29 | 28 |
30 } // namespace test | |
31 } // namespace cc | 29 } // namespace cc |
OLD | NEW |