diff options
Diffstat (limited to 'media/base/video_frame_unittest.cc')
-rw-r--r-- | media/base/video_frame_unittest.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/media/base/video_frame_unittest.cc b/media/base/video_frame_unittest.cc index 8f6b4e7..2d4a2fe 100644 --- a/media/base/video_frame_unittest.cc +++ b/media/base/video_frame_unittest.cc @@ -114,7 +114,6 @@ TEST(VideoFrame, CreateFrame) { EXPECT_FALSE(frame->IsEndOfStream()); // Test VideoFrame implementation. - EXPECT_EQ(media::VideoFrame::TYPE_SYSTEM_MEMORY, frame->type()); EXPECT_EQ(media::VideoFrame::YV12, frame->format()); { SCOPED_TRACE(""); @@ -170,26 +169,4 @@ TEST(VideoFrame, CreateBlackFrame) { } } -TEST(VideoFram, CreateExternalFrame) { - scoped_array<uint8> memory(new uint8[1]); - - uint8* data[3] = {memory.get(), NULL, NULL}; - int strides[3] = {1, 0, 0}; - scoped_refptr<media::VideoFrame> frame = - VideoFrame::CreateFrameExternal(media::VideoFrame::TYPE_SYSTEM_MEMORY, - media::VideoFrame::RGB32, 0, 0, 3, - data, strides, - base::TimeDelta(), base::TimeDelta(), - NULL); - ASSERT_TRUE(frame); - - // Test frame properties. - EXPECT_EQ(1, frame->stride(VideoFrame::kRGBPlane)); - EXPECT_EQ(memory.get(), frame->data(VideoFrame::kRGBPlane)); - - // Delete |memory| and then |frame|. - memory.reset(); - frame = NULL; -} - } // namespace media |