Lines Matching refs:_

99 using ::testing::_;
140 EXPECT_CALL(*mock, SetProperty(_, _)).Times(AnyNumber()); in SetUp()
141 EXPECT_CALL(*mock, ReadFileToString(_, _, _)).Times(AnyNumber()); in SetUp()
142 EXPECT_CALL(*mock, GetIntProperty(_, _, _, _)).Times(AnyNumber()); in SetUp()
143 EXPECT_CALL(*mock, GetBoolProperty(_, _)).Times(AnyNumber()); in SetUp()
144 EXPECT_CALL(*mock, WriteStringToFile(_, _, _)).Times(AnyNumber()); in SetUp()
146 ON_CALL(*mock, ReadFileToString(_, _, _)) in SetUp()
149 ON_CALL(*mock, WriteStringToFile(_, _, _)).WillByDefault(Return(true)); in SetUp()
160 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStart, _, _, _)).WillByDefault(Return(0)); in enableDefender()
161 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStop, _, _, _)).WillByDefault(Return(100)); in enableDefender()
162 ON_CALL(*mock, GetBoolProperty(kPropBatteryDefenderDisable, _)).WillByDefault(Return(false)); in enableDefender()
164 ON_CALL(*mock, GetBoolProperty(kPropBatteryDefenderCtrlEnable, _)).WillByDefault(Return(true)); in enableDefender()
168 ON_CALL(*mock, ReadFileToString(kPathWiredChargerPresent, _, _)) in usbPresent()
173 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerPresent, _, _)) in wirelessPresent()
178 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerPresent, _, _)) in wirelessNotPresent()
188 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in defaultThresholds()
191 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlActivateTime, _, _, _)) in defaultThresholds()
193 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlResumeTime, _, _, _)) in defaultThresholds()
196 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStartSOC, _, _, _)) in defaultThresholds()
198 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStopSOC, _, _, _)) in defaultThresholds()
201 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlTriggerSOC, _, _, _)) in defaultThresholds()
210 ON_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in initTo1000sConnectedCapacityReached()
215 ON_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in initToActive()
236 EXPECT_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStart, _, _, _)).WillOnce(Return(30)); in TEST_F()
237 EXPECT_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStop, _, _, _)).WillOnce(Return(35)); in TEST_F()
247 EXPECT_CALL(*mock, GetBoolProperty(kPropBatteryDefenderDisable, _)).WillOnce(Return(true)); in TEST_F()
260 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
275 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
283 kPathPersistChargerPresentTime, _)); in TEST_F()
295 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
329 kPathPersistChargerPresentTime, _)); in TEST_F()
336 kPathPersistChargerPresentTime, _)); in TEST_F()
355 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStartLevel, _)); in TEST_F()
356 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(80), kPathStopLevel, _)); in TEST_F()
370 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStartLevel, _)); in TEST_F()
371 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(80), kPathStopLevel, _)); in TEST_F()
380 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in TEST_F()
382 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlActivateTime, _, _, _)) in TEST_F()
384 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlResumeTime, _, _, _)) in TEST_F()
388 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStartSOC, _, _, _)) in TEST_F()
390 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStopSOC, _, _, _)) in TEST_F()
395 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(50), kPathStartLevel, _)); in TEST_F()
396 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(60), kPathStopLevel, _)); in TEST_F()
405 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in TEST_F()
407 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlActivateTime, _, _, _)) in TEST_F()
409 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlResumeTime, _, _, _)) in TEST_F()
413 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStartSOC, _, _, _)) in TEST_F()
415 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStopSOC, _, _, _)) in TEST_F()
420 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStartLevel, _)); in TEST_F()
421 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(80), kPathStopLevel, _)); in TEST_F()
436 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(1000), kPathPersistChargerPresentTime, _)); in TEST_F()
442 kPathPersistChargerPresentTime, _)); in TEST_F()
461 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(0), kPathPersistChargerPresentTime, _)); in TEST_F()
481 kPathPersistChargerPresentTime, _)); in TEST_F()
490 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in TEST_F()
492 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlActivateTime, _, _, _)) in TEST_F()
496 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlResumeTime, _, _, _)) in TEST_F()
504 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(1000), kPathPersistChargerPresentTime, _)); in TEST_F()
510 kPathPersistChargerPresentTime, _)); in TEST_F()
518 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(0), kPathPersistChargerPresentTime, _)); in TEST_F()