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

Side by Side Diff: sql/test/sql_test_suite.cc

Issue 2435933004: [sql] Initialize StatisticsRecorder in SQLTestSuite. (Closed)
Patch Set: Pull fix to SQLTestSuite. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sql/connection_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sql/test/sql_test_suite.h" 5 #include "sql/test/sql_test_suite.h"
6 6
7 #include "base/metrics/statistics_recorder.h"
7 #include "sql/test/paths.h" 8 #include "sql/test/paths.h"
8 9
9 namespace sql { 10 namespace sql {
10 11
11 SQLTestSuite::SQLTestSuite(int argc, char** argv) 12 SQLTestSuite::SQLTestSuite(int argc, char** argv)
12 : base::TestSuite(argc, argv) {} 13 : base::TestSuite(argc, argv) {}
13 14
14 SQLTestSuite::~SQLTestSuite() {} 15 SQLTestSuite::~SQLTestSuite() {}
15 16
16 void SQLTestSuite::Initialize() { 17 void SQLTestSuite::Initialize() {
17 base::TestSuite::Initialize(); 18 base::TestSuite::Initialize();
19
20 // Initialize the histograms subsystem, so that any histograms hit in tests
21 // are correctly registered with the statistics recorder and can be queried
22 // by tests.
23 base::StatisticsRecorder::Initialize();
24
18 sql::test::RegisterPathProvider(); 25 sql::test::RegisterPathProvider();
19 } 26 }
20 27
21 void SQLTestSuite::Shutdown() { 28 void SQLTestSuite::Shutdown() {
22 base::TestSuite::Shutdown(); 29 base::TestSuite::Shutdown();
23 } 30 }
24 31
25 } // namespace sql 32 } // namespace sql
OLDNEW
« 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