Lines Matching +full:a +full:- +full:z

33     ZoneMock z;  in TEST()  local
39 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
46 // A fan controller needs at least one input. in TEST()
48 ZoneMock z; in TEST() local
54 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
62 ZoneMock z; in TEST() local
68 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
71 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(0)); in TEST()
72 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(0)); in TEST()
74 EXPECT_EQ(0.0, p->inputProc()); in TEST()
79 // A sensor value returning sub-zero is ignored as an error. in TEST()
80 ZoneMock z; in TEST() local
86 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
89 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(-1)); in TEST()
90 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(-1)); in TEST()
92 EXPECT_EQ(0.0, p->inputProc()); in TEST()
99 ZoneMock z; in TEST() local
105 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
108 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(10.0)); in TEST()
109 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(30.0)); in TEST()
110 EXPECT_CALL(z, getCachedValue(StrEq("fan2"))).WillOnce(Return(5.0)); in TEST()
112 EXPECT_EQ(5.0, p->inputProc()); in TEST()
122 ZoneMock z; in TEST() local
128 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
134 EXPECT_EQ(FanSpeedDirection::NEUTRAL, fp->getFanDirection()); in TEST()
136 // getMaxSetPointRequest returns a higher value than 0, so the fans should in TEST()
138 EXPECT_CALL(z, getMaxSetPointRequest()).WillOnce(Return(10.0)); in TEST()
139 EXPECT_EQ(10.0, p->setptProc()); in TEST()
140 EXPECT_EQ(FanSpeedDirection::UP, fp->getFanDirection()); in TEST()
142 // getMaxSetPointRequest returns a lower value than 10, so the fans should in TEST()
144 EXPECT_CALL(z, getMaxSetPointRequest()).WillOnce(Return(5.0)); in TEST()
145 EXPECT_EQ(5.0, p->setptProc()); in TEST()
146 EXPECT_EQ(FanSpeedDirection::DOWN, fp->getFanDirection()); in TEST()
150 EXPECT_CALL(z, getMaxSetPointRequest()).WillOnce(Return(5.0)); in TEST()
151 EXPECT_EQ(5.0, p->setptProc()); in TEST()
152 EXPECT_EQ(FanSpeedDirection::NEUTRAL, fp->getFanDirection()); in TEST()
161 ZoneMock z; in TEST() local
167 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
170 EXPECT_CALL(z, getFailSafeMode()).WillOnce(Return(true)); in TEST()
171 EXPECT_CALL(z, getFailSafePercent()).WillOnce(Return(75.0)); in TEST()
180 EXPECT_CALL(z, getRedundantWrite()) in TEST()
183 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST()
185 EXPECT_CALL(z, getSensor(StrEq("fan1"))).WillOnce(Return(s2.get())); in TEST()
188 // This is a fan PID, so calling outputProc will try to write this value in TEST()
193 p->outputProc(50.0); in TEST()
201 ZoneMock z; in TEST() local
207 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
210 EXPECT_CALL(z, getFailSafeMode()).WillOnce(Return(false)); in TEST()
219 EXPECT_CALL(z, getRedundantWrite()) in TEST()
222 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST()
224 EXPECT_CALL(z, getSensor(StrEq("fan1"))).WillOnce(Return(s2.get())); in TEST()
227 // This is a fan PID, so calling outputProc will try to write this value in TEST()
229 p->outputProc(50.0); in TEST()
240 ZoneMock z; in TEST() local
247 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
250 EXPECT_CALL(z, getFailSafeMode()).WillOnce(Return(true)); in TEST()
251 EXPECT_CALL(z, getFailSafePercent()).WillOnce(Return(failsafePWM)); in TEST()
260 EXPECT_CALL(z, getRedundantWrite()).WillOnce(Return(false)); in TEST()
261 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST()
271 // This is a fan PID, so calling outputProc will try to write this value in TEST()
273 p->outputProc(percent); in TEST()
278 /* when a zone indicates that redundant writes are enabled in TEST()
279 * make sure the fan controller honors this by forcing a sensor write in TEST()
281 ZoneMock z; in TEST() local
287 FanController::createFanPid(&z, "fan1", inputs, initial); in TEST()
290 EXPECT_CALL(z, getFailSafeMode()).WillOnce(Return(false)); in TEST()
299 EXPECT_CALL(z, getRedundantWrite()) in TEST()
302 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST()
304 EXPECT_CALL(z, getSensor(StrEq("fan1"))).WillOnce(Return(s2.get())); in TEST()
307 // This is a fan PID, so calling outputProc will try to write this value in TEST()
309 p->outputProc(50.0); in TEST()