1 /* 2 * Copyright (c) 2022 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 FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_FILTER_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_FILTER_H 18 19 #include <memory> 20 21 #include "testing_color.h" 22 #include "testing_color_filter.h" 23 #include "testing_mask_filter.h" 24 #include "testing_image_filter.h" 25 26 namespace OHOS::Ace::Testing { 27 class TestingFilter { 28 public: 29 TestingFilter() = default; 30 virtual ~TestingFilter() = default; 31 32 enum class FilterQuality { 33 NONE, 34 LOW, 35 MEDIUM, 36 HIGH, 37 }; 38 SetMaskFilter(std::shared_ptr<TestingMaskFilter>)39 virtual void SetMaskFilter(std::shared_ptr<TestingMaskFilter> /* maskFilter */) {} 40 SetImageFilter(std::shared_ptr<TestingImageFilter>)41 virtual void SetImageFilter(std::shared_ptr<TestingImageFilter> /* imageFilter */) {} 42 SetFilterQuality(FilterQuality fq)43 virtual void SetFilterQuality(FilterQuality fq) {} 44 SetColorFilter(std::shared_ptr<TestingColorFilter> colorFilter)45 virtual void SetColorFilter(std::shared_ptr<TestingColorFilter> colorFilter) {} 46 }; 47 } // namespace OHOS::Ace::Testing 48 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_FILTER_H 49