diff --git a/source/extensions/io_socket/user_space/file_event_impl.h b/source/extensions/io_socket/user_space/file_event_impl.h index 1e292712a43c..dd65d1fd1255 100644 --- a/source/extensions/io_socket/user_space/file_event_impl.h +++ b/source/extensions/io_socket/user_space/file_event_impl.h @@ -4,6 +4,7 @@ #include "envoy/event/file_event.h" +#include "common/common/assert.h" #include "common/event/dispatcher_impl.h" #include "common/event/event_impl_base.h" @@ -28,8 +29,8 @@ class FileEventImpl final : public Event::FileEvent, Logger::Loggablerun(Event::Dispatcher::RunType::NonBlock); } } + +TEST_F(FileEventImplTest, NotImplementedEmulatedEdge) { + user_file_event_ = std::make_unique( + *dispatcher_, [this](uint32_t arg) { ready_cb_.called(arg); }, + Event::FileReadyType::Write | Event::FileReadyType::Closed, io_source_); + EXPECT_DEATH({ user_file_event_->registerEventIfEmulatedEdge(0); }, "not implemented"); + EXPECT_DEATH({ user_file_event_->unregisterEventIfEmulatedEdge(0); }, "not implemented"); +} } // namespace } // namespace UserSpace } // namespace IoSocket