Debian Codegraph @

tests/dde-calendar-client-test/src/test_customWidget/test_animationstackedwidget.h

raw
1 // SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #ifndef TEST_ANIMATIONSTACKEDWIDGET_H
6 #define TEST_ANIMATIONSTACKEDWIDGET_H
7
8 #include <QObject>
9 #include <gtest/gtest.h>
10 #include "customWidget/animationstackedwidget.h"
11
12 class test_animationstackedwidget: public::QObject, public::testing::Test
13 {
14 public:
15 test_animationstackedwidget();
16 ~test_animationstackedwidget();
17
18 virtual void SetUp()
19 {
20 mAnimationStackedWidget = new AnimationStackedWidget();
21 widget1 = new QWidget(mAnimationStackedWidget);
22 widget2 = new QWidget(mAnimationStackedWidget);
23 mAnimationStackedWidget->addWidget(widget1);
24 mAnimationStackedWidget->addWidget(widget2);
25 }
26
27 virtual void TearDown()
28 {
29 delete mAnimationStackedWidget;
30 mAnimationStackedWidget = nullptr;
31 }
32 protected:
33 AnimationStackedWidget *mAnimationStackedWidget = nullptr;
34 QWidget *widget1 = nullptr;
35 QWidget *widget2 = nullptr;
36 };
37
38 #endif // TEST_ANIMATIONSTACKEDWIDGET_H