mirror of
https://github.com/ThrowTheSwitch/CMock
synced 2025-02-02 10:08:41 -05:00
34 lines
826 B
C
34 lines
826 B
C
/* =========================================================================
|
|
CMock - Automatic Mock Generation for C
|
|
ThrowTheSwitch.org
|
|
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
|
SPDX-License-Identifier: MIT
|
|
========================================================================= */
|
|
|
|
#include "unity.h"
|
|
#include "Types.h"
|
|
#include "TimerHardware.h"
|
|
#include "MockTimerConfigurator.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void testInitShouldDelegateAppropriatelyToConfigurator(void)
|
|
{
|
|
Timer_EnablePeripheralClocks_Expect();
|
|
Timer_Reset_Expect();
|
|
Timer_ConfigureMode_Expect();
|
|
Timer_ConfigurePeriod_Expect();
|
|
Timer_EnableOutputPin_Expect();
|
|
Timer_Enable_Expect();
|
|
Timer_ConfigureInterruptHandler_Expect();
|
|
Timer_Start_Expect();
|
|
|
|
TimerHardware_Init();
|
|
}
|