/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "buffer.h"
#include "str.h"
#include "randgen.h"
#include "istream.h"
#include "ostream.h"
static void test_ostream_buffer_random_once(void)
{
for (i = 0; i < 10; i++) {
if (i_rand_limit(10) == 0)
}
}
static void test_ostream_buffer_random(void)
{
unsigned int i;
test_begin("ostream buffer pwrite random");
for (i = 0; i < 100; i++) T_BEGIN {
} T_END;
test_end();
}
static void test_ostream_buffer_size(void)
{
test_begin("ostream buffer size/available");
/* test shrinking sink's max buffer size */
/* partial send */
/* increase max buffer size so that it can hold the whole message */
/* send the rest */
/* check buffered data */
test_end();
}
void test_ostream_buffer(void)
{
}