|
|
@ -40,6 +40,8 @@ |
|
|
|
#include "src/proto/grpc/testing/echo.grpc.pb.h" |
|
|
|
#include "src/proto/grpc/testing/echo.grpc.pb.h" |
|
|
|
#include "test/core/util/port.h" |
|
|
|
#include "test/core/util/port.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <grpc/support/workaround_list.h> |
|
|
|
|
|
|
|
|
|
|
|
namespace grpc { |
|
|
|
namespace grpc { |
|
|
|
namespace { |
|
|
|
namespace { |
|
|
|
|
|
|
|
|
|
|
@ -87,6 +89,15 @@ TEST(ServerBuilderTest, CreateServerRepeatedPortWithDisallowedReusePort) { |
|
|
|
nullptr); |
|
|
|
nullptr); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEST(ServerBuilderTest, CreateServerOnePortWithCronetCompressionWorkaround) { |
|
|
|
|
|
|
|
ServerBuilder() |
|
|
|
|
|
|
|
.RegisterService(&g_service) |
|
|
|
|
|
|
|
.AddListeningPort(g_port, InsecureServerCredentials()) |
|
|
|
|
|
|
|
.EnableWorkaround(GRPC_WORKAROUND_ID_CRONET_COMPRESSION) |
|
|
|
|
|
|
|
.BuildAndStart() |
|
|
|
|
|
|
|
->Shutdown(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
} // namespace grpc
|
|
|
|
} // namespace grpc
|
|
|
|
|
|
|
|
|
|
|
|