gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions
socket.test.cc File Reference
#include <gtest/gtest.h>
#include "base/socket.hh"

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)
 

Macro Definition Documentation

◆ TEST_PORT_1

#define TEST_PORT_1   7893

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

◆ TEST_PORT_2

#define TEST_PORT_2   7894

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

Function Documentation

◆ TEST() [1/9]

TEST ( SocketTest  ,
AcceptError   
)

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

References 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 140 of file socket.test.cc.

References ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.

◆ TEST() [7/9]

TEST ( SocketTest  ,
RelistenWithDifferentInstanceOnSamePort   
)

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

References ListenSocket::listen(), and TEST_PORT_1.

◆ TEST() [8/9]

TEST ( SocketTest  ,
RelistenWithSameInstanceDifferentPort   
)

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

References expected, ListenSocket::listen(), TEST_PORT_1, and TEST_PORT_2.

◆ TEST() [9/9]

TEST ( SocketTest  ,
RelistenWithSameInstanceSamePort   
)

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

References expected, ListenSocket::listen(), and TEST_PORT_1.


Generated on Tue Jun 22 2021 15:28:33 for gem5 by doxygen 1.8.17