Add cpp test

pull/11118/head
Muxi Yan 8 years ago
parent cdc0d03b2d
commit e22bd48cd9
  1. 11
      test/cpp/server/server_builder_test.cc

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

Loading…
Cancel
Save