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

Unified Diff: services/video_capture/fake_device_test.h

Issue 2486543002: [Mojo Video Capture] Add test ReceiveFramesFromFakeCaptureDevice (Closed)
Patch Set: mcasas comments mk2 Created 4 years, 1 month 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: services/video_capture/fake_device_test.h
diff --git a/services/video_capture/fake_device_test.h b/services/video_capture/fake_device_test.h
index 819e3b6a69754cbcc751c2c2052afdc9d9519a7b..2f8b72d3195f933dc57f79f7b3e29e6d5175a0a6 100644
--- a/services/video_capture/fake_device_test.h
+++ b/services/video_capture/fake_device_test.h
@@ -6,6 +6,7 @@
#define SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_
#include "services/video_capture/fake_device_descriptor_test.h"
+#include "testing/gmock/include/gmock/gmock.h"
namespace video_capture {
@@ -19,6 +20,20 @@ class FakeDeviceTest : public FakeDeviceDescriptorTest {
void SetUp() override;
protected:
+ class MockSupportedFormatsReceiver {
+ public:
+ MockSupportedFormatsReceiver();
+ ~MockSupportedFormatsReceiver();
+
+ MOCK_METHOD1(OnGetSupportedFormatsCallback,
+ void(const std::vector<VideoCaptureFormat>&));
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockSupportedFormatsReceiver);
+ };
+
+ MockSupportedFormatsReceiver supported_formats_receiver_;
+ VideoCaptureFormat fake_device_first_supported_format_;
+ VideoCaptureSettings requestable_settings_;
mojom::VideoCaptureDeviceProxyPtr fake_device_proxy_;
};
« no previous file with comments | « services/video_capture/device_factory_media_to_mojo_adapter.cc ('k') | services/video_capture/fake_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698