Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: content/browser/media/capture/desktop_capture_device_aura_unittest.cc

Issue 1204063005: Reland: Video Capture: extract storage info from pixel format in VideoCaptureFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng@ nit on DCHECK_EQ(expected, actual) Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/media/capture/desktop_capture_device_aura_unittest.cc
diff --git a/content/browser/media/capture/desktop_capture_device_aura_unittest.cc b/content/browser/media/capture/desktop_capture_device_aura_unittest.cc
index 88c75a603cc91f2dff995299d159155fc21591fc..2ec6d4aa57f3f2ec1bec49095a772e3efc942844 100644
--- a/content/browser/media/capture/desktop_capture_device_aura_unittest.cc
+++ b/content/browser/media/capture/desktop_capture_device_aura_unittest.cc
@@ -57,8 +57,14 @@ class MockDeviceClient : public media::VideoCaptureDevice::Client {
MOCK_METHOD1(OnError, void(const std::string& reason));
// Trampoline methods to workaround GMOCK problems with scoped_ptr<>.
- scoped_ptr<Buffer> ReserveOutputBuffer(media::VideoPixelFormat format,
- const gfx::Size& dimensions) override {
+ scoped_ptr<Buffer> ReserveOutputBuffer(
+ const gfx::Size& dimensions,
+ media::VideoPixelFormat format,
+ media::VideoPixelStorage storage) override {
+ EXPECT_TRUE((format == media::PIXEL_FORMAT_I420 &&
+ storage == media::PIXEL_STORAGE_CPU) ||
+ (format == media::PIXEL_FORMAT_ARGB &&
+ storage == media::PIXEL_STORAGE_TEXTURE));
DoReserveOutputBuffer();
return scoped_ptr<Buffer>();
}

Powered by Google App Engine
This is Rietveld 408576698