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

Unified Diff: base/test/test_suite.cc

Issue 330473003: Offline blacklisting for SuggestionsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final merge. Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698