Index: media/capture/BUILD.gn |
diff --git a/media/capture/BUILD.gn b/media/capture/BUILD.gn |
index fa97b738c0e89dca87b3ac3985e23299bf5611cc..07638ed488076441c131814dedc2eaf2f8ae1d26 100644 |
--- a/media/capture/BUILD.gn |
+++ b/media/capture/BUILD.gn |
@@ -157,3 +157,53 @@ source_set("unittests") { |
sources += [ "video/mac/video_capture_device_factory_mac_unittest.mm" ] |
} |
} |
+ |
+# Mojo service, captures video using the previous |capture| set. |
+source_set("service") { |
+ sources = [ |
+ "service/mojo_video_frame.cc", |
+ "service/mojo_video_frame.h", |
+ "service/stream_impl.cc", |
+ "service/stream_impl.h", |
+ "service/video_capture_device_client_impl.cc", |
+ "service/video_capture_device_client_impl.h", |
+ "service/video_capture_handler_impl.cc", |
+ "service/video_capture_handler_impl.h", |
+ ] |
+ |
+ deps = [ |
+ ":capture", |
+ "//base", |
+ "//media/base:base", |
+ "//media/capture/interfaces", |
+ "//mojo/converters/geometry", |
+ "//mojo/platform_handle:platform_handle_impl", |
+ "//third_party/libyuv", |
+ "//ui/gfx/geometry", |
+ ] |
+} |
+ |
+test("capture_service_unittests") { |
+ sources = [ |
+ "service/mock_stream_client.cc", |
+ "service/mock_stream_client.h", |
+ "service/stream_impl_unittest.cc", |
+ "service/video_capture_device_client_impl_unittest.cc", |
+ "service/video_capture_handler_impl_unittest.cc", |
+ "service/video_capture_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":capture", |
+ ":service", |
+ "//gpu:test_support", |
+ "//media", |
+ "//mojo/edk/test:run_all_unittests", |
+ "//mojo/edk/test:test_support", |
+ "//mojo/edk/test:test_support_impl", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ "//ui/gfx:test_support", |
+ "//url", |
+ ] |
+} |