housekeeping

This commit is contained in:
scawful
2024-08-20 22:56:02 -04:00
parent f847e3b67c
commit 10c46e6db1
2 changed files with 1 additions and 14 deletions

View File

@@ -104,19 +104,6 @@ TEST_F(MessageDispatcherTest, MultipleListeners) {
EXPECT_EQ(std::any_cast<int>(listener2_.last_message().payload), 42);
}
TEST_F(MessageDispatcherTest, ProtocolBasedHandling) {
MessageDispatcher dispatcher;
dispatcher.RegisterProtocol(protocol_.get());
dispatcher.RegisterListener("TestMessage", &listener1_);
Message message("TestMessage", nullptr, 42);
dispatcher.DispatchMessage(message);
EXPECT_EQ(listener1_.message_count(), 1);
EXPECT_EQ(std::any_cast<int>(listener1_.last_message().payload), 42);
}
TEST_F(MessageDispatcherTest, FilteredMessageHandling) {
MessageDispatcher dispatcher;