summaryrefslogtreecommitdiff
path: root/tests/mocks/TimeProvider_mock.cpp
blob: 22cfb439a585153ccf3ecab02f03165df98cdff5 (plain)
1
2
3
4
5
6
7
8
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;
}