• 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_DECODER_CALLBACK_TEST_H
17 #define OHOS_DECODER_CALLBACK_TEST_H
18 
19 #include "audio_data.h"
20 #include "audio_event.h"
21 #include "daudio_log.h"
22 #include "iaudio_codec_callback.h"
23 #include "iaudio_codec.h"
24 #include "audio_param.h"
25 #include "securec.h"
26 
27 #include "avcodec_common.h"
28 #include "media_errors.h"
29 #include "format.h"
30 
31 namespace OHOS {
32 namespace DistributedHardware {
33 class AudioDecoderCallbackTest : public IAudioCodecCallback {
34 public:
AudioDecoderCallbackTest()35     AudioDecoderCallbackTest() {};
36     ~AudioDecoderCallbackTest() = default;
37 
38     void OnCodecDataDone(const std::shared_ptr<AudioData> &outputData) override;
39     void OnCodecStateNotify(const AudioEvent &event) override;
40 };
41 
OnCodecDataDone(const std::shared_ptr<AudioData> & outputData)42 void AudioDecoderCallbackTest::OnCodecDataDone(const std::shared_ptr<AudioData> &outputData)
43 {
44     (void)outputData;
45 }
46 
OnCodecStateNotify(const AudioEvent & event)47 void AudioDecoderCallbackTest::OnCodecStateNotify(const AudioEvent &event)
48 {
49     (void)event;
50 }
51 } // namespace DistributedHardware
52 } // namespace OHOS
53 #endif // OHOS_DECODER_CALLBACK_TEST_H