| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 "/DELAYLOAD:mf.dll", | 136 "/DELAYLOAD:mf.dll", |
| 137 "/DELAYLOAD:mfplat.dll", | 137 "/DELAYLOAD:mfplat.dll", |
| 138 "/DELAYLOAD:mfreadwrite.dll", | 138 "/DELAYLOAD:mfreadwrite.dll", |
| 139 ] | 139 ] |
| 140 | 140 |
| 141 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 141 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 142 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 142 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 test("capture_unittests") { | 146 # TODO(mcasas): Make this a test target, https://crbug.com/618718. |
| 147 source_set("unittests") { |
| 148 testonly = true |
| 149 |
| 147 sources = [ | 150 sources = [ |
| 148 "content/animated_content_sampler_unittest.cc", | 151 "content/animated_content_sampler_unittest.cc", |
| 149 "content/capture_resolution_chooser_unittest.cc", | 152 "content/capture_resolution_chooser_unittest.cc", |
| 150 "content/feedback_signal_accumulator_unittest.cc", | 153 "content/feedback_signal_accumulator_unittest.cc", |
| 151 "content/smooth_event_sampler_unittest.cc", | 154 "content/smooth_event_sampler_unittest.cc", |
| 152 "content/video_capture_oracle_unittest.cc", | 155 "content/video_capture_oracle_unittest.cc", |
| 153 "system_message_window_win_unittest.cc", | 156 "system_message_window_win_unittest.cc", |
| 154 "video/fake_video_capture_device_unittest.cc", | 157 "video/fake_video_capture_device_unittest.cc", |
| 155 "video/mac/video_capture_device_factory_mac_unittest.mm", | 158 "video/mac/video_capture_device_factory_mac_unittest.mm", |
| 156 "video/video_capture_device_unittest.cc", | 159 "video/video_capture_device_unittest.cc", |
| 157 ] | 160 ] |
| 158 | 161 |
| 159 deps = [ | 162 deps = [ |
| 160 ":capture", | 163 ":capture", |
| 161 "//base/test:run_all_unittests", | |
| 162 "//base/test:test_support", | |
| 163 "//media/base:test_support", | |
| 164 "//testing/gmock", | 164 "//testing/gmock", |
| 165 "//testing/gtest", | 165 "//testing/gtest", |
| 166 "//ui/gfx:test_support", | |
| 167 ] | 166 ] |
| 168 | 167 |
| 169 if (is_android) { | |
| 170 deps += [ "//media/capture/video/android:capture_java" ] | |
| 171 } | |
| 172 | |
| 173 if (is_win) { | 168 if (is_win) { |
| 174 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 169 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 175 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 170 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 176 } | 171 } |
| 177 } | 172 } |
| OLD | NEW |