Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: media/capture/BUILD.gn

Issue 2087683002: Extract media/capture/capture_unittests from media_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: media/base/run_all_unittests.cc shouldn't know about RegisterCaptureJni Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/run_all_unittests.cc ('k') | media/capture/capture.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
« no previous file with comments | « media/base/run_all_unittests.cc ('k') | media/capture/capture.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698