Lines Matching refs:zone
62 int64_t zone = 1; in TEST() local
83 DbusPidZone p(zone, minThermalOutput, failSafePercent, cycleTime, m, in TEST()
120 zone = std::make_unique<DbusPidZone>( in PidZoneTest()
150 std::unique_ptr<DbusPidZone> zone; member in pid_control::__anon416c5d230111::PidZoneTest
157 EXPECT_EQ(zoneId, zone->getZoneID()); in TEST_F()
164 EXPECT_FALSE(zone->getManualMode()); in TEST_F()
166 zone->setManualMode(true); in TEST_F()
167 EXPECT_TRUE(zone->getManualMode()); in TEST_F()
187 zone->addPidControlProcess(sensorname, sensorType, setpoint, in TEST_F()
189 EXPECT_TRUE(zone->isPidProcessEnabled(sensorname)); in TEST_F()
198 std::make_unique<ControllerMock>("fan1", zone.get()); in TEST_F()
205 zone->addFanPID(std::move(tpid)); in TEST_F()
212 EXPECT_FALSE(zone->getRedundantWrite()); in TEST_F()
215 zone->setManualMode(true); in TEST_F()
216 zone->setManualMode(false); in TEST_F()
217 EXPECT_TRUE(zone->getRedundantWrite()); in TEST_F()
220 zone->processFans(); in TEST_F()
221 EXPECT_FALSE(zone->getRedundantWrite()); in TEST_F()
244 zone->addPidControlProcess(sensorname, sensorType, setpoint, in TEST_F()
253 zone->addSetPoint(v, sensorname); in TEST_F()
257 zone->determineMaxSetPointRequest(); in TEST_F()
258 EXPECT_EQ(5000, zone->getMaxSetPointRequest()); in TEST_F()
261 zone->clearSetPoints(); in TEST_F()
264 zone->determineMaxSetPointRequest(); in TEST_F()
265 EXPECT_EQ(zone->getMinThermalSetPoint(), zone->getMaxSetPointRequest()); in TEST_F()
288 zone->addPidControlProcess(sensorname, sensorType, setpoint, in TEST_F()
295 zone->addSetPoint(v, sensorname); in TEST_F()
299 zone->determineMaxSetPointRequest(); in TEST_F()
302 EXPECT_EQ(zone->getMinThermalSetPoint(), zone->getMaxSetPointRequest()); in TEST_F()
316 zone->addPidFailSafePercent(input1, values[0]); in TEST_F()
317 zone->addPidFailSafePercent(input2, values[1]); in TEST_F()
318 zone->addPidFailSafePercent(input3, values[2]); in TEST_F()
320 zone->markSensorMissing("temp1"); in TEST_F()
322 EXPECT_EQ(failSafePercent, zone->getFailSafePercent()); in TEST_F()
335 zone->addPidFailSafePercent(input1, values[0]); in TEST_F()
336 zone->addPidFailSafePercent(input2, values[1]); in TEST_F()
337 zone->addPidFailSafePercent(input3, values[2]); in TEST_F()
339 zone->markSensorMissing("temp1"); in TEST_F()
340 zone->markSensorMissing("temp2"); in TEST_F()
341 zone->markSensorMissing("temp3"); in TEST_F()
343 EXPECT_EQ(80, zone->getFailSafePercent()); in TEST_F()
374 zone->addThermalInput(name1, false); in TEST_F()
375 zone->addThermalInput(name2, false); in TEST_F()
378 zone->initializeCache(); in TEST_F()
381 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
394 zone->updateSensors(); in TEST_F()
397 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
399 EXPECT_EQ(r1.value, zone->getCachedValue(name1)); in TEST_F()
400 EXPECT_EQ(r2.value, zone->getCachedValue(name2)); in TEST_F()
430 zone->addFanInput(name1, false); in TEST_F()
431 zone->addFanInput(name2, false); in TEST_F()
434 zone->initializeCache(); in TEST_F()
448 zone->updateFanTelemetry(); in TEST_F()
450 EXPECT_EQ(r1.value, zone->getCachedValue(name1)); in TEST_F()
451 EXPECT_EQ(r2.value, zone->getCachedValue(name2)); in TEST_F()
481 zone->addThermalInput(name1, false); in TEST_F()
482 zone->addThermalInput(name2, false); in TEST_F()
485 zone->initializeCache(); in TEST_F()
488 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
500 zone->updateSensors(); in TEST_F()
501 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
514 zone->updateSensors(); in TEST_F()
515 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
548 zone->addThermalInput(name1, true); in TEST_F()
549 zone->addThermalInput(name2, false); in TEST_F()
552 zone->initializeCache(); in TEST_F()
555 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
567 zone->updateSensors(); in TEST_F()
571 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
578 zone->updateSensors(); in TEST_F()
581 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
591 zone->updateSensors(); in TEST_F()
595 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
604 zone->updateSensors(); in TEST_F()
608 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
615 zone->updateSensors(); in TEST_F()
618 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
648 zone->addFanInput(name1, false); in TEST_F()
649 zone->addFanInput(name2, false); in TEST_F()
652 zone->initializeCache(); in TEST_F()
655 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
669 zone->updateFanTelemetry(); in TEST_F()
672 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
674 EXPECT_EQ(r1.value, zone->getCachedValue(name1)); in TEST_F()
675 EXPECT_EQ(r2.value, zone->getCachedValue(name2)); in TEST_F()
705 zone->addFanInput(name1, false); in TEST_F()
706 zone->addFanInput(name2, false); in TEST_F()
709 zone->initializeCache(); in TEST_F()
712 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
726 zone->updateFanTelemetry(); in TEST_F()
729 EXPECT_FALSE(zone->getFailSafeMode()); in TEST_F()
737 zone->updateFanTelemetry(); in TEST_F()
738 EXPECT_TRUE(zone->getFailSafeMode()); in TEST_F()
760 zone->addThermalInput(name1, false); in TEST_F()
763 EXPECT_EQ(mgr.getSensor(name1), zone->getSensor(name1)); in TEST_F()
772 std::make_unique<ControllerMock>("thermal1", zone.get()); in TEST_F()
779 zone->addThermalPID(std::move(tpid)); in TEST_F()
787 zone->processThermals(); in TEST_F()
796 std::make_unique<ControllerMock>("fan1", zone.get()); in TEST_F()
803 zone->addFanPID(std::move(tpid)); in TEST_F()
810 zone->processFans(); in TEST_F()
831 zone->manual(true); in TEST_F()
832 EXPECT_TRUE(zone->getManualMode()); in TEST_F()
844 EXPECT_EQ(zone->failSafe(), zone->getFailSafeMode()); in TEST_F()