Windows Unit Test Support (#629)

Window Unit Test Support
This commit is contained in:
Nick Banks
2016-09-20 18:11:19 -07:00
committed by Jonathan Hui
parent 4bd62977d4
commit 25cea9414b
19 changed files with 753 additions and 123 deletions
+2 -8
View File
@@ -32,14 +32,6 @@
#include <common/message.hpp>
#include <string.h>
extern"C" void otSignalTaskletPending(otInstance *)
{
}
extern "C" void otPlatDiagAlarmFired(otInstance *)
{
}
void TestMessage(void)
{
Thread::MessagePool messagePool;
@@ -68,9 +60,11 @@ void TestMessage(void)
"Message::Free failed\n");
}
#ifdef ENABLE_TEST_MAIN
int main(void)
{
TestMessage();
printf("All tests passed\n");
return 0;
}
#endif