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

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

Issue 2379653004: Rename MediaSourceState -> SourceBufferState (Closed)
Patch Set: nits Created 4 years, 2 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
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/frame_processor.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/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
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
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/frame_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698