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

Unified Diff: chromecast/media/cma/test/run_all_unittests.cc

Issue 652353003: Chromecast: adds class to help record complex histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resets initial buffering state on flush Created 6 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 | « chromecast/media/cma/base/buffering_controller.cc ('k') | chromecast/media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/test/run_all_unittests.cc
diff --git a/chromecast/media/cma/test/run_all_unittests.cc b/chromecast/media/cma/test/run_all_unittests.cc
index 0f7d04816ee9cd6f204c7487b511dfadcbf6b041..2b4a722e45f40ba78c08cccfb252ab97810b75ac 100644
--- a/chromecast/media/cma/test/run_all_unittests.cc
+++ b/chromecast/media/cma/test/run_all_unittests.cc
@@ -6,6 +6,7 @@
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
+#include "chromecast/base/metrics/cast_metrics_test_helper.h"
#include "media/base/media.h"
#if defined(OS_ANDROID)
@@ -26,6 +27,10 @@ void CmaTestSuite::Initialize() {
// Run TestSuite::Initialize first so that logging is initialized.
base::TestSuite::Initialize();
+ // Some of the chromecast media unit tests require a metrics helper instance.
+ // Provide a fake one.
+ chromecast::metrics::InitializeMetricsHelperForTesting();
+
// Initialize the FFMpeg library.
// Note: at this time, AtExitManager is already present.
media::InitializeMediaLibraryForTesting();
« no previous file with comments | « chromecast/media/cma/base/buffering_controller.cc ('k') | chromecast/media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698