1 /* 2 * Copyright (C) 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 #ifndef AVMETADATAHELPER_IMPL_UNIT_TEST_H 16 #define AVMETADATAHELPER_IMPL_UNIT_TEST_H 17 18 #undef SUPPORT_RECORDER 19 #undef SUPPORT_TRANSCODER 20 #undef SUPPORT_PLAYER 21 #undef SUPPORT_SCREEN_CAPTURE 22 23 #include <unordered_map> 24 #include <set> 25 #include <condition_variable> 26 #include <mutex> 27 #include <nocopyable.h> 28 #include "gtest/gtest.h" 29 #include "avmetadatahelper_impl.cpp" 30 #include "buffer/avsharedmemorybase.h" 31 #include "common/status.h" 32 #include "i_avmetadatahelper_service.h" 33 #include "media_demuxer.h" 34 #include "pipeline/pipeline.h" 35 #include "video_decoder_adapter.h" 36 37 namespace OHOS { 38 namespace Media { 39 namespace Test { 40 class AVMetadtahelperImplUnitTest : public testing::Test { 41 public: 42 // SetUpTestCase: Called before all test cases 43 static void SetUpTestCase(void); 44 // TearDownTestCase: Called after all test case 45 static void TearDownTestCase(void); 46 // SetUp: Called before each test cases 47 void SetUp(void); 48 // TearDown: Called after each test cases 49 void TearDown(void); 50 51 protected: 52 std::shared_ptr<AVMetadataHelperImpl> helper_{ nullptr }; 53 }; 54 } // namespace Test 55 } // namespace Media 56 } // namespace OHOS 57 #endif // AVMETADATAHELPER_IMPL_UNIT_TEST_H