• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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_PROCESSOR_H
17 #define OHOS_AUDIO_PROCESSOR_H
18 
19 #include "iaudio_processor.h"
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 class MockIAudioProcessor : public IAudioProcessor {
24 public:
MockIAudioProcessor()25     explicit MockIAudioProcessor() {}
~MockIAudioProcessor()26     ~MockIAudioProcessor() {}
27 
ConfigureAudioProcessor(const AudioCommonParam & localDevParam,const AudioCommonParam & remoteDevParam,const std::shared_ptr<IAudioProcessorCallback> & procCallback)28     int32_t ConfigureAudioProcessor(const AudioCommonParam &localDevParam, const AudioCommonParam &remoteDevParam,
29         const std::shared_ptr<IAudioProcessorCallback> &procCallback) override
30     {
31         (void)localDevParam;
32         (void)remoteDevParam;
33         (void)procCallback;
34         return 0;
35     }
36 
ReleaseAudioProcessor()37     int32_t ReleaseAudioProcessor() override
38     {
39         return 0;
40     }
41 
StartAudioProcessor()42     int32_t StartAudioProcessor() override
43     {
44         return 0;
45     }
46 
StopAudioProcessor()47     int32_t StopAudioProcessor() override
48     {
49         return 0;
50     }
51 
FeedAudioProcessor(const std::shared_ptr<AudioData> & inputData)52     int32_t FeedAudioProcessor(const std::shared_ptr<AudioData> &inputData) override
53     {
54         (void) inputData;
55         return 0;
56     }
57 };
58 } // namespace DistributedHardware
59 } // namespace OHOS
60 #endif // OHOS_AUDIO_PROCESSOR_H