Cockatrice/tests/loading_from_clipboard/clipboard_testing.h
BruebachL 1ef07309d6
Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212)
---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2025-10-09 07:36:12 +02:00

27 lines
742 B
C++

#ifndef CLIPBOARD_TESTING_H
#define CLIPBOARD_TESTING_H
#include "gtest/gtest.h"
#include <libcockatrice/deck_list/deck_list.h>
// using std types because qt types aren't understood by gtest (without this you'll get less nice errors)
using CardRows = QVector<std::pair<std::string, int>>;
struct Result
{
std::string name;
std::string comments;
CardRows mainboard;
CardRows sideboard;
Result(std::string _name, std::string _comments, CardRows _mainboard, CardRows _sideboard)
: name(_name), comments(_comments), mainboard(_mainboard), sideboard(_sideboard)
{
}
};
void testEmpty(const QString &clipboard);
void testDeck(const QString &clipboard, const Result &result);
#endif // CLIPBOARD_TESTING_H