mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
dc3a2037f5
Move code to create connection streams and rend_data structures to test_helpers so that we can use them from the e2e rendezvous circuit unittests.
14 lines
483 B
C
14 lines
483 B
C
/* Copyright (c) 2014-2017, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/** Some constants used by test_connection and helpers */
|
|
#define TEST_CONN_FAMILY (AF_INET)
|
|
#define TEST_CONN_ADDRESS "127.0.0.1"
|
|
#define TEST_CONN_PORT (12345)
|
|
#define TEST_CONN_ADDRESS_PORT "127.0.0.1:12345"
|
|
#define TEST_CONN_FD_INIT 50
|
|
|
|
void test_conn_lookup_addr_helper(const char *address,
|
|
int family, tor_addr_t *addr);
|
|
|