| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |