changed to smart ptrs and trying to fix event_handler_tests
This commit is contained in:
@@ -53,7 +53,7 @@ SCENARIO("Creating a Detector object", "")
|
||||
|
||||
WHEN("Detector is created")
|
||||
{
|
||||
Detector detector(&gpio_interface_mock.get(), events, &event_notifier_mock.get());
|
||||
Detector detector(std::unique_ptr<IInputGPIOInterface>(&gpio_interface_mock.get()), events, std::shared_ptr<IEventNotifier>(&event_notifier_mock.get()));
|
||||
THEN("a thread should be created")
|
||||
{
|
||||
REQUIRE(typeid(detector.detect_thread).hash_code() == typeid(std::thread).hash_code());
|
||||
|
||||
Reference in New Issue
Block a user