summaryrefslogtreecommitdiff
path: root/tests/pb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pb')
-rw-r--r--tests/pb/test_encoder.cc4
1 files changed, 2 insertions, 2 deletions
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