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

Unified Diff: media/base/android/media_codec_decoder_unittest.cc

Issue 1367403003: Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-drm
Patch Set: Attempt to fix clang compilation Created 5 years, 3 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 | « media/base/android/media_codec_decoder.cc ('k') | media/base/android/media_codec_player.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_decoder_unittest.cc
diff --git a/media/base/android/media_codec_decoder_unittest.cc b/media/base/android/media_codec_decoder_unittest.cc
index 29d7012b61235564c2344166ff5f3d97168bce1c..a667125e4b619e44841584dd1cb0c1aa4c2a4e87 100644
--- a/media/base/android/media_codec_decoder_unittest.cc
+++ b/media/base/android/media_codec_decoder_unittest.cc
@@ -9,6 +9,7 @@
#include "media/base/android/media_codec_audio_decoder.h"
#include "media/base/android/media_codec_bridge.h"
#include "media/base/android/media_codec_video_decoder.h"
+#include "media/base/android/media_statistics.h"
#include "media/base/android/test_data_factory.h"
#include "media/base/android/test_statistics.h"
#include "media/base/timestamp_constants.h"
@@ -227,6 +228,7 @@ class MediaCodecDecoderTest : public testing::Test {
base::TimeDelta stop_request_time_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ FrameStatistics frame_statistics_;
DataAvailableCallback data_available_cb_;
scoped_refptr<gfx::SurfaceTexture> surface_texture_;
@@ -270,8 +272,9 @@ bool MediaCodecDecoderTest::WaitForCondition(const Predicate& condition,
void MediaCodecDecoderTest::CreateAudioDecoder() {
decoder_ = scoped_ptr<MediaCodecDecoder>(new MediaCodecAudioDecoder(
- task_runner_, base::Bind(&MediaCodecDecoderTest::OnDataRequested,
- base::Unretained(this)),
+ task_runner_, &frame_statistics_,
+ base::Bind(&MediaCodecDecoderTest::OnDataRequested,
+ base::Unretained(this)),
base::Bind(&MediaCodecDecoderTest::OnStarvation, base::Unretained(this)),
base::Bind(&MediaCodecDecoderTest::OnDecoderDrained,
base::Unretained(this)),
@@ -287,8 +290,9 @@ void MediaCodecDecoderTest::CreateAudioDecoder() {
void MediaCodecDecoderTest::CreateVideoDecoder() {
decoder_ = scoped_ptr<MediaCodecDecoder>(new MediaCodecVideoDecoder(
- task_runner_, base::Bind(&MediaCodecDecoderTest::OnDataRequested,
- base::Unretained(this)),
+ task_runner_, &frame_statistics_,
+ base::Bind(&MediaCodecDecoderTest::OnDataRequested,
+ base::Unretained(this)),
base::Bind(&MediaCodecDecoderTest::OnStarvation, base::Unretained(this)),
base::Bind(&MediaCodecDecoderTest::OnDecoderDrained,
base::Unretained(this)),
« no previous file with comments | « media/base/android/media_codec_decoder.cc ('k') | media/base/android/media_codec_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698