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 -36
View File
@@ -40,41 +40,6 @@ using namespace Thread;
namespace Thread {
extern "C" void otSignalTaskletPending(otInstance *)
{
}
extern "C" bool otAreTaskletsPending(otInstance *)
{
return false;
}
extern "C" void otPlatUartSendDone(void)
{
}
extern "C" void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength)
{
(void)aBuf;
(void)aBufLength;
}
extern "C" void otPlatDiagAlarmFired(otInstance *)
{
}
extern "C" void otPlatDiagRadioTransmitDone(otInstance *, bool aRxPending, ThreadError aError)
{
(void)aRxPending;
(void)aError;
}
extern "C" void otPlatDiagRadioReceiveDone(otInstance *, RadioPacket *aFrame, ThreadError aError)
{
(void)aFrame;
(void)aError;
}
Ip6::Ip6 sIp6;
ThreadNetif sMockThreadNetif(sIp6);
Lowpan::Lowpan sMockLowpan(sMockThreadNetif);
@@ -162,7 +127,7 @@ void TestLowpanIphc(void)
} // namespace Thread
#ifdef ENABLE_TEST_MAIN
int main(void)
{
TestLowpanIphc();
@@ -170,3 +135,4 @@ int main(void)
printf("All tests passed\n");
return 0;
}
#endif