Chromium Code Reviews| Index: base/test/test_suite.cc |
| diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc |
| index 5777c5da879ece984adbbaf58540f02456c3aa10..e2aa6a96372bff30325060db22fe7c845cb54822 100644 |
| --- a/base/test/test_suite.cc |
| +++ b/base/test/test_suite.cc |
| @@ -16,6 +16,7 @@ |
| #include "base/i18n/icu_util.h" |
| #include "base/logging.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "base/metrics/statistics_recorder.h" |
| #include "base/path_service.h" |
| #include "base/process/memory.h" |
| #include "base/test/gtest_xml_util.h" |
| @@ -281,6 +282,9 @@ void TestSuite::SuppressErrorDialogs() { |
| } |
| void TestSuite::Initialize() { |
| + // Record histograms, so we can get histograms data in tests. |
|
Alexei Svitkine (slow)
2014/06/20 14:41:41
"Record histograms" isn't really accurate.
Instea
manzagop (departed)
2014/06/20 15:13:53
Done.
|
| + base::StatisticsRecorder::Initialize(); |
| + |
| #if defined(OS_MACOSX) && !defined(OS_IOS) |
| // Some of the app unit tests spin runloops. |
| mock_cr_app::RegisterMockCrApp(); |