22 lines
740 B
C++
22 lines
740 B
C++
//
|
|
// Created by kifir on 6/12/24.
|
|
//
|
|
|
|
#include "pch.h"
|
|
|
|
#include "launch_test_base.h"
|
|
|
|
void LaunchTestBase::setUpTestConfig(const LaunchTestConfig& config) {
|
|
setUpEngineConfiguration(config);
|
|
if (config.getSatisfyActivationSwithSpeedAndTpsConditions()) {
|
|
configureSatisfiedActivationSwithSpeedAndTpsConditions();
|
|
}
|
|
}
|
|
|
|
void LaunchTestBase::configureSatisfiedActivationSwithSpeedAndTpsConditions() {
|
|
getTestEngineConfiguration()
|
|
.configureLaunchActivationMode(ALWAYS_ACTIVE_LAUNCH); // to satisfy activateSwitchCondition
|
|
getTestEngineConfiguration().configureLaunchSpeedThreshold(0); // to satisfy speedCondition
|
|
Sensor::setMockValue(SensorType::DriverThrottleIntent, 1.7); // to satisfy tpsCondition
|
|
}
|