test_helpers.h 570 B

123456789101112131415161718192021
  1. /* Copyright (c) 2014-2016, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. #ifndef TOR_TEST_HELPERS_H
  4. #define TOR_TEST_HELPERS_H
  5. const char *get_yesterday_date_str(void);
  6. /* Number of descriptors contained in test_descriptors.txt. */
  7. #define HELPER_NUMBER_OF_DESCRIPTORS 8
  8. void helper_setup_fake_routerlist(void);
  9. #define GET(path) "GET " path " HTTP/1.0\r\n\r\n"
  10. void connection_write_to_buf_mock(const char *string, size_t len,
  11. connection_t *conn, int zlib);
  12. extern const char TEST_DESCRIPTORS[];
  13. #endif