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 #ifndef HPAE_CAPTURER_STREAM_IMPL_FUZZER_H 17 #define HPAE_CAPTURER_STREAM_IMPL_FUZZER_H 18 19 #include "hpae_capturer_stream_impl.h" 20 #include "i_stream.h" 21 #include "i_capturer_stream.h" 22 namespace OHOS { 23 namespace AudioStandard { 24 class IIReadCallback : public IReadCallback { 25 public: 26 IIReadCallback() = default; 27 28 virtual ~IIReadCallback() = default; 29 OnReadData(size_t length)30 int32_t OnReadData(size_t length) override 31 { 32 return 0; 33 } 34 OnReadData(int8_t * outputData,size_t requestDataLen)35 int32_t OnReadData(int8_t *outputData, size_t requestDataLen) override 36 { 37 return 0; 38 } 39 }; 40 41 class IIStatusCallback : public IStatusCallback { 42 public: 43 IIStatusCallback() = default; 44 45 virtual ~IIStatusCallback() = default; 46 OnStatusUpdate(IOperation operation)47 void OnStatusUpdate(IOperation operation) override {} 48 }; 49 } 50 } 51 #endif