Index: content/browser/renderer_host/media/video_capture_manager_unittest.cc |
diff --git a/content/browser/renderer_host/media/video_capture_manager_unittest.cc b/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
index 5c27849ccafc6c5de61a963d6e588d9d79edff2d..b143b02fedc27d81c4109c42dc4175f5c1abfba1 100644 |
--- a/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
+++ b/content/browser/renderer_host/media/video_capture_manager_unittest.cc |
@@ -19,6 +19,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/run_loop.h" |
#include "base/threading/thread_task_runner_handle.h" |
+#include "component/arc/video_facing.h" |
#include "content/browser/renderer_host/media/media_stream_provider.h" |
#include "content/browser/renderer_host/media/video_capture_controller_event_handler.h" |
#include "content/common/media/media_stream_options.h" |
@@ -150,6 +151,12 @@ class MockFrameObserver : public VideoCaptureControllerEventHandler { |
void OnGotControllerCallback(VideoCaptureControllerID) {} |
}; |
+class MockVideoCaptureObserver : public component::VideoCaptureObserver { |
+ public: |
+ MOCK_METHOD1(OnVideoCaptureStarted, void(component::VideoFacingMode)); |
+ MOCK_METHOD1(OnVideoCaptureStopped, void(component::VideoFacingMode)); |
+}; |
+ |
} // namespace |
// Test class |
@@ -175,7 +182,8 @@ class VideoCaptureManagerTest : public testing::Test { |
listener_.reset(new MockMediaStreamProviderListener()); |
vcm_ = new VideoCaptureManager( |
std::unique_ptr<media::VideoCaptureDeviceFactory>( |
- new WrappedDeviceFactory())); |
+ new WrappedDeviceFactory()), |
+ new MockVideoCaptureObserver()); |
video_capture_device_factory_ = static_cast<WrappedDeviceFactory*>( |
vcm_->video_capture_device_factory()); |
const int32_t kNumberOfFakeDevices = 2; |