diff options
author | brettw <brettw@chromium.org> | 2015-01-31 18:54:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-01 02:55:04 +0000 |
commit | a68ea2b7bba60fe9dcda30d2ad0a8fe7fb65d3ba (patch) | |
tree | da9800e2cc55e39614e98b5d2df95727089729b5 /tools/json_schema_compiler | |
parent | 0d141491fc5ee89bb8d48389efd99e677a47110d (diff) | |
download | chromium_src-a68ea2b7bba60fe9dcda30d2ad0a8fe7fb65d3ba.zip chromium_src-a68ea2b7bba60fe9dcda30d2ad0a8fe7fb65d3ba.tar.gz chromium_src-a68ea2b7bba60fe9dcda30d2ad0a8fe7fb65d3ba.tar.bz2 |
Add unit tests target to GN build.
Minor related GYP cleanup and added some missing dependencies and related targets to the GN build.
Support for compiling unit_tests with no ENABLE_WEBRTC.
Remove browser_action_drag_data_unittest.cc which is not compiled on any currently supported platform.
BUG=
Review URL: https://codereview.chromium.org/880873003
Cr-Commit-Position: refs/heads/master@{#314078}
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r-- | tools/json_schema_compiler/test/BUILD.gn | 47 | ||||
-rw-r--r-- | tools/json_schema_compiler/test/json_schema_compiler_tests.gyp | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/test/BUILD.gn b/tools/json_schema_compiler/test/BUILD.gn new file mode 100644 index 0000000..76ae1b9 --- /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" ] + } +} diff --git a/tools/json_schema_compiler/test/json_schema_compiler_tests.gyp b/tools/json_schema_compiler/test/json_schema_compiler_tests.gyp index 7921f87..404e9b0 100644 --- a/tools/json_schema_compiler/test/json_schema_compiler_tests.gyp +++ b/tools/json_schema_compiler/test/json_schema_compiler_tests.gyp @@ -5,6 +5,7 @@ { 'targets': [ { + # GN version: //tools/json_schema_compiler:test 'target_name': 'json_schema_compiler_tests', 'type': 'static_library', 'variables': { |