summaryrefslogtreecommitdiff
path: root/src/or/circuitmux.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-22 01:00:25 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:02 -0700
commit5b7a58f7c43c98c1f1fbb6bc347263c5247a5ab7 (patch)
treece3d8bf07d4e8af549d1797449c463bf64ba1c69 /src/or/circuitmux.c
parent76fcb8cb55d91aa66699266b00ff5379e3c99461 (diff)
downloadtor-5b7a58f7c43c98c1f1fbb6bc347263c5247a5ab7.tar.gz
tor-5b7a58f7c43c98c1f1fbb6bc347263c5247a5ab7.zip
Make circuitmux_num_cells() mockable
Diffstat (limited to 'src/or/circuitmux.c')
-rw-r--r--src/or/circuitmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c
index 29c3be17d5..71bc4efc4a 100644
--- a/src/or/circuitmux.c
+++ b/src/or/circuitmux.c
@@ -896,8 +896,8 @@ circuitmux_num_cells_for_circuit(circuitmux_t *cmux, circuit_t *circ)
* Query total number of available cells on a circuitmux
*/
-unsigned int
-circuitmux_num_cells(circuitmux_t *cmux)
+MOCK_IMPL(unsigned int,
+circuitmux_num_cells, (circuitmux_t *cmux))
{
tor_assert(cmux);