| 1 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "testinterface.h" |
| 5 |
|
| 6 |
#include <QObject> |
| 7 |
|
| 8 |
class ClipboardDataGuardTests final : public QObject { |
| 9 |
Q_OBJECT |
| 10 |
public: |
| 11 |
explicit ClipboardDataGuardTests(const TestInterfacePtr &test = {}, QObject *parent = nullptr); |
| 12 |
private slots: |
| 13 |
void badAllocData(); |
| 14 |
void badAllocUrls(); |
| 15 |
void badAllocText(); |
| 16 |
void badAllocImageData(); |
| 17 |
void badAllocGetUtf8Data(); |
| 18 |
void normalDataStillWorks(); |
| 19 |
void overflowTreatedAsNoLimit(); |
| 20 |
void emptyRulesIgnored(); |
| 21 |
void negativeValueMeansNoLimit(); |
| 22 |
void invalidRulesFallBackToDefault(); |
| 23 |
void suffixParsing(); |
| 24 |
void firstMatchWins(); |
| 25 |
void emptySizeMeansNoLimit(); |
| 26 |
}; |