| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#include "test_ckeyupdeal.h" |
| 6 |
|
| 7 |
#include "../third-party_stub/stub.h" |
| 8 |
#include "gtest/gtest.h" |
| 9 |
#include "view/cgraphicsscene.h" |
| 10 |
#include "keypress/ckeyupdeal.h" |
| 11 |
#include "view/graphicsItem/cweekdaybackgrounditem.h" |
| 12 |
#include "keypressstub.h" |
| 13 |
|
| 14 |
test_CKeyUpDeal::test_CKeyUpDeal(QObject *parent) |
| 15 |
: QObject(parent) |
| 16 |
{ |
| 17 |
} |
| 18 |
|
| 19 |
TEST(UpHandle_test, test_CKeyUpDeal) |
| 20 |
{ |
| 21 |
KeyPressStub stub; |
| 22 |
CGraphicsScene *scene = new CGraphicsScene(); |
| 23 |
CKeyUpDeal upDeal(scene); |
| 24 |
upDeal.dealEvent(); |
| 25 |
delete scene; |
| 26 |
} |