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

Unified Diff: media/test/pipeline_integration_test_base.h

Issue 2479633002: Fix pipeline integration tests for seek / duration changes. (Closed)
Patch Set: Created 4 years, 1 month 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/ffmpeg/ffmpeg_regression_tests.cc ('k') | media/test/pipeline_integration_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_test_base.h
diff --git a/media/test/pipeline_integration_test_base.h b/media/test/pipeline_integration_test_base.h
index 258591b8867f1fc067b1dcd8e25f069144991b4f..c397e3ad064498f196ff59ede4ce66f6b0858d25 100644
--- a/media/test/pipeline_integration_test_base.h
+++ b/media/test/pipeline_integration_test_base.h
@@ -151,6 +151,7 @@ class PipelineIntegrationTestBase : public Pipeline::Client {
DummyTickClock dummy_clock_;
PipelineMetadata metadata_;
scoped_refptr<VideoFrame> last_frame_;
+ base::TimeDelta current_duration_;
PipelineStatus StartInternal(
std::unique_ptr<DataSource> data_source,
@@ -191,6 +192,11 @@ class PipelineIntegrationTestBase : public Pipeline::Client {
void OnVideoFramePaint(const scoped_refptr<VideoFrame>& frame);
+ void CheckDuration();
+
+ // Return the media start time from |demuxer_|.
+ base::TimeDelta GetStartTime();
+
MOCK_METHOD1(DecryptorAttached, void(bool));
// Pipeline::Client overrides.
void OnError(PipelineStatus status) override;
« no previous file with comments | « media/ffmpeg/ffmpeg_regression_tests.cc ('k') | media/test/pipeline_integration_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698