| Index: media/video/capture/fake_video_capture_device_unittest.cc
|
| diff --git a/media/video/capture/fake_video_capture_device_unittest.cc b/media/video/capture/fake_video_capture_device_unittest.cc
|
| index 042fa7c8de9d94033bedba3641562596b9a723a8..dfc8a84734b07d7762a04357c94f33d3615191f4 100644
|
| --- a/media/video/capture/fake_video_capture_device_unittest.cc
|
| +++ b/media/video/capture/fake_video_capture_device_unittest.cc
|
| @@ -75,12 +75,11 @@ class MockClient : public VideoCaptureDevice::Client {
|
| }
|
|
|
| // Virtual methods for capturing using Client's Buffers.
|
| - scoped_refptr<Buffer> ReserveOutputBuffer(VideoFrame::Format format,
|
| - const gfx::Size& dimensions) {
|
| - EXPECT_EQ(format, VideoFrame::I420);
|
| - EXPECT_GT(dimensions.GetArea(), 0);
|
| + scoped_refptr<Buffer> ReserveOutputBuffer(const VideoCaptureFormat& format) {
|
| + EXPECT_EQ(format.pixel_format, PIXEL_FORMAT_I420);
|
| + EXPECT_GT(format.frame_size.GetArea(), 0);
|
| return make_scoped_refptr(
|
| - new MockBuffer(0, VideoFrame::AllocationSize(format, dimensions)));
|
| + new MockBuffer(0, format.ImageAllocationSize()));
|
| }
|
| void OnIncomingCapturedVideoFrame(
|
| const scoped_refptr<Buffer>& buffer,
|
|
|