Index: media/capture/BUILD.gn |
diff --git a/media/capture/BUILD.gn b/media/capture/BUILD.gn |
index 8c7c2cf67de7124aa639f97c0f57069b00a423c9..6f11d74f8559cd1c62d06c92eb4b4fc8e0e1facd 100644 |
--- a/media/capture/BUILD.gn |
+++ b/media/capture/BUILD.gn |
@@ -157,3 +157,53 @@ source_set("unittests") { |
# TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. |
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
} |
+ |
+# 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", |
+ ] |
+} |