Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2da109eb
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2da109eb
编写于
3月 27, 2021
作者:
Z
zhouhouxin
提交者:
Gitee
3月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解除对内核的依赖_part3
上级
c002a9af
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
15 deletion
+15
-15
distributed_schedule_lite/samgr_hal/src/feature_func_test.c
distributed_schedule_lite/samgr_hal/src/feature_func_test.c
+1
-1
distributed_schedule_lite/samgr_hal/src/featureapi_func_test.c
...ibuted_schedule_lite/samgr_hal/src/featureapi_func_test.c
+1
-1
distributed_schedule_lite/samgr_hal/src/iunknown_func_test.c
distributed_schedule_lite/samgr_hal/src/iunknown_func_test.c
+1
-1
distributed_schedule_lite/samgr_hal/src/sendrequest_func_test.c
...buted_schedule_lite/samgr_hal/src/sendrequest_func_test.c
+5
-5
distributed_schedule_lite/samgr_hal/src/sendresponse_func_test.c
...uted_schedule_lite/samgr_hal/src/sendresponse_func_test.c
+7
-7
未找到文件。
distributed_schedule_lite/samgr_hal/src/feature_func_test.c
浏览文件 @
2da109eb
...
...
@@ -14,7 +14,7 @@
*/
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "hctest.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/featureapi_func_test.c
浏览文件 @
2da109eb
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
#include
<los_base.h>
#include
"cmsis_os.h"
#include "hctest.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/iunknown_func_test.c
浏览文件 @
2da109eb
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
#include
<los_base.h>
#include
"cmsis_os.h"
#include <ohos_errno.h>
#include "hctest.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/sendrequest_func_test.c
浏览文件 @
2da109eb
...
...
@@ -15,7 +15,7 @@
#include <stdlib.h>
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "securec.h"
#include "hctest.h"
#include "samgr_lite.h"
...
...
@@ -396,7 +396,7 @@ LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
static
BOOL
SendRequestTestSuiteSetUp
(
void
)
{
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
return
TRUE
;
}
...
...
@@ -463,7 +463,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0010, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureCalledCount
==
1
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
...
...
@@ -500,7 +500,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0020, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureCalledCount
==
1
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
...
...
@@ -558,7 +558,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0040, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureCalledCount
==
1
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
...
...
distributed_schedule_lite/samgr_hal/src/sendresponse_func_test.c
浏览文件 @
2da109eb
...
...
@@ -15,7 +15,7 @@
#include <stdlib.h>
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "securec.h"
#include "hctest.h"
#include "samgr_lite.h"
...
...
@@ -338,7 +338,7 @@ LITE_TEST_SUIT(test, samgr, SendResponseTestSuite);
static
BOOL
SendResponseTestSuiteSetUp
(
void
)
{
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
return
TRUE
;
}
...
...
@@ -374,7 +374,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0010, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
}
...
...
@@ -406,7 +406,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0020, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
}
...
...
@@ -438,7 +438,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0030, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandler
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
}
...
...
@@ -471,7 +471,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0010, Function |
feature
->
featureStatus
=
FALSE
;
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
...
...
@@ -504,7 +504,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0020, Function |
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录