Add move semantics to MessageBuilder, FlatBufferBuilder, SliceAllocator, and vector_downward (#4893)

Unit tests
Update flatbuffers + gRPC build instructions
Update CMakeLists.txt with cmake variables for grpc and protobuf install paths
Update tests for travis build
This commit is contained in:
Sumant Tambe
2018-08-30 16:43:22 -07:00
committed by Wouter van Oortmerssen
parent 99acd0bcd7
commit e7578548a5
6 changed files with 320 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include "monster_test_generated.h"
using namespace MyGame::Example;
int builder_tests();
// The callback implementation of our server, that derives from the generated
// code. It implements all rpcs specified in the FlatBuffers schema.
@@ -92,7 +93,7 @@ void RunServer() {
server_instance->Wait();
}
int main(int /*argc*/, const char * /*argv*/ []) {
int grpc_server_test() {
// Launch server.
std::thread server_thread(RunServer);
@@ -163,3 +164,8 @@ int main(int /*argc*/, const char * /*argv*/ []) {
return 0;
}
int main(int /*argc*/, const char * /*argv*/ []) {
return builder_tests() + grpc_server_test();
}