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

Unified Diff: components/json_schema/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/history/core/browser/BUILD.gn ('k') | components/omnibox/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/json_schema/BUILD.gn
diff --git a/components/json_schema/BUILD.gn b/components/json_schema/BUILD.gn
index 0ef0b96d4a9fa244fbcd8db579763fd868c0091d..68502ea3f8a60a3ea20425f5cc939690267a502f 100644
--- a/components/json_schema/BUILD.gn
+++ b/components/json_schema/BUILD.gn
@@ -16,6 +16,24 @@ source_set("json_schema") {
]
}
+bundle_data("unit_tests_bundle_data") {
+ visibility = [ ":unit_tests" ]
+ testonly = true
+ sources = [
+ "//components/test/data/json_schema/array_tuple_schema.json",
+ "//components/test/data/json_schema/choices_schema.json",
+ "//components/test/data/json_schema/complex_instance.json",
+ "//components/test/data/json_schema/complex_schema.json",
+ "//components/test/data/json_schema/enum_schema.json",
+ "//components/test/data/json_schema/pattern_properties_dot.json",
+ "//components/test/data/json_schema/reference_types.json",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/" +
+ "{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [
@@ -25,6 +43,7 @@ source_set("unit_tests") {
]
deps = [
":json_schema",
+ ":unit_tests_bundle_data",
"//base",
"//testing/gtest",
]
« no previous file with comments | « components/history/core/browser/BUILD.gn ('k') | components/omnibox/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698