| 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 component("capture") { | 9 component("capture") { |
| 10 defines = [ "CAPTURE_IMPLEMENTATION" ] | 10 defines = [ "CAPTURE_IMPLEMENTATION" ] |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 test("capture_unittests") { | 165 test("capture_unittests") { |
| 166 sources = [ | 166 sources = [ |
| 167 "content/animated_content_sampler_unittest.cc", | 167 "content/animated_content_sampler_unittest.cc", |
| 168 "content/capture_resolution_chooser_unittest.cc", | 168 "content/capture_resolution_chooser_unittest.cc", |
| 169 "content/smooth_event_sampler_unittest.cc", | 169 "content/smooth_event_sampler_unittest.cc", |
| 170 "content/video_capture_oracle_unittest.cc", | 170 "content/video_capture_oracle_unittest.cc", |
| 171 "video/fake_video_capture_device_unittest.cc", | 171 "video/fake_video_capture_device_unittest.cc", |
| 172 "video/linux/v4l2_capture_delegate_unittest.cc", |
| 172 "video/mac/video_capture_device_factory_mac_unittest.mm", | 173 "video/mac/video_capture_device_factory_mac_unittest.mm", |
| 173 "video/video_capture_device_unittest.cc", | 174 "video/video_capture_device_unittest.cc", |
| 174 ] | 175 ] |
| 175 | 176 |
| 176 deps = [ | 177 deps = [ |
| 177 ":capture", | 178 ":capture", |
| 178 "//base/test:run_all_unittests", | 179 "//base/test:run_all_unittests", |
| 179 "//base/test:test_support", | 180 "//base/test:test_support", |
| 180 "//media/base:test_support", | 181 "//media/base:test_support", |
| 181 "//media/capture/mojo:image_capture", | 182 "//media/capture/mojo:image_capture", |
| 182 "//testing/gmock", | 183 "//testing/gmock", |
| 183 "//testing/gtest", | 184 "//testing/gtest", |
| 184 "//ui/gfx:test_support", | 185 "//ui/gfx:test_support", |
| 185 ] | 186 ] |
| 186 | 187 |
| 187 if (is_android) { | 188 if (is_android) { |
| 188 deps += [ | 189 deps += [ |
| 189 "//media/capture/video/android", | 190 "//media/capture/video/android", |
| 190 "//media/capture/video/android:capture_java", | 191 "//media/capture/video/android:capture_java", |
| 191 ] | 192 ] |
| 192 } | 193 } |
| 193 | 194 |
| 194 if (is_win) { | 195 if (is_win) { |
| 195 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 196 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 196 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 197 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 197 } | 198 } |
| 198 } | 199 } |
| OLD | NEW |