gem5
v20.1.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 33 of file socket.test.cc.
#define TEST_PORT_2 7894 |
Definition at line 34 of file socket.test.cc.
TEST | ( | SocketTest | , |
AcceptError | |||
) |
Definition at line 164 of file socket.test.cc.
References ListenSocket::accept(), and EXPECT_EQ.
TEST | ( | SocketTest | , |
DefaultBehavior | |||
) |
Definition at line 55 of file socket.test.cc.
References ListenSocket::allDisabled(), EXPECT_EQ, EXPECT_FALSE, ListenSocket::getfd(), and ListenSocket::islistening().
TEST | ( | SocketTest | , |
DisableAll | |||
) |
Definition at line 67 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 76 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 85 of file socket.test.cc.
References ListenSocket::allDisabled(), EXPECT_FALSE, EXPECT_TRUE, ListenSocket::getfd(), ListenSocket::islistening(), ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnDifferentPort | |||
) |
Definition at line 140 of file socket.test.cc.
References EXPECT_TRUE, ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnSamePort | |||
) |
Definition at line 152 of file socket.test.cc.
References EXPECT_FALSE, EXPECT_TRUE, ListenSocket::listen(), and TEST_PORT_1.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceDifferentPort | |||
) |
Definition at line 123 of file socket.test.cc.
References EXPECT_EQ, EXPECT_TRUE, expected, ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceSamePort | |||
) |
Definition at line 98 of file socket.test.cc.
References EXPECT_EQ, EXPECT_TRUE, expected, ListenSocket::listen(), and TEST_PORT_1.