diff options
author | 2015-04-15 15:23:54 -0700 | |
---|---|---|
committer | 2015-04-15 15:23:54 -0700 | |
commit | 103837ee6bcfd05f0cd17b8f742d582a6082216d (patch) | |
tree | 7b3b429b8599e53d477643a189ac241b65f4fb38 /test/cpp/interop/server.cc | |
parent | 0afc3addf4b438d32ab9a7424c0ae588a1c8e212 (diff) |
Wrap ParseCommandLineFlags in InitTest
Diffstat (limited to 'test/cpp/interop/server.cc')
-rw-r--r-- | test/cpp/interop/server.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/cpp/interop/server.cc b/test/cpp/interop/server.cc index d87493b813..94e266fcbd 100644 --- a/test/cpp/interop/server.cc +++ b/test/cpp/interop/server.cc @@ -52,6 +52,7 @@ #include "test/cpp/interop/empty.grpc.pb.h" #include "test/cpp/interop/messages.grpc.pb.h" #include "test/cpp/interop/server_helper.h" +#include "test/cpp/util/test_config.h" DEFINE_bool(enable_ssl, false, "Whether to use ssl/tls."); DEFINE_int32(port, 0, "Server port."); @@ -75,13 +76,6 @@ using grpc::testing::StreamingOutputCallResponse; using grpc::testing::TestService; using grpc::Status; -// In some distros, gflags is in the namespace google, and in some others, -// in gflags. This hack is enabling us to find both. -namespace google {} -namespace gflags {} -using namespace google; -using namespace gflags; - static bool got_sigint = false; bool SetPayload(PayloadType type, int size, Payload* payload) { @@ -225,7 +219,7 @@ static void sigint_handler(int x) { got_sigint = true; } int main(int argc, char** argv) { grpc_init(); - ParseCommandLineFlags(&argc, &argv, true); + grpc::testing::InitTest(&argc, &argv, true); signal(SIGINT, sigint_handler); GPR_ASSERT(FLAGS_port != 0); |