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

Unified Diff: webrtc/test/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
Index: webrtc/test/BUILD.gn
diff --git a/webrtc/test/BUILD.gn b/webrtc/test/BUILD.gn
index 9fd7d1af694668491b660c1077fdd5092b4aee83..993ff59267ec59d1bfc347176182aed0ea96bf4e 100644
--- a/webrtc/test/BUILD.gn
+++ b/webrtc/test/BUILD.gn
@@ -279,6 +279,28 @@ source_set("test_support_main_threaded_mac") {
]
}
+if (is_android || is_ios) {
+ test_support_unittests_resources = [
+ "//resources/foreman_cif_short.yuv",
+ "//resources/video_coding/frame-ethernet-ii.pcap",
+ "//resources/video_coding/frame-loopback.pcap",
+ "//resources/video_coding/pltype103.rtp",
+ "//resources/video_coding/pltype103_header_only.rtp",
+ "//resources/video_coding/ssrcs-2.pcap",
+ "//resources/video_coding/ssrcs-3.pcap",
+ ]
+}
+
+if (is_ios) {
+ bundle_data("test_support_unittests_bundle_data") {
+ testonly = true
+ sources = test_support_unittests_resources
+ outputs = [
+ "{{bundle_resources_dir}}/{{source_file_part}}",
+ ]
+ }
+}
+
test("test_support_unittests") {
deps = []
sources = [
@@ -318,19 +340,12 @@ test("test_support_unittests") {
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
+ data = test_support_unittests_resources
shard_timeout = 900
}
- if (is_android || is_ios) {
- data = [
- "//resources/foreman_cif_short.yuv",
- "//resources/video_coding/frame-ethernet-ii.pcap",
- "//resources/video_coding/frame-loopback.pcap",
- "//resources/video_coding/pltype103.rtp",
- "//resources/video_coding/pltype103_header_only.rtp",
- "//resources/video_coding/ssrcs-2.pcap",
- "//resources/video_coding/ssrcs-3.pcap",
- ]
+ if (is_ios) {
+ deps += [ ":test_support_unittests_bundle_data" ]
}
deps += [

Powered by Google App Engine
This is Rietveld 408576698