test_ui.c File Reference

Test cases for code below client/menu/. More...

#include "CUnit/Basic.h"
#include "test_shared.h"
#include "test_ui.h"
#include "../client/ui/ui_nodes.h"
#include "../client/ui/ui_timer.h"
Include dependency graph for test_ui.c:

Go to the source code of this file.

Functions

static int UFO_InitSuiteUI (void)
static int UFO_CleanSuiteUI (void)
static void testTimerDataStructure (void)
 unittest around timer data structure. It not test timer execution.
int UFO_AddUITests (void)

Detailed Description

Test cases for code below client/menu/.

Definition in file test_ui.c.


Function Documentation

static void testTimerDataStructure ( void   )  [static]

unittest around timer data structure. It not test timer execution.

Definition at line 56 of file test_ui.c.

References uiTimer_s::next, next, uiTimer_s::owner, UI_AllocTimer(), UI_TimerRelease(), UI_TimerStart(), and UI_TimerStop().

Referenced by UFO_AddUITests().

int UFO_AddUITests ( void   ) 

Definition at line 103 of file test_ui.c.

References testTimerDataStructure(), UFO_CleanSuiteUI(), and UFO_InitSuiteUI().

static int UFO_CleanSuiteUI ( void   )  [static]

The suite cleanup function. Returns zero on success, non-zero otherwise.

Definition at line 46 of file test_ui.c.

References TEST_Shutdown().

Referenced by UFO_AddUITests().

static int UFO_InitSuiteUI ( void   )  [static]

The suite initialization function. Returns zero on success, non-zero otherwise.

Definition at line 36 of file test_ui.c.

References TEST_Init().

Referenced by UFO_AddUITests().


Generated by  doxygen 1.6.2