OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/test/test_suite.h" | 5 #include "base/test/test_suite.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 // Initialize logging. | 197 // Initialize logging. |
198 FilePath exe; | 198 FilePath exe; |
199 PathService::Get(base::FILE_EXE, &exe); | 199 PathService::Get(base::FILE_EXE, &exe); |
200 FilePath log_filename = exe.ReplaceExtension(FILE_PATH_LITERAL("log")); | 200 FilePath log_filename = exe.ReplaceExtension(FILE_PATH_LITERAL("log")); |
201 logging::InitLogging( | 201 logging::InitLogging( |
202 log_filename.value().c_str(), | 202 log_filename.value().c_str(), |
203 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, | 203 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
204 logging::LOCK_LOG_FILE, | 204 logging::LOCK_LOG_FILE, |
205 logging::DELETE_OLD_LOG_FILE, | 205 logging::DELETE_OLD_LOG_FILE, |
206 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 206 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS, |
| 207 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
207 // We want process and thread IDs because we may have multiple processes. | 208 // We want process and thread IDs because we may have multiple processes. |
208 // Note: temporarily enabled timestamps in an effort to catch bug 6361. | 209 // Note: temporarily enabled timestamps in an effort to catch bug 6361. |
209 logging::SetLogItems(true, true, true, true); | 210 logging::SetLogItems(true, true, true, true); |
210 | 211 |
211 CHECK(base::EnableInProcessStackDumping()); | 212 CHECK(base::EnableInProcessStackDumping()); |
212 #if defined(OS_WIN) | 213 #if defined(OS_WIN) |
213 // Make sure we run with high resolution timer to minimize differences | 214 // Make sure we run with high resolution timer to minimize differences |
214 // between production code and test code. | 215 // between production code and test code. |
215 base::Time::EnableHighResolutionTimer(true); | 216 base::Time::EnableHighResolutionTimer(true); |
216 #endif // defined(OS_WIN) | 217 #endif // defined(OS_WIN) |
(...skipping 12 matching lines...) Expand all Loading... |
229 icu_util::Initialize(); | 230 icu_util::Initialize(); |
230 #endif | 231 #endif |
231 | 232 |
232 CatchMaybeTests(); | 233 CatchMaybeTests(); |
233 | 234 |
234 TestTimeouts::Initialize(); | 235 TestTimeouts::Initialize(); |
235 } | 236 } |
236 | 237 |
237 void TestSuite::Shutdown() { | 238 void TestSuite::Shutdown() { |
238 } | 239 } |
OLD | NEW |