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

Unified Diff: services/video_capture/test/mock_device_test.h

Issue 2824883005: [Mojo Video Capture] Stop service when last client disconnects. (Closed)
Patch Set: Created 3 years, 8 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: services/video_capture/test/mock_device_test.h
diff --git a/services/video_capture/test/mock_device_test.h b/services/video_capture/test/mock_device_test.h
index 637f635fb34df9b5fc33c818e42f626c7cbd15b8..683254a4f24e447c3fda0b8e2737d593ba1ce23c 100644
--- a/services/video_capture/test/mock_device_test.h
+++ b/services/video_capture/test/mock_device_test.h
@@ -7,6 +7,7 @@
#include "base/test/mock_callback.h"
#include "media/capture/video/video_capture_device.h"
+#include "services/service_manager/public/cpp/service_context_ref.h"
#include "services/video_capture/device_factory_media_to_mojo_adapter.h"
#include "services/video_capture/public/interfaces/service.mojom.h"
#include "services/video_capture/test/mock_device_factory.h"
@@ -29,7 +30,7 @@ class MockDevice : public media::VideoCaptureDevice {
void SendStubFrame(const media::VideoCaptureFormat& format,
int rotation,
- int frame_id);
+ int frame_feedback_id);
// media::VideoCaptureDevice:
MOCK_METHOD2(DoAllocateAndStart,
@@ -83,6 +84,7 @@ class MockDeviceTest : public ::testing::Test {
private:
std::unique_ptr<base::MessageLoop> message_loop_;
+ service_manager::ServiceContextRefFactory ref_factory_;
};
} // namespace video_capture

Powered by Google App Engine
This is Rietveld 408576698