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

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

Issue 880873003: Add unit tests target to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « extensions/BUILD.gn ('k') | tools/json_schema_compiler/test/json_schema_compiler_tests.gyp » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..76ae1b944495a533a757ca82b0541c074145ddfe
--- /dev/null
+++ b/tools/json_schema_compiler/test/BUILD.gn
@@ -0,0 +1,47 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/json_schema_api.gni")
+
+json_schema_api("api") {
+ visibility = [ ":*" ]
+
+ sources = [
+ "additional_properties.json",
+ "any.json",
+ "arrays.json",
+ "callbacks.json",
+ "choices.json",
+ "crossref.json",
+ "enums.json",
+ "functions_as_parameters.json",
+ "functions_on_types.json",
+ "idl_basics.idl",
+ "idl_other_namespace.idl",
+ "idl_other_namespace_sub_namespace.idl",
+ "idl_object_types.idl",
+ "objects.json",
+ "simple_api.json",
+ "error_generation.json",
+ ]
+
+ schemas = true
+ root_namespace = "test::api::%(namespace)s"
+}
+
+source_set("test") {
+ testonly = true
+ sources = [
+ "test_util.cc",
+ "test_util.h",
+ ]
+ public_deps = [
+ ":api",
+ ]
+
+ if (is_win) {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ cflags = [ "/wd4267" ]
+ }
+}
« no previous file with comments | « extensions/BUILD.gn ('k') | tools/json_schema_compiler/test/json_schema_compiler_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698