Revert 234207 "Set the default ASan options for executables buil..."
[chromium-blink-merge.git] / cc / test / cc_test_suite.cc
blob4fa6565d4b492a8a79c961ff5d08db133183b446
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 <string>
9 #include "base/command_line.h"
10 #include "base/message_loop/message_loop.h"
11 #include "base/threading/thread_id_name_manager.h"
12 #include "cc/base/switches.h"
13 #include "cc/test/paths.h"
15 namespace cc {
17 CCTestSuite::CCTestSuite(int argc, char** argv)
18 : base::TestSuite(argc, argv) {}
20 CCTestSuite::~CCTestSuite() {}
22 void CCTestSuite::Initialize() {
23 base::TestSuite::Initialize();
24 RegisterPathProvider();
26 message_loop_.reset(new base::MessageLoop);
28 base::ThreadIdNameManager::GetInstance()->SetName(
29 base::PlatformThread::CurrentId(),
30 "Main");
33 void CCTestSuite::Shutdown() {
34 message_loop_.reset();
36 base::TestSuite::Shutdown();
39 } // namespace cc