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

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

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Include <algorithm>, needed for std::min. Created 4 years, 7 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/media/base/videoframe_unittest.h
diff --git a/webrtc/media/base/videoframe_unittest.h b/webrtc/media/base/videoframe_unittest.h
index 6ceba833b5b834c2a9f1c9d5b02813ab99bb78d0..666b04d1ece64c3a8f53ae5b65c1630517e562b5 100644
--- a/webrtc/media/base/videoframe_unittest.h
+++ b/webrtc/media/base/videoframe_unittest.h
@@ -1806,29 +1806,6 @@ class VideoFrameTest : public testing::Test {
EXPECT_EQ(const_source->video_frame_buffer(), target->video_frame_buffer());
}
- void StretchToFrame() {
- // Create the source frame as a black frame.
- T source;
- EXPECT_TRUE(source.InitToBlack(kWidth * 2, kHeight * 2, 0));
- EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2));
-
- // Create the target frame by loading from a file.
- T target1;
- ASSERT_TRUE(LoadFrameNoRepeat(&target1));
- EXPECT_FALSE(IsBlack(target1));
-
- // Stretch and check if the stretched target is black.
- source.StretchToFrame(&target1, true, false);
- EXPECT_TRUE(IsBlack(target1));
-
- // Crop and stretch and check if the stretched target is black.
- T target2;
- ASSERT_TRUE(LoadFrameNoRepeat(&target2));
- source.StretchToFrame(&target2, true, true);
- EXPECT_TRUE(IsBlack(target2));
- EXPECT_EQ(source.GetTimeStamp(), target2.GetTimeStamp());
- }
-
int repeat_;
};

Powered by Google App Engine
This is Rietveld 408576698