mock_spells_SpellService.h 732 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * mock_spells_Spell.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 <vcmi/spells/Service.h>
  12. namespace spells
  13. {
  14. class SpellServiceMock : public Service
  15. {
  16. public:
  17. MOCK_CONST_METHOD1(getBaseByIndex, const Entity *(const int32_t));
  18. MOCK_CONST_METHOD1(forEachBase, void(const std::function<void(const Entity *, bool &)> &));
  19. MOCK_CONST_METHOD1(getById, const Spell *(const SpellID &));
  20. MOCK_CONST_METHOD1(getByIndex, const Spell *(const int32_t));
  21. MOCK_CONST_METHOD1(forEach, void(const std::function<void(const Spell *, bool &)> &));
  22. };
  23. }