Mocks.h 492 B

123456789101112131415161718
  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. public:
  8. IMPLEMENT_MOCK1(OnAttach);
  9. IMPLEMENT_MOCK1(OnDetach);
  10. IMPLEMENT_MOCK1(ProcessEvent);
  11. };
  12. class MockEventListenerInstancer : public trompeloeil::mock_interface<Rml::EventListenerInstancer> {
  13. public:
  14. IMPLEMENT_MOCK2(InstanceEventListener);
  15. };