diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-01 17:29:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:03:37 -0400 |
commit | 28bb673584b3e7e839bebce64bd986c6c4ad1faa (patch) | |
tree | 102e828fd7f9be5ab565686fa3e0062acec3d58f /src/or/main.c | |
parent | 636aeb1f24fadd4c6c45dbfd1539f6312c91cc60 (diff) | |
download | tor-28bb673584b3e7e839bebce64bd986c6c4ad1faa.tar.gz tor-28bb673584b3e7e839bebce64bd986c6c4ad1faa.zip |
White-box tests for the succeeding case of ext_or_port handshake.
(Okay, white-box plus mocking enough other functions so they don't
crash.)
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/or/main.c b/src/or/main.c index 20cc292fd5..d8f86bcec4 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -519,8 +519,8 @@ connection_is_reading(connection_t *conn) } /** Tell the main loop to stop notifying <b>conn</b> of any read events. */ -void -connection_stop_reading(connection_t *conn) +MOCK_IMPL(void, +connection_stop_reading,(connection_t *conn)) { tor_assert(conn); @@ -544,8 +544,8 @@ connection_stop_reading(connection_t *conn) } /** Tell the main loop to start notifying <b>conn</b> of any read events. */ -void -connection_start_reading(connection_t *conn) +MOCK_IMPL(void, +connection_start_reading,(connection_t *conn)) { tor_assert(conn); @@ -584,8 +584,8 @@ connection_is_writing(connection_t *conn) } /** Tell the main loop to stop notifying <b>conn</b> of any write events. */ -void -connection_stop_writing(connection_t *conn) +MOCK_IMPL(void, +connection_stop_writing,(connection_t *conn)) { tor_assert(conn); @@ -610,8 +610,8 @@ connection_stop_writing(connection_t *conn) } /** Tell the main loop to start notifying <b>conn</b> of any write events. */ -void -connection_start_writing(connection_t *conn) +MOCK_IMPL(void, +connection_start_writing,(connection_t *conn)) { tor_assert(conn); |