summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/socket_ip_loopback_blocking.cc
diff options
context:
space:
mode:
authorJay Zhuang <jayzhuang@google.com>2019-12-18 12:28:13 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-18 12:50:04 -0800
commit65f53c583364295cbc211b38fae126fb88f08ec0 (patch)
tree6ba734b45415d9f53206957dd247d26ac15b7670 /test/syscalls/linux/socket_ip_loopback_blocking.cc
parent803437c96bb4b212dba425f0378ce4f6c0c9fff9 (diff)
Put GetSocketPairs() in unnamed namespace
This avoids conflicting definitions of GetSocketPairs() in outer namespace when multiple such cc files are complied for one binary. PiperOrigin-RevId: 286243045
Diffstat (limited to 'test/syscalls/linux/socket_ip_loopback_blocking.cc')
-rw-r--r--test/syscalls/linux/socket_ip_loopback_blocking.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/socket_ip_loopback_blocking.cc b/test/syscalls/linux/socket_ip_loopback_blocking.cc
index e58eedaba..fda252dd7 100644
--- a/test/syscalls/linux/socket_ip_loopback_blocking.cc
+++ b/test/syscalls/linux/socket_ip_loopback_blocking.cc
@@ -23,6 +23,7 @@
namespace gvisor {
namespace testing {
+namespace {
std::vector<SocketPairKind> GetSocketPairs() {
return VecCat<SocketPairKind>(
@@ -43,5 +44,6 @@ INSTANTIATE_TEST_SUITE_P(
BlockingIPSockets, BlockingSocketPairTest,
::testing::ValuesIn(IncludeReversals(GetSocketPairs())));
+} // namespace
} // namespace testing
} // namespace gvisor