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

Unified Diff: media/test/pipeline_integration_test.cc

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: Added a TODO about DemuxerStream enabled/set_enabled methods Created 3 years, 10 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/renderers/renderer_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_test.cc
diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
index 8d103107a0cc54b5c59ee3b03f589f45ad4532c8..9ef8f368fb9708d21e1c9a4e4228993483372f9f 100644
--- a/media/test/pipeline_integration_test.cc
+++ b/media/test/pipeline_integration_test.cc
@@ -1181,7 +1181,7 @@ TEST_F(PipelineIntegrationTest,
ASSERT_EQ(PIPELINE_OK, Start("bear-opus.webm", kHashed | kClockless));
AudioDecoderConfig config =
- demuxer_->GetStream(DemuxerStream::AUDIO)->audio_decoder_config();
+ demuxer_->GetFirstStream(DemuxerStream::AUDIO)->audio_decoder_config();
// Verify that this file's preroll is not eclipsed by the codec delay so we
// can detect when preroll is not properly performed.
@@ -1209,7 +1209,7 @@ TEST_F(PipelineIntegrationTest,
source.EndOfStream();
AudioDecoderConfig config =
- demuxer_->GetStream(DemuxerStream::AUDIO)->audio_decoder_config();
+ demuxer_->GetFirstStream(DemuxerStream::AUDIO)->audio_decoder_config();
// Verify that this file's preroll is not eclipsed by the codec delay so we
// can detect when preroll is not properly performed.
@@ -2524,7 +2524,8 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_Opus441kHz) {
ASSERT_EQ(PIPELINE_OK, Start("sfx-opus-441.webm"));
Play();
ASSERT_TRUE(WaitUntilOnEnded());
- EXPECT_EQ(48000, demuxer_->GetStream(DemuxerStream::AUDIO)
+
+ EXPECT_EQ(48000, demuxer_->GetFirstStream(DemuxerStream::AUDIO)
->audio_decoder_config()
.samples_per_second());
}
@@ -2539,7 +2540,7 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource_Opus441kHz) {
ASSERT_TRUE(WaitUntilOnEnded());
source.Shutdown();
Stop();
- EXPECT_EQ(48000, demuxer_->GetStream(DemuxerStream::AUDIO)
+ EXPECT_EQ(48000, demuxer_->GetFirstStream(DemuxerStream::AUDIO)
->audio_decoder_config()
.samples_per_second());
}
« no previous file with comments | « media/renderers/renderer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698