gem5
v22.0.0.0
|
Go to the source code of this file.
Classes | |
class | MockListenSocket |
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) | |
Variables | |
static const int | TestPort1 = 7893 |
static const int | TestPort2 = 7894 |
TEST | ( | SocketTest | , |
AcceptError | |||
) |
Definition at line 156 of file socket.test.cc.
References gem5::ListenSocket::accept().
TEST | ( | SocketTest | , |
DefaultBehavior | |||
) |
Definition at line 58 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::getfd(), and gem5::ListenSocket::islistening().
TEST | ( | SocketTest | , |
DisableAll | |||
) |
Definition at line 70 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::disableAll(), gem5::ListenSocket::getfd(), and gem5::ListenSocket::islistening().
TEST | ( | SocketTest | , |
ListenToPort | |||
) |
Definition at line 79 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::getfd(), gem5::ListenSocket::islistening(), gem5::ListenSocket::listen(), and TestPort1.
TEST | ( | SocketTest | , |
ListenToPortReuseFalse | |||
) |
Definition at line 88 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::getfd(), gem5::ListenSocket::islistening(), gem5::ListenSocket::listen(), and TestPort1.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnDifferentPort | |||
) |
Definition at line 132 of file socket.test.cc.
References gem5::ListenSocket::listen(), TestPort1, and TestPort2.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnSamePort | |||
) |
Definition at line 144 of file socket.test.cc.
References gem5::ListenSocket::listen(), and TestPort1.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceDifferentPort | |||
) |
Definition at line 116 of file socket.test.cc.
References expected, gem5::gtestLogOutput, gem5::ListenSocket::listen(), TestPort1, and TestPort2.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceSamePort | |||
) |
Definition at line 101 of file socket.test.cc.
References expected, gem5::gtestLogOutput, gem5::ListenSocket::listen(), and TestPort1.
|
static |
Definition at line 34 of file socket.test.cc.
Referenced by TEST().
|
static |
Definition at line 35 of file socket.test.cc.
Referenced by TEST().