提交 2eeff863 编写于 作者: S stesen

fix typo

上级 43b58e76
...@@ -40,6 +40,7 @@ lite_component("acts_component") { ...@@ -40,6 +40,7 @@ lite_component("acts_component") {
"//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest", "//test/xts/acts/kernel_lite/kernelcmsis_hal:ActsCMSISTest",
"//test/xts/acts/utils_lite/kvstore_hal:ActsKvStoreTest", "//test/xts/acts/utils_lite/kvstore_hal:ActsKvStoreTest",
"//test/xts/acts/security_lite/datahuks_hal:ActsSecurityDataTest", "//test/xts/acts/security_lite/datahuks_hal:ActsSecurityDataTest",
"//test/xts/acts/hiviewdfx_lite/hilog_hal:ActsDfxFuncTest",
"//test/xts/acts/distributed_schedule_lite/samgr_hal:ActsSamgrTest", "//test/xts/acts/distributed_schedule_lite/samgr_hal:ActsSamgrTest",
"//test/xts/acts/update_lite/updater_hal:ActsUpdaterFuncTest", "//test/xts/acts/update_lite/updater_hal:ActsUpdaterFuncTest",
...@@ -59,6 +60,7 @@ lite_component("acts_component") { ...@@ -59,6 +60,7 @@ lite_component("acts_component") {
#"//test/xts/acts/distributedschedule_lite/dtbschedmgr_posix:ActsDMSTest", #"//test/xts/acts/distributedschedule_lite/dtbschedmgr_posix:ActsDMSTest",
"//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest", "//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest",
"//test/xts/acts/hiviewdfx_lite/hilog_posix:ActsHilogTest",
"//test/xts/acts/multimedia_lite/multimedia_posix/recorder:ActsMediaRecorderTest", "//test/xts/acts/multimedia_lite/multimedia_posix/recorder:ActsMediaRecorderTest",
"//test/xts/acts/graphic_lite:uikit_test", "//test/xts/acts/graphic_lite:uikit_test",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
hctest_suite("ActsDfxFuncTest") { hctest_suite("ActsDfxFuncTest") {
suite_name = "acts" suite_name = "acts"
sources = [ sources = [
...@@ -20,12 +20,10 @@ hctest_suite("ActsDfxFuncTest") { ...@@ -20,12 +20,10 @@ hctest_suite("ActsDfxFuncTest") {
include_dirs = [ include_dirs = [
"src", "src",
"//base/hiviewdfx/interfaces/kits/hilog_lite", "//base/hiviewdfx/hiview_lite",
"//base/hiviewdfx/interfaces/innerkits/hievent_lite", "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite",
"//base/hiviewdfx/utils/lite", "//base/hiviewdfx/hievent_lite/interfaces/native/innerkits",
"//base/hiviewdfx/frameworks/hievent_lite", "//base/hiviewdfx/hilog_lite/frameworks/mini",
"//base/hiviewdfx/frameworks/hilog_lite/mini",
"//base/hiviewdfx/services/hilogcat_lite/commond",
"//vendor/hisi/hi3861/hi3861/include", "//vendor/hisi/hi3861/hi3861/include",
"//vendor/hisi/hi3861/hi3861/components/lwip_sack/include" "//vendor/hisi/hi3861/hi3861/components/lwip_sack/include"
] ]
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <securec.h> #include <securec.h>
#include <hiview_config.h> #include <hiview_config.h>
#include <hiview_def.h> #include <hiview_def.h>
#include "hos_init.h"
#include "hiview_output_log.h" #include "hiview_output_log.h"
#include "log.h" #include "log.h"
#include "hctest.h" #include "hctest.h"
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#define LOG_DOMAIN 0xD002D00 #define LOG_DOMAIN 0xD002D00
using namespace OHOS::HiviewDFX; using namespace OHOS::HiviewDFX;
static constexpr HilogLabel LABEL = {LOG_CORE, 0xD002D00, "Test_TAG"}; static constexpr HiLogLabel LABEL = {LOG_CORE, 0xD002D00, "Test_TAG"};
using namespace std; using namespace std;
using namespace testing::ext; using namespace testing::ext;
class HilogTest : public testing::Test { class HiLogTest : public testing::Test {
protected: protected:
static void SetUpTestCase(void) {} static void SetUpTestCase(void) {}
static void TearDownTestCase(void) {} static void TearDownTestCase(void) {}
...@@ -37,112 +37,112 @@ protected: ...@@ -37,112 +37,112 @@ protected:
}; };
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0100 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0100
* @tc.name : Hilog_DEBUG parameter legal test (Cortex-A, C) * @tc.name : HiLog_DEBUG parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0100, Function | MediumTest | Level0) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0100, Function | MediumTest | Level0)
{ {
HILOG_DEBUG(LOG_CORE, "Debug log of Hilog API test"); HILOG_DEBUG(LOG_CORE, "Debug log of HiLog API test");
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0200 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0200
* @tc.name : HILOG_INFO parameter legal test (Cortex-A, C) * @tc.name : HILOG_INFO parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0200, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0200, Function | MediumTest | Level1)
{ {
HILOG_INFO(LOG_CORE, "Info log of Hilog API test"); HILOG_INFO(LOG_CORE, "Info log of HiLog API test");
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0300 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0300
* @tc.name : HILOG_WARN parameter legal test (Cortex-A, C) * @tc.name : HILOG_WARN parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0300, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0300, Function | MediumTest | Level1)
{ {
HILOG_WARN(LOG_CORE, "Warn log of Hilog API test"); HILOG_WARN(LOG_CORE, "Warn log of HiLog API test");
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0400 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0400
* @tc.name : HILOG_ERROR parameter legal test (Cortex-A, C) * @tc.name : HILOG_ERROR parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0400, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0400, Function | MediumTest | Level1)
{ {
HILOG_ERROR(LOG_CORE, "Error log of Hilog API test"); HILOG_ERROR(LOG_CORE, "Error log of HiLog API test");
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0500 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0500
* @tc.name : HILOG_FATAL parameter legal test (Cortex-A, C) * @tc.name : HILOG_FATAL parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0500, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0500, Function | MediumTest | Level1)
{ {
HILOG_FATAL(LOG_CORE, "Fatal log of Hilog API test"); HILOG_FATAL(LOG_CORE, "Fatal log of HiLog API test");
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0600 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0600
* @tc.name : Hilog::Debug parameter legal test (Cortex-A, C) * @tc.name : HiLog::Debug parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0600, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0600, Function | MediumTest | Level1)
{ {
bool ret = True; bool ret = true;
ret = Hilog::Debug(LABEL, "Debug log of Hilog API test"); ret = HiLog::Debug(LABEL, "Debug log of HiLog API test");
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0700 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0700
* @tc.name : Hilog::Error parameter legal test (Cortex-A, C) * @tc.name : HiLog::Error parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0700, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0700, Function | MediumTest | Level1)
{ {
bool ret = True; bool ret = true;
ret = Hilog::Error(LABEL, "Error log of Hilog API test"); ret = HiLog::Error(LABEL, "Error log of HiLog API test");
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0800 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0800
* @tc.name : Hilog::Fatal parameter legal test (Cortex-A, C) * @tc.name : HiLog::Fatal parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0800, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0800, Function | MediumTest | Level1)
{ {
bool ret = True; bool ret = true;
ret = Hilog::Fatal(LABEL, "Fatal log of Hilog API test"); ret = HiLog::Fatal(LABEL, "Fatal log of HiLog API test");
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_0900 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_0900
* @tc.name : Hilog::Info parameter legal test (Cortex-A, C) * @tc.name : HiLog::Info parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi0900, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi0900, Function | MediumTest | Level1)
{ {
bool ret = True; bool ret = true;
ret = Hilog::Info(LABEL, "Info log of Hilog API test"); ret = HiLog::Info(LABEL, "Info log of HiLog API test");
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
} }
/** /**
* @tc.number : Sub_Dfx_Dft_Hilog_Cortexaapi_1000 * @tc.number : Sub_Dfx_Dft_HiLog_Cortexaapi_1000
* @tc.name : Hilog::Warn parameter legal test (Cortex-A, C) * @tc.name : HiLog::Warn parameter legal test (Cortex-A, C)
* @tc.desc : [C- SOFTWARE -0200] * @tc.desc : [C- SOFTWARE -0200]
*/ */
HWTEST_F(HilogTest, subDfxDftHilogCortexaapi1000, Function | MediumTest | Level1) HWTEST_F(HiLogTest, subDfxDftHiLogCortexaapi1000, Function | MediumTest | Level1)
{ {
bool ret = True; bool ret = true;
ret = Hilog::Warn(LABEL, "Warn log of Hilog API test"); ret = HiLog::Warn(LABEL, "Warn log of HiLog API test");
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册