view src/tests/test-common.h @ 9565:7c447e8c24fe HEAD

maildir: If we detect MH as the cause of unexpunging, log it in the error message.
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Apr 2010 20:43:16 +0300
parents 2ac2ca9089bf
children
line wrap: on
line source

#ifndef TEST_COMMON_H
#define TEST_COMMON_H

struct istream *test_istream_create(const char *data);
void test_istream_set_size(struct istream *input, uoff_t size);
void test_istream_set_allow_eof(struct istream *input, bool allow);

void test_out(const char *name, bool success);
void test_out_reason(const char *name, bool success, const char *reason);

void test_init(void);
int test_deinit(void);

#endif