Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: base/test/test_suite.cc

Issue 8467028: Enable DVLOG on non official release build based on the parameter passed for InitLogging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/test/test_stub_android.cc ('k') | chrome/browser/sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « base/test/test_stub_android.cc ('k') | chrome/browser/sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698