summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/socket_unix_domain.cc
diff options
context:
space:
mode:
authorJay Zhuang <jayzhuang@google.com>2020-01-30 14:06:54 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-30 14:17:58 -0800
commit9988cf2eeff596ce519046d80c54d09166f7d84b (patch)
treeb70a3be131a86a886766a1e9d4213b6b3680e3c8 /test/syscalls/linux/socket_unix_domain.cc
parentd62362f63fb86591832ee8e36e833df20b8218f6 (diff)
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
Diffstat (limited to 'test/syscalls/linux/socket_unix_domain.cc')
-rw-r--r--test/syscalls/linux/socket_unix_domain.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/socket_unix_domain.cc b/test/syscalls/linux/socket_unix_domain.cc
index fa3efc7f8..f7dff8b4d 100644
--- a/test/syscalls/linux/socket_unix_domain.cc
+++ b/test/syscalls/linux/socket_unix_domain.cc
@@ -21,6 +21,7 @@
namespace gvisor {
namespace testing {
+namespace {
std::vector<SocketPairKind> GetSocketPairs() {
return ApplyVec<SocketPairKind>(
@@ -33,5 +34,6 @@ INSTANTIATE_TEST_SUITE_P(
AllUnixDomainSockets, AllSocketPairTest,
::testing::ValuesIn(IncludeReversals(GetSocketPairs())));
+} // namespace
} // namespace testing
} // namespace gvisor