Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockSysCalls Class Reference

Class to emulate the behavior of the system calls. More...

#include <MockSysCalls.hpp>

Public Member Functions

 MOCK_METHOD (int, open,(const char *path, int flags),())
 Mocked method to open a file.
 
 MOCK_METHOD (int, ioctl,(int fd, unsigned long request),())
 Mocked method to perform an I/O control operation.
 
 MOCK_METHOD (int, close,(int fd),())
 Mocked method to close a file.
 

Static Public Member Functions

static MockSysCallsinstance ()
 Get the instance object.
 

Private Member Functions

 MockSysCalls ()=default
 Constructor of the class set as default.
 
 ~MockSysCalls ()=default
 Destructor of the class set as default.
 
 MockSysCalls (const MockSysCalls &)=delete
 Copy constructor of the class set as delete.
 
MockSysCallsoperator= (const MockSysCalls &)=delete
 Operator of the class set as delete.
 

Detailed Description

Class to emulate the behavior of the system calls.

Definition at line 33 of file MockSysCalls.hpp.

Constructor & Destructor Documentation

◆ MockSysCalls() [1/2]

MockSysCalls::MockSysCalls ( )
privatedefault

Constructor of the class set as default.

Here is the caller graph for this function:

◆ ~MockSysCalls()

MockSysCalls::~MockSysCalls ( )
privatedefault

Destructor of the class set as default.

◆ MockSysCalls() [2/2]

MockSysCalls::MockSysCalls ( const MockSysCalls & )
privatedelete

Copy constructor of the class set as delete.

Here is the call graph for this function:

Member Function Documentation

◆ instance()

static MockSysCalls & MockSysCalls::instance ( )
inlinestatic

Get the instance object.

Returns
MockSysCalls&

Definition at line 39 of file MockSysCalls.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MOCK_METHOD() [1/3]

MockSysCalls::MOCK_METHOD ( int ,
close ,
(int fd) ,
()  )

Mocked method to close a file.

◆ MOCK_METHOD() [2/3]

MockSysCalls::MOCK_METHOD ( int ,
ioctl ,
(int fd, unsigned long request) ,
()  )

Mocked method to perform an I/O control operation.

◆ MOCK_METHOD() [3/3]

MockSysCalls::MOCK_METHOD ( int ,
open ,
(const char *path, int flags) ,
()  )

Mocked method to open a file.

◆ operator=()

MockSysCalls & MockSysCalls::operator= ( const MockSysCalls & )
privatedelete

Operator of the class set as delete.

Here is the call graph for this function:

The documentation for this class was generated from the following file: