gem5 v24.0.0.0
|
#include <gtest/gtest.h>
#include <cstring>
#include <sstream>
#include <utility>
#include "base/gtest/logging.hh"
#include "base/socket.hh"
Go to the source code of this file.
Classes | |
class | MockListenSocket |
Functions | |
TEST (SocketTest, DefaultBehavior) | |
TEST (SocketTest, DisableAll) | |
TEST (SocketTest, ListenToPort) | |
TEST (SocketTest, RelistenWithSameInstanceSamePort) | |
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 134 of file socket.test.cc.
References gem5::ListenSocketInet::accept(), expected(), and gem5::gtestLogOutput.
TEST | ( | SocketTest | , |
DefaultBehavior | ) |
Definition at line 63 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::getfd(), and gem5::ListenSocket::islistening().
TEST | ( | SocketTest | , |
DisableAll | ) |
Definition at line 75 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 84 of file socket.test.cc.
References gem5::ListenSocket::allDisabled(), gem5::ListenSocket::getfd(), gem5::ListenSocket::islistening(), gem5::ListenSocketInet::listen(), and TestPort1.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnDifferentPort | ) |
Definition at line 110 of file socket.test.cc.
References gem5::ListenSocketInet::listen(), TestPort1, and TestPort2.
TEST | ( | SocketTest | , |
RelistenWithDifferentInstanceOnSamePort | ) |
Definition at line 122 of file socket.test.cc.
References gem5::ListenSocketInet::listen(), and TestPort1.
TEST | ( | SocketTest | , |
RelistenWithSameInstanceSamePort | ) |
Definition at line 93 of file socket.test.cc.
References expected(), gem5::gtestLogOutput, gem5::ListenSocketInet::listen(), and TestPort1.
|
static |
|
static |
Definition at line 39 of file socket.test.cc.
Referenced by TEST().