| 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 | 150 |
| 151 deps = [ | 151 deps = [ |
| 152 "//media/base:unittests", | 152 "//media/base:unittests", |
| 153 "//testing/gmock", | 153 "//testing/gmock", |
| 154 "//testing/gtest", | 154 "//testing/gtest", |
| 155 ] | 155 ] |
| 156 | 156 |
| 157 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. | 157 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. |
| 158 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 158 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 159 } | 159 } |
| 160 |
| 161 # Mojo service, captures video using the previous |capture| set. |
| 162 source_set("service") { |
| 163 sources = [ |
| 164 "service/video_capture_device_client_impl.cc", |
| 165 "service/video_capture_device_client_impl.h", |
| 166 "service/video_capture_handler_impl.cc", |
| 167 "service/video_capture_handler_impl.h", |
| 168 "service/video_capture_stream_impl.cc", |
| 169 "service/video_capture_stream_impl.h", |
| 170 ] |
| 171 |
| 172 deps = [ |
| 173 ":capture", |
| 174 "//base", |
| 175 "//media/base:base", |
| 176 "//media/capture/interfaces", |
| 177 "//mojo/converters/geometry", |
| 178 "//mojo/platform_handle:platform_handle_impl", |
| 179 "//third_party/libyuv", |
| 180 "//ui/gfx/geometry", |
| 181 ] |
| 182 } |
| 183 |
| 184 test("video_capture_service_unittests") { |
| 185 sources = [ |
| 186 "service/mock_video_capture_stream_client.cc", |
| 187 "service/mock_video_capture_stream_client.h", |
| 188 "service/video_capture_device_client_impl_unittest.cc", |
| 189 "service/video_capture_handler_impl_unittest.cc", |
| 190 "service/video_capture_stream_impl_unittest.cc", |
| 191 "service/video_capture_unittest.cc", |
| 192 ] |
| 193 |
| 194 deps = [ |
| 195 ":capture", |
| 196 ":service", |
| 197 "//gpu:test_support", |
| 198 "//media", |
| 199 "//media/mojo/common", |
| 200 "//mojo/edk/test:run_all_unittests", |
| 201 "//mojo/edk/test:test_support", |
| 202 "//mojo/edk/test:test_support_impl", |
| 203 "//testing/gmock", |
| 204 "//testing/gtest", |
| 205 "//ui/gfx:test_support", |
| 206 "//url", |
| 207 ] |
| 208 } |
| OLD | NEW |