summaryrefslogtreecommitdiff
path: root/tests/mocks/TimeProvider_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/TimeProvider_mock.cpp')
-rw-r--r--tests/mocks/TimeProvider_mock.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mocks/TimeProvider_mock.cpp b/tests/mocks/TimeProvider_mock.cpp
new file mode 100644
index 0000000..22cfb43
--- /dev/null
+++ b/tests/mocks/TimeProvider_mock.cpp
@@ -0,0 +1,9 @@
+#include "../../src/utils/TimeProvider.h"
+
+// TODO: Make interface with virtual function. Use Time provider as singleton.
+
+QDateTime TimeProvider::get()
+{
+ static QDateTime time = QDateTime::currentDateTime();
+ return time;
+}