#include <hipc.h>
Go to the source code of this file.
Data Structures | |
struct | MockIOOp |
struct | MockIO |
Enumerations | |
enum | MOCK_errno { MOCK_SUCESS, MOCK_ERR_OVERRUN, MOCK_ERR_OPCODE, MOCK_ERR_SIZE, MOCK_ERR_DATA, MOCK_N_ERR } |
Functions | |
void | mockIOInit (struct MockIO *mio_p, const struct MockIOOp *ops, const unsigned int nops) |
int | mockIOCheckCompletion (struct MockIO *mio_p) |
enum HIPC_errno | mockIORead (struct MockIO *mio_p, void *buf, const size_t size) |
enum HIPC_errno | mockIOWrite (struct MockIO *mio_p, const void *buf, const size_t size) |
enum MOCK_errno |
Definition at line 8 of file mockio.c.
References MockIO::i, MockIO::mock_errno, MOCK_SUCESS, MockIO::nops, and MockIO::ops.
Referenced by closeDefaultSession(), openDefaultSession(), test_hipcClose_err(), test_hipcGet_err(), test_hipcOpen_err(), test_hipcPut_err(), test_hipcSession(), test_hipcSession_cast(), test_hipcUsocAccept(), test_hipcUsocAcceptSimple(), test_hipcUsocWriteMsgd(), test_hipcWaitReturn_err(), test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().
int mockIOCheckCompletion | ( | struct MockIO * | mio_p | ) |
Definition at line 19 of file mockio.c.
References MockIO::i, MockIO::mock_errno, MOCK_SUCESS, and MockIO::nops.
Referenced by closeDefaultSession(), openDefaultSession(), test_hipcClose_err(), test_hipcGet_err(), test_hipcOpen_err(), test_hipcPut_err(), test_hipcSession(), test_hipcSession_cast(), test_hipcUsocAccept(), test_hipcUsocAcceptSimple(), test_hipcUsocWriteMsgd(), test_hipcWaitReturn_err(), test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().
enum HIPC_errno mockIORead | ( | struct MockIO * | mio_p, |
void * | buf, | ||
const size_t | size | ||
) |
Definition at line 30 of file mockio.c.
References MockIOOp::code, MockIOOp::data, HIPC_ERR_TEST_LIB_INTERNAL, MockIO::i, MOCK_ERR_OPCODE, MOCK_ERR_OVERRUN, MOCK_ERR_SIZE, MockIO::mock_errno, MockIO::nops, MockIO::ops, MockIOOp::retval, and MockIOOp::size.
Referenced by hipcUsocRead(), mockReadMsg(), test_mockio(), and test_mockIORead_err().
enum HIPC_errno mockIOWrite | ( | struct MockIO * | mio_p, |
const void * | buf, | ||
const size_t | size | ||
) |
Definition at line 63 of file mockio.c.
References MockIOOp::code, MockIOOp::data, HIPC_ERR_TEST_LIB_INTERNAL, MockIO::i, MOCK_ERR_DATA, MOCK_ERR_OPCODE, MOCK_ERR_OVERRUN, MOCK_ERR_SIZE, MockIO::mock_errno, MockIO::nops, MockIO::ops, MockIOOp::retval, and MockIOOp::size.
Referenced by hipcUsocWrite(), mockWriteMsg(), test_mockio(), and test_mockIOWrite_err().