gem5
v19.0.0.0
|
Go to the source code of this file.
Classes | |
class | MockListenSocket |
Macros | |
#define | TEST_PORT_1 7893 |
#define | TEST_PORT_2 7894 |
Functions | |
TEST (SocketTest, DefaultBehavior) | |
TEST (SocketTest, DisableAll) | |
TEST (SocketTest, ListenToPort) | |
TEST (SocketTest, ListenToPortReuseFalse) | |
TEST (SocketTest, RelistenWithSameInstanceSamePort) | |
TEST (SocketTest, RelistenWithSameInstanceDifferentPort) | |
TEST (SocketTest, RelistenWithDifferentInstanceOnDifferentPort) | |
TEST (SocketTest, RelistenWithDifferentInstanceOnSamePort) | |
TEST (SocketTest, AcceptError) | |
#define TEST_PORT_1 7893 |
Definition at line 35 of file socket.test.cc.
Referenced by TEST().
#define TEST_PORT_2 7894 |
Definition at line 36 of file socket.test.cc.
Referenced by TEST().
TEST | ( | SocketTest | , |
DefaultBehavior | |||
) |
Definition at line 57 of file socket.test.cc.
References ListenSocket::allDisabled(), EXPECT_EQ, EXPECT_FALSE, ListenSocket::getfd(), and ListenSocket::islistening().
TEST | ( | SocketTest | , |
DisableAll | |||
) |
Definition at line 69 of file socket.test.cc.
References ListenSocket::allDisabled(), ListenSocket::disableAll(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, ListenSocket::getfd(), and ListenSocket::islistening().
TEST | ( | SocketTest | , |
ListenToPort | |||
) |
Definition at line 78 of file socket.test.cc.
References ListenSocket::allDisabled(), EXPECT_FALSE, EXPECT_TRUE, ListenSocket::getfd(), ListenSocket::islistening(), ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
ListenToPortReuseFalse | |||
) |
Definition at line 87 of file socket.test.cc.
References ListenSocket::allDisabled(), EXPECT_FALSE, EXPECT_TRUE, ListenSocket::getfd(), ListenSocket::islistening(), ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceSamePort | |||
) |
Definition at line 100 of file socket.test.cc.
References EXPECT_EQ, EXPECT_TRUE, expected, ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceDifferentPort | |||
) |
Definition at line 125 of file socket.test.cc.
References EXPECT_EQ, EXPECT_TRUE, expected, ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnDifferentPort | |||
) |
Definition at line 142 of file socket.test.cc.
References EXPECT_TRUE, ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnSamePort | |||
) |
Definition at line 154 of file socket.test.cc.
References EXPECT_FALSE, EXPECT_TRUE, ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
AcceptError | |||
) |
Definition at line 166 of file socket.test.cc.
References ListenSocket::accept(), and EXPECT_EQ.