/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "str.h"
#include "istream-private.h"
#include "istream-base64.h"
static const struct test {
const char *input;
unsigned int chars_per_line;
bool crlf;
const char *output;
} tests[] = {
"aGVsbG8gdG8gdGhlIHdvcmxkISE=" },
"aGVsbG8g\ndG8gdGhl\nIHdvcmxk\nISE=" },
"aGVsbG8g\r\ndG8gdGhl\r\nIHdvcmxk\r\nISE=" },
};
{
const unsigned char *data;
for (i = 1; i <= text_len; i++) {
test_assert(ret == 0);
}
test_assert(ret > 0);
}
static void
{
const unsigned char *data;
while (i_stream_read(input) > 0) ;
}
}
void test_istream_base64_encoder(void)
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(tests); i++) {
test_end();
}
test_begin("istream base64 encoder seek");
test_end();
}