From 0f869845e95c34608bc3364659c18de2033c7668 Mon Sep 17 00:00:00 2001 From: Raul Gutierrez Segales Date: Wed, 9 Jun 2021 09:33:25 -0400 Subject: [PATCH] Explicit use of absl::string_view After #16029, our build breaks without this. Signed-off-by: Raul Gutierrez Segales --- test/mocks/upstream/cluster_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocks/upstream/cluster_manager.cc b/test/mocks/upstream/cluster_manager.cc index 3b025132461a7..7e17320ba63d0 100644 --- a/test/mocks/upstream/cluster_manager.cc +++ b/test/mocks/upstream/cluster_manager.cc @@ -49,7 +49,7 @@ void MockClusterManager::initializeThreadLocalClusters( // TODO(mattklein123): This should create a dedicated and new mock for each initialized cluster, // but this has larger test implications. I will fix this in a follow up. for (const auto& cluster_name : cluster_names) { - ON_CALL(*this, getThreadLocalCluster(cluster_name)) + ON_CALL(*this, getThreadLocalCluster(absl::string_view(cluster_name))) .WillByDefault(Return(&thread_local_cluster_)); } }