2019-03-23 20:34:30 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
2024-08-19 21:53:21 +02:00
|
|
|
* Copyright (C) 2016, 2019-2024 Tom Zander <tom@flowee.org>
|
2019-03-23 20:34:30 +01:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TEST_NWM_H
|
|
|
|
|
#define TEST_NWM_H
|
|
|
|
|
|
2020-12-24 12:52:48 +01:00
|
|
|
#include <common/TestFloweeBase.h>
|
2019-03-23 20:34:30 +01:00
|
|
|
|
|
|
|
|
class TestNWM : public TestFloweeBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2020-09-17 20:58:02 +02:00
|
|
|
TestNWM();
|
2019-03-23 20:34:30 +01:00
|
|
|
|
|
|
|
|
private slots:
|
2023-07-20 20:59:26 +02:00
|
|
|
void basic();
|
2024-08-19 21:53:21 +02:00
|
|
|
void testBigMessage();
|
|
|
|
|
void testRingBuffer();
|
|
|
|
|
void testHeaderInt();
|
|
|
|
|
void testChunkReadQueue();
|
2026-05-18 11:41:37 +02:00
|
|
|
void testAsyncSendQueueFullDoesNotTerminate();
|
2026-05-18 09:59:29 +02:00
|
|
|
void testNativeEnvelopeMinimumLength();
|
2026-05-18 10:12:10 +02:00
|
|
|
void testNativeParserPacketBounds();
|
2026-05-18 10:55:28 +02:00
|
|
|
void testLegacyP2PEnvelopeValidation();
|
2024-08-19 21:53:21 +02:00
|
|
|
void testEncrypted();
|
2019-03-23 20:34:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|