From 2f4b52c86100c79fc0c975aca88eed9631de3ad0 Mon Sep 17 00:00:00 2001 From: byndyx Date: Tue, 30 Jan 2024 12:08:39 +0800 Subject: [PATCH] modify code Signed-off-by: byndyx --- audiohandler/src/daudio_handler.cpp | 10 ---------- .../test/unittest/include/daudio_handler_test.h | 2 +- audiohandler/test/unittest/src/daudio_handler_test.cpp | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/audiohandler/src/daudio_handler.cpp b/audiohandler/src/daudio_handler.cpp index b12f08c7..36275a2e 100644 --- a/audiohandler/src/daudio_handler.cpp +++ b/audiohandler/src/daudio_handler.cpp @@ -99,16 +99,6 @@ std::vector DAudioHandler::Query() infoJson["INTERRUPT_GROUP_ID"] = dev->interruptGroupId_; infoJson["VOLUME_GROUP_ID"] = dev->volumeGroupId_; - std::string audioEncoders = - HiStreamerQueryTool::GetInstance().QueryHiStreamerPluginInfo(HISTREAM_PLUGIN_TYPE::AUDIO_ENCODER); - DHLOGI("DAudio QueryAudioEncoderAbility info: %s", audioEncoders.c_str()); - infoJson[KEY_HISTREAMER_AUDIO_ENCODER] = audioEncoders; - - std::string audioDecoders = - HiStreamerQueryTool::GetInstance().QueryHiStreamerPluginInfo(HISTREAM_PLUGIN_TYPE::AUDIO_DECODER); - DHLOGI("DAudio QueryAudioDecoderAbility info: %s", audioDecoders.c_str()); - infoJson[KEY_HISTREAMER_AUDIO_DECODER] = audioDecoders; - dhItem.dhId = std::to_string(dhId); dhItem.attrs = infoJson.dump(); dhItemVec.push_back(dhItem); diff --git a/audiohandler/test/unittest/include/daudio_handler_test.h b/audiohandler/test/unittest/include/daudio_handler_test.h index fb2e0169..db960170 100644 --- a/audiohandler/test/unittest/include/daudio_handler_test.h +++ b/audiohandler/test/unittest/include/daudio_handler_test.h @@ -30,7 +30,7 @@ class DAudioHandlerTest : public testing::Test { public: static void SetUpTestCase(void); static void TearDownTestCase(void); - void SetUp(); + void SetUp(void); void TearDown(void); }; } // namespace DistributedHardware diff --git a/audiohandler/test/unittest/src/daudio_handler_test.cpp b/audiohandler/test/unittest/src/daudio_handler_test.cpp index f9a7162f..04c547b3 100644 --- a/audiohandler/test/unittest/src/daudio_handler_test.cpp +++ b/audiohandler/test/unittest/src/daudio_handler_test.cpp @@ -26,7 +26,7 @@ void DAudioHandlerTest::SetUpTestCase(void) {} void DAudioHandlerTest::TearDownTestCase(void) {} -void DAudioHandlerTest::SetUp() {} +void DAudioHandlerTest::SetUp(void) {} void DAudioHandlerTest::TearDown(void) {} -- Gitee