Changeset View
Changeset View
Standalone View
Standalone View
tests/units/presentation/errorhandlertest.cpp
Show All 24 Lines | |||||
25 | 25 | | |||
26 | #include "presentation/errorhandler.h" | 26 | #include "presentation/errorhandler.h" | ||
27 | 27 | | |||
28 | #include "testlib/fakejob.h" | 28 | #include "testlib/fakejob.h" | ||
29 | 29 | | |||
30 | class FakeErrorHandler : public Presentation::ErrorHandler | 30 | class FakeErrorHandler : public Presentation::ErrorHandler | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | void doDisplayMessage(const QString &message) | 33 | void doDisplayMessage(const QString &message) override | ||
34 | { | 34 | { | ||
35 | m_message = message; | 35 | m_message = message; | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | QString m_message; | 38 | QString m_message; | ||
39 | }; | 39 | }; | ||
40 | 40 | | |||
41 | class ErrorHandlerTest : public QObject | 41 | class ErrorHandlerTest : public QObject | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |