Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 25, 2024
1 parent fca72c4 commit c3c7026
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions unit_tests/tests/ignition_injection/test_fuel_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TEST(AirmassModes, AlphaNNormal) {
EXPECT_CALL(veTable, getValue(1200, FloatNear(0.71f, EPS4D)))
.WillOnce(Return(35.0f));

AlphaNAirmass dut(veTable);
AlphaNAirmass dut(&veTable);

// that's 0.71% not 71%
Sensor::setMockValue(SensorType::Tps1, 0.71f);
Expand All @@ -71,7 +71,7 @@ TEST(AirmassModes, AlphaNUseIat) {
EXPECT_CALL(veTable, getValue(1200, FloatNear(0.71f, EPS4D)))
.WillRepeatedly(Return(35.0f));

AlphaNAirmass dut(veTable);
AlphaNAirmass dut(&veTable);

// that's 0.71% not 71%
Sensor::setMockValue(SensorType::Tps1, 0.71f);
Expand Down Expand Up @@ -100,7 +100,7 @@ TEST(AirmassModes, AlphaNFailedTps) {
// Shouldn't get called
StrictMock<MockVp3d> veTable;

AlphaNAirmass dut(veTable);
AlphaNAirmass dut(&veTable);

// explicitly reset the sensor
Sensor::resetMockValue(SensorType::Tps1);
Expand All @@ -121,7 +121,7 @@ TEST(AirmassModes, MafNormal) {
EXPECT_CALL(veTable, getValue(6000, FloatNear(70.9814f, EPS4D)))
.WillOnce(Return(75.0f));

MafAirmass dut(veTable);
MafAirmass dut(&veTable);

auto airmass = dut.getAirmassImpl(200, 6000, false);

Expand Down Expand Up @@ -184,7 +184,7 @@ TEST(AirmassModes, FallbackMap) {

EngineTestHelper eth(engine_type_e::TEST_ENGINE);

SpeedDensityAirmass dut(veTable, mapFallback);
SpeedDensityAirmass dut(&veTable, mapFallback);

// TPS at 20%
Sensor::setMockValue(SensorType::Tps1, 20);
Expand Down

0 comments on commit c3c7026

Please sign in to comment.