2016-02-27 18:48:19 +01:00
|
|
|
/* Copyright (c) 2014-2016, The Tor Project, Inc. */
|
2015-01-29 16:09:53 +01:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef TOR_TEST_HELPERS_H
|
|
|
|
#define TOR_TEST_HELPERS_H
|
|
|
|
|
|
|
|
const char *get_yesterday_date_str(void);
|
|
|
|
|
2016-10-16 13:40:37 +02:00
|
|
|
circuit_t * dummy_origin_circuit_new(int num_cells);
|
|
|
|
|
2015-02-18 15:19:38 +01:00
|
|
|
/* Number of descriptors contained in test_descriptors.txt. */
|
|
|
|
#define HELPER_NUMBER_OF_DESCRIPTORS 8
|
|
|
|
|
|
|
|
void helper_setup_fake_routerlist(void);
|
|
|
|
|
2016-08-25 17:11:23 +02:00
|
|
|
#define GET(path) "GET " path " HTTP/1.0\r\n\r\n"
|
|
|
|
void connection_write_to_buf_mock(const char *string, size_t len,
|
|
|
|
connection_t *conn, int zlib);
|
|
|
|
|
2015-02-18 15:19:38 +01:00
|
|
|
extern const char TEST_DESCRIPTORS[];
|
|
|
|
|
2015-01-29 16:09:53 +01:00
|
|
|
#endif
|
|
|
|
|