| OLD | NEW |
| 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 |
| OLD | NEW |