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

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

Issue 23205006: Define proprietary_codecs=1 when branding==Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto lkgr Created 7 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
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/stream_parser_factory.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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 // The second video was not added, so its time has not been added. 621 // The second video was not added, so its time has not been added.
622 EXPECT_EQ(k320WebMFileDurationMs, 622 EXPECT_EQ(k320WebMFileDurationMs,
623 pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); 623 pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds());
624 624
625 Play(); 625 Play();
626 626
627 EXPECT_EQ(PIPELINE_ERROR_DECODE, WaitUntilEndedOrError()); 627 EXPECT_EQ(PIPELINE_ERROR_DECODE, WaitUntilEndedOrError());
628 source.Abort(); 628 source.Abort();
629 } 629 }
630 630
631 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 631 #if defined(USE_PROPRIETARY_CODECS)
632 TEST_F(PipelineIntegrationTest, MediaSource_ConfigChange_MP4) { 632 TEST_F(PipelineIntegrationTest, MediaSource_ConfigChange_MP4) {
633 MockMediaSource source("bear-640x360-av_frag.mp4", kMP4, kAppendWholeFile); 633 MockMediaSource source("bear-640x360-av_frag.mp4", kMP4, kAppendWholeFile);
634 StartPipelineWithMediaSource(&source); 634 StartPipelineWithMediaSource(&source);
635 635
636 scoped_refptr<DecoderBuffer> second_file = 636 scoped_refptr<DecoderBuffer> second_file =
637 ReadTestDataFile("bear-1280x720-av_frag.mp4"); 637 ReadTestDataFile("bear-1280x720-av_frag.mp4");
638 638
639 source.AppendAtTime(base::TimeDelta::FromSeconds(kAppendTimeSec), 639 source.AppendAtTime(base::TimeDelta::FromSeconds(kAppendTimeSec),
640 second_file->data(), second_file->data_size()); 640 second_file->data(), second_file->data_size());
641 641
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 source.EndOfStream(); 797 source.EndOfStream();
798 ASSERT_EQ(PIPELINE_OK, pipeline_status_); 798 ASSERT_EQ(PIPELINE_OK, pipeline_status_);
799 799
800 Play(); 800 Play();
801 801
802 ASSERT_TRUE(WaitUntilOnEnded()); 802 ASSERT_TRUE(WaitUntilOnEnded());
803 source.Abort(); 803 source.Abort();
804 Stop(); 804 Stop();
805 } 805 }
806 806
807 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 807 #if defined(USE_PROPRIETARY_CODECS)
808 TEST_F(PipelineIntegrationTest, EncryptedPlayback_MP4_CENC_VideoOnly) { 808 TEST_F(PipelineIntegrationTest, EncryptedPlayback_MP4_CENC_VideoOnly) {
809 MockMediaSource source("bear-1280x720-v_frag-cenc.mp4", 809 MockMediaSource source("bear-1280x720-v_frag-cenc.mp4",
810 kMP4Video, kAppendWholeFile); 810 kMP4Video, kAppendWholeFile);
811 FakeEncryptedMedia encrypted_media(new KeyProvidingApp()); 811 FakeEncryptedMedia encrypted_media(new KeyProvidingApp());
812 StartPipelineWithEncryptedMedia(&source, &encrypted_media); 812 StartPipelineWithEncryptedMedia(&source, &encrypted_media);
813 813
814 source.EndOfStream(); 814 source.EndOfStream();
815 ASSERT_EQ(PIPELINE_OK, pipeline_status_); 815 ASSERT_EQ(PIPELINE_OK, pipeline_status_);
816 816
817 Play(); 817 Play();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 975
976 // Verify that VP8 video with inband text track can be played back. 976 // Verify that VP8 video with inband text track can be played back.
977 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) { 977 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) {
978 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), 978 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"),
979 PIPELINE_OK)); 979 PIPELINE_OK));
980 Play(); 980 Play();
981 ASSERT_TRUE(WaitUntilOnEnded()); 981 ASSERT_TRUE(WaitUntilOnEnded());
982 } 982 }
983 983
984 } // namespace media 984 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/stream_parser_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698