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

Unified Diff: components/test/run_all_unittests.cc

Issue 410673002: [Suggestions] Moving suggestions code to a new component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 5 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
« no previous file with comments | « components/suggestions/suggestions_store_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test/run_all_unittests.cc
diff --git a/components/test/run_all_unittests.cc b/components/test/run_all_unittests.cc
index 0e6dafa6027e48cac821939a3a6b511ac426aa41..ca4e064fcf58ab7a1ad43bb2f8c10e9d73912d96 100644
--- a/components/test/run_all_unittests.cc
+++ b/components/test/run_all_unittests.cc
@@ -4,6 +4,7 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
+#include "base/metrics/statistics_recorder.h"
#include "base/path_service.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
@@ -35,6 +36,12 @@ class ComponentsTestSuite : public base::TestSuite {
private:
virtual void Initialize() OVERRIDE {
base::TestSuite::Initialize();
+
+ // Initialize the histograms subsystem, so that any histograms hit in tests
+ // are correctly registered with the statistics recorder and can be queried
+ // by tests.
+ base::StatisticsRecorder::Initialize();
+
#if !defined(OS_IOS)
gfx::GLSurface::InitializeOneOffForTests();
#endif
« no previous file with comments | « components/suggestions/suggestions_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698