diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-03 08:54:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-04 08:03:19 -0400 |
commit | 4a0749596cc21198dd853bb0c631e9658db7fe2d (patch) | |
tree | 6a23a73b7678df168928895acbff434980a7a728 /src/test/include.am | |
parent | 9c24ceeb3f2082193bf76a77ad6d6d011561e239 (diff) | |
download | tor-4a0749596cc21198dd853bb0c631e9658db7fe2d.tar.gz tor-4a0749596cc21198dd853bb0c631e9658db7fe2d.zip |
Add a mock replacement for blocking hostname resolution
Based on examination of our tests, this mock function accepts
"localhost" and "torproject.org", and rejects everything else.
Diffstat (limited to 'src/test/include.am')
-rw-r--r-- | src/test/include.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/include.am b/src/test/include.am index 2dd4d8c583..acd0824d0d 100644 --- a/src/test/include.am +++ b/src/test/include.am @@ -102,6 +102,7 @@ src_test_test_SOURCES += \ src/test/log_test_helpers.c \ src/test/hs_test_helpers.c \ src/test/rend_test_helpers.c \ + src/test/resolve_test_helpers.c \ src/test/rng_test_helpers.c \ src/test/test.c \ src/test/test_accounting.c \ @@ -340,6 +341,7 @@ noinst_HEADERS+= \ src/test/hs_test_helpers.h \ src/test/log_test_helpers.h \ src/test/rend_test_helpers.h \ + src/test/resolve_test_helpers.h \ src/test/rng_test_helpers.h \ src/test/test.h \ src/test/ptr_helpers.h \ |