diff options
author | yang-g <yangg@google.com> | 2018-10-26 14:28:52 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2018-10-26 14:28:52 -0700 |
commit | a35f55fd703762042c6d47ec17da1ecdd4397fe2 (patch) | |
tree | 608fd31d994df9ea582702053626f44c450258d7 /src/core | |
parent | 83d74bf6fcea715f9e36ae992ab59d16f2f2d29b (diff) |
move helper function into namespace
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/security/credentials/google_default/google_default_credentials.cc | 6 | ||||
-rw-r--r-- | src/core/lib/security/credentials/google_default/google_default_credentials.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/lib/security/credentials/google_default/google_default_credentials.cc b/src/core/lib/security/credentials/google_default/google_default_credentials.cc index 174bd65ca4..fcab252959 100644 --- a/src/core/lib/security/credentials/google_default/google_default_credentials.cc +++ b/src/core/lib/security/credentials/google_default/google_default_credentials.cc @@ -255,9 +255,6 @@ void set_gce_tenancy_checker_for_testing(grpc_gce_tenancy_checker checker) { g_gce_tenancy_checker = checker; } -} // namespace internal -} // namespace grpc_core - void grpc_flush_cached_google_default_credentials(void) { grpc_core::ExecCtx exec_ctx; gpr_once_init(&g_once, init_default_credentials); @@ -266,6 +263,9 @@ void grpc_flush_cached_google_default_credentials(void) { gpr_mu_unlock(&g_state_mu); } +} // namespace internal +} // namespace grpc_core + /* -- Well known credentials path. -- */ static grpc_well_known_credentials_path_getter creds_path_getter = nullptr; diff --git a/src/core/lib/security/credentials/google_default/google_default_credentials.h b/src/core/lib/security/credentials/google_default/google_default_credentials.h index 7130b9b996..b9e2efb04f 100644 --- a/src/core/lib/security/credentials/google_default/google_default_credentials.h +++ b/src/core/lib/security/credentials/google_default/google_default_credentials.h @@ -45,9 +45,6 @@ typedef struct { grpc_channel_credentials* ssl_creds; } grpc_google_default_channel_credentials; -// TEST-ONLY. Reset the internal global state. -void grpc_flush_cached_google_default_credentials(void); - namespace grpc_core { namespace internal { @@ -55,6 +52,9 @@ typedef bool (*grpc_gce_tenancy_checker)(void); void set_gce_tenancy_checker_for_testing(grpc_gce_tenancy_checker checker); +// TEST-ONLY. Reset the internal global state. +void grpc_flush_cached_google_default_credentials(void); + } // namespace internal } // namespace grpc_core |