Lines Matching refs:reqHandle
455 int AppSpawnTestHelper::AddDacInfo(AppSpawnReqMsgHandle &reqHandle)
465 return AppSpawnReqMsgSetAppDacInfo(reqHandle, &dacInfo);
468 int AppSpawnTestHelper::AddFdInfo(AppSpawnReqMsgHandle &reqHandle)
475 return AppSpawnReqMsgAddFd(reqHandle, "fdname", fdArg);
480 AppSpawnReqMsgHandle reqHandle = 0;
481 int ret = AppSpawnReqMsgCreate(static_cast<AppSpawnMsgType>(msgType), processName_.c_str(), &reqHandle);
483 APPSPAWN_CHECK_ONLY_EXPER(msgType == MSG_APP_SPAWN || msgType == MSG_SPAWN_NATIVE_PROCESS, return reqHandle);
485 ret = AddFdInfo(reqHandle);
487 ret = AppSpawnReqMsgSetBundleInfo(reqHandle, 100, processName_.c_str()); // 100 test index
489 ret = AddDacInfo(reqHandle);
491 ret = AppSpawnReqMsgSetAppAccessToken(reqHandle, 12345678); // 12345678
495 (void)AppSpawnReqMsgSetFlags(reqHandle, TLV_MSG_FLAGS, defaultMsgFlags_);
498 return reqHandle;
501 ret = AppSpawnReqMsgAddExtInfo(reqHandle, "tlv-name-1",
506 ret = AppSpawnReqMsgAddPermission(reqHandle, permissions_[i]);
510 ret = AppSpawnReqMsgSetAppInternetPermissionInfo(reqHandle, 1, 0);
513 ret = AppSpawnReqMsgSetAppOwnerId(reqHandle, "ohos.permission.FILE_ACCESS_MANAGER");
516 ret = AppSpawnReqMsgAddExtInfo(reqHandle, MSG_EXT_NAME_RENDER_CMD,
519 ret = AppSpawnReqMsgSetAppDomainInfo(reqHandle, 1, defaultApl_.c_str());
521 return reqHandle;
523 AppSpawnReqMsgFree(reqHandle);
547 AppSpawningCtx *AppSpawnTestHelper::GetAppProperty(AppSpawnClientHandle handle, AppSpawnReqMsgHandle reqHandle)
549 AppSpawnReqMsgNode *reqNode = static_cast<AppSpawnReqMsgNode *>(reqHandle);
550 APPSPAWN_CHECK(reqNode != nullptr && reqNode->msg != nullptr, AppSpawnReqMsgFree(reqHandle);
565 AppSpawnReqMsgFree(reqHandle);
577 // delete reqHandle
578 AppSpawnReqMsgFree(reqHandle);