Fix google-build-using-namespace

pull/24842/head
Esun Kim 4 years ago
parent 5f9d79c73a
commit 3aba567746
  1. 7
      src/core/ext/filters/client_channel/http_connect_handshaker.cc
  2. 4
      src/core/lib/channel/handshaker.cc
  3. 7
      test/core/handshake/readahead_handshaker_server_ssl.cc

@ -382,8 +382,7 @@ class HttpConnectHandshakerFactory : public HandshakerFactory {
} // namespace grpc_core
void grpc_http_connect_register_handshaker_factory() {
using namespace grpc_core;
HandshakerRegistry::RegisterHandshakerFactory(
true /* at_start */, HANDSHAKER_CLIENT,
absl::make_unique<HttpConnectHandshakerFactory>());
grpc_core::HandshakerRegistry::RegisterHandshakerFactory(
true /* at_start */, grpc_core::HANDSHAKER_CLIENT,
absl::make_unique<grpc_core::HttpConnectHandshakerFactory>());
}

@ -256,7 +256,7 @@ void HandshakeManager::DoHandshake(grpc_endpoint* endpoint,
void grpc_handshake_manager_add(grpc_handshake_manager* mgr,
grpc_handshaker* handshaker) {
// This is a transition method to aid the API change for handshakers.
using namespace grpc_core;
RefCountedPtr<Handshaker> refd_hs(static_cast<Handshaker*>(handshaker));
grpc_core::RefCountedPtr<grpc_core::Handshaker> refd_hs(
static_cast<grpc_core::Handshaker*>(handshaker));
mgr->Add(refd_hs);
}

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

Loading…
Cancel
Save