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

Unified Diff: media/filters/video_renderer_algorithm_unittest.cc

Issue 2770253004: Log out-of-order frames in chrome://media-internals. (Closed)
Patch Set: Include timestamps in the log. Created 3 years, 9 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
Index: media/filters/video_renderer_algorithm_unittest.cc
diff --git a/media/filters/video_renderer_algorithm_unittest.cc b/media/filters/video_renderer_algorithm_unittest.cc
index 119332ebdcbec0a77c53da68d80b1d29952b8124..296f71d727451b50e61e59ae5dde57a68d556df8 100644
--- a/media/filters/video_renderer_algorithm_unittest.cc
+++ b/media/filters/video_renderer_algorithm_unittest.cc
@@ -10,8 +10,10 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/strings/stringprintf.h"
#include "base/test/simple_test_tick_clock.h"
+#include "media/base/media_log.h"
#include "media/base/timestamp_constants.h"
#include "media/base/video_frame_pool.h"
#include "media/base/wall_clock_time_source.h"
@@ -70,7 +72,8 @@ class VideoRendererAlgorithmTest : public testing::Test {
VideoRendererAlgorithmTest()
: tick_clock_(new base::SimpleTestTickClock()),
algorithm_(base::Bind(&WallClockTimeSource::GetWallClockTimes,
- base::Unretained(&time_source_))) {
+ base::Unretained(&time_source_)),
+ make_scoped_refptr(new MediaLog())) {
// Always start the TickClock at a non-zero value since null values have
// special connotations.
tick_clock_->Advance(base::TimeDelta::FromMicroseconds(10000));

Powered by Google App Engine
This is Rietveld 408576698