blob: 2f6ffac653d74e1c3ad480b2733ede37cfc3fcec [file] [log] [blame]
#pragma once
#include "interfaces/report.hpp"
#include <gmock/gmock.h>
class ReportMock : public interfaces::Report
{
public:
ReportMock(std::string reportName)
{
using namespace testing;
ON_CALL(*this, getName).WillByDefault([reportName] {
return reportName;
});
ON_CALL(*this, getPath).WillByDefault([reportName] {
return "/" + reportName;
});
EXPECT_CALL(*this, Die).Times(AnyNumber());
}
virtual ~ReportMock()
{
Die();
}
MOCK_METHOD(std::string, getName, (), (override, const));
MOCK_METHOD(std::string, getPath, (), (override, const));
MOCK_METHOD(void, Die, ());
};