Lines Matching refs:_
97 using ::testing::_;
112 EXPECT_CALL(*mock, SetProperty(_, _)).Times(AnyNumber()); in SetUp()
113 EXPECT_CALL(*mock, ReadFileToString(_, _, _)).Times(AnyNumber()); in SetUp()
114 EXPECT_CALL(*mock, GetIntProperty(_, _, _, _)).Times(AnyNumber()); in SetUp()
115 EXPECT_CALL(*mock, GetBoolProperty(_, _)).Times(AnyNumber()); in SetUp()
116 EXPECT_CALL(*mock, WriteStringToFile(_, _, _)).Times(AnyNumber()); in SetUp()
118 ON_CALL(*mock, ReadFileToString(_, _, _)) in SetUp()
121 ON_CALL(*mock, WriteStringToFile(_, _, _)).WillByDefault(Return(true)); in SetUp()
146 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStart, _, _, _)).WillByDefault(Return(0)); in enableDefender()
147 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStop, _, _, _)).WillByDefault(Return(100)); in enableDefender()
148 ON_CALL(*mock, GetBoolProperty(kPropBatteryDefenderDisable, _)).WillByDefault(Return(false)); in enableDefender()
149 ON_CALL(*mock, GetBoolProperty(kPropDebuggable, _)).WillByDefault(Return(true)); in enableDefender()
153 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerOnline, _, _)) in powerAvailable()
155 ON_CALL(*mock, ReadFileToString(kPathWiredChargerPresent, _, _)) in powerAvailable()
160 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in defaultThreshold()
165 ON_CALL(*mock, ReadFileToString(kPathBatteryCapacity, _, _)) in capacityReached()
170 ON_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in initToConnectedCapacityReached()
175 ON_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in initToActive()
196 EXPECT_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStart, _, _, _)).WillOnce(Return(30)); in TEST_F()
197 EXPECT_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStop, _, _, _)).WillOnce(Return(35)); in TEST_F()
207 EXPECT_CALL(*mock, GetBoolProperty(kPropDebuggable, _)).WillOnce(Return(false)); in TEST_F()
217 EXPECT_CALL(*mock, GetBoolProperty(kPropBatteryDefenderDisable, _)).WillOnce(Return(true)); in TEST_F()
230 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
246 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
254 kPathPersistChargerPresentTime, _)); in TEST_F()
268 EXPECT_CALL(*mock, ReadFileToString(kPathPersistChargerPresentTime, _, _)) in TEST_F()
293 EXPECT_CALL(*mock, ReadFileToString(kPathBatteryCapacity, _, _)) in TEST_F()
300 kPathPersistChargerPresentTime, _)); in TEST_F()
306 kPathPersistChargerPresentTime, _)); in TEST_F()
327 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(60), kPathStartLevel, _)); in TEST_F()
328 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStopLevel, _)); in TEST_F()
344 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(60), kPathStartLevel, _)); in TEST_F()
345 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStopLevel, _)); in TEST_F()
360 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerOnline, _, _)) in TEST_F()
363 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(1000), kPathPersistChargerPresentTime, _)); in TEST_F()
368 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(1060), kPathPersistChargerPresentTime, _)); in TEST_F()
374 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerOnline, _, _)) in TEST_F()
387 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(0), kPathPersistChargerPresentTime, _)); in TEST_F()
393 ON_CALL(*mock, ReadFileToString(kPathWirelessChargerOnline, _, _)) in TEST_F()
407 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(60), kPathPersistChargerPresentTime, _)); in TEST_F()