DrMock v0.3.0
Added/Changed
-
Add
emits
method that allowsMethod
objects to emit signals when
called (for details, see the tutorials). Implementing this feature
meant introducing some significant changes (taken from git log):-
All major class templates now have a new template parameter,
the type of the parent mock object (MO). For every MO, the mocker passes
to each Method object of the MO a pointer to the MO. This pointer is
required forSignal::invoke(Parent*)
[see below]. -
A new class template,
Signal
, represents such signal emissions. -
Introduce the
--qt
flag for theDrMockGenerator
, which, when set,
#define
s the DRMOCK_USE_QT macro in all mock source code. The
DrMock macros automatically apply--qt
if a test is linked
against a Qt library. IfDRMOCK_USE_QT
is not set, calling
Signal::emit
raises an error. -
Update
samples/qt
-
-
Throw if conflicts occur during mock object configuration