/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "ioloop.h"
#include "str.h"
#include "istream.h"
#include "istream-multiplex.h"
#include "ostream.h"
#include "ostream-multiplex.h"
#include "ostream.h"
#include "randgen.h"
#include <unistd.h>
struct test_channel {
unsigned int cid;
unsigned int counter;
};
{
}
{
else
}
{
}
}
{
}
}
{
/* setup first channel */
channel);
channel);
}
{
}
static void test_multiplex_stream(void) {
test_begin("test multiplex (stream)");
i_stream_unref(&is);
o_stream_unref(&os);
test_channel[0].cid = 0;
teardown_channel(&test_channel[0]);
i_close_fd(&fds[0]);
test_end();
}
void test_multiplex(void) {
random_init();
}