view src/tests/test-common.h @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 May 2010 17:07:51 +0100
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