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

Unified Diff: webrtc/media/base/videoframe_unittest.h

Issue 1843413002: Delete unused cricket::VideoFrame methods MakeExclusive and CopyToFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 | « webrtc/media/base/videoframe.cc ('k') | webrtc/media/engine/webrtcvideoframe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframe_unittest.h
diff --git a/webrtc/media/base/videoframe_unittest.h b/webrtc/media/base/videoframe_unittest.h
index 88119fd672f14e0776f0dbd35d5773dee0fc0e40..44570c4e19e6cfa7d0af025aff02f9a61a8cf05b 100644
--- a/webrtc/media/base/videoframe_unittest.h
+++ b/webrtc/media/base/videoframe_unittest.h
@@ -1807,37 +1807,6 @@ class VideoFrameTest : public testing::Test {
EXPECT_EQ(const_source->GetVPlane(), target->GetVPlane());
}
- void MakeExclusive() {
- std::unique_ptr<T> source(new T);
- std::unique_ptr<cricket::VideoFrame> target;
- ASSERT_TRUE(LoadFrameNoRepeat(source.get()));
- target.reset(source->Copy());
- EXPECT_TRUE(target->MakeExclusive());
- EXPECT_TRUE(IsEqual(*source, *target, 0));
- EXPECT_NE(target->GetYPlane(), source->GetYPlane());
- EXPECT_NE(target->GetUPlane(), source->GetUPlane());
- EXPECT_NE(target->GetVPlane(), source->GetVPlane());
- }
-
- void CopyToFrame() {
- T source;
- std::unique_ptr<rtc::MemoryStream> ms(
- LoadSample(kImageFilename));
- ASSERT_TRUE(ms.get() != NULL);
- ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
- &source));
-
- // Create the target frame by loading from a file.
- T target;
- ASSERT_TRUE(LoadFrameNoRepeat(&target));
- EXPECT_FALSE(IsBlack(target));
-
- // Stretch and check if the stretched target is black.
- source.CopyToFrame(&target);
-
- EXPECT_TRUE(IsEqual(source, target, 0));
- }
-
void StretchToFrame() {
// Create the source frame as a black frame.
T source;
« no previous file with comments | « webrtc/media/base/videoframe.cc ('k') | webrtc/media/engine/webrtcvideoframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698