summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/conformance_upb.c8
-rw-r--r--tests/pb/test_encoder.cc4
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/conformance_upb.c b/tests/conformance_upb.c
index 0eb1ff8..a0526d7 100644
--- a/tests/conformance_upb.c
+++ b/tests/conformance_upb.c
@@ -63,8 +63,8 @@ void DoTest(
switch (conformance_ConformanceRequest_payload_case(request)) {
case conformance_ConformanceRequest_payload_protobuf_payload: {
upb_strview payload = conformance_ConformanceRequest_protobuf_payload(request);
- test_message = protobuf_test_messages_proto3_TestAllTypesProto3_parsenew(
- payload, arena);
+ test_message = protobuf_test_messages_proto3_TestAllTypesProto3_parse(
+ payload.data, payload.size, arena);
if (!test_message) {
static const char msg[] = "Parse error";
@@ -154,8 +154,8 @@ bool DoTestIo() {
exit(1);
}
- request = conformance_ConformanceRequest_parsenew(
- upb_strview_make(serialized_input, input_size), arena);
+ request =
+ conformance_ConformanceRequest_parse(serialized_input, input_size, arena);
response = conformance_ConformanceResponse_new(arena);
if (request) {
diff --git a/tests/pb/test_encoder.cc b/tests/pb/test_encoder.cc
index f0b31c6..aa33370 100644
--- a/tests/pb/test_encoder.cc
+++ b/tests/pb/test_encoder.cc
@@ -23,8 +23,8 @@ void test_pb_roundtrip() {
upb::pb::CodeCache decoder_cache(&encoder_cache);
upb::Arena arena;
google_protobuf_FileDescriptorSet *set =
- google_protobuf_FileDescriptorSet_parsenew(
- upb_strview_make(input.c_str(), input.size()), arena.ptr());
+ google_protobuf_FileDescriptorSet_parse(input.c_str(), input.size(),
+ arena.ptr());
ASSERT(set);
size_t n;
const google_protobuf_FileDescriptorProto *const *files =
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback