Chatterino
Macros | Functions
TwitchPubSubClient.cpp File Reference
#include "providers/twitch/PubSubManager.hpp"
#include "providers/twitch/PubSubActions.hpp"
#include <gtest/gtest.h>
Include dependency graph for TwitchPubSubClient.cpp:

Macros

#define RUN_PUBSUB_TESTS
 

Functions

 TEST (TwitchPubSubClient, ServerRespondsToPings)
 
 TEST (TwitchPubSubClient, ServerDoesntRespondToPings)
 
 TEST (TwitchPubSubClient, DisconnectedAfter1s)
 
 TEST (TwitchPubSubClient, ExceedTopicLimit)
 
 TEST (TwitchPubSubClient, ExceedTopicLimitSingleStep)
 
 TEST (TwitchPubSubClient, ReceivedWhisper)
 
 TEST (TwitchPubSubClient, ModeratorActionsUserBanned)
 
 TEST (TwitchPubSubClient, MissingToken)
 
 TEST (TwitchPubSubClient, WrongToken)
 
 TEST (TwitchPubSubClient, CorrectToken)
 
 TEST (TwitchPubSubClient, AutoModMessageHeld)
 

Macro Definition Documentation

◆ RUN_PUBSUB_TESTS

#define RUN_PUBSUB_TESTS

Server behaves normally and responds to pings (COMPLETE) Server doesn't respond to pings, client should disconnect (COMPLETE) Server randomly disconnects us, we should reconnect (COMPLETE) Client listens to more than 50 topics, so it opens 2 connections (COMPLETE) Server sends RECONNECT message to us, we should reconnect (INCOMPLETE, leaving for now since if we just ignore it and Twitch disconnects us we should already handle it properly) Listen that required authentication, but authentication is missing (COMPLETE) Listen that required authentication, but authentication is wrong (COMPLETE) Incoming Whisper message (COMPLETE) Incoming AutoMod message Incoming ChannelPoints message Incoming ChatModeratorAction message (COMPLETE)

Function Documentation

◆ TEST() [1/11]

TEST ( TwitchPubSubClient  ,
ServerRespondsToPings   
)

◆ TEST() [2/11]

TEST ( TwitchPubSubClient  ,
ServerDoesntRespondToPings   
)

◆ TEST() [3/11]

TEST ( TwitchPubSubClient  ,
DisconnectedAfter1s   
)

◆ TEST() [4/11]

TEST ( TwitchPubSubClient  ,
ExceedTopicLimit   
)

◆ TEST() [5/11]

TEST ( TwitchPubSubClient  ,
ExceedTopicLimitSingleStep   
)

◆ TEST() [6/11]

TEST ( TwitchPubSubClient  ,
ReceivedWhisper   
)

◆ TEST() [7/11]

TEST ( TwitchPubSubClient  ,
ModeratorActionsUserBanned   
)

◆ TEST() [8/11]

TEST ( TwitchPubSubClient  ,
MissingToken   
)

◆ TEST() [9/11]

TEST ( TwitchPubSubClient  ,
WrongToken   
)

◆ TEST() [10/11]

TEST ( TwitchPubSubClient  ,
CorrectToken   
)

◆ TEST() [11/11]

TEST ( TwitchPubSubClient  ,
AutoModMessageHeld   
)