| 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/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" | 9 #include "cc/test/paths.h" |
| 10 #include "ui/gl/gl_surface.h" | 10 #include "ui/gl/gl_surface.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 CCPaths::RegisterPathProvider(); | 22 CCPaths::RegisterPathProvider(); |
| 23 | 23 |
| 24 message_loop_.reset(new base::MessageLoop); | 24 message_loop_.reset(new base::MessageLoop); |
| 25 | 25 |
| 26 base::ThreadIdNameManager::GetInstance()->SetName( | 26 base::ThreadIdNameManager::GetInstance()->SetName( |
| 27 base::PlatformThread::CurrentId(), | 27 base::PlatformThread::CurrentId(), |
| 28 "Main"); | 28 "Main"); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void CCTestSuite::Shutdown() { | 31 void CCTestSuite::Shutdown() { |
| 32 message_loop_.reset(); | 32 message_loop_ = nullptr; |
| 33 | 33 |
| 34 base::TestSuite::Shutdown(); | 34 base::TestSuite::Shutdown(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace cc | 37 } // namespace cc |
| OLD | NEW |