gem5  v21.1.0.2
Classes | Functions | Variables
socket.test.cc File Reference
#include <gtest/gtest.h>
#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, 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
 

Function Documentation

◆ TEST() [1/9]

TEST ( SocketTest  ,
AcceptError   
)

Definition at line 156 of file socket.test.cc.

References gem5::ListenSocket::accept().

◆ TEST() [2/9]

TEST ( SocketTest  ,
DefaultBehavior   
)

◆ TEST() [3/9]

TEST ( SocketTest  ,
DisableAll   
)

◆ TEST() [4/9]

TEST ( SocketTest  ,
ListenToPort   
)

◆ TEST() [5/9]

TEST ( SocketTest  ,
ListenToPortReuseFalse   
)

◆ TEST() [6/9]

TEST ( SocketTest  ,
RelistenWithDifferentInstanceOnDifferentPort   
)

Definition at line 132 of file socket.test.cc.

References gem5::ListenSocket::listen(), TestPort1, and TestPort2.

◆ TEST() [7/9]

TEST ( SocketTest  ,
RelistenWithDifferentInstanceOnSamePort   
)

Definition at line 144 of file socket.test.cc.

References gem5::ListenSocket::listen(), and TestPort1.

◆ TEST() [8/9]

TEST ( SocketTest  ,
RelistenWithSameInstanceDifferentPort   
)

◆ TEST() [9/9]

TEST ( SocketTest  ,
RelistenWithSameInstanceSamePort   
)

Variable Documentation

◆ TestPort1

const int TestPort1 = 7893
static

Definition at line 34 of file socket.test.cc.

Referenced by TEST().

◆ TestPort2

const int TestPort2 = 7894
static

Definition at line 35 of file socket.test.cc.

Referenced by TEST().


Generated on Tue Sep 21 2021 12:26:26 for gem5 by doxygen 1.8.17