14#include <boost/enable_shared_from_this.hpp>
15#include <gmock/gmock.h>
22class MockMantidDisplayBase;
27 auto presenter = std::make_shared<WorkspacePresenter>(
this);
28 m_presenter = std::dynamic_pointer_cast<ViewNotifiable>(presenter);
88 return std::dynamic_pointer_cast<WorkspacePresenter>(
m_presenter);
#define GNU_DIAG_ON_SUGGEST_OVERRIDE
#define GNU_DIAG_OFF_SUGGEST_OVERRIDE
MOCK_CONST_METHOD0(getFilterText, std::string())
MOCK_METHOD0(showWorkspaceData, void())
MOCK_CONST_METHOD0(getSelectedWorkspace, Mantid::API::Workspace_sptr())
MOCK_METHOD1(saveWorkspaces, void(const StringList &wsNames))
MOCK_METHOD0(showLiveDataDialog, void())
MOCK_CONST_METHOD2(showCriticalUserMessage, void(const std::string &caption, const std::string &message))
MOCK_CONST_METHOD0(clearWorkspacesConfirmation, bool())
MOCK_CONST_METHOD0(getSortCriteria, SortCriteria())
MOCK_METHOD0(convertMDHistoToMatrixWorkspace, void())
MOCK_METHOD0(saveToProgram, void())
MOCK_METHOD0(showMDPlot, void())
MOCK_METHOD0(showListData, void())
WorkspacePresenterVN_sptr m_presenter
WorkspacePresenterVN_sptr getPresenterSharedPtr()
MOCK_CONST_METHOD0(getSaveFileType, SaveFileType())
MOCK_METHOD2(saveWorkspace, void(const std::string &wsName, SaveFileType type))
MOCK_METHOD0(convertToMatrixWorkspace, void())
MOCK_METHOD0(showBoxDataTable, void())
WorkspacePresenterWN_wptr getPresenterWeakPtr() override
MOCK_METHOD0(showInstrumentView, void())
MOCK_METHOD0(showColourFillPlot, void())
MOCK_METHOD2(executeAlgorithmAsync, bool(Mantid::API::IAlgorithm_sptr alg, const bool wait))
MOCK_METHOD1(plotSpectrum, void(const std::string &type))
MOCK_METHOD0(showSpectrumViewer, void())
MOCK_CONST_METHOD0(getSortDirection, SortDirection())
MOCK_CONST_METHOD0(isPromptDelete, bool())
MOCK_CONST_METHOD0(deleteConfirmation, bool())
MOCK_METHOD0(showLoadDialog, void())
MOCK_METHOD0(showContourPlot, void())
MOCK_METHOD1(enableClearButton, void(bool enable))
MOCK_METHOD2(sortWorkspaces, void(IWorkspaceDockView::SortCriteria criteria, IWorkspaceDockView::SortDirection direction))
MOCK_METHOD0(showSurfacePlot, void())
void enableDeletePrompt(bool) override
~MockWorkspaceDockView() override=default
MOCK_METHOD0(showAlgorithmHistory, void())
MOCK_METHOD0(showLogs, void())
MOCK_CONST_METHOD0(getSelectedWorkspaceNames, StringList())
MOCK_METHOD0(clearView, void())
MOCK_METHOD0(showTransposed, void())
MOCK_METHOD2(recordWorkspaceRename, void(const std::string &oldName, const std::string &newName))
MOCK_METHOD0(showSliceViewer, void())
MOCK_CONST_METHOD2(askUserYesNo, bool(const std::string &caption, const std::string &message))
void refreshWorkspaces() override
MOCK_METHOD1(deleteWorkspaces, void(const StringList &wsNames))
MOCK_METHOD1(updateTree, void(const std::map< std::string, Mantid::API::Workspace_sptr > &items))
MOCK_METHOD1(showRenameDialog, void(const StringList &wsNames))
MOCK_METHOD0(showSampleMaterialWindow, void())
MOCK_METHOD0(popupContextMenu, void())
MOCK_METHOD1(filterWorkspaces, void(const std::string &filterText))
MOCK_METHOD0(showDetectorsTable, void())
~MockWorkspaceProviderNotifiable() override=default
MOCK_METHOD1(notifyFromWorkspaceProvider, void(Flag flag))
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace