Add a test for the info callback
[openssl.git] / test / testutil / output.h
1 /*
2  * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef HEADER_TU_OUTPUT_H
11 # define HEADER_TU_OUTPUT_H
12
13 #include <stdarg.h>
14
15 /*
16  * The basic I/O functions used internally by the test framework.  These
17  * can be overridden when needed. Note that if one is, then all must be.
18  */
19 void test_open_streams(void);
20 void test_close_streams(void);
21 /* The following ALL return the number of characters written */
22 int test_vprintf_stdout(const char *fmt, va_list ap);
23 int test_vprintf_stderr(const char *fmt, va_list ap);
24 /* These return failure or success */
25 int test_flush_stdout(void);
26 int test_flush_stderr(void);
27
28 /* Commodity functions.  There's no need to override these */
29 int test_printf_stdout(const char *fmt, ...);
30 int test_printf_stderr(const char *fmt, ...);
31
32 #endif                          /* HEADER_TU_OUTPUT_H */