| Index: webrtc/media/engine/webrtcvideoframe_unittest.cc
|
| diff --git a/webrtc/media/engine/webrtcvideoframe_unittest.cc b/webrtc/media/engine/webrtcvideoframe_unittest.cc
|
| index 6d1d8109346df3c5ee9575b5bff303a4f601ac92..3f924a441a1feb8dff6ede9e1a751fdf10d9dce5 100644
|
| --- a/webrtc/media/engine/webrtcvideoframe_unittest.cc
|
| +++ b/webrtc/media/engine/webrtcvideoframe_unittest.cc
|
| @@ -20,24 +20,15 @@
|
|
|
| class WebRtcVideoTestFrame : public cricket::WebRtcVideoFrame {
|
| public:
|
| - WebRtcVideoTestFrame() {}
|
| - WebRtcVideoTestFrame(
|
| - const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer,
|
| - int64_t time_stamp_ns,
|
| - webrtc::VideoRotation rotation)
|
| - : WebRtcVideoFrame(buffer, time_stamp_ns, rotation) {}
|
| -
|
| // The ApplyRotationToFrame test needs this as a public method.
|
| using cricket::WebRtcVideoFrame::set_rotation;
|
|
|
| virtual VideoFrame* CreateEmptyFrame(int w,
|
| int h,
|
| int64_t time_stamp) const override {
|
| - rtc::scoped_refptr<webrtc::I420Buffer> buffer(
|
| - new rtc::RefCountedObject<webrtc::I420Buffer>(w, h));
|
| - buffer->SetToBlack();
|
| - return new WebRtcVideoTestFrame(
|
| - buffer, time_stamp, webrtc::kVideoRotation_0);
|
| + WebRtcVideoTestFrame* frame = new WebRtcVideoTestFrame();
|
| + frame->InitToBlack(w, h, time_stamp);
|
| + return frame;
|
| }
|
| };
|
|
|
| @@ -154,6 +145,7 @@
|
| // TODO(juberti): WebRtcVideoFrame is not currently refcounted.
|
| // TEST_WEBRTCVIDEOFRAME(ConstructCopy)
|
| // TEST_WEBRTCVIDEOFRAME(ConstructCopyIsRef)
|
| +TEST_WEBRTCVIDEOFRAME(ConstructBlack)
|
| // TODO(fbarchard): Implement Jpeg
|
| // TEST_WEBRTCVIDEOFRAME(ConstructMjpgI420)
|
| TEST_WEBRTCVIDEOFRAME(ConstructMjpgI422)
|
|
|