SDL
2.0
|
Go to the source code of this file.
Functions | |
int | _events_sampleNullEventFilter (void *userdata, SDL_Event *event) |
int | events_pushPumpAndPollUserevent (void *arg) |
Test pumping and peeking events. More... | |
int | events_addDelEventWatch (void *arg) |
Adds and deletes an event watch function with NULL userdata. More... | |
int | events_addDelEventWatchWithUserdata (void *arg) |
Adds and deletes an event watch function with userdata. More... | |
Variables | |
int | _userdataCheck = 0 |
int | _userdataValue = 0 |
int | _eventFilterCalled = 0 |
int | _userdataValue1 = 1 |
int | _userdataValue2 = 2 |
static const SDLTest_TestCaseReference | eventsTest1 |
static const SDLTest_TestCaseReference | eventsTest2 |
static const SDLTest_TestCaseReference | eventsTest3 |
static const SDLTest_TestCaseReference * | eventsTests [] |
SDLTest_TestSuiteReference | eventsTestSuite |
Definition at line 28 of file testautomation_events.c.
References _eventFilterCalled, _userdataCheck, _userdataValue, NULL, and SDLTest_AssertCheck().
Referenced by events_addDelEventWatch(), and events_addDelEventWatchWithUserdata().
int events_addDelEventWatch | ( | void * | arg | ) |
Adds and deletes an event watch function with NULL userdata.
Definition at line 84 of file testautomation_events.c.
References _eventFilterCalled, _events_sampleNullEventFilter(), _userdataCheck, _userdataValue1, _userdataValue2, NULL, SDL_AddEventWatch, SDL_DelEventWatch, SDL_PumpEvents, SDL_PushEvent, SDL_USEREVENT, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint32(), and TEST_COMPLETED.
int events_addDelEventWatchWithUserdata | ( | void * | arg | ) |
Adds and deletes an event watch function with userdata.
Definition at line 134 of file testautomation_events.c.
References _eventFilterCalled, _events_sampleNullEventFilter(), _userdataCheck, _userdataValue, _userdataValue1, _userdataValue2, SDL_AddEventWatch, SDL_DelEventWatch, SDL_PumpEvents, SDL_PushEvent, SDL_USEREVENT, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), SDLTest_RandomSint32(), and TEST_COMPLETED.
int events_pushPumpAndPollUserevent | ( | void * | arg | ) |
Test pumping and peeking events.
Definition at line 49 of file testautomation_events.c.
References _userdataValue1, _userdataValue2, SDL_UserEvent::code, SDL_UserEvent::data1, SDL_UserEvent::data2, SDL_PollEvent, SDL_PumpEvents, SDL_PushEvent, SDL_USEREVENT, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint32(), TEST_COMPLETED, SDL_Event::type, and SDL_Event::user.
int _eventFilterCalled = 0 |
Definition at line 21 of file testautomation_events.c.
Referenced by _events_sampleNullEventFilter(), events_addDelEventWatch(), and events_addDelEventWatchWithUserdata().
int _userdataCheck = 0 |
Events test suite
Definition at line 15 of file testautomation_events.c.
Referenced by _events_sampleNullEventFilter(), events_addDelEventWatch(), and events_addDelEventWatchWithUserdata().
int _userdataValue = 0 |
Definition at line 18 of file testautomation_events.c.
Referenced by _events_sampleNullEventFilter(), and events_addDelEventWatchWithUserdata().
int _userdataValue1 = 1 |
Definition at line 24 of file testautomation_events.c.
Referenced by events_addDelEventWatch(), events_addDelEventWatchWithUserdata(), and events_pushPumpAndPollUserevent().
int _userdataValue2 = 2 |
Definition at line 25 of file testautomation_events.c.
Referenced by events_addDelEventWatch(), events_addDelEventWatchWithUserdata(), and events_pushPumpAndPollUserevent().
|
static |
Definition at line 181 of file testautomation_events.c.
|
static |
Definition at line 184 of file testautomation_events.c.
|
static |
Definition at line 187 of file testautomation_events.c.
|
static |
Definition at line 191 of file testautomation_events.c.
SDLTest_TestSuiteReference eventsTestSuite |
Definition at line 196 of file testautomation_events.c.