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

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

Issue 160076: BufferedDataSource to support server without range request support... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_glue.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <deque> 5 #include <deque>
6 6
7 #include "base/thread.h" 7 #include "base/thread.h"
8 #include "media/base/filters.h" 8 #include "media/base/filters.h"
9 #include "media/base/mock_ffmpeg.h" 9 #include "media/base/mock_ffmpeg.h"
10 #include "media/base/mock_filter_host.h" 10 #include "media/base/mock_filter_host.h"
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 } 769 }
770 770
771 EXPECT_CALL(*data_source_, GetSize(_)) 771 EXPECT_CALL(*data_source_, GetSize(_))
772 .WillOnce(DoAll(SetArgumentPointee<0>(1024), Return(true))); 772 .WillOnce(DoAll(SetArgumentPointee<0>(1024), Return(true)));
773 773
774 int64 size; 774 int64 size;
775 EXPECT_TRUE(demuxer_->GetSize(&size)); 775 EXPECT_TRUE(demuxer_->GetSize(&size));
776 EXPECT_EQ(1024, size); 776 EXPECT_EQ(1024, size);
777 } 777 }
778 778
779 TEST_F(FFmpegDemuxerTest, ProtocolIsStreamed) { 779 TEST_F(FFmpegDemuxerTest, ProtocolIsStreaming) {
780 { 780 {
781 SCOPED_TRACE(""); 781 SCOPED_TRACE("");
782 InitializeDemuxer(); 782 InitializeDemuxer();
783 } 783 }
784 EXPECT_FALSE(demuxer_->IsStreamed()); 784 EXPECT_CALL(*data_source_, IsStreaming())
785 .WillOnce(Return(false));
786 EXPECT_FALSE(demuxer_->IsStreaming());
785 } 787 }
786 788
787 } // namespace media 789 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698