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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni")
5 import("//build/json_schema_api.gni") 6 import("//build/json_schema_api.gni")
7 import("//tools/json_schema_compiler/json_features.gni")
6 8
7 json_schema_api("api") { 9 json_schema_api("api") {
8 visibility = [ ":*" ] 10 visibility = [ ":*" ]
9 11
10 sources = [ 12 sources = [
11 "additional_properties.json", 13 "additional_properties.json",
12 "any.json", 14 "any.json",
13 "arrays.json", 15 "arrays.json",
14 "callbacks.json", 16 "callbacks.json",
15 "choices.json", 17 "choices.json",
16 "crossref.json", 18 "crossref.json",
17 "enums.json", 19 "enums.json",
18 "error_generation.json", 20 "error_generation.json",
19 "functions_as_parameters.json", 21 "functions_as_parameters.json",
20 "functions_on_types.json", 22 "functions_on_types.json",
21 "idl_basics.idl", 23 "idl_basics.idl",
22 "idl_object_types.idl", 24 "idl_object_types.idl",
23 "idl_other_namespace.idl", 25 "idl_other_namespace.idl",
24 "idl_other_namespace_sub_namespace.idl", 26 "idl_other_namespace_sub_namespace.idl",
25 "objects.json", 27 "objects.json",
26 "objects_movable.idl", 28 "objects_movable.idl",
27 "objects_movable_json.json", 29 "objects_movable_json.json",
28 "simple_api.json", 30 "simple_api.json",
29 ] 31 ]
30 32
31 schemas = true 33 schemas = true
32 root_namespace = "test::api::%(namespace)s" 34 root_namespace = "test::api::%(namespace)s"
33 } 35 }
34 36
35 source_set("test") { 37 if (enable_extensions) {
38 json_features("features_test") {
39 feature_class = "APIFeature"
40 provider_class = "TestAPIFeatureProvider"
41 sources = [
42 "features_test.json",
43 "features_test2.json",
44 ]
45 }
46 }
47
48 source_set("schema_test") {
36 testonly = true 49 testonly = true
37 sources = [ 50 sources = [
38 "test_util.cc", 51 "test_util.cc",
39 "test_util.h", 52 "test_util.h",
40 ] 53 ]
41 54
42 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 55 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
44 57
45 public_deps = [ 58 public_deps = [
46 ":api", 59 ":api",
47 "//base", 60 "//base",
48 ] 61 ]
49 } 62 }
63
64 if (enable_extensions) {
65 source_set("features_generation_test") {
66 testonly = true
67 public_deps = [
68 ":features_test",
69 ]
70 }
71 }
OLDNEW
« 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