From d24f813f3f2a05c112e803e4256b53535895fc98 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 14 Jul 2021 11:49:10 +1200 Subject: Initial mirror commit --- tests/mocks/CardPack_mock.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/mocks/CardPack_mock.h (limited to 'tests/mocks/CardPack_mock.h') diff --git a/tests/mocks/CardPack_mock.h b/tests/mocks/CardPack_mock.h new file mode 100644 index 0000000..50e6c13 --- /dev/null +++ b/tests/mocks/CardPack_mock.h @@ -0,0 +1,23 @@ +#ifndef CARDPACK_MOCK_H +#define CARDPACK_MOCK_H + +#include + +#include "../../src/dictionary/ICardPack.h" + +class CardPackMock: public ICardPack +{ +public: + void addStudyRecord(const QString cardId, const StudyRecord& studyRecord); + QList getStudyRecords(QString cardId) const; + StudyRecord getStudyRecord(QString cardId) const; + + QList getRecords() const; + const Field* getQuestionField() const; + QList getAnswerFields() const; + +private: + QMultiHash< QString, StudyRecord > studyRecords; +}; + +#endif -- cgit