diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-01-16 18:50:46 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2019-01-16 18:50:46 -0800 |
commit | 01557462cc211cec9c7bddede77995b938067ea5 (patch) | |
tree | d06853c0af2d947a260a734c3b94089c5ddd8269 /tests | |
parent | 84fb01ad0f7301b416e03d97fbffef1a7512e7ea (diff) |
upb_symtab_add() returns upb_filedef* instead of bool.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pb/test_encoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pb/test_encoder.cc b/tests/pb/test_encoder.cc index 8b78ea8..f0b31c6 100644 --- a/tests/pb/test_encoder.cc +++ b/tests/pb/test_encoder.cc @@ -31,8 +31,8 @@ void test_pb_roundtrip() { google_protobuf_FileDescriptorSet_file(set, &n); ASSERT(n == 1); upb::Status status; - bool ok = symtab.AddFile(files[0], &status); - if (!ok) { + upb::FileDefPtr file_def = symtab.AddFile(files[0], &status); + if (!file_def) { fprintf(stderr, "Error building def: %s\n", status.error_message()); ASSERT(false); } @@ -49,7 +49,7 @@ void test_pb_roundtrip() { upb::pb::EncoderPtr::Create(&arena, encoder_handlers, string_sink.input()); upb::pb::DecoderPtr decoder = upb::pb::DecoderPtr::Create(&arena, method, encoder.input(), &status); - ok = upb::PutBuffer(input, decoder.input()); + bool ok = upb::PutBuffer(input, decoder.input()); ASSERT(ok); ASSERT(input == output); } |