diff options
Diffstat (limited to 'media/base/video_frame_impl_unittest.cc')
-rw-r--r-- | media/base/video_frame_impl_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/media/base/video_frame_impl_unittest.cc b/media/base/video_frame_impl_unittest.cc index c674460..fe0d37c 100644 --- a/media/base/video_frame_impl_unittest.cc +++ b/media/base/video_frame_impl_unittest.cc @@ -91,9 +91,6 @@ TEST(VideoFrameImpl, Basic) { frame->SetDuration(kDurationB); EXPECT_TRUE(kTimestampB == frame->GetTimestamp()); EXPECT_TRUE(kDurationB == frame->GetDuration()); - frame->SetEndOfStream(true); - EXPECT_TRUE(frame->IsEndOfStream()); - frame->SetEndOfStream(false); EXPECT_FALSE(frame->IsEndOfStream()); frame->SetDiscontinuous(true); EXPECT_TRUE(frame->IsDiscontinuous()); @@ -105,4 +102,8 @@ TEST(VideoFrameImpl, Basic) { ExpectFrameColor(frame, 0xFF000000); media::MockVideoDecoder::InitializeYV12Frame(frame, 1.0f); ExpectFrameColor(frame, 0xFFFFFFFF); + + // Test an empty frame. + media::VideoFrameImpl::CreateEmptyFrame(&frame); + EXPECT_TRUE(frame->IsEndOfStream()); } |