aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-10 07:50:17 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-10 07:50:17 -0400
commit8390df917b7e63696c70037765737037cd9162a0 (patch)
tree6560380a9da89dcbb356aaf1d0a5d8758ba95790 /src/test
parent18391f689ea11b064a9313be8824834df8be2a9e (diff)
downloadtor-8390df917b7e63696c70037765737037cd9162a0.tar.gz
tor-8390df917b7e63696c70037765737037cd9162a0.zip
Split bandwidth history functions into a separate C file.
These are logically independent from the rest of rephist, and make more sense in isolation. The next patch will rename them too.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_relay.c4
-rw-r--r--src/test/test_router.c2
-rw-r--r--src/test/testing_common.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/test/test_relay.c b/src/test/test_relay.c
index 066aeaa7b3..060ca1b75d 100644
--- a/src/test/test_relay.c
+++ b/src/test/test_relay.c
@@ -3,12 +3,12 @@
#define CIRCUITBUILD_PRIVATE
#define RELAY_PRIVATE
-#define REPHIST_PRIVATE
+#define BWHIST_PRIVATE
#include "core/or/or.h"
#include "core/or/circuitbuild.h"
#include "core/or/circuitlist.h"
#include "core/or/channeltls.h"
-#include "feature/stats/rephist.h"
+#include "feature/stats/bwhist.h"
#include "core/or/relay.h"
#include "lib/container/order.h"
/* For init/free stuff */
diff --git a/src/test/test_router.c b/src/test/test_router.c
index cf0c2b3dd1..9822729f57 100644
--- a/src/test/test_router.c
+++ b/src/test/test_router.c
@@ -24,7 +24,7 @@
#include "feature/nodelist/routerlist.h"
#include "feature/nodelist/routerstatus_st.h"
#include "feature/relay/router.h"
-#include "feature/stats/rephist.h"
+#include "feature/stats/bwhist.h"
#include "lib/crypt_ops/crypto_curve25519.h"
#include "lib/crypt_ops/crypto_ed25519.h"
#include "lib/encoding/confline.h"
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index b3337f24b0..cd93055dfb 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -18,6 +18,7 @@
#include "lib/crypt_ops/crypto_ed25519.h"
#include "lib/crypt_ops/crypto_rand.h"
#include "feature/stats/predict_ports.h"
+#include "feature/stats/bwhist.h"
#include "feature/stats/rephist.h"
#include "lib/err/backtrace.h"
#include "test/test.h"
@@ -333,6 +334,7 @@ main(int c, const char **v)
return 1;
}
rep_hist_init();
+ bwhist_init();
setup_directory();
initialize_mainloop_events();
options_init(options);