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

Unified Diff: webrtc/video/video_capture_input_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
Index: webrtc/video/video_capture_input_unittest.cc
diff --git a/webrtc/video/video_capture_input_unittest.cc b/webrtc/video/video_capture_input_unittest.cc
index b36c2577f91bdb3ce8550e18620648d2cfb44ae9..6fa90d4cb15397ff0c5c020f915f326c2082f15b 100644
--- a/webrtc/video/video_capture_input_unittest.cc
+++ b/webrtc/video/video_capture_input_unittest.cc
@@ -95,17 +95,18 @@ TEST_F(VideoCaptureInputTest, DoesNotRetainHandleNorCopyBuffer) {
rtc::Event* const event_;
};
- VideoFrame frame(
- new rtc::RefCountedObject<TestBuffer>(&frame_destroyed_event), 1, 1,
- kVideoRotation_0);
+ {
+ VideoFrame frame(
+ new rtc::RefCountedObject<TestBuffer>(&frame_destroyed_event), 1, 1,
+ kVideoRotation_0);
- AddInputFrame(&frame);
- WaitOutputFrame();
+ AddInputFrame(&frame);
+ WaitOutputFrame();
- EXPECT_EQ(output_frames_[0]->video_frame_buffer().get(),
- frame.video_frame_buffer().get());
- output_frames_.clear();
- frame.Reset();
+ EXPECT_EQ(output_frames_[0]->video_frame_buffer().get(),
+ frame.video_frame_buffer().get());
+ output_frames_.clear();
+ }
EXPECT_TRUE(frame_destroyed_event.Wait(FRAME_TIMEOUT_MS));
}

Powered by Google App Engine
This is Rietveld 408576698