diff options
Diffstat (limited to 'tests/pb/test_encoder.cc')
-rw-r--r-- | tests/pb/test_encoder.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/pb/test_encoder.cc b/tests/pb/test_encoder.cc index 6219e08..6c20e27 100644 --- a/tests/pb/test_encoder.cc +++ b/tests/pb/test_encoder.cc @@ -26,10 +26,7 @@ void test_pb_roundtrip() { upb::pb::DecoderMethod::New( upb::pb::DecoderMethodOptions(encoder_handlers.get()))); - char buf[512]; - upb::SeededAllocator alloc(buf, sizeof(buf)); - upb::Environment env; - env.SetAllocator(&alloc); + upb::InlinedEnvironment<512> env; std::string input = read_string("upb/descriptor/descriptor.pb"); std::string output; upb::StringSink string_sink(&output); |