2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file engine_test_helper.h
|
|
|
|
*
|
|
|
|
* @date Jun 26, 2014
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
|
|
*/
|
|
|
|
#ifndef ENGINE_TEST_HELPER_H_
|
|
|
|
#define ENGINE_TEST_HELPER_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
#include "trigger_central.h"
|
|
|
|
#include "rpm_calculator.h"
|
|
|
|
|
|
|
|
class EngineTestHelper {
|
|
|
|
public:
|
|
|
|
EngineTestHelper(engine_type_e engineType);
|
|
|
|
void initTriggerShapeAndRpmCalculator();
|
2016-01-24 22:02:55 -08:00
|
|
|
void fireTriggerEvents(int count);
|
2016-08-26 15:02:39 -07:00
|
|
|
void fireTriggerEvents2(int count, int duration);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
persistent_config_s persistentConfig;
|
|
|
|
engine_configuration2_s ec2;
|
|
|
|
Engine engine;
|
|
|
|
|
|
|
|
engine_configuration_s *ec;
|
|
|
|
engine_configuration_s *engineConfiguration;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ENGINE_TEST_HELPER_H_ */
|