14d949f91Sopenharmony_ci/* 24d949f91Sopenharmony_ci * Copyright (C) 2024 Huawei Device Co., Ltd. 34d949f91Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 44d949f91Sopenharmony_ci * you may not use this file except in compliance with the License. 54d949f91Sopenharmony_ci * You may obtain a copy of the License at 64d949f91Sopenharmony_ci * 74d949f91Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 84d949f91Sopenharmony_ci * 94d949f91Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 104d949f91Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 114d949f91Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 124d949f91Sopenharmony_ci * See the License for the specific language governing permissions and 134d949f91Sopenharmony_ci * limitations under the License. 144d949f91Sopenharmony_ci */ 154d949f91Sopenharmony_ci 164d949f91Sopenharmony_ci#ifndef IMAGE_EFFECT_INNER_UNITTEST_H 174d949f91Sopenharmony_ci#define IMAGE_EFFECT_INNER_UNITTEST_H 184d949f91Sopenharmony_ci 194d949f91Sopenharmony_ci#include "efilter.h" 204d949f91Sopenharmony_ci#include "gtest/gtest.h" 214d949f91Sopenharmony_ci#include "image_effect_inner.h" 224d949f91Sopenharmony_ci#include "mock_pixel_map.h" 234d949f91Sopenharmony_ci 244d949f91Sopenharmony_cinamespace OHOS { 254d949f91Sopenharmony_cinamespace Media { 264d949f91Sopenharmony_cinamespace Effect { 274d949f91Sopenharmony_ciclass ImageEffectInnerUnittest : public testing::Test { 284d949f91Sopenharmony_cipublic: 294d949f91Sopenharmony_ci MockPixelMap *mockPixelMap_; 304d949f91Sopenharmony_ci ImageEffect *imageEffect_; 314d949f91Sopenharmony_ci EFilter *efilter_; 324d949f91Sopenharmony_ci EffectBuffer *effectBuffer_; 334d949f91Sopenharmony_ci 344d949f91Sopenharmony_ci /* SetUpTestCase:The preset action of the test suite is executed before the first TestCase */ 354d949f91Sopenharmony_ci static void SetUpTestCase(); 364d949f91Sopenharmony_ci 374d949f91Sopenharmony_ci /* TearDownTestCase:The test suite cleanup action is executed after the last TestCase */ 384d949f91Sopenharmony_ci static void TearDownTestCase(); 394d949f91Sopenharmony_ci 404d949f91Sopenharmony_ci /* SetUp:Execute before each test case */ 414d949f91Sopenharmony_ci void SetUp() override; 424d949f91Sopenharmony_ci 434d949f91Sopenharmony_ci /* TearDown:Execute after each test case */ 444d949f91Sopenharmony_ci void TearDown() override; 454d949f91Sopenharmony_ci}; 464d949f91Sopenharmony_ci} // namespace Effect 474d949f91Sopenharmony_ci} // namespace Media 484d949f91Sopenharmony_ci} // namespace OHOS 494d949f91Sopenharmony_ci#endif // IMAGE_EFFECT_INNER_UNITTEST_H