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

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

Issue 10824304: Upgrade AudioBus to support wrapping, interleaving. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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
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 "media/base/decoder_buffer.h" 8 #include "media/base/decoder_buffer.h"
9 #include "media/base/decryptor_client.h" 9 #include "media/base/decryptor_client.h"
10 #include "media/base/test_data_util.h" 10 #include "media/base/test_data_util.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 TEST_F(PipelineIntegrationTest, BasicPlaybackHashed) { 260 TEST_F(PipelineIntegrationTest, BasicPlaybackHashed) {
261 ASSERT_TRUE(Start(GetTestDataURL("bear-320x240.webm"), PIPELINE_OK, true)); 261 ASSERT_TRUE(Start(GetTestDataURL("bear-320x240.webm"), PIPELINE_OK, true));
262 262
263 Play(); 263 Play();
264 264
265 ASSERT_TRUE(WaitUntilOnEnded()); 265 ASSERT_TRUE(WaitUntilOnEnded());
266 266
267 EXPECT_EQ(GetVideoHash(), "f0be120a90a811506777c99a2cdf7cc1"); 267 EXPECT_EQ(GetVideoHash(), "f0be120a90a811506777c99a2cdf7cc1");
268 EXPECT_EQ(GetAudioHash(), "6138555be3389e6aba4c8e6f70195d50"); 268 EXPECT_EQ(GetAudioHash(), "5699a4415b620e45b9d0aae531c9df76");
269 } 269 }
270 270
271 TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource) { 271 TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource) {
272 MockMediaSource source("bear-320x240.webm", 219229, true, true); 272 MockMediaSource source("bear-320x240.webm", 219229, true, true);
273 StartPipelineWithMediaSource(&source); 273 StartPipelineWithMediaSource(&source);
274 source.EndOfStream(); 274 source.EndOfStream();
275 ASSERT_EQ(pipeline_status_, PIPELINE_OK); 275 ASSERT_EQ(pipeline_status_, PIPELINE_OK);
276 276
277 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().size(), 1u); 277 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().size(), 1u);
278 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds(), 0); 278 EXPECT_EQ(pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds(), 0);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // Verify video decoder & renderer can handle aborted demuxer reads. 362 // Verify video decoder & renderer can handle aborted demuxer reads.
363 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) { 363 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) {
364 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", 32768, 364 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", 32768,
365 base::TimeDelta::FromMilliseconds(200), 365 base::TimeDelta::FromMilliseconds(200),
366 base::TimeDelta::FromMilliseconds(1668), 366 base::TimeDelta::FromMilliseconds(1668),
367 0x1C896, 65536, false, true)); 367 0x1C896, 65536, false, true));
368 } 368 }
369 369
370 } // namespace media 370 } // namespace media
OLDNEW
« media/base/audio_bus.cc ('K') | « media/filters/audio_renderer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698