Home
last modified time | relevance | path

Searched refs:sensorMocks (Results 1 – 4 of 4) sorted by relevance

/openbmc/telemetry/tests/src/
H A Dtest_metric.cpp47 sensorMocks), in makeSut()
67 EXPECT_CALL(*sensorMocks.front(), in TEST_F()
79 EXPECT_CALL(*sensorMocks.front(), in TEST_F()
98 sut->sensorUpdated(*sensorMocks.front(), Milliseconds{18}, 31.2); in TEST_F()
112 sut->sensorUpdated(*sensorMocks.front(), Milliseconds{18}, 31.2); in TEST_F()
118 sut->sensorUpdated(*sensorMocks.front(), Milliseconds{180}, 11.); in TEST_F()
139 sut->sensorUpdated(*sensorMocks.front(), Milliseconds{18}, 31.2); in TEST_F()
161 ON_CALL(*sensorMocks.front(), id()) in TEST_F()
163 ON_CALL(*sensorMocks.front(), metadata()) in TEST_F()
392 sensorMocks = makeSensorMocks(7u); in TestMetricWithMultipleSensors()
[all …]
H A Dtest_on_change_threshold.cpp17 std::vector<std::shared_ptr<SensorMock>> sensorMocks = { member in TestOnChangeThreshold
34 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
36 ON_CALL(*sensorMocks.at(idx), getName()) in SetUp()
43 sensorMocks), in SetUp()
50 for (auto& sensor : sensorMocks) in TEST_F()
77 sut->sensorUpdated(*sensorMocks.front(), 0ms, 42); in TEST_F()
150 sut->sensorUpdated(*sensorMocks.front(), 0ms, 42); in TEST_P()
154 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in TEST_P()
H A Dtest_discrete_threshold.cpp18 std::vector<std::shared_ptr<SensorMock>> sensorMocks = { member in TestDiscreteThreshold
41 sensorMocks), in makeThreshold()
48 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
50 ON_CALL(*sensorMocks.at(idx), getName()) in SetUp()
60 for (auto& sensor : sensorMocks) in TEST_F()
219 timestamps(sensorMocks.size()); in testBodySensorIsUpdatedMultipleTimes()
242 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in testBodySensorIsUpdatedMultipleTimes()
259 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
261 ON_CALL(*sensorMocks.at(idx), getName()) in SetUp()
294 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
[all …]
H A Dtest_numeric_threshold.cpp17 std::vector<std::shared_ptr<SensorMock>> sensorMocks = { member in TestNumericThreshold
39 sensorMocks), in makeThreshold()
46 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
48 ON_CALL(*sensorMocks.at(idx), getName()) in SetUp()
59 for (auto& sensor : sensorMocks) in TEST_F()
195 timestamps(sensorMocks.size()); in testBodySensorIsUpdatedMultipleTimes()
218 sut->sensorUpdated(*sensorMocks[idx], 0ms, value); in testBodySensorIsUpdatedMultipleTimes()
244 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
246 ON_CALL(*sensorMocks.at(idx), getName()) in SetUp()
368 for (size_t idx = 0; idx < sensorMocks.size(); idx++) in SetUp()
[all …]