1 /*
2  * Copyright (c) 2022-2024 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 #ifndef OHOS_AUDIO_ADAPTER_INTERFACE_IMPL_TEST_H
17 #define OHOS_AUDIO_ADAPTER_INTERFACE_IMPL_TEST_H
18 
19 #include <gtest/gtest.h>
20 #include <gmock/gmock.h>
21 
22 #include <daudio_events.h>
23 
24 #include "audio_render_interface_impl.h"
25 #include "audio_test_utils.h"
26 
27 #define private public
28 #include "audio_adapter_interface_impl.h"
29 #undef private
30 
31 namespace OHOS {
32 namespace HDI {
33 namespace DistributedAudio {
34 namespace Audio {
35 namespace V1_0 {
36 using OHOS::HDI::DistributedAudio::Audioext::V2_0::DAudioEvent;
37 using OHOS::HDI::DistributedAudio::Audioext::V2_0::AudioParameter;
38 using OHOS::HDI::DistributedAudio::Audioext::V2_0::IDAudioCallback;
39 
40 class AudioAdapterInterfaceImpTest : public testing::Test {
41 public:
42     static void SetUpTestCase(void);
43     static void TearDownTestCase(void);
44     void SetUp();
45     void TearDown();
46 
47     sptr<IDAudioCallback> callback_ = nullptr;
48     std::shared_ptr<AudioAdapterInterfaceImpl> AdapterTest_ = nullptr;
49 };
50 } // V1_0
51 } // Audio
52 } // Distributedaudio
53 } // HDI
54 } // OHOS
55 #endif // OHOS_AUDIO_ADAPTER_INTERFACE_IMPL_TEST_H