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

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

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: e296ac98 Win32 bits. Created 6 years, 10 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 d15d9578fa93531fbca7beeba107a5bd72212456..99577d6f8a34e912df088e2a1864e7f0b4edcb4d 100644
--- a/content/browser/media/capture/desktop_capture_device_aura_unittest.cc
+++ b/content/browser/media/capture/desktop_capture_device_aura_unittest.cc
@@ -23,6 +23,10 @@ using ::testing::Expectation;
using ::testing::InvokeWithoutArgs;
using ::testing::SaveArg;
+namespace media {
+class VideoFrame;
+} // namespace media
+
namespace content {
namespace {
@@ -34,18 +38,17 @@ class MockDeviceClient : public media::VideoCaptureDevice::Client {
scoped_refptr<Buffer>(media::VideoFrame::Format format,
const gfx::Size& dimensions));
MOCK_METHOD1(OnError, void(const std::string& reason));
- MOCK_METHOD5(OnIncomingCapturedFrame,
+ MOCK_METHOD5(OnIncomingCapturedData,
void(const uint8* data,
int length,
- base::TimeTicks timestamp,
+ const media::VideoCaptureFormat& frame_format,
int rotation,
- const media::VideoCaptureFormat& frame_format));
- MOCK_METHOD5(OnIncomingCapturedBuffer,
+ base::TimeTicks timestamp));
+ MOCK_METHOD4(OnIncomingCapturedVideoFrame,
void(const scoped_refptr<Buffer>& buffer,
- media::VideoFrame::Format format,
- const gfx::Size& dimensions,
- base::TimeTicks timestamp,
- int frame_rate));
+ const media::VideoCaptureFormat& buffer_format,
+ const scoped_refptr<media::VideoFrame>& frame,
+ base::TimeTicks timestamp));
};
// Test harness that sets up a minimal environment with necessary stubs.

Powered by Google App Engine
This is Rietveld 408576698