Index: content/browser/renderer_host/media/video_capture_host_unittest.cc |
diff --git a/content/browser/renderer_host/media/video_capture_host_unittest.cc b/content/browser/renderer_host/media/video_capture_host_unittest.cc |
index d201d48f94970c58437f0f42c163071b811e27f0..96d5e763a26fa2f3e7a22299cef78dc5a907a7c9 100644 |
--- a/content/browser/renderer_host/media/video_capture_host_unittest.cc |
+++ b/content/browser/renderer_host/media/video_capture_host_unittest.cc |
@@ -20,6 +20,7 @@ |
#include "content/public/test/mock_resource_context.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "media/audio/audio_manager.h" |
+#include "media/base/video_frame.h" |
#include "media/video/capture/video_capture_types.h" |
#include "net/url_request/url_request_context.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -57,7 +58,9 @@ class DumpVideo { |
base::FilePath file_name = base::FilePath(base::StringPrintf( |
FILE_PATH_LITERAL("dump_w%d_h%d.yuv"), width, height)); |
file_.reset(file_util::OpenFile(file_name, "wb")); |
- expected_size_ = width * height * 3 / 2; |
+ expected_size_ = |
+ media::VideoFrame::AllocationSize(media::VideoFrame::I420, |
+ gfx::Size(width, height)); |
} |
void NewVideoFrame(const void* buffer) { |
if (file_.get() != NULL) { |