mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(core): add StormDestroy stub
This commit is contained in:
parent
982a89b6da
commit
02f5e26f36
14 changed files with 160 additions and 64 deletions
29
test/EventTest.cpp
Normal file
29
test/EventTest.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "EventTest.hpp"
|
||||
|
||||
std::deque<EventHandlerCalledWith> EventHandlerCallResults;
|
||||
|
||||
|
||||
void STORMAPI TestEventHandler1(void* data) {
|
||||
EventHandlerTest::RegisterCall(1, data);
|
||||
}
|
||||
|
||||
void STORMAPI TestEventHandler2(void* data) {
|
||||
EventHandlerTest::RegisterCall(2, data);
|
||||
}
|
||||
|
||||
void STORMAPI TestEventHandler3(void* data) {
|
||||
EventHandlerTest::RegisterCall(3, data);
|
||||
}
|
||||
|
||||
void STORMAPI TestEventHandler4(void* data) {
|
||||
EventHandlerTest::RegisterCall(4, data);
|
||||
}
|
||||
|
||||
std::ostream& operator <<(std::ostream& os, EventHandlerCalledWith const& value) {
|
||||
os << "{ TestEventHandler" << value.handler << ", " << value.data << " }";
|
||||
return os;
|
||||
}
|
||||
|
||||
EventHandlerCalledWithMatcher<EventHandlerCalledWith> MatchesCall(EventHandlerCalledWith arg) {
|
||||
return { arg };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue