| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
//#include "test_ckeypressprxy.h" |
| 6 |
//#include "ckeyleftdeal.h" |
| 7 |
|
| 8 |
//test_CKeyPressPrxy::test_CKeyPressPrxy() |
| 9 |
//{ |
| 10 |
// keyPressPrxy = QSharedPointer<CKeyPressPrxy>(new CKeyPressPrxy); |
| 11 |
//} |
| 12 |
|
| 13 |
//TEST_F(test_CKeyPressPrxy, keyPressDeal_NoEvent) |
| 14 |
//{ |
| 15 |
// ASSERT_FALSE(keyPressPrxy->keyPressDeal(Qt::Key_Tab)); |
| 16 |
//} |
| 17 |
|
| 18 |
//TEST_F(test_CKeyPressPrxy, keyPressDeal) |
| 19 |
//{ |
| 20 |
// keyPressPrxy->addkeyPressDeal(new CKeyLeftDeal()); |
| 21 |
// ASSERT_FALSE(keyPressPrxy->keyPressDeal(Qt::Key_Left)); |
| 22 |
//} |
| 23 |
|
| 24 |
//TEST_F(test_CKeyPressPrxy, removeDeal) |
| 25 |
//{ |
| 26 |
// CKeyLeftDeal *leftDeal = new CKeyLeftDeal(); |
| 27 |
// keyPressPrxy->addkeyPressDeal(leftDeal); |
| 28 |
// keyPressPrxy->removeDeal(leftDeal); |
| 29 |
// ASSERT_FALSE(keyPressPrxy->keyPressDeal(Qt::Key_Left)); |
| 30 |
//} |