diff options
author | Jay Zhuang <jayzhuang@google.com> | 2019-12-18 12:28:13 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-18 12:50:04 -0800 |
commit | 65f53c583364295cbc211b38fae126fb88f08ec0 (patch) | |
tree | 6ba734b45415d9f53206957dd247d26ac15b7670 /test/syscalls/linux/socket_ip_loopback_blocking.cc | |
parent | 803437c96bb4b212dba425f0378ce4f6c0c9fff9 (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.cc | 2 |
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 |