added queue back

This commit is contained in:
Neeflix
2018-07-11 17:17:21 +02:00
parent de88e3969b
commit 1822b0c6ce

View File

@@ -108,7 +108,7 @@ SCENARIO("The EventHandler gets notified")
Event event(0, 0, "test");
Mock<IEventHandler> event_handler_mock;
When(Method(event_handler_mock, handle)).AlwaysReturn();
When(Method(event_handler_mock, handle)).AlwaysDo([](Event e){std::cout << "called handle\n";});
Fake(Dtor(event_handler_mock));
Event test_event(0, 0, "test");
@@ -120,6 +120,7 @@ SCENARIO("The EventHandler gets notified")
EventNotifier notifier;
notifier.event_queue = &(queue_mock.get());
notifier.event_handlers.insert(&(event_handler_mock.get()));
WHEN("The event gets queued")
{