1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix tests

This commit is contained in:
Ivan Savenko 2023-11-18 21:17:40 +02:00
parent b58301849b
commit 118dafb71b
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public:
MOCK_CONST_METHOD0(battleNextUnitId, uint32_t());
MOCK_CONST_METHOD1(battleGetUnitsIf, battle::Units(battle::UnitFilter));
MOCK_CONST_METHOD1(battleGetUnitsIf, battle::Units(const battle::UnitFilter &));
MOCK_CONST_METHOD1(battleGetUnitByID, const battle::Unit *(uint32_t));
MOCK_CONST_METHOD2(battleGetUnitByPos, const battle::Unit *(BattleHex, bool));

View File

@ -17,8 +17,8 @@ class BattleStateMock : public IBattleState
{
public:
MOCK_CONST_METHOD0(getActiveStackID, int32_t());
MOCK_CONST_METHOD1(getStacksIf, TStacks(TStackFilter));
MOCK_CONST_METHOD1(getUnitsIf, battle::Units(battle::UnitFilter));
MOCK_CONST_METHOD1(getStacksIf, TStacks(const TStackFilter&));
MOCK_CONST_METHOD1(getUnitsIf, battle::Units(const battle::UnitFilter &));
MOCK_CONST_METHOD0(getBattlefieldType, BattleField());
MOCK_CONST_METHOD0(getTerrainType, TerrainId());
MOCK_CONST_METHOD0(getAllObstacles, IBattleInfo::ObstacleCList());