diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 22:35:10 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 22:35:10 +0000 |
commit | 302831b6e4e9d8a700ecbea7616f1879898bbfb9 (patch) | |
tree | 1325149eae7db9f1a302801d275ae9761b1aebf1 /base/perftimer.cc | |
parent | d3f6b195024afbf311e9eff816ebe17d853d9ab8 (diff) | |
download | chromium_src-302831b6e4e9d8a700ecbea7616f1879898bbfb9.zip chromium_src-302831b6e4e9d8a700ecbea7616f1879898bbfb9.tar.gz chromium_src-302831b6e4e9d8a700ecbea7616f1879898bbfb9.tar.bz2 |
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
Diffstat (limited to 'base/perftimer.cc')
-rw-r--r-- | base/perftimer.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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 <string> #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; } |