Index: webrtc/media/BUILD.gn |
diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn |
index c1eaea257dcd0d66dc0e01b079b59c7f49b43bae..0014e2d6157d4ad4b41dd860ec05439e98cc8d69 100644 |
--- a/webrtc/media/BUILD.gn |
+++ b/webrtc/media/BUILD.gn |
@@ -298,6 +298,28 @@ if (rtc_include_tests) { |
} |
} |
+ if (is_android || is_ios) { |
+ rtc_media_unittests_resources = [ |
+ "//resources/media/captured-320x240-2s-48.frames", |
+ "//resources/media/faces.1280x720_P420.yuv", |
+ "//resources/media/faces_I420.jpg", |
+ "//resources/media/faces_I422.jpg", |
+ "//resources/media/faces_I444.jpg", |
+ "//resources/media/faces_I411.jpg", |
+ "//resources/media/faces_I400.jpg", |
+ ] |
+ } |
+ |
+ if (is_ios) { |
+ bundle_data("rtc_media_unittests_bundle_data") { |
+ testonly = true |
+ sources = rtc_media_unittests_resources |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_file_part}}", |
+ ] |
+ } |
+ } |
+ |
test("rtc_media_unittests") { |
testonly = true |
@@ -355,18 +377,12 @@ if (rtc_include_tests) { |
if (is_android) { |
deps += [ "//testing/android/native_test:native_test_support" ] |
+ data = rtc_media_unittests_resources |
shard_timeout = 900 |
} |
- if (is_android || is_ios) { |
- data = [ |
- "//resources/media/captured-320x240-2s-48.frames", |
- "//resources/media/faces.1280x720_P420.yuv", |
- "//resources/media/faces_I420.jpg", |
- "//resources/media/faces_I422.jpg", |
- "//resources/media/faces_I444.jpg", |
- "//resources/media/faces_I411.jpg", |
- "//resources/media/faces_I400.jpg", |
- ] |
+ |
+ if (is_ios) { |
+ deps += [ ":rtc_media_unittests_bundle_data" ] |
} |
deps += [ |