aboutsummaryrefslogtreecommitdiff
path: root/src/test/include.am
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-10-22 11:35:53 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-10-28 13:17:11 -0400
commitdba249bc735b02b6cafe92e5be7e8df049c53ae6 (patch)
tree7d867b4c74b78d033e8959740f3480d7fdc9b44c /src/test/include.am
parenta41ec8491480ea27588225c8db108503b2d7f757 (diff)
downloadtor-dba249bc735b02b6cafe92e5be7e8df049c53ae6.tar.gz
tor-dba249bc735b02b6cafe92e5be7e8df049c53ae6.zip
test: Add fakecircs.{h|c} helper
Fake circuits are created everywhere in the unit tests. This is an attempt at centralizing a "fake circuit creation" API like fakechans.c does for channel. This commit introduces fakecircs.c and changes test_relay.c and test_circpadding.c which were using roughly the same code. This will allow easier OR circuit creation for the future tests in test_circuitmux.c Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/include.am')
-rw-r--r--src/test/include.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/include.am b/src/test/include.am
index d8e25dea9f..294b9f309c 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -99,6 +99,7 @@ if UNITTESTS_ENABLED
# ADD_C_FILE: INSERT SOURCES HERE.
src_test_test_SOURCES += \
+ src/test/fakecircs.c \
src/test/log_test_helpers.c \
src/test/hs_test_helpers.c \
src/test/rend_test_helpers.c \
@@ -339,6 +340,7 @@ src_test_test_timers_LDFLAGS = $(src_test_test_LDFLAGS)
# ADD_C_FILE: INSERT HEADERS HERE.
noinst_HEADERS+= \
src/test/fakechans.h \
+ src/test/fakecircs.h \
src/test/hs_test_helpers.h \
src/test/log_test_helpers.h \
src/test/rend_test_helpers.h \