diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-26 10:37:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-26 10:37:37 -0700 |
commit | e999afb61255179d563375e2748a02c036e927e3 (patch) | |
tree | 0278856cbd0263bdddd2f0c68259d3ec2ea383d5 /tests/pb | |
parent | a8a0bc73b981bd94509c180ad8cac36143c479ec (diff) | |
parent | 0abf6083b33b13bea895bf5d885c5ec58b2bd986 (diff) |
Merge pull request #150 from haberman/apitweaks
A few small API tweaks.
Diffstat (limited to 'tests/pb')
-rw-r--r-- | tests/pb/test_encoder.cc | 4 |
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 = |