Skip to content
Snippets Groups Projects
Commit b2a42f32 authored by Craig Tiller's avatar Craig Tiller
Browse files

Make this file compile

parent 9608f0f2
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#include <grpc++/status.h> #include <grpc++/status.h>
#include <grpc++/stream.h> #include <grpc++/stream.h>
#include "test/cpp/end2end/async_test_server.h" #include "test/cpp/end2end/async_test_server.h"
#include "net/util/netutil.h" #include "test/core/util/port.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
using grpc::cpp::test::util::EchoRequest; using grpc::cpp::test::util::EchoRequest;
...@@ -73,7 +73,7 @@ void ServerLoop(void* s) { ...@@ -73,7 +73,7 @@ void ServerLoop(void* s) {
class End2endTest : public ::testing::Test { class End2endTest : public ::testing::Test {
protected: protected:
void SetUp() override { void SetUp() override {
int port = PickUnusedPortOrDie(); int port = grpc_pick_unused_port_or_die();
// TODO(yangg) protobuf has a StringPrintf, maybe use that // TODO(yangg) protobuf has a StringPrintf, maybe use that
std::ostringstream oss; std::ostringstream oss;
oss << "[::]:" << port; oss << "[::]:" << port;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment