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

Unified Diff: webrtc/common_video/BUILD.gn

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for Android Created 4 years, 4 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 | « webrtc/BUILD.gn ('k') | webrtc/media/BUILD.gn » ('j') | webrtc/tools/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
}
}
}
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/media/BUILD.gn » ('j') | webrtc/tools/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698