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

Side by Side Diff: media/filters/pipeline_integration_test.cc

Issue 11280301: Roll FFMpeg for M26. Fix ffmpeg float audio decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... rebase Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/ffmpeg_demuxer_unittest.cc ('k') | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/filters/pipeline_integration_test_base.h" 5 #include "media/filters/pipeline_integration_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "build/build_config.h"
9 #include "media/base/decoder_buffer.h" 10 #include "media/base/decoder_buffer.h"
10 #include "media/base/test_data_util.h" 11 #include "media/base/test_data_util.h"
11 #include "media/crypto/aes_decryptor.h" 12 #include "media/crypto/aes_decryptor.h"
12 13
13 using testing::AtMost; 14 using testing::AtMost;
14 15
15 namespace media { 16 namespace media {
16 17
17 static const char kSourceId[] = "SourceId"; 18 static const char kSourceId[] = "SourceId";
18 static const char kClearKeySystem[] = "org.w3.clearkey"; 19 static const char kClearKeySystem[] = "org.w3.clearkey";
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 292
292 TEST_F(PipelineIntegrationTest, BasicPlaybackHashed) { 293 TEST_F(PipelineIntegrationTest, BasicPlaybackHashed) {
293 ASSERT_TRUE(Start(GetTestDataFilePath("bear-320x240.webm"), 294 ASSERT_TRUE(Start(GetTestDataFilePath("bear-320x240.webm"),
294 PIPELINE_OK, true)); 295 PIPELINE_OK, true));
295 296
296 Play(); 297 Play();
297 298
298 ASSERT_TRUE(WaitUntilOnEnded()); 299 ASSERT_TRUE(WaitUntilOnEnded());
299 300
300 EXPECT_EQ(GetVideoHash(), "f0be120a90a811506777c99a2cdf7cc1"); 301 EXPECT_EQ(GetVideoHash(), "f0be120a90a811506777c99a2cdf7cc1");
301 EXPECT_EQ(GetAudioHash(), "5699a4415b620e45b9d0aae531c9df76"); 302
303 // TODO(dalecurtis): Audio decoded in float does not have a consistent hash
304 // across platforms. Fix this: http://crbug.com/168204
305 // EXPECT_EQ(GetAudioHash(), "");
302 } 306 }
303 307
304 TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource) { 308 TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource) {
305 MockMediaSource source("bear-320x240.webm", kWebM, 219229); 309 MockMediaSource source("bear-320x240.webm", kWebM, 219229);
306 StartPipelineWithMediaSource(&source); 310 StartPipelineWithMediaSource(&source);
307 source.EndOfStream(); 311 source.EndOfStream();
308 ASSERT_EQ(pipeline_status_, PIPELINE_OK); 312 ASSERT_EQ(pipeline_status_, PIPELINE_OK);
309 313
310 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().size(), 1u); 314 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().size(), 1u);
311 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds(), 0); 315 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds(), 0);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // Verify video decoder & renderer can handle aborted demuxer reads. 451 // Verify video decoder & renderer can handle aborted demuxer reads.
448 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) { 452 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) {
449 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", kVideoOnlyWebM, 453 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", kVideoOnlyWebM,
450 32768, 454 32768,
451 base::TimeDelta::FromMilliseconds(200), 455 base::TimeDelta::FromMilliseconds(200),
452 base::TimeDelta::FromMilliseconds(1668), 456 base::TimeDelta::FromMilliseconds(1668),
453 0x1C896, 65536)); 457 0x1C896, 65536));
454 } 458 }
455 459
456 } // namespace media 460 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer_unittest.cc ('k') | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698