168
|
1 |
#ifndef TEST_IRC_NET_H
|
|
2 |
#define TEST_IRC_NET_H
|
|
3 |
|
|
4 |
/**
|
|
5 |
* @file
|
|
6 |
*
|
|
7 |
* Functionality for testing irc_net
|
|
8 |
*/
|
|
9 |
#include "../irc_net.h"
|
|
10 |
#include "transport.h"
|
|
11 |
|
|
12 |
/**
|
|
13 |
* Setup an irc_net using the given socket, and consume the register request output, but do not push the RPL_WELCOME.
|
|
14 |
*/
|
|
15 |
struct irc_net* setup_irc_net_unregistered (struct transport_test *tp);
|
|
16 |
|
|
17 |
/**
|
|
18 |
* Push the RPL_WELCOME reply.
|
|
19 |
*/
|
|
20 |
void test_irc_net_welcome (struct transport_test *tp, struct irc_net *net);
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Creates an irc_net and puts it into the registered state
|
|
24 |
*/
|
|
25 |
struct irc_net* setup_irc_net (struct transport_test *tp);
|
|
26 |
|
|
27 |
|
|
28 |
#endif /* TEST_IRC_NET_H */
|