put mock in enginetesthelper

This commit is contained in:
Matthew Kennedy 2020-07-26 20:39:42 -07:00
parent 061ae726ec
commit 7a479fa44f
2 changed files with 6 additions and 0 deletions

View File

@ -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() {

View File

@ -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);
}; };