| Index: media/capture/BUILD.gn
|
| diff --git a/media/capture/BUILD.gn b/media/capture/BUILD.gn
|
| index a636d12111af0276333d840e924c38f266619a49..5f0f78b5fad22cb42ade17d8851cf3aa77c1385e 100644
|
| --- a/media/capture/BUILD.gn
|
| +++ b/media/capture/BUILD.gn
|
| @@ -143,10 +143,7 @@ component("capture") {
|
| }
|
| }
|
|
|
| -# TODO(mcasas): Make this a test target, https://crbug.com/618718.
|
| -source_set("unittests") {
|
| - testonly = true
|
| -
|
| +test("capture_unittests") {
|
| sources = [
|
| "content/animated_content_sampler_unittest.cc",
|
| "content/capture_resolution_chooser_unittest.cc",
|
| @@ -161,10 +158,18 @@ source_set("unittests") {
|
|
|
| deps = [
|
| ":capture",
|
| + "//base/test:run_all_unittests",
|
| + "//base/test:test_support",
|
| + "//media/base:test_support",
|
| "//testing/gmock",
|
| "//testing/gtest",
|
| + "//ui/gfx:test_support",
|
| ]
|
|
|
| + if (is_android) {
|
| + deps += [ "//media/capture/video/android:capture_java" ]
|
| + }
|
| +
|
| if (is_win) {
|
| # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
|
| configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|