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 #ifndef PLUGIN_BUFFER_UNITTEST_H 16 #define PLUGIN_BUFFER_UNITTEST_H 17 #include "gtest/gtest.h" 18 #include "plugin/plugin_buffer.h" 19 20 namespace OHOS { 21 namespace Media { 22 namespace Plugins { 23 class PluginBufferUnitTest : public testing::Test { 24 public: SetUpTestCase(void)25 static void SetUpTestCase(void) {}; TearDownTestCase(void)26 static void TearDownTestCase(void) {}; SetUp(void)27 void SetUp(void) {}; TearDown(void)28 void TearDown(void) {}; 29 30 public: 31 size_t align_ = 0; 32 bool allocMem = true; 33 size_t capacity_ = 1024 * 1024; // 1MB 34 MemoryType type_ = MemoryType::VIRTUAL_MEMORY; 35 Memory memory_{capacity_, nullptr, align_, type_, allocMem}; 36 }; 37 } // namespace Plugins 38 } // namespace Media 39 } // namespace OHOS 40 #endif // PLUGIN_BUFFER_UNITTEST_H