Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/stable_server/tests/
DPackageInfoResolverTest.cpp149 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
151 mPackageInfoResolverPeer->initWatchdogServiceHelper(mMockWatchdogServiceHelper)); in SetUp()
157 mMockWatchdogServiceHelper.clear(); in TearDown()
162 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::PackageInfoResolverTest
193 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
253 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(true)); in TEST_F()
254 EXPECT_CALL(*mMockWatchdogServiceHelper, in TEST_F()
280 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
301 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(false)); in TEST_F()
302 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.cpp237 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
242 make(mMockWatchdogServiceHelper, in SetUp()
259 mMockWatchdogServiceHelper.clear(); in TearDown()
337 Mock::VerifyAndClearExpectations(mMockWatchdogServiceHelper.get()); in verifyAndClearExpectations()
362 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::__anon265065af0311::WatchdogPerfServiceTest
437 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
440 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
456 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
457 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
477 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(maxIterations); in TEST_F()
[all …]
DWatchdogInternalHandlerTest.cpp143 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
146 SharedRefBase::make<WatchdogInternalHandler>(mMockWatchdogServiceHelper, in SetUp()
157 mMockWatchdogServiceHelper.clear(); in TearDown()
170 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::WatchdogInternalHandlerTest
268 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
277 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(_)).Times(0); in TEST_F()
291 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
304 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()
316 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)).Times(0); in TEST_F()
327 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()
/packages/services/Car/cpp/watchdog/server/tests/
DPackageInfoResolverTest.cpp149 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
151 mPackageInfoResolverPeer->initWatchdogServiceHelper(mMockWatchdogServiceHelper)); in SetUp()
157 mMockWatchdogServiceHelper.clear(); in TearDown()
162 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::PackageInfoResolverTest
193 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
253 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(true)); in TEST_F()
254 EXPECT_CALL(*mMockWatchdogServiceHelper, in TEST_F()
280 EXPECT_CALL(*mMockWatchdogServiceHelper, getPackageInfosForUids(_, _, _)).Times(0); in TEST_F()
301 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).WillOnce(Return(false)); in TEST_F()
302 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.cpp237 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
242 make(mMockWatchdogServiceHelper, in SetUp()
259 mMockWatchdogServiceHelper.clear(); in TearDown()
337 Mock::VerifyAndClearExpectations(mMockWatchdogServiceHelper.get()); in verifyAndClearExpectations()
362 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::__anone67c11d50311::WatchdogPerfServiceTest
437 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
440 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
456 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(1); in TEST_F()
457 EXPECT_CALL(*mMockWatchdogServiceHelper, onLatestResourceStats(_)).Times(0); in TEST_F()
477 EXPECT_CALL(*mMockWatchdogServiceHelper, isServiceConnected()).Times(maxIterations); in TEST_F()
[all …]
DWatchdogInternalHandlerTest.cpp143 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
146 SharedRefBase::make<WatchdogInternalHandler>(mMockWatchdogServiceHelper, in SetUp()
157 mMockWatchdogServiceHelper.clear(); in TearDown()
170 sp<MockWatchdogServiceHelper> mMockWatchdogServiceHelper; member in android::automotive::watchdog::WatchdogInternalHandlerTest
268 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
277 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(_)).Times(0); in TEST_F()
291 EXPECT_CALL(*mMockWatchdogServiceHelper, registerService(service)) in TEST_F()
304 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()
316 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)).Times(0); in TEST_F()
327 EXPECT_CALL(*mMockWatchdogServiceHelper, unregisterService(service)) in TEST_F()