summaryrefslogtreecommitdiff
path: root/tests/mocks/CardPack_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/CardPack_mock.cpp')
-rw-r--r--tests/mocks/CardPack_mock.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/mocks/CardPack_mock.cpp b/tests/mocks/CardPack_mock.cpp
new file mode 100644
index 0000000..159e0de
--- /dev/null
+++ b/tests/mocks/CardPack_mock.cpp
@@ -0,0 +1,31 @@
+#include "CardPack_mock.h"
+
+void CardPackMock::addStudyRecord(const QString cardId, const StudyRecord& studyRecord)
+{
+ studyRecords.insert(cardId, studyRecord);
+}
+
+QList<StudyRecord> CardPackMock::getStudyRecords(QString cardId) const
+{
+ return studyRecords.values(cardId);
+}
+
+StudyRecord CardPackMock::getStudyRecord(QString cardId) const
+{
+ return studyRecords.values(cardId).first();
+}
+
+QList<DicRecord*> CardPackMock::getRecords() const
+{
+ return QList<DicRecord*>();
+}
+
+const Field* CardPackMock::getQuestionField() const
+{
+ return NULL;
+}
+
+QList<const Field*> CardPackMock::getAnswerFields() const
+{
+ return QList<const Field*>();
+}