mock_UnitInfo.h 623 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * mock_UnitInfo.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../../lib/battle/IUnitInfo.h"
  12. class UnitInfoMock : public battle::IUnitInfo
  13. {
  14. public:
  15. MOCK_CONST_METHOD0(unitBaseAmount, int32_t());
  16. MOCK_CONST_METHOD0(unitId, uint32_t());
  17. MOCK_CONST_METHOD0(unitSide, BattleSide());
  18. MOCK_CONST_METHOD0(unitOwner, PlayerColor());
  19. MOCK_CONST_METHOD0(unitSlot, SlotID());
  20. MOCK_CONST_METHOD0(unitType, const CCreature * ());
  21. };