| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef TEST_CKEYENABLEDEAL_H |
| 6 |
#define TEST_CKEYENABLEDEAL_H |
| 7 |
|
| 8 |
#include "keypressstub.h" |
| 9 |
#include "view/cgraphicsscene.h" |
| 10 |
#include "gtest/gtest.h" |
| 11 |
#include "keypress/ckeyenabledeal.h" |
| 12 |
|
| 13 |
#include <QObject> |
| 14 |
|
| 15 |
class test_CKeyEnableDeal : public QObject |
| 16 |
, public ::testing::Test |
| 17 |
{ |
| 18 |
Q_OBJECT |
| 19 |
public: |
| 20 |
test_CKeyEnableDeal(); |
| 21 |
void SetUp(); |
| 22 |
void TearDown(); |
| 23 |
|
| 24 |
public: |
| 25 |
KeyPressStub stub; |
| 26 |
QSharedPointer<CGraphicsScene> scene; |
| 27 |
QSharedPointer<QGraphicsView> view; |
| 28 |
QSharedPointer<CKeyEnableDeal> enableDeal; |
| 29 |
}; |
| 30 |
|
| 31 |
extern CFocusItem *focusItem; |
| 32 |
|
| 33 |
#endif // TEST_CKEYENABLEDEAL_H |