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
@@ -36,14 +36,6 @@ namespace Thread {
// This module implements unit-test for NcpFrameBuffer class.
extern"C" void otSignalTaskletPending(otInstance *)
{
}
extern "C" void otPlatDiagAlarmFired(otInstance *)
{
}
enum
{
kTestBufferSize = 101, // Size of backed buffer for NcpFrameBuffer.
@@ -468,9 +460,11 @@ void TestNcpFrameBuffer(void)
} // namespace Thread
#ifdef ENABLE_TEST_MAIN
int main(void)
{
Thread::TestNcpFrameBuffer();
printf("\nAll tests passed.\n");
return 0;
}
#endif