Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a891275f
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看板
提交
a891275f
编写于
3月 13, 2021
作者:
J
jiyong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
graphic_lite bugfix and kernel_lite modify
上级
79a0790d
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
66 addition
and
140 deletion
+66
-140
graphic_lite/BUILD.gn
graphic_lite/BUILD.gn
+0
-1
graphic_lite/a/BUILD.gn
graphic_lite/a/BUILD.gn
+11
-1
graphic_lite/a/src/UiInterfaceTest.cpp
graphic_lite/a/src/UiInterfaceTest.cpp
+1
-31
graphic_lite/a/src/window_test.cpp
graphic_lite/a/src/window_test.cpp
+31
-11
graphic_lite/window_posix/BUILD.gn
graphic_lite/window_posix/BUILD.gn
+0
-48
graphic_lite/window_posix/Test.json
graphic_lite/window_posix/Test.json
+0
-25
kernel_lite/ipc_posix/signal/SignalTest.cpp
kernel_lite/ipc_posix/signal/SignalTest.cpp
+2
-2
kernel_lite/util_posix/src/ActsUtilConvertApiTest.cpp
kernel_lite/util_posix/src/ActsUtilConvertApiTest.cpp
+21
-21
未找到文件。
graphic_lite/BUILD.gn
浏览文件 @
a891275f
...
...
@@ -72,6 +72,5 @@ group("uikit_test") {
#"//test/xts/acts/graphic_lite/uidfx_posix:ActsUIDfxTest",
#"//test/xts/acts/graphic_lite/uifont_posix:ActsUIFontTest",
"//test/xts/acts/graphic_lite/version_posix:ActsGraphVersionTest",
"//test/xts/acts/graphic_lite/window_posix:ActsWindowTest",
]
}
graphic_lite/a/BUILD.gn
浏览文件 @
a891275f
...
...
@@ -11,11 +11,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/graphic/config.gni")
import("//build/lite/ndk/ndk.gni")
import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsUiInterfaceTest") {
suite_name = "acts"
if (enable_graphic_font) {
sources = [
"src/UiInterfaceTest.cpp",
"src/window_test.cpp",
]
} else {
sources = [ "src/UiInterfaceTest.cpp" ]
}
include_dirs = [
"//kernel/liteos_a/kernel/include/",
...
...
graphic_lite/a/src/UiInterfaceTest.cpp
浏览文件 @
a891275f
...
...
@@ -775,36 +775,6 @@ HWTEST_F(UiInterfaceTest, SUB_GRAPHIC_INTERFACE_FIRST_5600, Function | MediumTes
EXPECT_EQ
(
0
,
0
);
}
/**
* @tc.number SUB_GRAPHIC_INTERFACE_FIRST_5800
* @tc.name test DestoryWindow api
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
UiInterfaceTest
,
SUB_GRAPHIC_INTERFACE_FIRST_5800
,
Function
|
MediumTest
|
Level0
)
{
OHOS
::
GraphicStartUp
::
Init
();
WindowConfig
windowConfig
=
{};
Window
*
window
=
Window
::
CreateWindow
(
windowConfig
);
Window
::
DestoryWindow
(
window
);
EXPECT_EQ
(
0
,
0
);
}
/**
* @tc.number SUB_GRAPHIC_INTERFACE_FIRST_5900
* @tc.name test BindRootView api
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
UiInterfaceTest
,
SUB_GRAPHIC_INTERFACE_FIRST_5900
,
Function
|
MediumTest
|
Level0
)
{
WindowConfig
windowConfig
=
{};
Window
*
window
=
Window
::
CreateWindow
(
windowConfig
);
RootView
*
rootView
=
RootView
::
GetInstance
();
if
(
window
!=
nullptr
)
{
window
->
BindRootView
(
rootView
);
}
EXPECT_EQ
(
0
,
0
);
}
/**
* @tc.number SUB_GRAPHIC_INTERFACE_FIRST_6000
* @tc.name test GetCount api
...
...
graphic_lite/
window_posix
/src/window_test.cpp
→
graphic_lite/
a
/src/window_test.cpp
浏览文件 @
a891275f
...
...
@@ -27,16 +27,6 @@ public:
static
void
TearDownTestCase
(
void
)
{}
};
/**
* @tc.number SUB_GRAPHIC_WINDOW_CREATEWINDOW_0100
* @tc.name test window create-window api
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
WindowTest
,
Graphic_Window_Test_CreateWindow_0100
,
Function
|
MediumTest
|
Level0
)
{
EXPECT_EQ
(
0
,
0
);
}
/**
* @tc.number SUB_GRAPHIC_WINDOW_DESTORYWINDOW_0200
* @tc.name test window destory-window api
...
...
@@ -142,4 +132,34 @@ HWTEST_F(WindowTest, Graphic_Window_Test_BindRootView_0700, Function | MediumTes
testObj
->
UnbindRootView
();
}
}
/**
* @tc.number SUB_GRAPHIC_INTERFACE_FIRST_5800
* @tc.name test DestoryWindow api
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
WindowTest
,
SUB_GRAPHIC_INTERFACE_FIRST_5800
,
Function
|
MediumTest
|
Level0
)
{
OHOS
::
GraphicStartUp
::
Init
();
WindowConfig
windowConfig
=
{};
Window
*
window
=
Window
::
CreateWindow
(
windowConfig
);
Window
::
DestoryWindow
(
window
);
EXPECT_EQ
(
0
,
0
);
}
/**
* @tc.number SUB_GRAPHIC_INTERFACE_FIRST_5900
* @tc.name test BindRootView api
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
WindowTest
,
SUB_GRAPHIC_INTERFACE_FIRST_5900
,
Function
|
MediumTest
|
Level0
)
{
WindowConfig
windowConfig
=
{};
Window
*
window
=
Window
::
CreateWindow
(
windowConfig
);
RootView
*
rootView
=
RootView
::
GetInstance
();
if
(
window
!=
nullptr
)
{
window
->
BindRootView
(
rootView
);
}
EXPECT_EQ
(
0
,
0
);
}
}
// namespace OHOS
graphic_lite/window_posix/BUILD.gn
已删除
100755 → 0
浏览文件 @
79a0790d
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsWindowTest") {
suite_name = "acts"
sources = [ "src/window_test.cpp" ]
include_dirs = [
"//kernel/liteos_a/kernel/include/",
"//kernel/liteos_a/kernel/common",
"//third_party/bounds_checking_function/include",
"//third_party/cJSON",
"//third_party/libpng",
"//third_party/libjpeg",
"//utils/native/lite/include",
"//foundation/distributedschedule/samgr_lite/interfaces/kits/registry",
"//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr",
"//foundation/distributedschedule/samgr_lite/interfaces/kits/communication/broadcast",
]
ldflags = [ "-Wl,-Map=toggleButtonTest.map" ]
deps = [
"//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
"//foundation/communication/ipc_lite:liteipc_adapter",
"//foundation/distributedschedule/samgr_lite/communication/broadcast",
"//foundation/distributedschedule/samgr_lite/samgr:samgr",
"//foundation/distributedschedule/samgr_lite/samgr_client:client",
"//foundation/graphic/surface:lite_surface",
"//foundation/graphic/ui:lite_ui",
"//foundation/graphic/utils:lite_graphic_hals",
"//foundation/graphic/wms:lite_wms",
"//third_party/bounds_checking_function:libsec_shared",
]
cflags = [ "-fno-rtti" ]
}
graphic_lite/window_posix/Test.json
已删除
100644 → 0
浏览文件 @
79a0790d
{
"description"
:
"Config for uikit uibutton test cases"
,
"environment"
:
[
{
"type"
:
"device"
,
"label"
:
"ipcamera"
}
],
"kits"
:
[
{
"type"
:
"MountKit"
,
"server"
:
"NfsServer"
,
"mount"
:
[
{
"source"
:
"testcases/graphic"
,
"target"
:
"/test_root/graphic"
}
]
}
],
"driver"
:
{
"type"
:
"CppTestLite"
,
"execute"
:
"/test_root/graphic/ActsWindowTest.bin"
}
}
\ No newline at end of file
kernel_lite/ipc_posix/signal/SignalTest.cpp
浏览文件 @
a891275f
...
...
@@ -1456,7 +1456,7 @@ HWTEST_F(IpcSignalTest, testSigsetFill, Function | MediumTest | Level2)
/**
* @tc.number SUB_KERNEL_IPC_SIG_SETOP_0600
* @tc.name test sig
set operator APIs: sigdelset
* @tc.name test sig
del
set operator APIs: sigdelset
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
IpcSignalTest
,
testSigsetDelete0600
,
Function
|
MediumTest
|
Level2
)
...
...
kernel_lite/util_posix/src/ActsUtilConvertApiTest.cpp
浏览文件 @
a891275f
...
...
@@ -92,7 +92,7 @@ HWTEST_F(ActsUtilConvertApiTest, testTolower0300, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOLOWER_0310
* @tc.name
abnormal test:test _tolower api with multipl
e characters
* @tc.name
test _tolower api abnormal scenario with two uppercas
e characters
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testTolower0310
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -108,7 +108,7 @@ HWTEST_F(ActsUtilConvertApiTest, testTolower0310, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOLOWER_0320
* @tc.name
abnormal test:test _tolower api with multiple
characters
* @tc.name
test _tolower api abnormal scenario with multiple digital
characters
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testTolower0320
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -124,7 +124,7 @@ HWTEST_F(ActsUtilConvertApiTest, testTolower0320, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOLOWER_0330
* @tc.name
abnormal test:test _tolower api with special characters"@"
* @tc.name
test _tolower api abnormal scenario with special symbols characters
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testTolower0330
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -171,7 +171,7 @@ HWTEST_F(ActsUtilConvertApiTest, testToupper0500, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOUPPER_0510
* @tc.name test _toupper api
with special characters"@"
* @tc.name test _toupper api
abnormal scenario with special symbols characters
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testToupper0510
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -187,7 +187,7 @@ HWTEST_F(ActsUtilConvertApiTest, testToupper0510, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOUPPER_0520
* @tc.name test _toupper api with
special characters
* @tc.name test _toupper api with
ASCII
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testToupper0520
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -203,7 +203,7 @@ HWTEST_F(ActsUtilConvertApiTest, testToupper0520, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOUPPER_0530
* @tc.name test _toupper api
with special
characters
* @tc.name test _toupper api
abnormal scenario with multiple lowercase
characters
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testToupper0530
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -219,7 +219,7 @@ HWTEST_F(ActsUtilConvertApiTest, testToupper0530, Function | MediumTest | Level1
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_TOUPPER_0540
* @tc.name test _toupper api
with special characters
* @tc.name test _toupper api
abnormal scenario with multiple lowercase characters combination
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testToupper0540
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -265,7 +265,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0700, Function | MediumTest | Level1) {
/**
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0800
* @tc.name test atof api with digit
* @tc.name test atof api with digit
2
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0800
,
Function
|
MediumTest
|
Level1
)
{
...
...
@@ -280,7 +280,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0800, Function | MediumTest | Level1) {
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0810
* @tc.name test atof api with digit
* @tc.name test atof api with digit
1
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0810
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -296,7 +296,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0810, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0820
* @tc.name test atof api with digit
* @tc.name test atof api with digit
3
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0820
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -312,7 +312,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0820, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0830
* @tc.name test atof api with digit
* @tc.name test atof api with digit
4
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0830
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -328,7 +328,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0830, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0840
* @tc.name test atof api with digit
* @tc.name test atof api with digit
5
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0840
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -344,7 +344,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0840, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0850
* @tc.name test atof api with digit
* @tc.name test atof api with digit
6
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0850
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -360,7 +360,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtof0850, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOF_0860
* @tc.name test atof api with digit
* @tc.name test atof api with digit
7
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtof0860
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -406,7 +406,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtol1000, Function | MediumTest | Level1) {
/**
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOL_1100
* @tc.name test atol api with digit
* @tc.name test atol api with digit
9
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtol1100
,
Function
|
MediumTest
|
Level1
)
{
...
...
@@ -421,7 +421,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtol1100, Function | MediumTest | Level1) {
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOL_0100
* @tc.name test atol api with digit
* @tc.name test atol api with digit
8
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtol0100
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -437,7 +437,7 @@ HWTEST_F(ActsUtilConvertApiTest, testAtol0100, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ATOL_0200
* @tc.name test atol api with digit
* @tc.name test atol api with digit
10
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testAtol0200
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -519,7 +519,7 @@ HWTEST_F(ActsUtilConvertApiTest, testEcvt1500, Function | MediumTest | Level1) {
/**
* @tc.number SUB_KERNEL_UTIL_CONVERT_ECVT_1600
* @tc.name test ecvt api with exponent double
* @tc.name test ecvt api with exponent double
2
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testEcvt1600
,
Function
|
MediumTest
|
Level1
)
{
...
...
@@ -540,7 +540,7 @@ HWTEST_F(ActsUtilConvertApiTest, testEcvt1600, Function | MediumTest | Level1) {
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ECVT_1610
* @tc.name test ecvt api with exponent double
* @tc.name test ecvt api with exponent double
1
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testEcvt1610
,
Function
|
MediumTest
|
Level1
)
...
...
@@ -560,7 +560,7 @@ HWTEST_F(ActsUtilConvertApiTest, testEcvt1610, Function | MediumTest | Level1)
/* *
* @tc.number SUB_KERNEL_UTIL_CONVERT_ECVT_1630
* @tc.name test ecvt api with exponent double
* @tc.name test ecvt api with exponent double
3
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F
(
ActsUtilConvertApiTest
,
testEcvt1630
,
Function
|
MediumTest
|
Level1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录