| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |