Include config.h from tests/*.h

This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-19 11:46:49 +09:00
parent dcae6efaa2
commit 65b59bd78a
13 changed files with 48 additions and 3 deletions

View File

@ -25,6 +25,10 @@
#ifndef FAILMALLOC_TEST_H
#define FAILMALLOC_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_session_send(void);
void test_nghttp2_session_recv(void);
void test_nghttp2_frame(void);

View File

@ -25,6 +25,10 @@
#ifndef MALLOC_WRAPPER_H
#define MALLOC_WRAPPER_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include <stdlib.h>
#include "nghttp2_mem.h"

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_BUF_TEST_H
#define NGHTTP2_BUF_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_bufs_add(void);
void test_nghttp2_bufs_add_stack_buffer_overflow_bug(void);
void test_nghttp2_bufs_addb(void);

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_FRAME_TEST_H
#define NGHTTP2_FRAME_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_frame_pack_headers(void);
void test_nghttp2_frame_pack_headers_frame_too_large(void);
void test_nghttp2_frame_pack_priority(void);

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_HD_TEST_H
#define NGHTTP2_HD_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_hd_deflate(void);
void test_nghttp2_hd_deflate_same_indexed_repr(void);
void test_nghttp2_hd_inflate_indexed(void);

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_HELPER_TEST_H
#define NGHTTP2_HELPER_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_adjust_local_window_size(void);
void test_nghttp2_check_header_name(void);
void test_nghttp2_check_header_value(void);

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_MAP_TEST_H
#define NGHTTP2_MAP_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_map(void);
void test_nghttp2_map_functional(void);
void test_nghttp2_map_each_free(void);

View File

@ -22,9 +22,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include "nghttp2_npn_test.h"
#include <string.h>

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_NPN_TEST_H
#define NGHTTP2_NPN_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_npn(void);
#endif /* NGHTTP2_NPN_TEST_H */

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_PQ_TEST_H
#define NGHTTP2_PQ_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_pq(void);
void test_nghttp2_pq_update(void);
void test_nghttp2_pq_remove(void);

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_QUEUE_TEST_H
#define NGHTTP2_QUEUE_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_queue(void);
#endif /* NGHTTP2_QUEUE_TEST_H */

View File

@ -25,6 +25,10 @@
#ifndef NGHTTP2_SESSION_TEST_H
#define NGHTTP2_SESSION_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
void test_nghttp2_session_recv(void);
void test_nghttp2_session_recv_invalid_stream_id(void);
void test_nghttp2_session_recv_invalid_frame(void);

View File

@ -25,4 +25,8 @@
#ifndef NGHTTP2_STREAM_TEST_H
#define NGHTTP2_STREAM_TEST_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#endif /* NGHTTP2_STREAM_TEST_H */