• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "audio_errors.h"
17 #include "audio_concurrency_service_unit_test.h"
18 
19 #include "audio_policy_server.h"
20 
21 using namespace testing::ext;
22 
23 namespace OHOS {
24 namespace AudioStandard {
25 
SetUpTestCase(void)26 void AudioConcurrencyServiceUnitTest::SetUpTestCase(void) {}
TearDownTestCase(void)27 void AudioConcurrencyServiceUnitTest::TearDownTestCase(void) {}
SetUp(void)28 void AudioConcurrencyServiceUnitTest::SetUp(void) {}
TearDown(void)29 void AudioConcurrencyServiceUnitTest::TearDown(void) {}
30 
31 /**
32 * @tc.name  : Test AudioInputThread.
33 * @tc.number: AudioConcurrencyService_016.
34 * @tc.desc  : Test ActivateAudioConcurrency.
35 */
36 HWTEST_F(AudioConcurrencyServiceUnitTest, AudioConcurrencyService_001, TestSize.Level1)
37 {
38     auto audioConcurrencyService = std::make_shared<AudioConcurrencyService>();
39     auto result = audioConcurrencyService->GetConcurrencyMap();
40     EXPECT_EQ(result.size(), 0);
41 }
42 } // namespace AudioStandard
43 } // namespace OHOS
44