Removing 'using namespace' usage in test_builder (#5154)
* Removing 'using namespace' usage in test_builder * Fix GRPC tests
This commit is contained in:
parent
31e34faa15
commit
76a024137f
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue