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

Side by Side Diff: tools/json_schema_compiler/test/BUILD.gn

Issue 2165023003: [Extensions] Use compiled feature files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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/config/features.gni")
6 import("//build/json_schema_api.gni") 6 import("//build/json_schema_api.gni")
7 import("//tools/json_schema_compiler/json_features.gni") 7 import("//tools/json_schema_compiler/json_features.gni")
8 8
9 json_schema_api("api") { 9 json_schema_api("api") {
10 visibility = [ ":*" ] 10 visibility = [ ":*" ]
(...skipping 17 matching lines...) Expand all
28 "objects_movable.idl", 28 "objects_movable.idl",
29 "objects_movable_json.json", 29 "objects_movable_json.json",
30 "simple_api.json", 30 "simple_api.json",
31 ] 31 ]
32 32
33 schemas = true 33 schemas = true
34 root_namespace = "test::api::%(namespace)s" 34 root_namespace = "test::api::%(namespace)s"
35 } 35 }
36 36
37 if (enable_extensions) { 37 if (enable_extensions) {
38 json_features("features_test") { 38 json_features("features_compiler_test") {
39 feature_class = "APIFeature" 39 feature_class = "APIFeature"
40 provider_class = "TestAPIFeatureProvider" 40 provider_class = "CompilerTestFeatureProvider"
41 sources = [ 41 sources = [
42 "features_test.json", 42 "features_test.json",
43 "features_test2.json", 43 "features_test2.json",
44 ] 44 ]
45 } 45 }
46 } 46 }
47 47
48 source_set("schema_test") { 48 source_set("schema_test") {
49 testonly = true 49 testonly = true
50 sources = [ 50 sources = [
51 "test_util.cc", 51 "test_util.cc",
52 "test_util.h", 52 "test_util.h",
53 ] 53 ]
54 54
55 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 55 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
57 57
58 public_deps = [ 58 public_deps = [
59 ":api", 59 ":api",
60 "//base", 60 "//base",
61 ] 61 ]
62 } 62 }
63 63
64 if (enable_extensions) { 64 if (enable_extensions) {
65 source_set("features_generation_test") { 65 source_set("features_generation_test") {
66 testonly = true 66 testonly = true
67 public_deps = [ 67 public_deps = [
68 ":features_test", 68 ":features_compiler_test",
69 ] 69 ]
70 } 70 }
71 } 71 }
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/feature_compiler.py ('k') | tools/json_schema_compiler/test/features_generation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698