HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
test_mockio.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <mockio.h>
Include dependency graph for test_mockio.c:

Go to the source code of this file.

Macros

#define S   HIPC_SUCCESS
 
#define R   0
 
#define W   1
 

Functions

static void test_mockio (void)
 
static void test_mockIORead_err (void)
 
static void test_mockIOWrite_err (void)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define S   HIPC_SUCCESS

Definition at line 7 of file test_mockio.c.

Referenced by test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().

#define R   0

Definition at line 8 of file test_mockio.c.

Referenced by test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().

#define W   1

Definition at line 9 of file test_mockio.c.

Referenced by test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().

Function Documentation

static void test_mockio ( void  )
static

Definition at line 11 of file test_mockio.c.

References HIPC_ERR_IO_READ, HIPC_ERR_IO_WRITE, HIPC_IMG_ALLOCSIZE, MockIO::i, mockIOCheckCompletion(), mockIOInit(), mockIORead(), mockIOWrite(), R, S, and W.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_mockIORead_err ( void  )
static

Definition at line 76 of file test_mockio.c.

References HIPC_ERR_TEST_LIB_INTERNAL, HIPC_IMG_ALLOCSIZE, MOCK_ERR_OPCODE, MOCK_ERR_OVERRUN, MOCK_ERR_SIZE, MockIO::mock_errno, mockIOCheckCompletion(), mockIOInit(), mockIORead(), R, S, and W.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_mockIOWrite_err ( void  )
static

Definition at line 110 of file test_mockio.c.

References HIPC_ERR_TEST_LIB_INTERNAL, HIPC_IMG_ALLOCSIZE, MOCK_ERR_DATA, MOCK_ERR_OPCODE, MOCK_ERR_OVERRUN, MOCK_ERR_SIZE, MockIO::mock_errno, mockIOCheckCompletion(), mockIOInit(), mockIOWrite(), R, S, and W.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 154 of file test_mockio.c.

References test_mockio(), test_mockIORead_err(), and test_mockIOWrite_err().

Here is the call graph for this function: