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

Unified Diff: tools/json_schema_compiler/test/BUILD.gn

Issue 2151583003: [Extensions] Add extension feature generation code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include fix Created 4 years, 5 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 | « tools/json_schema_compiler/json_features.gypi ('k') | tools/json_schema_compiler/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/BUILD.gn
diff --git a/tools/json_schema_compiler/test/BUILD.gn b/tools/json_schema_compiler/test/BUILD.gn
index 22a23af979ad9c3063e5b3274976e4c8c8e49245..e6d9cc0da812453cdc257982f70012c18cae8579 100644
--- a/tools/json_schema_compiler/test/BUILD.gn
+++ b/tools/json_schema_compiler/test/BUILD.gn
@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
import("//build/json_schema_api.gni")
+import("//tools/json_schema_compiler/json_features.gni")
json_schema_api("api") {
visibility = [ ":*" ]
@@ -32,7 +34,18 @@ json_schema_api("api") {
root_namespace = "test::api::%(namespace)s"
}
-source_set("test") {
+if (enable_extensions) {
+ json_features("features_test") {
+ feature_class = "APIFeature"
+ provider_class = "TestAPIFeatureProvider"
+ sources = [
+ "features_test.json",
+ "features_test2.json",
+ ]
+ }
+}
+
+source_set("schema_test") {
testonly = true
sources = [
"test_util.cc",
@@ -47,3 +60,12 @@ source_set("test") {
"//base",
]
}
+
+if (enable_extensions) {
+ source_set("features_generation_test") {
+ testonly = true
+ public_deps = [
+ ":features_test",
+ ]
+ }
+}
« no previous file with comments | « tools/json_schema_compiler/json_features.gypi ('k') | tools/json_schema_compiler/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698