OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 source_set("capture") { | 9 source_set("capture") { |
10 sources = [ | 10 sources = [ |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 "//testing/gtest", | 150 "//testing/gtest", |
151 ] | 151 ] |
152 | 152 |
153 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. | 153 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. |
154 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 154 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
155 | 155 |
156 if (is_mac) { | 156 if (is_mac) { |
157 sources += [ "video/mac/video_capture_device_factory_mac_unittest.mm" ] | 157 sources += [ "video/mac/video_capture_device_factory_mac_unittest.mm" ] |
158 } | 158 } |
159 } | 159 } |
| 160 |
| 161 # Mojo service, captures video using the previous |capture| set. |
| 162 source_set("service") { |
| 163 sources = [ |
| 164 "service/mojo_video_frame.cc", |
| 165 "service/mojo_video_frame.h", |
| 166 "service/stream_impl.cc", |
| 167 "service/stream_impl.h", |
| 168 "service/video_capture_device_client_impl.cc", |
| 169 "service/video_capture_device_client_impl.h", |
| 170 "service/video_capture_handler_impl.cc", |
| 171 "service/video_capture_handler_impl.h", |
| 172 ] |
| 173 |
| 174 deps = [ |
| 175 ":capture", |
| 176 "//base", |
| 177 "//media/base:base", |
| 178 "//media/capture/interfaces", |
| 179 "//mojo/converters/geometry", |
| 180 "//mojo/platform_handle:platform_handle_impl", |
| 181 "//third_party/libyuv", |
| 182 "//ui/gfx/geometry", |
| 183 ] |
| 184 } |
| 185 |
| 186 test("capture_service_unittests") { |
| 187 sources = [ |
| 188 "service/mock_stream_client.cc", |
| 189 "service/mock_stream_client.h", |
| 190 "service/stream_impl_unittest.cc", |
| 191 "service/video_capture_device_client_impl_unittest.cc", |
| 192 "service/video_capture_handler_impl_unittest.cc", |
| 193 "service/video_capture_unittest.cc", |
| 194 ] |
| 195 |
| 196 deps = [ |
| 197 ":capture", |
| 198 ":service", |
| 199 "//gpu:test_support", |
| 200 "//media", |
| 201 "//mojo/edk/test:run_all_unittests", |
| 202 "//mojo/edk/test:test_support", |
| 203 "//mojo/edk/test:test_support_impl", |
| 204 "//testing/gmock", |
| 205 "//testing/gtest", |
| 206 "//ui/gfx:test_support", |
| 207 "//url", |
| 208 ] |
| 209 } |
OLD | NEW |