From 302831b6e4e9d8a700ecbea7616f1879898bbfb9 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Tue, 13 Jan 2009 22:35:10 +0000 Subject: Call logging::InitLogging. The lack of this was causing some hangs (and possibly crashes) in ObserverListTest.BUG=6286 This CL has expanded to include some cleanup and refactoring of test_suite and related files, so that this logging change (and other improvements) are applied to all unit tests. Review URL: http://codereview.chromium.org/18003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7977 0039d316-1c4b-4281-b951-d872f2087c98 --- base/perftimer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/perftimer.cc') diff --git a/base/perftimer.cc b/base/perftimer.cc index 9fc0328..4c64c5e 100644 --- a/base/perftimer.cc +++ b/base/perftimer.cc @@ -8,19 +8,20 @@ #include #include "base/basictypes.h" +#include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" static FILE* perf_log_file = NULL; -bool InitPerfLog(const char* log_file) { +bool InitPerfLog(const FilePath& log_file) { if (perf_log_file) { // trying to initialize twice NOTREACHED(); return false; } - perf_log_file = file_util::OpenFile(std::string(log_file), "w"); + perf_log_file = file_util::OpenFile(log_file, "w"); return perf_log_file != NULL; } -- cgit v1.1