|
|
@ -77,11 +77,10 @@ class ReadAheadHandshakerFactory : public HandshakerFactory { |
|
|
|
} // namespace grpc_core
|
|
|
|
} // namespace grpc_core
|
|
|
|
|
|
|
|
|
|
|
|
int main(int /*argc*/, char* /*argv*/[]) { |
|
|
|
int main(int /*argc*/, char* /*argv*/[]) { |
|
|
|
using namespace grpc_core; |
|
|
|
|
|
|
|
grpc_init(); |
|
|
|
grpc_init(); |
|
|
|
HandshakerRegistry::RegisterHandshakerFactory( |
|
|
|
grpc_core::HandshakerRegistry::RegisterHandshakerFactory( |
|
|
|
true /* at_start */, HANDSHAKER_SERVER, |
|
|
|
true /* at_start */, grpc_core::HANDSHAKER_SERVER, |
|
|
|
absl::make_unique<ReadAheadHandshakerFactory>()); |
|
|
|
absl::make_unique<grpc_core::ReadAheadHandshakerFactory>()); |
|
|
|
const char* full_alpn_list[] = {"grpc-exp", "h2"}; |
|
|
|
const char* full_alpn_list[] = {"grpc-exp", "h2"}; |
|
|
|
GPR_ASSERT(server_ssl_test(full_alpn_list, 2, "grpc-exp")); |
|
|
|
GPR_ASSERT(server_ssl_test(full_alpn_list, 2, "grpc-exp")); |
|
|
|
grpc_shutdown(); |
|
|
|
grpc_shutdown(); |
|
|
|