Index: content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc |
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc b/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc |
index c4e5f5f3c1928588fcefdaa4a06f124f336b3af1..5493ae49551ea05ea2e582dda5fed97ff9f611ba 100644 |
--- a/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc |
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc |
@@ -310,8 +310,10 @@ class StubConsumer : public media::VideoCaptureDevice::EventHandler { |
StubConsumer() |
: error_encountered_(false), |
wait_color_yuv_(0xcafe1950) { |
- buffer_pool_ = |
- new VideoCaptureBufferPool(kTestWidth * kTestHeight * 3 / 2, 2); |
+ buffer_pool_ = new VideoCaptureBufferPool( |
+ media::VideoFrame::AllocationSize(media::VideoFrame::I420, |
+ gfx::Size(kTestWidth, kTestHeight), |
+ 2); |
EXPECT_TRUE(buffer_pool_->Allocate()); |
} |
virtual ~StubConsumer() {} |