21 #include "gtest/gtest.h"
32 virtual bool is_even(
int number)
const = 0;
41 virtual bool is_even(
int number)
const override
43 return (number % 2) == 0;
47 TEST(TestRegistry, register_get_service)
58 bool event_listener_invoked =
false;
60 event_listener_invoked =
true;
67 ASSERT_TRUE(event_listener_invoked);
71 std::shared_ptr<DummyServiceInterface> srv =
80 TEST(TestRegistry, unregister_simple)
84 bool event_listener_invoked =
false;
89 ASSERT_FALSE(event_listener_invoked);
92 event_listener_invoked =
true;
99 ASSERT_TRUE(event_listener_invoked);
103 TEST(TestRegistry, unregister_while_used)
118 TEST(TestRegistry, unregister_no_param)