Index: webrtc/media/engine/webrtcvideoframe_unittest.cc |
diff --git a/webrtc/media/engine/webrtcvideoframe_unittest.cc b/webrtc/media/engine/webrtcvideoframe_unittest.cc |
index 2c6f56cb25acaaa6b2d9b09037c945a8b6d7a2ff..abfd0aea3cdfe43ea36c86c42d40fed1cbea29bb 100644 |
--- a/webrtc/media/engine/webrtcvideoframe_unittest.cc |
+++ b/webrtc/media/engine/webrtcvideoframe_unittest.cc |
@@ -313,9 +313,8 @@ TEST_F(WebRtcVideoFrameTest, CopyTextureFrame) { |
TEST_F(WebRtcVideoFrameTest, ApplyRotationToFrame) { |
WebRtcVideoTestFrame applied0; |
EXPECT_TRUE(IsNull(applied0)); |
- std::unique_ptr<rtc::MemoryStream> ms(CreateYuvSample(kWidth, kHeight, 12)); |
- EXPECT_TRUE( |
- LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight, &applied0)); |
+ EXPECT_TRUE(LoadFrame(CreateYuvSample(kWidth, kHeight, 12).get(), |
+ cricket::FOURCC_I420, kWidth, kHeight, &applied0)); |
// Claim that this frame needs to be rotated for 90 degree. |
applied0.set_rotation(webrtc::kVideoRotation_90); |