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

Unified Diff: webrtc/common_video/i420_video_frame_unittest.cc

Issue 1889443002: Delete method webrtc::VideoFrame::Reset. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/common_video/video_frame.cc » ('j') | webrtc/video/video_capture_input.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/i420_video_frame_unittest.cc
diff --git a/webrtc/common_video/i420_video_frame_unittest.cc b/webrtc/common_video/i420_video_frame_unittest.cc
index 9b2bdd762dca60f6e1c8ebca1124a24ca1245f31..10a3ec1beebc881188b030d58e8ab805c454ea4c 100644
--- a/webrtc/common_video/i420_video_frame_unittest.cc
+++ b/webrtc/common_video/i420_video_frame_unittest.cc
@@ -164,21 +164,6 @@ TEST(TestVideoFrame, ShallowCopy) {
EXPECT_NE(frame2.rotation(), frame1.rotation());
}
-TEST(TestVideoFrame, Reset) {
- VideoFrame frame;
- frame.CreateEmptyFrame(5, 5, 5, 5, 5);
- frame.set_ntp_time_ms(1);
- frame.set_timestamp(2);
- frame.set_render_time_ms(3);
- ASSERT_TRUE(frame.video_frame_buffer() != NULL);
-
- frame.Reset();
- EXPECT_EQ(0u, frame.ntp_time_ms());
- EXPECT_EQ(0u, frame.render_time_ms());
- EXPECT_EQ(0u, frame.timestamp());
- EXPECT_TRUE(frame.video_frame_buffer() == NULL);
-}
-
TEST(TestVideoFrame, CopyBuffer) {
VideoFrame frame1, frame2;
int width = 15;
« no previous file with comments | « no previous file | webrtc/common_video/video_frame.cc » ('j') | webrtc/video/video_capture_input.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698