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

Unified Diff: media/BUILD.gn

Issue 2694323002: media: Fix build config for audio_unittests on Android (Closed)
Patch Set: more commenting Created 3 years, 10 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 | « no previous file | media/base/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/BUILD.gn
diff --git a/media/BUILD.gn b/media/BUILD.gn
index 3a534db98b3acef0a70fc91afae1e0999a14914a..614ee659fd14b88be6be19b941073569e592a587 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -806,8 +806,8 @@ test("media_perftests") {
]
}
-# For running the subset of media_unittests that might require audio hardware
-# separately on GPU bots. media_unittests includes these too.
+# The audio subset of media_unittests. This target exists for running only the
+# audio tests on the GPU bots (which have audio hardware).
test("audio_unittests") {
deps = [
":test_support",
@@ -817,6 +817,14 @@ test("audio_unittests") {
"//media/test:run_all_unittests",
"//ui/gfx:test_support",
]
+ if (is_android) {
+ deps += [
+ # The test needs the java dependencies to add the java classes for their
+ # native counterparts to the test apk.
+ "//media/base/android:media_java",
+ "//ui/android:ui_java",
+ ]
+ }
}
static_library("test_support") {
« no previous file with comments | « no previous file | media/base/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698