summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-12-17 09:16:46 -0800
committerJosh Haberman <jhaberman@gmail.com>2018-12-17 09:16:46 -0800
commit5e958a8c055872ecd5b7f7d00f48212de5711ae5 (patch)
treef35a85fd4f0ec2e9efa1f64fac686e3d052f6f19 /BUILD
parent377871f10403c7b4e1cc6f769b9443b5197aecc8 (diff)
test_json is working!
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD21
1 files changed, 19 insertions, 2 deletions
diff --git a/BUILD b/BUILD
index b3f397a..0f4231a 100644
--- a/BUILD
+++ b/BUILD
@@ -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",
],
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback