summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame_unittest.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 01:25:45 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 01:25:45 +0000
commit50334fa2b796a9d2eb2fc5e4234c7d71ec2a6439 (patch)
treebbcec59ec52f93a4d200f0fe361d4ad5cb4347d4 /media/base/video_frame_unittest.cc
parent621493fa21800a1d69d59888b0f0e7c57f4768c8 (diff)
downloadchromium_src-50334fa2b796a9d2eb2fc5e4234c7d71ec2a6439.zip
chromium_src-50334fa2b796a9d2eb2fc5e4234c7d71ec2a6439.tar.gz
chromium_src-50334fa2b796a9d2eb2fc5e4234c7d71ec2a6439.tar.bz2
Removing CreateFrameExternal(), CreateFrameGl(), and SurfaceType from VideoFrame.
They've never been used. Review URL: http://codereview.chromium.org/7439007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_frame_unittest.cc')
-rw-r--r--media/base/video_frame_unittest.cc23
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