Removing 'using namespace' usage in test_builder (#5154)

* Removing 'using namespace' usage in test_builder

* Fix GRPC tests
This commit is contained in:
Charlie Harrison 2019-02-04 20:07:05 -05:00 committed by Wouter van Oortmerssen
parent 31e34faa15
commit 76a024137f
2 changed files with 7 additions and 1 deletions

View File

@ -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<Monster> &msg, const std::string &expected_name, Color color) {
const Monster *monster = msg.GetRoot();
return (monster->name()->str() == expected_name) && (monster->color() == color);

View File

@ -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;