/* 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 {
const char *input;
const char *output;
int stream_errno;
} tests[] = {
{ "aGVsbG8gd29ybGQ=", "hello world", 0 },
{ "\naGVs\nbG8g\nd29y\nbGQ=\n", "hello world", 0 },
{ " aGVs \r\n bG8g \r\n d29y \t \r\n bGQ= \r\n\r\n", "hello world", 0 },
{ "\r", "", 0 },
{ "\n", "", 0 },
{ "\r\n", "", 0 },
{ " ", "", 0 },
};
static void
{
const unsigned char *data;
int ret = 0;
for (i = 1; i <= base64_input_len; i++) {
break;
test_assert(ret == 0);
}
if (ret == 0) {
}
if (size > 0)
}
void test_istream_base64_decoder(void)
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(tests); i++) {
test_end();
}
}