diff options
author | Josh Haberman <jhaberman@gmail.com> | 2018-12-17 09:16:46 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2018-12-17 09:16:46 -0800 |
commit | 5e958a8c055872ecd5b7f7d00f48212de5711ae5 (patch) | |
tree | f35a85fd4f0ec2e9efa1f64fac686e3d052f6f19 /BUILD | |
parent | 377871f10403c7b4e1cc6f769b9443b5197aecc8 (diff) |
test_json is working!
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -159,10 +159,17 @@ cc_test( ], ) +upb_proto_reflection_library( + name = "descriptor_upbproto", + deps = ["descriptor_proto"], + upbc = ":protoc-gen-upb", +) + cc_test( name = "test_handlers", srcs = ["tests/test_handlers.c"], deps = [ + ":descriptor_upbproto", ":upb_pb", ":upb_test", ], @@ -221,14 +228,24 @@ cc_test( ], ) +proto_library( + name = "test_json_proto", + srcs = ["tests/json/test.proto"], +) + +upb_proto_reflection_library( + name = "test_json_upbproto", + deps = ["test_json_proto"], + upbc = ":protoc-gen-upb", +) + cc_test( name = "test_json", srcs = [ - "tests/json/test.upbdefs.c", - "tests/json/test.upbdefs.h", "tests/json/test_json.cc", ], deps = [ + ":test_json_upbproto", ":upb_json", ":upb_test", ], |