From 802639e40dcc9adc047ca8d64a493e3646d9811d Mon Sep 17 00:00:00 2001 From: Sumant Tambe Date: Thu, 18 Oct 2018 10:32:59 -0700 Subject: Efficient Conversion of a FlatBufferBuilder to a MessageBuilder (#4980) * Efficient conversion of FlatBufferBuilder to grpc::MessageBuilder * Added a variety of tests to validate correctness of the MessageBuilder move operations. Disable MessageBuilder half-n-half tests on MacOS. * Fix failing Android build * Generalized the MessageBuilder move constructor to accept a deallocator --- tests/test_builder.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_builder.cpp') diff --git a/tests/test_builder.cpp b/tests/test_builder.cpp index 2c1e823c..8c070c11 100644 --- a/tests/test_builder.cpp +++ b/tests/test_builder.cpp @@ -129,7 +129,9 @@ bool release_n_verify(flatbuffers::FlatBufferBuilder &fbb, const std::string &ex } void FlatBufferBuilderTest() { - BuilderTests::all_tests(); + using flatbuffers::FlatBufferBuilder; + + BuilderTests::all_tests(); BuilderTests::all_tests(); BuilderTests::all_tests(); @@ -140,7 +142,7 @@ void FlatBufferBuilderTest() { REUSABLE_AFTER_RELEASE_RAW_AND_MOVE_ASSIGN }; - BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); - BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); - BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); + BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); + BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); + BuilderReuseTests::run_tests(TestSelector(tests, tests+4)); } -- cgit v1.2.3