提交 b38a5107 编写于 作者: L liubb_0516

add ipc gtest test case

Signed-off-by: Nliubb_0516 <liubeibei8@huawei.com>
上级 8dd77275
......@@ -15,4 +15,9 @@ import("//build/lite/config/component/lite_component.gni")
lite_component("rpc") {
features = [ "ipc:ipc_single" ]
if (ohos_build_type == "debug") {
features += [
"//foundation/communication/ipc/ipc/test/unittest/ipc:ipc_test_gtest",
]
}
}
......@@ -13,7 +13,7 @@
import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("ipc_client") {
......
......@@ -127,7 +127,7 @@ static void AnonymousTest(void)
IpcIo anonymous;
uint8_t anonymousData[IPC_MAX_SIZE];
IpcIoInit(&anonymous, anonymousData, IPC_MAX_SIZE, 1);
WriteRemoteObject(&anonymous, &svc);
WriteRemoteObject(&anonymous, &clientSvc);
IpcIo anonymousreply;
uintptr_t anonymousptr = 0;
......
......@@ -13,7 +13,7 @@
import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("samgr") {
......
......@@ -13,7 +13,7 @@
import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("ipc_server") {
......
......@@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test/unittest/ipc"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test/unittest/ipc"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
unittest("ipc_client") {
......
......@@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test/unittest/ipc"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test/unittest/ipc"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
unittest("samgr") {
......
......@@ -14,7 +14,7 @@
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/test.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test/unittest/ipc"
SUBSYSTEM_DIR = "//foundation/communication/ipc/ipc/test/unittest/ipc"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
unittest("ipc_server") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册