1 /*
2  * Copyright (c) 2020-2021 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 UI_TEST_DRAW_LINE_H
17 #define UI_TEST_DRAW_LINE_H
18 
19 #include "components/ui_canvas.h"
20 #include "components/ui_label.h"
21 #include "components/ui_scroll_view.h"
22 #include "components/ui_view_group.h"
23 #include "ui_test.h"
24 
25 namespace OHOS {
26 class UITestDrawLine : public UITest {
27 public:
UITestDrawLine()28     UITestDrawLine() {}
~UITestDrawLine()29     ~UITestDrawLine() {}
30     void SetUp() override;
31     void TearDown() override;
32     const UIView* GetTestView() override;
33 
34     /**
35      * @brief Test draw line Function
36      */
37     void UIKitDrawLineTestLine001();
38     void UIKitDrawLineTestLine002();
39     void UIKitDrawLineTestLine003();
40     void UIKitDrawLineTestLine004();
41     void UIKitDrawLineTestLine005();
42     void UIKitDrawLineTestLine006();
43     void UIKitDrawLineTestLine007();
44     void UIKitDrawLineTestLine008();
45     void UIKitDrawLineTestLine009();
46     void UIKitDrawLineTestLine010();
47     void UIKitDrawLineTestLine011();
48     void UIKitDrawLineTestLine012();
49 
50 private:
51     UIViewGroup* CreateTestCaseGroup() const;
52     UILabel* CreateTitleLabel() const;
53     UICanvas* CreateCanvas() const;
54     UIScrollView* container_ = nullptr;
55 };
56 } // namespace OHOS
57 #endif // UI_TEST_DRAW_LINE_H
58