/foundation/ability/ability_runtime/test/moduletest/ipc_ability_scheduler_test/ |
H A D | ipc_ability_scheduler_module_test.cpp | 244 auto mockHandler = [&]() { in HWTEST_F() local 249 EXPECT_CALL(*stub, ScheduleSaveAbilityState()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 276 auto mockHandler = [&](const PacMap& pacMap) { in HWTEST_F() local 281 EXPECT_CALL(*stub, ScheduleRestoreAbilityState(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 312 auto mockHandler = [&](const Uri& uri, const std::string& mime) { in HWTEST_F() local 321 EXPECT_CALL(*stub, GetFileTypes(_, _)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 355 auto mockHandler = [&](const Uri& uri, const std::string& mode) { in HWTEST_F() local 361 EXPECT_CALL(*stub, OpenFile(_, _)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 393 auto mockHandler = [&](const Uri& uri, const NativeRdb::ValuesBucket& vb) { in HWTEST_F() local 399 EXPECT_CALL(*stub, Insert(_, _)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 432 auto mockHandler = [&](const Uri& uri, const NativeRdb::ValuesBucket& vb, HWTEST_F() local 471 auto mockHandler = [&](const Uri& uri, const NativeRdb::DataAbilityPredicates& pred) { HWTEST_F() local 511 auto mockHandler = [&sem, &testResult, testColumns](const Uri& uri, const std::vector<std::string>& columns, HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_ams_mgr_test/ |
H A D | ams_ipc_ams_mgr_module_test.cpp | 151 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 156 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 190 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 195 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 232 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 237 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 271 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 276 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 309 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 314 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/moduletest/common/ams/app_mgr_service_test/ |
H A D | ams_app_mgr_service_module_test.cpp | 262 auto mockHandler = [&](const int32_t recordId) { in HWTEST_F() local 270 EXPECT_CALL(*mockAppMgrServiceInner_, ApplicationForegrounded(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 296 auto mockHandler = [&](const int32_t recordId) { in HWTEST_F() local 304 EXPECT_CALL(*mockAppMgrServiceInner_, ApplicationBackgrounded(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 330 auto mockHandler = [&testResult, testRecordId, &sem](const int32_t recordId) { in HWTEST_F() local 338 EXPECT_CALL(*mockAppMgrServiceInner_, ApplicationTerminated(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 384 auto mockHandler = [testProcessName, testPid, &sem](std::vector<RunningProcessInfo>& runningProcessInfo) { in HWTEST_F() local 394 EXPECT_CALL(*mockAppMgrServiceInner_, GetAllRunningProcesses(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 465 auto mockHandler = [&testResult, testBundleName, &sem]( in HWTEST_F() local 475 EXPECT_CALL(*mockAppMgrServiceInner_, KillApplication(_, _)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 501 auto mockHandler = [&]() { HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_app_mgr_test/ |
H A D | ams_ipc_app_mgr_module_test.cpp | 190 auto mockHandler = [&]() -> sptr<IAmsMgr> { in HWTEST_F() local 195 EXPECT_CALL(*mockMockAppMgr, GetAmsMgr()).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F() 219 auto mockHandler = [&](const std::string& name, int32_t appCloneIndex, int32_t userId) { in HWTEST_F() local 225 EXPECT_CALL(*mockMockAppMgr, ClearUpApplicationData(_, _, _)).WillOnce(Invoke(mockHandler)); in HWTEST_F() 254 auto mockHandler = [&](std::vector<RunningProcessInfo>& result) { in HWTEST_F() local 274 EXPECT_CALL(*mockMockAppMgr, GetAllRunningProcesses(_)).WillOnce(Invoke(mockHandler)); in HWTEST_F()
|
/foundation/ability/ability_runtime/tools/test/unittest/aa/ |
H A D | aa_command_test_test.cpp | 203 auto mockHandler = [](const Want& want, const sptr<IRemoteObject>& observer) -> int { in HWTEST_F() local 216 .WillOnce(Invoke(mockHandler)); in HWTEST_F()
|
/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_app_scheduler_test/ |
H A D | ams_ipc_app_scheduler_module_test.cpp | 285 auto mockHandler = [&](const Configuration& config) { in HWTEST_F() local 290 EXPECT_CALL(*mockAppScheduler, ScheduleConfigurationUpdated(_)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/ |
H A D | bms_bundle_data_mgr_test.cpp | 1702 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); in HWTEST_F() local 1709 extensionDataMgr->handler_ = mockHandler; in HWTEST_F() 1728 if (mockHandler) { in HWTEST_F() 1729 delete static_cast<char*>(mockHandler); in HWTEST_F() 1747 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); in HWTEST_F() local 1754 extensionDataMgr->handler_ = mockHandler; in HWTEST_F() 1769 if (mockHandler) { in HWTEST_F() 1770 delete static_cast<char*>(mockHandler); in HWTEST_F() 1885 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); in HWTEST_F() local 1891 extensionDataMgr->handler_ = mockHandler; in HWTEST_F() 1927 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local 2030 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local 2059 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local 2136 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local 2241 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local 2281 void* mockHandler = static_cast<void*>(malloc(sizeof(char))); HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/moduletest/ipc_ability_mgr_test/ |
H A D | ipc_ability_mgr_module_test.cpp | 412 auto mockHandler = [&](const Uri& uri, bool tryBind, const sptr<IRemoteObject>& callerToken) { in HWTEST_F() local 419 EXPECT_CALL(*mockAbilityMgr, AcquireDataAbility(_, _, _)).Times(1).WillOnce(Invoke(mockHandler)); in HWTEST_F()
|