summaryrefslogtreecommitdiff
path: root/auto_tests/friend_connection_test.c
blob: a165678c0dfa52dbed0d87c8c136e9794c2bb996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Tests that we can make a friend connection.
 *
 * This is the simplest test that brings up two toxes that can talk to each
 * other. It's useful as a copy/pasteable starting point for testing other
 * features.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdint.h>

typedef struct State {
    uint32_t index;
} State;

#include "run_auto_test.h"

static void friend_connection_test(Tox **toxes, State *state)
{
    // Nothing to do here. When copying this test, add test-specific code here.
}

int main(void)
{
    setvbuf(stdout, nullptr, _IONBF, 0);

    run_auto_test(2, friend_connection_test);
    return 0;
}