/openbmc/sdeventplus/test/ |
H A D | event.cpp | 25 sd_event* const expected_event = reinterpret_cast<sd_event*>(1234); member in sdeventplus::__anonad1f7ae00111::EventTest 30 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 31 .WillOnce(Return(expected_event)); in TEST_F() 32 Event event(expected_event, &mock); in TEST_F() 34 EXPECT_EQ(expected_event, event.get()); in TEST_F() 36 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F() 41 Event event(expected_event, std::false_type(), &mock); in TEST_F() 43 EXPECT_EQ(expected_event, event.get()); in TEST_F() 45 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F() 50 Event event(expected_event, std::false_type(), &mock); in TEST_F() [all …]
|
H A D | clock.cpp | 28 sd_event* const expected_event = reinterpret_cast<sd_event*>(1234); member in sdeventplus::__anon710f0c2a0111::ClockTest 33 Event event(expected_event, std::false_type(), &mock); in TEST_F() 35 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 36 .WillOnce(Return(expected_event)); in TEST_F() 38 EXPECT_CALL(mock, sd_event_now(expected_event, CLOCK_REALTIME, testing::_)) in TEST_F() 43 EXPECT_CALL(mock, sd_event_unref(expected_event)) in TEST_F() 50 Event event(expected_event, std::false_type(), &mock); in TEST_F() 53 EXPECT_CALL(mock, sd_event_now(expected_event, CLOCK_MONOTONIC, testing::_)) in TEST_F() 57 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F()
|
/openbmc/qemu/tests/unit/ |
H A D | test-qmp-event.c | 27 static QDict *expected_event; variable 34 g_assert(expected_event); in test_qapi_event_emit() 51 g_assert(qobject_is_equal(QOBJECT(d), QOBJECT(expected_event))); in test_qapi_event_emit() 52 qobject_unref(expected_event); in test_qapi_event_emit() 53 expected_event = NULL; in test_qapi_event_emit() 58 expected_event = qdict_from_jsonf_nofail("{ 'event': 'EVENT_A' }"); in test_event_a() 60 g_assert(!expected_event); in test_event_a() 65 expected_event = qdict_from_jsonf_nofail("{ 'event': 'EVENT_B' }"); in test_event_b() 67 g_assert(!expected_event); in test_event_b() 74 expected_event = qdict_from_jsonf_nofail( in test_event_c() [all …]
|
/openbmc/sdeventplus/test/source/ |
H A D | event.cpp | 38 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anon972e2b400111::EventTest 39 UniqueEvent event = make_event(expected_event); 55 EXPECT_CALL(mock, sd_event_unref(expected_event)) in expect_destruct() 62 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 63 .WillOnce(Return(expected_event)); in TEST_F() 78 EXPECT_CALL(mock, sd_event_add_defer(expected_event, testing::_, testing::_, in TEST_F() 104 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 105 .WillOnce(Return(expected_event)); in TEST_F() 120 EXPECT_CALL(mock, sd_event_add_post(expected_event, testing::_, testing::_, in TEST_F() 142 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() [all …]
|
H A D | time.cpp | 39 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anon62b35d4d0111::TimeTest 40 UniqueEvent event = make_event(expected_event); 71 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 72 .WillOnce(Return(expected_event)); in TEST_F() 75 sd_event_add_time(expected_event, testing::_, CLOCK_REALTIME, in TEST_F() 96 EXPECT_EQ(expected_event, time.get_event().get()); in TEST_F() 108 expect_time_destroy(expected_event, expected_source); in TEST_F() 120 sd_event_add_time(expected_event, testing::_, CLOCK_MONOTONIC, in TEST_F() 139 EXPECT_CALL(mock, sd_event_ref(expected_event)) in SetUp() 140 .WillOnce(Return(expected_event)); in SetUp() [all …]
|
H A D | signal.cpp | 39 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anon7bac141c0111::SignalTest 40 UniqueEvent event = make_event(expected_event); 56 EXPECT_CALL(mock, sd_event_unref(expected_event)) in expect_destruct() 65 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 66 .WillOnce(Return(expected_event)); in TEST_F() 68 EXPECT_CALL(mock, sd_event_add_signal(expected_event, testing::_, sig, in TEST_F() 115 EXPECT_CALL(mock, sd_event_add_signal(expected_event, testing::_, sig, in TEST_F() 139 EXPECT_CALL(mock, sd_event_ref(expected_event)) in SetUp() 140 .WillOnce(Return(expected_event)); in SetUp() 141 EXPECT_CALL(mock, sd_event_add_signal(expected_event, testing::_, sig, in SetUp() [all …]
|
H A D | child.cpp | 39 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anonf0b8bea20111::ChildTest 40 UniqueEvent event = make_event(expected_event); 56 EXPECT_CALL(mock, sd_event_unref(expected_event)) in expect_destruct() 66 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 67 .WillOnce(Return(expected_event)); in TEST_F() 69 EXPECT_CALL(mock, sd_event_add_child(expected_event, testing::_, pid, in TEST_F() 115 EXPECT_CALL(mock, sd_event_add_child(expected_event, testing::_, pid, in TEST_F() 140 EXPECT_CALL(mock, sd_event_ref(expected_event)) in SetUp() 141 .WillOnce(Return(expected_event)); in SetUp() 142 EXPECT_CALL(mock, sd_event_add_child(expected_event, testing::_, pid, in SetUp() [all …]
|
H A D | io.cpp | 38 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anon8d6417760111::IOTest 39 UniqueEvent event = make_event(expected_event); 55 EXPECT_CALL(mock, sd_event_unref(expected_event)) in expect_destruct() 65 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 66 .WillOnce(Return(expected_event)); in TEST_F() 68 EXPECT_CALL(mock, sd_event_add_io(expected_event, testing::_, fd, events, in TEST_F() 116 EXPECT_CALL(mock, sd_event_add_io(expected_event, testing::_, fd, events, in TEST_F() 140 EXPECT_CALL(mock, sd_event_ref(expected_event)) in SetUp() 141 .WillOnce(Return(expected_event)); in SetUp() 142 EXPECT_CALL(mock, sd_event_add_io(expected_event, testing::_, fd, in SetUp() [all …]
|
H A D | base.cpp | 72 sd_event* const expected_event = reinterpret_cast<sd_event*>(2345); member in sdeventplus::source::__anon6c3f73390111::BaseTest 75 UniqueEvent event = make_event(expected_event); 144 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 145 .WillOnce(Return(expected_event)); in TEST_F() 156 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 157 .WillOnce(Return(expected_event)); in TEST_F() 173 EXPECT_EQ(expected_event, source.get_event().get()); in TEST_F() 185 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() 186 .WillOnce(Return(expected_event)); in TEST_F() 218 EXPECT_CALL(mock, sd_event_ref(expected_event)) in TEST_F() [all …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_gamepad.py | 41 expected_event = libevdev.InputEvent(key, 1) 44 self.assertInputEventsIn((syn_event, expected_event), events) 49 expected_event = libevdev.InputEvent(key, 0) 52 self.assertInputEventsIn((syn_event, expected_event), events) 88 expected_event = libevdev.InputEvent(key1, 0) 91 self.assertInputEventsIn((syn_event, expected_event), events) 97 expected_event = libevdev.InputEvent(key2, 0) 100 self.assertInputEventsIn((syn_event, expected_event), events)
|
H A D | test_mouse.py | 548 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 1) 551 self.assertInputEventsIn((syn_event, expected_event), events) 555 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 0) 558 self.assertInputEventsIn((syn_event, expected_event), events) 562 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 1) 565 self.assertInputEventsIn((syn_event, expected_event), events) 569 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 0) 572 self.assertInputEventsIn((syn_event, expected_event), events) 576 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_LEFT, 1) 579 self.assertInputEventsIn((syn_event, expected_event), events) [all …]
|
/openbmc/sdeventplus/test/utility/ |
H A D | timer.cpp | 51 sd_event* const expected_event = reinterpret_cast<sd_event*>(1234); member in sdeventplus::utility::__anon9ead1e020111::TimerTest 69 sd_event_now(expected_event, in expectNow() 117 EXPECT_CALL(mock, sd_event_ref(expected_event)) in SetUp() 118 .WillRepeatedly(DoAll(EventRef(), Return(expected_event))); in SetUp() 119 EXPECT_CALL(mock, sd_event_unref(expected_event)) in SetUp() 121 event = std::make_unique<Event>(expected_event, &mock); in SetUp() 144 expected_event, testing::_, in SetUp() 152 EXPECT_EQ(expected_event, timer->get_event().get()); in SetUp() 168 mock, sd_event_add_time(expected_event, testing::_, in TEST_F() 186 EXPECT_CALL(mock, sd_event_add_time(expected_event, testing::_, in TEST_F() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | logging_utils.robot | 28 [Arguments] ${expected_event}=None 34 Remove Values From List ${all_event_list} ${expected_event}
|