Mocks.h 493 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <RmlUi/Core/EventListener.h>
  3. #include <RmlUi/Core/EventListenerInstancer.h>
  4. #include <doctest.h>
  5. #include <doctest/trompeloeil.hpp>
  6. class MockEventListener : public trompeloeil::mock_interface<Rml::EventListener>
  7. {
  8. public:
  9. IMPLEMENT_MOCK1(OnAttach);
  10. IMPLEMENT_MOCK1(OnDetach);
  11. IMPLEMENT_MOCK1(ProcessEvent);
  12. };
  13. class MockEventListenerInstancer : public trompeloeil::mock_interface<Rml::EventListenerInstancer>
  14. {
  15. public:
  16. IMPLEMENT_MOCK2(InstanceEventListener);
  17. };