mock_spells_effects_Registry.h 636 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * mock_spells_effects_Registry.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/spells/effects/Registry.h"
  12. namespace spells
  13. {
  14. namespace effects
  15. {
  16. class EffectFactoryMock : public IEffectFactory
  17. {
  18. public:
  19. MOCK_CONST_METHOD0(create, Effect *());
  20. };
  21. class RegistryMock : public Registry
  22. {
  23. public:
  24. MOCK_CONST_METHOD1(find, const IEffectFactory *(const std::string &));
  25. MOCK_METHOD2(add, void(const std::string &, FactoryPtr));
  26. };
  27. }
  28. }