• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
16 #ifndef FOUNDATION_ACE_TEST_UNITTEST_CORE_ROSEN_ROSEN_RENDER_CONTEXT_TEST_H
17 #define FOUNDATION_ACE_TEST_UNITTEST_CORE_ROSEN_ROSEN_RENDER_CONTEXT_TEST_H
18 
19 #include <memory>
20 
21 #include "gtest/gtest.h"
22 
23 #define private public
24 #define protected public
25 #include "test/mock/core/common/mock_container.h"
26 #include "test/mock/core/common/mock_theme_manager.h"
27 #include "test/mock/core/pipeline/mock_pipeline_context.h"
28 
29 #include "base/geometry/dimension.h"
30 #include "core/components_ng/render/adapter/focus_state_modifier.h"
31 #include "core/components_ng/render/adapter/rosen_render_context.h"
32 #include "core/components_ng/pattern/particle/particle_pattern.h"
33 #include "frameworks/core/components_ng/render/image_painter.h"
34 #undef private
35 #undef protected
36 
37 namespace OHOS::Ace::NG {
38 namespace {} // namespace
39 using namespace testing;
40 using namespace testing::ext;
41 class RosenRenderContextTest : public testing::Test {
42 public:
43     void SetUp() override;
44     void TearDown() override;
45     RefPtr<RosenRenderContext> InitRosenRenderContext(const RefPtr<FrameNode>& frameNode);
46 };
47 } // namespace OHOS::Ace::NG
48 
49 #endif // FOUNDATION_ACE_TEST_UNITTEST_CORE_ROSEN_ROSEN_RENDER_CONTEXT_TEST_H
50