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
16 #include <gtest/gtest.h>
17
18 #include "ext/gex_complex_shader.h"
19 #include "ge_visual_effect_impl.h"
20 #include "ge_external_dynamic_loader.h"
21
22 using namespace testing;
23 using namespace testing::ext;
24
25 namespace OHOS {
26 namespace GraphicsEffectEngine {
27
28 using namespace Rosen;
29
30 class GEXComplexShaderTest : public testing::Test {
31 public:
32 static void SetUpTestCase();
33 static void TearDownTestCase();
34 void SetUp() override;
35 void TearDown() override;
36 };
37
SetUpTestCase()38 void GEXComplexShaderTest::SetUpTestCase() {}
39
TearDownTestCase()40 void GEXComplexShaderTest::TearDownTestCase() {}
41
SetUp()42 void GEXComplexShaderTest::SetUp() {}
43
TearDown()44 void GEXComplexShaderTest::TearDown() {}
45
46 /**
47 * @tc.name: CreateDynamicImpl001
48 * @tc.desc: Verify function CreateDynamicImpl
49 * @tc.type:FUNC
50 */
51 HWTEST_F(GEXComplexShaderTest, CreateDynamicImpl001, TestSize.Level1)
52 {
53 GEXComplexShaderParams temp;
54 temp.params_ = {0.5f, 0.5f, 0.5f};
55 auto shader = GEXComplexShader::CreateDynamicImpl(temp);
56
57 EXPECT_EQ(shader, nullptr);
58 }
59 } // namespace GraphicsEffectEngine
60 } // namespace OHOS
61