From 76a024137f818249926ebb3a74dcb5ac7e00a071 Mon Sep 17 00:00:00 2001 From: Charlie Harrison Date: Mon, 4 Feb 2019 20:07:05 -0500 Subject: [PATCH] Removing 'using namespace' usage in test_builder (#5154) * Removing 'using namespace' usage in test_builder * Fix GRPC tests --- grpc/tests/message_builder_test.cpp | 4 ++++ tests/test_builder.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/grpc/tests/message_builder_test.cpp b/grpc/tests/message_builder_test.cpp index d5ed8d975..36f5bc2ed 100644 --- a/grpc/tests/message_builder_test.cpp +++ b/grpc/tests/message_builder_test.cpp @@ -3,6 +3,10 @@ #include "test_assert.h" #include "test_builder.h" +using MyGame::Example::Vec3; +using MyGame::Example::CreateStat; +using MyGame::Example::Any_NONE; + bool verify(flatbuffers::grpc::Message &msg, const std::string &expected_name, Color color) { const Monster *monster = msg.GetRoot(); return (monster->name()->str() == expected_name) && (monster->color() == color); diff --git a/tests/test_builder.h b/tests/test_builder.h index fe8bea914..1e2fa0adb 100644 --- a/tests/test_builder.h +++ b/tests/test_builder.h @@ -7,7 +7,9 @@ #include "flatbuffers/flatbuffers.h" #include "test_assert.h" -using namespace MyGame::Example; +using MyGame::Example::Color; +using MyGame::Example::Monster; + namespace flatbuffers { namespace grpc { class MessageBuilder;