MediaCodecPlayer implementation - stage 6 (respect audio permission)
[chromium-blink-merge.git] / cc / test / cc_test_suite.cc
blob0fa0b543c52294d8eb37c6d21ccf0cda579a933e
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.
5 #include "cc/test/cc_test_suite.h"
7 #include "base/message_loop/message_loop.h"
8 #include "base/threading/thread_id_name_manager.h"
9 #include "cc/test/paths.h"
10 #include "ui/gl/test/gl_surface_test_support.h"
12 namespace cc {
14 CCTestSuite::CCTestSuite(int argc, char** argv)
15 : base::TestSuite(argc, argv) {}
17 CCTestSuite::~CCTestSuite() {}
19 void CCTestSuite::Initialize() {
20 base::TestSuite::Initialize();
21 gfx::GLSurfaceTestSupport::InitializeOneOff();
22 CCPaths::RegisterPathProvider();
24 message_loop_.reset(new base::MessageLoop);
26 base::ThreadIdNameManager::GetInstance()->SetName(
27 base::PlatformThread::CurrentId(),
28 "Main");
30 base::DiscardableMemoryAllocator::SetInstance(&discardable_memory_allocator_);
33 void CCTestSuite::Shutdown() {
34 message_loop_ = nullptr;
36 base::TestSuite::Shutdown();
39 } // namespace cc