mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-12 14:17:53 +00:00
* Added support for IAR Embedded Workbench v5.0
- Relocated example project in preparation for adding real CMock system test git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@47 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#include "unity.h"
|
||||
#include "Types.h"
|
||||
#include "TimerConductor.h"
|
||||
#include "MockTimerHardware.h"
|
||||
#include "MockTimerModel.h"
|
||||
#include "MockTimerInterruptHandler.h"
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
}
|
||||
|
||||
void testInitShouldCallHardwareInit(void)
|
||||
{
|
||||
TimerHardware_Init_Expect();
|
||||
|
||||
TimerConductor_Init();
|
||||
}
|
||||
|
||||
void testRunShouldGetSystemTimeAndPassOnToModelForEventScheduling(void)
|
||||
{
|
||||
Timer_GetSystemTime_ExpectAndReturn(1230);
|
||||
TimerModel_UpdateTime_Expect(1230);
|
||||
TimerConductor_Run();
|
||||
|
||||
Timer_GetSystemTime_ExpectAndReturn(837460);
|
||||
TimerModel_UpdateTime_Expect(837460);
|
||||
TimerConductor_Run();
|
||||
}
|
||||
Reference in New Issue
Block a user