Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4f70d1b7
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看板
提交
4f70d1b7
编写于
3月 29, 2021
作者:
O
openharmony_ci
提交者:
Gitee
3月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
!81 【轻量级 PR】:解除对内核的依赖_part3
Merge pull request !81 from zhouhouxin/N/A
上级
41476310
2da109eb
变更
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
浏览文件 @
4f70d1b7
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
#include <string.h>
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "hctest.h"
#include "hctest.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/featureapi_func_test.c
浏览文件 @
4f70d1b7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
#include
<los_base.h>
#include
"cmsis_os.h"
#include "hctest.h"
#include "hctest.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/iunknown_func_test.c
浏览文件 @
4f70d1b7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
#include
<los_base.h>
#include
"cmsis_os.h"
#include <ohos_errno.h>
#include <ohos_errno.h>
#include "hctest.h"
#include "hctest.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
...
...
distributed_schedule_lite/samgr_hal/src/sendrequest_func_test.c
浏览文件 @
4f70d1b7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "securec.h"
#include "securec.h"
#include "hctest.h"
#include "hctest.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
...
@@ -396,7 +396,7 @@ LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
...
@@ -396,7 +396,7 @@ LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
static
BOOL
SendRequestTestSuiteSetUp
(
void
)
static
BOOL
SendRequestTestSuiteSetUp
(
void
)
{
{
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -463,7 +463,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0010, Function | MediumTest
...
@@ -463,7 +463,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0010, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
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
(
feature
->
featureCalledCount
==
1
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
...
@@ -500,7 +500,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0020, Function | MediumTest
...
@@ -500,7 +500,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0020, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
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
(
feature
->
featureCalledCount
==
1
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
TEST_ASSERT_EQUAL_INT
(
strcmp
(
feature
->
latestRequest
,
body
),
0
);
...
@@ -558,7 +558,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0040, Function | MediumTest
...
@@ -558,7 +558,7 @@ LITE_TEST_CASE(SendRequestTestSuite, testSendRequest0040, Function | MediumTest
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
int32
result
=
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
TEST_ASSERT_EQUAL_INT
(
result
==
0
,
TRUE
);
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
(
feature
->
featureCalledCount
==
1
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
...
...
distributed_schedule_lite/samgr_hal/src/sendresponse_func_test.c
浏览文件 @
4f70d1b7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include
<los_base.h>
#include
"cmsis_os.h"
#include "securec.h"
#include "securec.h"
#include "hctest.h"
#include "hctest.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
...
@@ -338,7 +338,7 @@ LITE_TEST_SUIT(test, samgr, SendResponseTestSuite);
...
@@ -338,7 +338,7 @@ LITE_TEST_SUIT(test, samgr, SendResponseTestSuite);
static
BOOL
SendResponseTestSuiteSetUp
(
void
)
static
BOOL
SendResponseTestSuiteSetUp
(
void
)
{
{
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -374,7 +374,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0010, Function | MediumTes
...
@@ -374,7 +374,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0010, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
}
}
...
@@ -406,7 +406,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0020, Function | MediumTes
...
@@ -406,7 +406,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0020, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
}
}
...
@@ -438,7 +438,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0030, Function | MediumTes
...
@@ -438,7 +438,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponse0030, Function | MediumTes
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandler
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandler
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
}
}
...
@@ -471,7 +471,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0010, Function |
...
@@ -471,7 +471,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0010, Function |
feature
->
featureStatus
=
FALSE
;
feature
->
featureStatus
=
FALSE
;
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
DemoHandlerAndCheck
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
TRUE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
...
@@ -504,7 +504,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0020, Function |
...
@@ -504,7 +504,7 @@ LITE_TEST_CASE(SendResponseTestSuite, testSendResponseByIdentity0020, Function |
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
DemoFeature
*
feature
=
GET_OBJECT
(
iUnknown
,
DemoFeature
,
iUnknown
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
demoApi
->
SAMGR_SendRequestProxy
(
&
feature
->
identity
,
&
request
,
NULL
);
LOS_Msleep
(
OPER_INTERVAL
);
osDelay
(
OPER_INTERVAL
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
TEST_ASSERT_EQUAL_INT
(
feature
->
featureStatus
==
FALSE
,
TRUE
);
ReleaseIUnknown
(
demoApi
);
ReleaseIUnknown
(
demoApi
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录