From 8d06a0f4725269e137797a69adb7de705fac1679 Mon Sep 17 00:00:00 2001 From: ljh54_space Date: Thu, 7 Sep 2023 13:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E4=BE=8B=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=96=AD=E8=A8=80=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljh54_space --- common/test/unittest/src/daudio_utils_test.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/common/test/unittest/src/daudio_utils_test.cpp b/common/test/unittest/src/daudio_utils_test.cpp index 10e03931..42344968 100644 --- a/common/test/unittest/src/daudio_utils_test.cpp +++ b/common/test/unittest/src/daudio_utils_test.cpp @@ -129,30 +129,22 @@ HWTEST_F(DAudioUtilsTest, DAudioLatencyTest_003, TestSize.Level1) /** * @tc.name: DAudioLogTest_001 - * @tc.desc: Verify the DHLOG definition and DHLog function. + * @tc.desc: Verify the GetCurrentTime function and DHLOG definition and DHLog function. * @tc.type: FUNC * @tc.require: AR000H0E5U */ -HWTEST_F(DAudioUtilsTest, DAudioLogTest_001, TestSize.Level1) +HWTEST_F(DAudioUtilsTest, DAudioUtilTest_001, TestSize.Level1) { DHLOGD("DAudio TDD test DHLOGD print."); DHLOGI("DAudio TDD test DHLOGI print."); DHLOGW("DAudio TDD test DHLOGW print."); DHLOGE("DAudio TDD test DHLOGE print."); DHLog(DHLogLevel::DH_LOG_ERROR, ""); -} - -/** - * @tc.name: DAudioLogTest_001 - * @tc.desc: Verify the GetCurrentTime function. - * @tc.type: FUNC - * @tc.require: AR000H0E5U - */ -HWTEST_F(DAudioUtilsTest, DAudioUtilTest_001, TestSize.Level1) -{ int64_t tvSec; int64_t tvNSec; GetCurrentTime(tvSec, tvNSec); + EXPECT_GE(tvSec, 0); + EXPECT_GE(tvNSec, 0); } /** -- Gitee