Files
thehub/testing/protobuf/TestProtoBuf.h
T
tomFlowee 10510fcb99 Add ProtoBuilder / ProtoParser classes
Protocol Buffers interaction is just another serialization standard,
while its widespread it has fortunately mostly been kept out of
anything relevant or important. Mostly due to the fact that is
really quite bad from a technical perspective.

This adds simple and basic support for creating and parsing
protocol buffer messages, mostly to allow interoperability.
If you want quality: use the MessagBuilder/MessageParser ones instead.
2023-07-14 11:45:47 +02:00

44 lines
1.1 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2023 Tom Zander <tom@flowee.org>
*
* 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_PROTOBUF_H
#define TEST_PROTOBUF_H
#include <QtTest/QTest>
#include <uint256.h>
class TestProtoBuf : public QObject
{
Q_OBJECT
public:
TestProtoBuf();
private slots:
void testParser();
void testBuilder();
void testBuilder2();
void testNestedBuilder();
void testNestedParser();
private:
uint256 hash;
std::string testString;
};
#endif