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

Unified Diff: media/base/BUILD.gn

Issue 2426773005: media: Reorganize media unittests (Closed)
Patch Set: fix android Created 4 years, 2 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/audio/BUILD.gn ('k') | media/base/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/BUILD.gn
diff --git a/media/base/BUILD.gn b/media/base/BUILD.gn
index e988f39544930956b5a2a350557c27345935645b..845302a4a29b8024928ac5af9074b1bb096414f4 100644
--- a/media/base/BUILD.gn
+++ b/media/base/BUILD.gn
@@ -388,7 +388,7 @@ static_library("test_support") {
]
}
-source_set("unittests") {
+source_set("unit_tests") {
testonly = true
sources = [
"audio_block_fifo_unittest.cc",
@@ -433,7 +433,6 @@ source_set("unittests") {
"null_video_sink_unittest.cc",
"pipeline_impl_unittest.cc",
"ranges_unittest.cc",
- "run_all_unittests.cc",
"seekable_buffer_unittest.cc",
"serial_runner_unittest.cc",
"silent_sink_suspender_unittest.cc",
@@ -461,7 +460,7 @@ source_set("unittests") {
"//base/test:test_support",
"//gpu/command_buffer/common",
"//media",
- "//media/base/android:anywhere_unittests",
+ "//media/base/android:anywhere_unit_tests",
"//ppapi/features",
"//skia",
"//testing/gmock",
@@ -478,7 +477,10 @@ source_set("unittests") {
}
if (is_android) {
- deps += [ "//ui/gl" ]
+ deps += [
+ "//media/base/android:unit_tests",
+ "//ui/gl",
+ ]
}
if (current_cpu == "x86" || current_cpu == "x64") {
@@ -486,6 +488,22 @@ source_set("unittests") {
}
}
+test("media_base_unittests") {
+ deps = [
+ ":unit_tests",
+ "//media/test:run_all_unittests",
+ ]
+
+ 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",
+ ]
+ }
+}
+
source_set("perftests") {
testonly = true
sources = [
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/base/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698