Index: webrtc/common_video/BUILD.gn |
diff --git a/webrtc/common_video/BUILD.gn b/webrtc/common_video/BUILD.gn |
index 7c03ffdb40906b784feec7d011319f8369c26c5d..ed5a738782f6d59b66cd515b5baf57f437a1b6cf 100644 |
--- a/webrtc/common_video/BUILD.gn |
+++ b/webrtc/common_video/BUILD.gn |
@@ -82,6 +82,20 @@ source_set("common_video") { |
} |
if (rtc_include_tests) { |
+ if (is_android || is_ios) { |
+ common_video_resources = [ "//resources/foreman_cif.yuv" ] |
+ } |
+ |
+ if (is_ios) { |
+ bundle_data("common_video_unittests_bundle_data") { |
+ testonly = true |
+ sources = common_video_resources |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_file_part}}", |
+ ] |
+ } |
+ } |
+ |
test("common_video_unittests") { |
testonly = true |
@@ -118,13 +132,12 @@ if (rtc_include_tests) { |
if (is_android) { |
deps += [ "//testing/android/native_test:native_test_support" ] |
+ data = common_video_resources |
shard_timeout = 900 |
} |
- if (is_android || is_ios) { |
- data = [ |
- "//resources/foreman_cif.yuv", |
- ] |
+ if (is_ios) { |
+ deps += [ ":common_video_unittests_bundle_data" ] |
} |
} |
} |