From 4753228d6da561f3a3df358f52de6e582de8ef95 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 10 Feb 2024 00:30:23 +0000 Subject: [PATCH] Fix test --- test/ClientTest.cpp | 5 ++--- test/IRCTest.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/ClientTest.cpp b/test/ClientTest.cpp index 0ff6370a..bc957fb9 100644 --- a/test/ClientTest.cpp +++ b/test/ClientTest.cpp @@ -88,12 +88,11 @@ TEST_F(ClientTest, AccountTag) { CMessage msg(":nick!user@host PRIVMSG #channel :text"); CMessage extmsg("@account=account-name :nick!user@host PRIVMSG #channel :text"); - EXPECT_FALSE(m_pTestClient->HasAccountTag()); + EXPECT_FALSE(m_pTestClient->IsTagEnabled("account")); m_pTestClient->PutClient(extmsg); EXPECT_THAT(m_pTestClient->vsLines, ElementsAre(msg.ToString())); - m_pTestClient->SetAccountTag(true); m_pTestClient->SetTagSupport("account", true); - EXPECT_TRUE(m_pTestClient->HasAccountTag()); + EXPECT_TRUE(m_pTestClient->IsTagEnabled("account")); m_pTestClient->PutClient(extmsg); EXPECT_THAT(m_pTestClient->vsLines, ElementsAre(msg.ToString(), extmsg.ToString())); diff --git a/test/IRCTest.h b/test/IRCTest.h index 928aa798..7e8f178e 100644 --- a/test/IRCTest.h +++ b/test/IRCTest.h @@ -36,7 +36,6 @@ class TestClient : public CClient { } void Reset() { vsLines.clear(); } void SetAccountNotify(bool bEnabled) { m_bAccountNotify = bEnabled; } - void SetAccountTag(bool bEnabled) { m_bAccountTag = bEnabled; } void SetAwayNotify(bool bEnabled) { m_bAwayNotify = bEnabled; } void SetExtendedJoin(bool bEnabled) { m_bExtendedJoin = bEnabled; } void SetNamesx(bool bEnabled) { m_bNamesx = bEnabled; }