gem5 v24.0.0.0
Loading...
Searching...
No Matches
socket.test.cc File Reference
#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
 

Function Documentation

◆ TEST() [1/7]

TEST ( SocketTest ,
AcceptError  )

◆ TEST() [2/7]

TEST ( SocketTest ,
DefaultBehavior  )

◆ TEST() [3/7]

◆ TEST() [4/7]

◆ TEST() [5/7]

TEST ( SocketTest ,
RelistenWithDifferentInstanceOnDifferentPort  )

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

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

◆ TEST() [6/7]

TEST ( SocketTest ,
RelistenWithDifferentInstanceOnSamePort  )

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

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

◆ TEST() [7/7]

TEST ( SocketTest ,
RelistenWithSameInstanceSamePort  )

Variable Documentation

◆ TestPort1

const int TestPort1 = 7893
static

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

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ TestPort2

const int TestPort2 = 7894
static

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

Referenced by TEST().


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0