21 #include <gmock/gmock.h> 26 const char *TEST_EVENT_NAME =
"EventManagerTest - postEvent : Test Event";
27 const char *TEST_EVENT_PARAM =
"TEST_PARAM";
28 bool *TEST_EVENT_PARAM_VALUE;
30 event->setParam(TEST_EVENT_PARAM, TEST_EVENT_PARAM_VALUE);
31 ASSERT_EQ(event->getName(), TEST_EVENT_NAME);
32 ASSERT_EQ(event->getParam(TEST_EVENT_PARAM), TEST_EVENT_PARAM_VALUE);
40 EXPECT_EQ(event_manager, event_manager->getInstance());
46 const char *TEST_EVENT_NAME =
"EventManagerTest - postEvent : Test Event";
51 EXPECT_CALL(event_handler, receiveEvent).Times(::testing::AtLeast(1));
52 EXPECT_CALL(event_rthandler, receiveEventRT).Times(::testing::Exactly(0));
53 event_manager->postEvent(&event_object);
59 const char *TEST_EVENT_NAME =
"EventManagerTest - postEventRT : Test Event";
64 EXPECT_CALL(event_rthandler, receiveEventRT).Times(::testing::AtLeast(1));
65 EXPECT_CALL(event_handler, receiveEvent).Times(::testing::Exactly(0));
66 event_manager->postEventRT(&event_object);