1 /* 2 * Copyright (C) 2021 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 #ifndef AUDIOLITETEST_H 16 #define AUDIOLITETEST_H 17 18 #include <sys/time.h> 19 20 #include "gtest/gtest.h" 21 #include "audio_capturer.h" 22 23 24 namespace OHOS { 25 const int RET_SUCCESS = 0; 26 const int RET_FAILURE = -1; 27 28 struct OHOS::Audio::AudioCapturerInfo audioCapInfo; 29 30 class AudioliteTest : public testing::Test { 31 public: 32 // SetUpTestCase: before all testcase 33 static void SetUpTestCase(void); 34 // TearDownTestCase: after all testcase 35 static void TearDownTestCase(void); 36 // SetUp 37 void SetUp(void); 38 // TearDown 39 void TearDown(void); 40 41 static void AudioliteTestFunc(AudioCodecFormat audioFormat, int32_t sampleRate, int32_t channelCount, 42 int32_t bitRate, AudioBitWidth bitWidth); 43 }; 44 } // namespace OHOS 45 #endif // AUDIOLITETEST_H 46