13#include <gmock/gmock.h>
30 startAlgorithmImpl(alg);
#define GNU_DIAG_ON_SUGGEST_OVERRIDE
#define GNU_DIAG_OFF_SUGGEST_OVERRIDE
The AlgorithmRunner is a QObject that encapsulates methods for running an algorithm asynchronously (i...
virtual void cancelRunningAlgorithm()
If an algorithm is already running, cancel it.
virtual Mantid::API::IAlgorithm_sptr getAlgorithm() const
Get back a pointer to the running algorithm.
MOCK_METHOD0(cancelRunningAlgorithm, void())
MOCK_CONST_METHOD0(getAlgorithm, Mantid::API::IAlgorithm_sptr())
MOCK_METHOD1(startAlgorithmImpl, void(Mantid::API::IAlgorithm_sptr))
void startAlgorithm(Mantid::API::IAlgorithm_sptr alg)
Begin asynchronous execution of an algorithm and observe its execution.
Mantid::API::IAlgorithm_sptr algorithm() const
MockAlgorithmRunner()=default
Mantid::API::IAlgorithm_sptr m_algorithm
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm