Skip to content
Snippets Groups Projects
Commit e22bd48c authored by Muxi Yan's avatar Muxi Yan
Browse files

Add cpp test

parent cdc0d03b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment