diff --git a/aafwk_lite/ability_posix/BUILD.gn b/aafwk_lite/ability_posix/BUILD.gn index 9f0d1c4e795db5d579463e32066aaac7e0e18d36..b9e235825a14c7fc401dc00d37009ff960fdc1ce 100755 --- a/aafwk_lite/ability_posix/BUILD.gn +++ b/aafwk_lite/ability_posix/BUILD.gn @@ -26,7 +26,7 @@ hcpptest_suite("ActsAbilityMgrTest") { "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite", "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", - "//foundation/communication/ipc_lite:liteipc_adapter", + "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//foundation/distributedschedule/samgr_lite/samgr:samgr", "//utils/native/lite/kv_store:kv_store", ] diff --git a/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp b/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp index 98cc97673ca3a622dd83e156ec60a63afafe9e40..3143961b1d8e74c8d10c98011f18e1cc2fa0d4a3 100755 --- a/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp +++ b/aafwk_lite/ability_posix/src/AbilityMgrTest.cpp @@ -85,22 +85,24 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS printf("ipc callback success \n"); // push data IpcIo request; - char data[IPC_IO_DATA_MAX]; - IpcIoInit(&request, data, IPC_IO_DATA_MAX, 0); + char data[MAX_IO_SIZE]; + IpcIoInit(&request, data, MAX_IO_SIZE, 0); int32_t data1 = 10; int32_t data2 = 6; - IpcIoPushInt32(&request, data1); - IpcIoPushInt32(&request, data2); + WriteInt32(&request, data1); + WriteInt32(&request, data2); // send and getReply IpcIo reply = {nullptr}; uintptr_t ptr = 0; - Transact(NULL, *serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); - g_errorCode = IpcIoPopInt32(&reply); + MessageOption option; + MessageOptionInit(&option); + SendRequest(*serviceSid, 0, &request, &reply, option, &ptr); + ReadInt32(&reply, &g_errorCode); if (g_errorCode != 0) { printf("execute add method, result is %d\n", g_errorCode); } if (ptr != 0) { - FreeBuffer(nullptr, reinterpret_cast(ptr)); + FreeBuffer(reinterpret_cast(ptr)); } sem_post(&g_sem); } @@ -654,7 +656,7 @@ HWTEST_F(AbilityMgrTest, testDisConnectAbility, Function | MediumTest | Level1) sem_timedwait(&g_sem, &ts); printf("sem exit \n"); printf("ret of connect is %d \n ", result); - if (g_errorCode == 16) { + if (result == 0) { result = DisconnectAbility(&g_conn); sleep(2); EXPECT_EQ(result, 0); @@ -709,10 +711,10 @@ HWTEST_F(AbilityMgrTest, testDisConnectAbilityIllegal, Function | MediumTest | L ts.tv_sec += WAIT_TIMEOUT; sem_timedwait(&g_sem, &ts); printf("sem exit \n"); - printf("ret is of connect is %d \n ", g_errorCode); + printf("ret of connect is %d \n ", result); EXPECT_EQ(result, 0); g_errorCode = DisconnectAbility(nullptr); - int expect = -10; + int expect = -2; EXPECT_EQ(g_errorCode, expect); printf("ret of disconnect is %d \n ", g_errorCode); ClearElement(&element); diff --git a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp index be9bcaa0eb7fe58bd5f66a0ebe4ebef4132cf1a8..628105cafb4e24aa05cca3df764b3e5358190e8e 100755 --- a/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp +++ b/aafwk_lite/ability_posix/src/AbilityMgrTest2.cpp @@ -89,13 +89,13 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS IpcIoInit(&request, data, IPC_IO_DATA_MAX, 0); int32_t data1 = 10; int32_t data2 = 6; - IpcIoPushInt32(&request, data1); - IpcIoPushInt32(&request, data2); + WreitInt32(&request, data1); + WriteInt32(&request, data2); // send and getReply IpcIo reply = {nullptr}; uintptr_t ptr = 0; Transact(NULL, *serviceSid, 0, &request, &reply, LITEIPC_FLAG_DEFAULT, &ptr); - g_errorCode = IpcIoPopInt32(&reply); + ReadInt32(&reply, &g_errorCode); if (g_errorCode != 0) { printf("execute add method, result is %d\n", g_errorCode); } diff --git a/appexecfwk_lite/appexecfwk_posix/BUILD.gn b/appexecfwk_lite/appexecfwk_posix/BUILD.gn index 5066813bc7fd457882b0f61dbd7037e4ddc384ce..afaa8b26656be3760872437cbbda1c63a4469567 100755 --- a/appexecfwk_lite/appexecfwk_posix/BUILD.gn +++ b/appexecfwk_lite/appexecfwk_posix/BUILD.gn @@ -36,7 +36,7 @@ hcpptest_suite("ActsBundleMgrTest") { deps = [ "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", - "//foundation/communication/ipc_lite:liteipc_adapter", + "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//foundation/distributedschedule/samgr_lite/samgr:samgr", ] diff --git a/build_lite/BUILD.gn b/build_lite/BUILD.gn index 1eda1e8747afe2318975d9686b31bbf95ce16393..2a736bbf5b9d7fb523b112e39593ef3295e86458 100644 --- a/build_lite/BUILD.gn +++ b/build_lite/BUILD.gn @@ -75,19 +75,19 @@ lite_component("acts_component") { ] } else if (ohos_kernel_type == "linux") { all_features += [ - #"//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest", - #"//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest", - #"//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest", - #"//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest", - #"//test/xts/acts/security_lite:securitytest", + "//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest", + "//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest", + "//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest", + "//test/xts/acts/communication_lite/lwip_posix:ActsLwipTest", + "//test/xts/acts/security_lite:securitytest", #"//test/xts/acts/multimedia_lite/camera_lite_posix/camera_native:ActsMediaCameraTest", #"//test/xts/acts/multimedia_lite/media_lite_posix/player_native:ActsMediaPlayerTest", #"//test/xts/acts/multimedia_lite/media_lite_posix/recorder_native:ActsMediaRecorderTest", "//test/xts/acts/distributed_schedule_lite/system_ability_manager_posix:ActsSamgrTest", - #"//test/xts/acts/appexecfwk_lite/appexecfwk_posix:ActsBundleMgrTest", - #"//test/xts/acts/aafwk_lite/ability_posix:ActsAbilityMgrTest", - #"//test/xts/acts/ai_lite/ai_engine_posix/base:ActsAiEngineTest", + "//test/xts/acts/appexecfwk_lite/appexecfwk_posix:ActsBundleMgrTest", + "//test/xts/acts/aafwk_lite/ability_posix:ActsAbilityMgrTest", + "//test/xts/acts/ai_lite/ai_engine_posix/base:ActsAiEngineTest", ] } } diff --git a/distributed_schedule_lite/distributed_schedule_posix/BUILD.gn b/distributed_schedule_lite/distributed_schedule_posix/BUILD.gn index b274cca845efde0a442e39d37e33af86b0d1f656..f02fef17af13c192c5e4ac26dc26f1fe66c0153a 100755 --- a/distributed_schedule_lite/distributed_schedule_posix/BUILD.gn +++ b/distributed_schedule_lite/distributed_schedule_posix/BUILD.gn @@ -27,7 +27,7 @@ hcpptest_suite("ActsDMSTest") { "src/utils", "//utils/native/lite/include", "//third_party/bounds_checking_function/include", - "//foundation/communication/ipc_lite/interfaces/kits", + "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry", "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", "//foundation/distributedschedule/dmsfwk_lite/include", diff --git a/distributed_schedule_lite/system_ability_manager_posix/BUILD.gn b/distributed_schedule_lite/system_ability_manager_posix/BUILD.gn index af1b6788135f33633834a528df0b343eea6db2ef..348adc565dbefeb42c322d4757f6ec83cf718885 100755 --- a/distributed_schedule_lite/system_ability_manager_posix/BUILD.gn +++ b/distributed_schedule_lite/system_ability_manager_posix/BUILD.gn @@ -76,7 +76,7 @@ hcpptest_suite("ActsSamgrTest") { ] deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", - "//foundation/communication/ipc_lite:liteipc_adapter", + "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//foundation/distributedschedule/samgr_lite/communication/broadcast:broadcast", "//foundation/distributedschedule/samgr_lite/samgr:samgr", "//third_party/bounds_checking_function:libsec_shared",