Index: webrtc/video/overuse_frame_detector_unittest.cc |
diff --git a/webrtc/video/overuse_frame_detector_unittest.cc b/webrtc/video/overuse_frame_detector_unittest.cc |
index 7f69ac00c98b1cc312c1c5c0d93288f6ed16bab2..f05bad57c07d764273424ed3680d3fb04e9d085d 100644 |
--- a/webrtc/video/overuse_frame_detector_unittest.cc |
+++ b/webrtc/video/overuse_frame_detector_unittest.cc |
@@ -101,8 +101,8 @@ class OveruseFrameDetectorTest : public ::testing::Test, |
int width, |
int height, |
int delay_ms) { |
- VideoFrame frame; |
- frame.CreateEmptyFrame(width, height, width, width / 2, width / 2); |
+ VideoFrame frame(I420Buffer::Create(width, height), |
+ webrtc::kVideoRotation_0, 0); |
uint32_t timestamp = 0; |
while (num_frames-- > 0) { |
frame.set_timestamp(timestamp); |
@@ -283,8 +283,8 @@ TEST_F(OveruseFrameDetectorTest, MeasuresMultipleConcurrentSamples) { |
EXPECT_CALL(*(observer_.get()), OveruseDetected()).Times(testing::AtLeast(1)); |
static const int kIntervalMs = 33; |
static const size_t kNumFramesEncodingDelay = 3; |
- VideoFrame frame; |
- frame.CreateEmptyFrame(kWidth, kHeight, kWidth, kWidth / 2, kWidth / 2); |
+ VideoFrame frame(I420Buffer::Create(kWidth, kHeight), |
+ webrtc::kVideoRotation_0, 0); |
for (size_t i = 0; i < 1000; ++i) { |
// Unique timestamps. |
frame.set_timestamp(static_cast<uint32_t>(i)); |
@@ -304,8 +304,8 @@ TEST_F(OveruseFrameDetectorTest, UpdatesExistingSamples) { |
EXPECT_CALL(*(observer_.get()), OveruseDetected()).Times(testing::AtLeast(1)); |
static const int kIntervalMs = 33; |
static const int kDelayMs = 30; |
- VideoFrame frame; |
- frame.CreateEmptyFrame(kWidth, kHeight, kWidth, kWidth / 2, kWidth / 2); |
+ VideoFrame frame(I420Buffer::Create(kWidth, kHeight), |
+ webrtc::kVideoRotation_0, 0); |
uint32_t timestamp = 0; |
for (size_t i = 0; i < 1000; ++i) { |
frame.set_timestamp(timestamp); |