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

Unified Diff: sql/test/sql_test_suite.cc

Issue 2435933004: [sql] Initialize StatisticsRecorder in SQLTestSuite. (Closed)
Patch Set: Pull fix to SQLTestSuite. Created 4 years, 2 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 | « sql/connection_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/test/sql_test_suite.cc
diff --git a/sql/test/sql_test_suite.cc b/sql/test/sql_test_suite.cc
index bfda3a0c448a69c03d0fd4ed079c160fa6cc24a5..0dace7419a0b9436386005e8f92aff2a81a5bae6 100644
--- a/sql/test/sql_test_suite.cc
+++ b/sql/test/sql_test_suite.cc
@@ -4,6 +4,7 @@
#include "sql/test/sql_test_suite.h"
+#include "base/metrics/statistics_recorder.h"
#include "sql/test/paths.h"
namespace sql {
@@ -15,6 +16,12 @@ SQLTestSuite::~SQLTestSuite() {}
void SQLTestSuite::Initialize() {
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();
+
sql::test::RegisterPathProvider();
}
« no previous file with comments | « sql/connection_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698