1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/test/mock/mock_CPSICallback.h

29 lines
797 B
C
Raw Normal View History

2018-07-26 12:06:55 +02:00
/*
* mock_CPLayerSpecificInfoCallback.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "gtest/gtest.h"
#include "../lib/CGameInfoCallback.h"
#include "../lib/ResourceSet.h"
class CCallback;
2018-07-29 21:07:40 +02:00
class CPSICallbackMock : public CPlayerSpecificInfoCallback
2018-07-26 12:06:55 +02:00
{
public:
using CPlayerSpecificInfoCallback::CPlayerSpecificInfoCallback;
MOCK_CONST_METHOD0(getResourceAmount, TResources());
//std::vector <const CGTownInstance *> getTownsInfo(bool onlyOur = true) const;
MOCK_CONST_METHOD0(getTownsInfo, std::vector <const CGTownInstance *>());
MOCK_CONST_METHOD1(getTownsInfo, std::vector <const CGTownInstance *>(bool));
2018-07-29 21:07:40 +02:00
};