util: Remove temporary strings in getIgnoredInterfaces
Change-Id: I75be67b88a3f7b4dff6de9af25d3f496be09da14
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/test_util.cpp b/test/test_util.cpp
index a63e205..d335adc 100644
--- a/test/test_util.cpp
+++ b/test/test_util.cpp
@@ -342,7 +342,7 @@
TEST(IgnoredInterfaces, NotEmpty)
{
using ::testing::ContainerEq;
- std::set<std::string> expected = {"eth0"};
+ std::set<std::string_view> expected = {"eth0"};
auto ret = internal::parseInterfaces("eth0");
EXPECT_THAT(ret, ContainerEq(expected));