summaryrefslogtreecommitdiff
path: root/tests/test_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_builder.cpp')
-rw-r--r--tests/test_builder.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_builder.cpp b/tests/test_builder.cpp
index 047a380c..3b0eaa04 100644
--- a/tests/test_builder.cpp
+++ b/tests/test_builder.cpp
@@ -1,20 +1,22 @@
#include "test_builder.h"
+#include "flatbuffers/flatbuffer_builder.h"
#include "flatbuffers/stl_emulation.h"
#include "monster_test_generated.h"
using namespace MyGame::Example;
+using namespace flatbuffers;
-struct OwnedAllocator : public flatbuffers::DefaultAllocator {};
+struct OwnedAllocator : public DefaultAllocator {};
-class TestHeapBuilder : public flatbuffers::FlatBufferBuilder {
+class TestHeapBuilder : public FlatBufferBuilder {
private:
TestHeapBuilder(const TestHeapBuilder &);
TestHeapBuilder &operator=(const TestHeapBuilder &);
public:
TestHeapBuilder()
- : flatbuffers::FlatBufferBuilder(2048, new OwnedAllocator(), true) {}
+ : FlatBufferBuilder(2048, new OwnedAllocator(), true) {}
TestHeapBuilder(TestHeapBuilder &&other)
: FlatBufferBuilder(std::move(other)) {}
@@ -31,14 +33,14 @@ struct AllocatorMember {
};
struct GrpcLikeMessageBuilder : private AllocatorMember,
- public flatbuffers::FlatBufferBuilder {
+ public FlatBufferBuilder {
private:
GrpcLikeMessageBuilder(const GrpcLikeMessageBuilder &);
GrpcLikeMessageBuilder &operator=(const GrpcLikeMessageBuilder &);
public:
GrpcLikeMessageBuilder()
- : flatbuffers::FlatBufferBuilder(1024, &member_allocator_, false) {}
+ : FlatBufferBuilder(1024, &member_allocator_, false) {}
GrpcLikeMessageBuilder(GrpcLikeMessageBuilder &&other)
: FlatBufferBuilder(1024, &member_allocator_, false) {