Class to emulate the behavior of the system calls.
More...
#include <MockSysCalls.hpp>
|
| 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.
|
|
Class to emulate the behavior of the system calls.
Definition at line 33 of file MockSysCalls.hpp.
◆ MockSysCalls() [1/2]
MockSysCalls::MockSysCalls |
( |
| ) |
|
|
privatedefault |
Constructor of the class set as default.
◆ ~MockSysCalls()
MockSysCalls::~MockSysCalls |
( |
| ) |
|
|
privatedefault |
Destructor of the class set as default.
◆ MockSysCalls() [2/2]
Copy constructor of the class set as delete.
◆ instance()
◆ 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=()
Operator of the class set as delete.
The documentation for this class was generated from the following file: