Home
last modified time | relevance | path

Searched refs:mMockWatchdogServiceHelper (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/cpp/watchdog/server/tests/
DPackageInfoResolverTest.cpp151 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
153 mPackageInfoResolverPeer->initWatchdogServiceHelper(mMockWatchdogServiceHelper)); in SetUp()
159 mMockWatchdogServiceHelper.clear(); in TearDown()
164 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::PackageInfoResolverTest
195 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
255 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(true)); in TEST_F()
256 EXPECT_CALL(*mMockWatchdogServiceHelper, in TEST_F()
282 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
303 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(false)); in TEST_F()
304 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
[all …]
DIoOveruseMonitorTest.cpp216 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
221 mIoOveruseMonitor = sp<IoOveruseMonitor>::make(mMockWatchdogServiceHelper); in SetUp()
229 mMockWatchdogServiceHelper.clear(); in TearDown()
300 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::IoOveruseMonitorTest
338 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
352 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
512 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
577 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
603 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
641 EXPECT_CALL(*mMockWatchdogServiceHelper, requestTodayIoUsageStats()) in TEST_F()
[all …]
DWatchdogPerfServiceTest.cpp202 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
207 make(mMockWatchdogServiceHelper, in SetUp()
224 mMockWatchdogServiceHelper.clear(); in TearDown()
302 Mock::VerifyAndClearExpectations(mMockWatchdogServiceHelper.get()); in verifyAndClearExpectations()
317 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::__anon161629df0311::WatchdogPerfServiceTest
392 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
395 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
411 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
412 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
432 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(maxIterations); in TEST_F()
[all …]
DWatchdogInternalHandlerTest.cpp142 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
145 SharedRefBase::make<WatchdogInternalHandler>(mMockWatchdogServiceHelper, in SetUp()
156 mMockWatchdogServiceHelper.clear(); in TearDown()
169 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::WatchdogInternalHandlerTest
206 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
215 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(_)).Times(0); in TEST_F()
229 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
242 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()
254 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)).Times(0); in TEST_F()
265 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()