fome-fw/unit_tests/tests/test_start_stop.cpp

20 lines
508 B
C++

/*
* @file test_start_stop.cpp
*
* @date Nov 18, 2020
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#include "engine_test_helper.h"
#include "engine_controller.h"
TEST(start, startStop) {
WITH_ENGINE_TEST_HELPER(BMW_M73_PROTEUS);
// this is a pull-up, so 'true' on start-up
setMockState(engineConfiguration->startStopButtonPin, true PASS_ENGINE_PARAMETER_SUFFIX);
ASSERT_EQ(efiReadPin(engineConfiguration->starterControlPin), 0);
slowStartStopButtonCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
}