Home
last modified time | relevance | path

Searched refs:SensorMock (Results 1 – 11 of 11) sorted by relevance

/openbmc/phosphor-pid-control/test/
H A Dpid_fancontroller_unittest.cpp171 std::unique_ptr<Sensor> s1 = std::make_unique<SensorMock>("fan0", timeout); in TEST()
172 std::unique_ptr<Sensor> s2 = std::make_unique<SensorMock>("fan1", timeout); in TEST()
174 SensorMock* sm1 = reinterpret_cast<SensorMock*>(s1.get()); in TEST()
175 SensorMock* sm2 = reinterpret_cast<SensorMock*>(s2.get()); in TEST()
210 std::unique_ptr<Sensor> s1 = std::make_unique<SensorMock>("fan0", timeout); in TEST()
211 std::unique_ptr<Sensor> s2 = std::make_unique<SensorMock>("fan1", timeout); in TEST()
213 SensorMock* sm1 = reinterpret_cast<SensorMock*>(s1.get()); in TEST()
214 SensorMock* sm2 = reinterpret_cast<SensorMock*>(s2.get()); in TEST()
253 SensorMock* sm1 = reinterpret_cast<SensorMock*>(s1.get()); in TEST()
293 SensorMock* sm1 = reinterpret_cast<SensorMock*>(s1.get()); in TEST()
[all …]
H A Dpid_zone_unittest.cpp352 SensorMock* sensor_ptr1 = reinterpret_cast<SensorMock*>(sensor1.get()); in TEST_F()
357 SensorMock* sensor_ptr2 = reinterpret_cast<SensorMock*>(sensor2.get()); in TEST_F()
404 SensorMock* sensor_ptr1 = reinterpret_cast<SensorMock*>(sensor1.get()); in TEST_F()
409 SensorMock* sensor_ptr2 = reinterpret_cast<SensorMock*>(sensor2.get()); in TEST_F()
452 SensorMock* sensor_ptr1 = reinterpret_cast<SensorMock*>(sensor1.get()); in TEST_F()
457 SensorMock* sensor_ptr2 = reinterpret_cast<SensorMock*>(sensor2.get()); in TEST_F()
514 SensorMock* sensor_ptr1 = reinterpret_cast<SensorMock*>(sensor1.get()); in TEST_F()
519 SensorMock* sensor_ptr2 = reinterpret_cast<SensorMock*>(sensor2.get()); in TEST_F()
610 SensorMock* sensor_ptr1 = reinterpret_cast<SensorMock*>(sensor1.get()); in TEST_F()
615 SensorMock* sensor_ptr2 = reinterpret_cast<SensorMock*>(sensor2.get()); in TEST_F()
[all …]
H A Dsensor_mock.hpp11 class SensorMock : public Sensor class
14 virtual ~SensorMock() = default;
16 SensorMock(const std::string& name, int64_t timeout) : Sensor(name, timeout) in SensorMock() function in pid_control::SensorMock
H A Dsensor_manager_unittest.cpp57 std::make_unique<SensorMock>(name, timeout); in TEST()
/openbmc/telemetry/tests/src/
H A Dtest_sensor_cache.cpp67 auto sensor1 = sut.makeSensor<NiceMock<SensorMock>>(id<0>().service, in TEST_P()
69 auto sensor2 = sut.makeSensor<NiceMock<SensorMock>>(id<1>().service, in TEST_P()
78 auto sensor1 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
80 auto sensor2 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
89 auto mockId1 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
92 auto mockId2 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
101 auto id = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
105 auto expected = SensorMock::makeId("sensor-service", "sensor-path"); in TEST_F()
H A Dtest_on_change_threshold.cpp17 std::vector<std::shared_ptr<SensorMock>> sensorMocks = {
18 std::make_shared<NiceMock<SensorMock>>(),
19 std::make_shared<NiceMock<SensorMock>>()};
H A Dtest_metric.cpp29 static std::vector<std::shared_ptr<SensorMock>>
32 std::vector<std::shared_ptr<SensorMock>> result; in makeSensorMocks()
36 result.emplace_back(std::make_shared<NiceMock<SensorMock>>()); in makeSensorMocks()
56 std::vector<std::shared_ptr<SensorMock>> sensorMocks = makeSensorMocks(1u);
152 auto sensor = std::make_shared<StrictMock<SensorMock>>(); in TEST_F()
162 .WillByDefault(Return(SensorMock::makeId("service1", "path1"))); in TEST_F()
H A Dtest_discrete_threshold.cpp18 std::vector<std::shared_ptr<SensorMock>> sensorMocks = {
19 std::make_shared<NiceMock<SensorMock>>(),
20 std::make_shared<NiceMock<SensorMock>>()};
H A Dtest_numeric_threshold.cpp17 std::vector<std::shared_ptr<SensorMock>> sensorMocks = {
18 std::make_shared<NiceMock<SensorMock>>(),
19 std::make_shared<NiceMock<SensorMock>>()};
H A Dtest_trigger.cpp93 SensorMock::makeSensorMocks(params.sensors())); in makeTrigger()
/openbmc/telemetry/tests/src/mocks/
H A Dsensor_mock.hpp9 class SensorMock : public interfaces::Sensor class
12 explicit SensorMock() in SensorMock() function in SensorMock
17 explicit SensorMock(Id sensorId) : mockSensorId(sensorId) in SensorMock() function in SensorMock
31 std::vector<std::shared_ptr<NiceMock<SensorMock>>> result; in makeSensorMocks()
35 result.emplace_back(std::make_shared<NiceMock<SensorMock>>()); in makeSensorMocks()