This commit is contained in:
Matthew Kennedy 2020-07-19 15:05:31 -07:00 committed by GitHub
parent 1c33247b49
commit d6464fffe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -40,7 +40,7 @@ TEST_F(SensorConverted, TestValid) {
EXPECT_FALSE(s.Valid);
}
dut.postRawValue(25, 0);
dut.postRawValue(25, getTimeNowNt());
// Should be valid, with a value of 25*2 = 50
{

View File

@ -9,13 +9,11 @@ struct MockSensor final : public StoredValueSensor
{
}
void set(float value)
{
setValidValue(value, 0);
void set(float value) {
setValidValue(value, getTimeNowNt());
}
void invalidate()
{
void invalidate() {
StoredValueSensor::invalidate();
}

View File

@ -9,6 +9,7 @@ TESTS_SRC_CPP = \
tests/ignition_injection/injection_mode_transition.cpp \
tests/ignition_injection/test_startOfCrankingPrimingPulse.cpp \
tests/ignition_injection/test_miata_na6_real_cranking.cpp \
tests/ignition_injection/test_multispark.cpp \
tests/ignition_injection/test_ignition_scheduling.cpp \
tests/ignition_injection/test_fuelCut.cpp \
tests/test_util.cpp \
@ -37,7 +38,6 @@ TESTS_SRC_CPP = \
tests/test_accel_enrichment.cpp \
tests/test_tacho.cpp \
tests/test_gpiochip.cpp \
tests/ignition_injection/test_multispark.cpp \
tests/test_deadband.cpp \
tests/sensor/basic_sensor.cpp \
tests/sensor/func_sensor.cpp \