summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-08 11:51:36 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-05 13:57:51 -0400
commit234c5015f1536bc51fe5f87c5b7c1072d3f9dbd2 (patch)
treec42f7496f55bf59ab8e0103239d2eec766b95aae /src/test
parentbabe31fc7c52700ae1d04f9b95eca75459d1a8c2 (diff)
downloadtor-234c5015f1536bc51fe5f87c5b7c1072d3f9dbd2.tar.gz
tor-234c5015f1536bc51fe5f87c5b7c1072d3f9dbd2.zip
Move protocol-specific functions out of buffers.c
This commit does not change the implementation of any function: it only moves code and adds new includes as necessary. Part of #23149.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_buffers.c5
-rw-r--r--src/test/test_dir_handle_get.c1
-rw-r--r--src/test/test_hs_cache.c1
-rw-r--r--src/test/test_socks.c1
4 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test_buffers.c b/src/test/test_buffers.c
index a85fb95f0a..3eb4ac2a35 100644
--- a/src/test/test_buffers.c
+++ b/src/test/test_buffers.c
@@ -4,9 +4,14 @@
/* See LICENSE for licensing information */
#define BUFFERS_PRIVATE
+#define PROTO_HTTP_PRIVATE
#include "or.h"
#include "buffers.h"
#include "ext_orport.h"
+#include "proto_cell.h"
+#include "proto_http.h"
+#include "proto_control0.h"
+#include "proto_socks.h"
#include "test.h"
/** Run unit tests for buffers.c */
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index 75fe6249ad..c4c74df662 100644
--- a/src/test/test_dir_handle_get.c
+++ b/src/test/test_dir_handle_get.c
@@ -28,6 +28,7 @@
#include "entrynodes.h"
#include "routerparse.h"
#include "networkstatus.h"
+#include "proto_http.h"
#include "geoip.h"
#include "dirserv.h"
#include "dirvote.h"
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c
index cbd88acff1..950c0483d1 100644
--- a/src/test/test_hs_cache.c
+++ b/src/test/test_hs_cache.c
@@ -15,6 +15,7 @@
#include "rendcache.h"
#include "directory.h"
#include "connection.h"
+#include "proto_http.h"
#include "hs_test_helpers.h"
#include "test_helpers.h"
diff --git a/src/test/test_socks.c b/src/test/test_socks.c
index 7c0960f0f9..571f457355 100644
--- a/src/test/test_socks.c
+++ b/src/test/test_socks.c
@@ -6,6 +6,7 @@
#include "or.h"
#include "buffers.h"
#include "config.h"
+#include "proto_socks.h"
#include "test.h"
typedef struct socks_test_data_t {