mirror of https://github.com/FOME-Tech/fome-fw.git
put mock in enginetesthelper
This commit is contained in:
parent
061ae726ec
commit
7a479fa44f
|
@ -83,6 +83,10 @@ EngineTestHelper::EngineTestHelper(engine_type_e engineType, configuration_callb
|
||||||
// this is needed to have valid CLT and IAT.
|
// this is needed to have valid CLT and IAT.
|
||||||
//todo: reuse initPeriodicEvents(PASS_ENGINE_PARAMETER_SIGNATURE) method
|
//todo: reuse initPeriodicEvents(PASS_ENGINE_PARAMETER_SIGNATURE) method
|
||||||
engine->periodicSlowCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
|
engine->periodicSlowCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
||||||
|
// Setup running in mock airmass mode
|
||||||
|
engineConfiguration->injectionMode = LM_MOCK;
|
||||||
|
engine->mockAirmassModel = &mockAirmass;
|
||||||
}
|
}
|
||||||
|
|
||||||
EngineTestHelper::~EngineTestHelper() {
|
EngineTestHelper::~EngineTestHelper() {
|
||||||
|
|
|
@ -83,6 +83,8 @@ public:
|
||||||
Engine engine;
|
Engine engine;
|
||||||
persistent_config_s persistentConfig;
|
persistent_config_s persistentConfig;
|
||||||
|
|
||||||
|
MockAirmass mockAirmass;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void writeEvents(const char *fileName);
|
void writeEvents(const char *fileName);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue