Mantid
Loading...
Searching...
No Matches
MockJobRunner.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2023 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11
12#include <gmock/gmock.h>
13#include <memory>
14
16
26
#define GNU_DIAG_ON_SUGGEST_OVERRIDE
#define GNU_DIAG_OFF_SUGGEST_OVERRIDE
IJobRunner is an interface to a class that provides functionality to run a batch algorithm queue.
Definition IJobRunner.h:39
virtual void executeAlgorithm(MantidQt::API::IConfiguredAlgorithm_sptr algorithm)=0
virtual void setAlgorithmQueue(std::deque< MantidQt::API::IConfiguredAlgorithm_sptr > algorithms)=0
virtual void clearAlgorithmQueue()=0
virtual void subscribe(JobRunnerSubscriber *notifyee)=0
virtual void cancelAlgorithmQueue()=0
virtual void executeAlgorithmQueue()=0
JobRunnerSubscriber is an interface to a class that subscribes to notifications from an IJobRunner.
Definition IJobRunner.h:24
MOCK_METHOD0(cancelAlgorithmQueue, void())
MOCK_METHOD1(subscribe, void(MantidQt::API::JobRunnerSubscriber *))
MOCK_METHOD1(setAlgorithmQueue, void(std::deque< MantidQt::API::IConfiguredAlgorithm_sptr >))
MOCK_METHOD1(executeAlgorithm, void(MantidQt::API::IConfiguredAlgorithm_sptr algorithm))
MOCK_METHOD0(clearAlgorithmQueue, void())
MOCK_METHOD0(executeAlgorithmQueue, void())
std::shared_ptr< IConfiguredAlgorithm > IConfiguredAlgorithm_sptr