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

Unified Diff: media/capture/BUILD.gn

Issue 1699553002: Mojo Video Capture service in media/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@s comments and renaming Created 4 years, 9 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
« no previous file with comments | « media/base/BUILD.gn ('k') | media/capture/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/BUILD.gn
diff --git a/media/capture/BUILD.gn b/media/capture/BUILD.gn
index 8c7c2cf67de7124aa639f97c0f57069b00a423c9..f743b5294c97faf5326f42a23ee96fbd78e99134 100644
--- a/media/capture/BUILD.gn
+++ b/media/capture/BUILD.gn
@@ -157,3 +157,52 @@ 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/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",
+ "service/video_capture_stream_impl.cc",
+ "service/video_capture_stream_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("video_capture_service_unittests") {
+ sources = [
+ "service/mock_video_capture_stream_client.cc",
+ "service/mock_video_capture_stream_client.h",
+ "service/video_capture_device_client_impl_unittest.cc",
+ "service/video_capture_handler_impl_unittest.cc",
+ "service/video_capture_stream_impl_unittest.cc",
+ "service/video_capture_unittest.cc",
+ ]
+
+ deps = [
+ ":capture",
+ ":service",
+ "//gpu:test_support",
+ "//media",
+ "//media/mojo/common",
+ "//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",
+ ]
+}
« no previous file with comments | « media/base/BUILD.gn ('k') | media/capture/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698