| OLD | NEW |
| 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/chunk_demuxer.h" | 5 #include "media/filters/chunk_demuxer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 4698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4709 EXPECT_NE(nullptr, demuxer_->GetStream(DemuxerStream::AUDIO)); | 4709 EXPECT_NE(nullptr, demuxer_->GetStream(DemuxerStream::AUDIO)); |
| 4710 EXPECT_NE(nullptr, demuxer_->GetStream(DemuxerStream::VIDEO)); | 4710 EXPECT_NE(nullptr, demuxer_->GetStream(DemuxerStream::VIDEO)); |
| 4711 | 4711 |
| 4712 // Removing the id should remove also the DemuxerStreams. | 4712 // Removing the id should remove also the DemuxerStreams. |
| 4713 demuxer_->RemoveId(kId1); | 4713 demuxer_->RemoveId(kId1); |
| 4714 EXPECT_EQ(nullptr, demuxer_->GetStream(DemuxerStream::AUDIO)); | 4714 EXPECT_EQ(nullptr, demuxer_->GetStream(DemuxerStream::AUDIO)); |
| 4715 EXPECT_EQ(nullptr, demuxer_->GetStream(DemuxerStream::VIDEO)); | 4715 EXPECT_EQ(nullptr, demuxer_->GetStream(DemuxerStream::VIDEO)); |
| 4716 } | 4716 } |
| 4717 | 4717 |
| 4718 // TODO(servolk): Add a unit test with multiple audio/video tracks using the | 4718 // TODO(servolk): Add a unit test with multiple audio/video tracks using the |
| 4719 // same codec type in a single SourceBuffer/MediaSourceState, when WebM parser | 4719 // same codec type in a single SourceBufferState, when WebM parser supports |
| 4720 // supports multiple tracks. crbug.com/646900 | 4720 // multiple tracks. crbug.com/646900 |
| 4721 | 4721 |
| 4722 } // namespace media | 4722 } // namespace media |
| OLD | NEW |