compilable version

This commit is contained in:
Neeflix
2018-08-08 12:22:11 +02:00
parent 67e70405e0
commit 494021d910
6 changed files with 104 additions and 14 deletions

View File

@@ -97,6 +97,7 @@ SCENARIO("An event should be distributed", "[distribute]")
GIVEN("An event")
{
Event event(0, 0, "test");
auto event_ptr = std::make_shared<Event>(event);
Mock<IBlockingQueue<Event>> queue_mock;
Fake(Method(queue_mock, push));
@@ -107,7 +108,7 @@ SCENARIO("An event should be distributed", "[distribute]")
WHEN("The event comes in")
{
notifier.distribute_event(event);
notifier.distribute_event(event_ptr);
THEN("The event gets queued")
{
notifier.is_running = false;