From 9988cf2eeff596ce519046d80c54d09166f7d84b Mon Sep 17 00:00:00 2001 From: Jay Zhuang Date: Thu, 30 Jan 2020 14:06:54 -0800 Subject: Wrap all GetSocketPairs() in unnamed namespaces This avoids conflicting definitions of GetSocketPairs() in outer namespace when multiple such cc files are complied for one binary. PiperOrigin-RevId: 292420885 --- test/syscalls/linux/socket_unix_pair.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/syscalls/linux/socket_unix_pair.cc') diff --git a/test/syscalls/linux/socket_unix_pair.cc b/test/syscalls/linux/socket_unix_pair.cc index 411fb4518..85999db04 100644 --- a/test/syscalls/linux/socket_unix_pair.cc +++ b/test/syscalls/linux/socket_unix_pair.cc @@ -22,6 +22,7 @@ namespace gvisor { namespace testing { +namespace { std::vector GetSocketPairs() { return VecCat(ApplyVec( @@ -38,5 +39,6 @@ INSTANTIATE_TEST_SUITE_P( AllUnixDomainSockets, UnixSocketPairCmsgTest, ::testing::ValuesIn(IncludeReversals(GetSocketPairs()))); +} // namespace } // namespace testing } // namespace gvisor -- cgit v1.2.3