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

Unified Diff: ash/test/ash_test_suite.cc

Issue 2901703002: chromeos: Initialize StatisticsRecorder in AshTestSuite (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_suite.cc
diff --git a/ash/test/ash_test_suite.cc b/ash/test/ash_test_suite.cc
index 2ad4a54681480eedcc28599d268aab1182c6aa61..dc8dba85c9f4a5d7fbd3368432cad454f0559a06 100644
--- a/ash/test/ash_test_suite.cc
+++ b/ash/test/ash_test_suite.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/i18n/rtl.h"
+#include "base/metrics/statistics_recorder.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -28,6 +29,8 @@ AshTestSuite::~AshTestSuite() {}
void AshTestSuite::Initialize() {
base::TestSuite::Initialize();
+ // Ensure histograms hit during tests are registered properly.
+ base::StatisticsRecorder::Initialize();
gl::GLSurfaceTestSupport::InitializeOneOff();
gfx::RegisterPathProvider();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698