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

Unified Diff: components/webp_transcode/BUILD.gn

Issue 1903443002: [GN/iOS] Explicitly list test data in //components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-fix-jingle
Patch Set: Address comments and disable non-fonctional test Created 4 years, 8 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 | « components/webdata/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webp_transcode/BUILD.gn
diff --git a/components/webp_transcode/BUILD.gn b/components/webp_transcode/BUILD.gn
index 930ecc176d2d0bd1dca94863526d1088177e5d7a..acc30d6a3f7d120006608c1399fec377ba5af358 100644
--- a/components/webp_transcode/BUILD.gn
+++ b/components/webp_transcode/BUILD.gn
@@ -16,6 +16,23 @@ source_set("webp_transcode") {
]
}
+bundle_data("unit_tests_bundle_data") {
+ visibility = [ ":unit_tests" ]
+ testonly = true
+ sources = [
+ "//components/test/data/webp_transcode/test.jpg",
+ "//components/test/data/webp_transcode/test.webp",
+ "//components/test/data/webp_transcode/test_alpha.png",
+ "//components/test/data/webp_transcode/test_alpha.webp",
+ "//components/test/data/webp_transcode/test_small.tiff",
+ "//components/test/data/webp_transcode/test_small.webp",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/" +
+ "{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [
@@ -23,6 +40,7 @@ source_set("unit_tests") {
]
deps = [
+ ":unit_tests_bundle_data",
":webp_transcode",
"//base",
"//net",
« no previous file with comments | « components/webdata/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698