aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-08-01 17:29:10 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-15 12:03:37 -0400
commit28bb673584b3e7e839bebce64bd986c6c4ad1faa (patch)
tree102e828fd7f9be5ab565686fa3e0062acec3d58f /src/or/main.h
parent636aeb1f24fadd4c6c45dbfd1539f6312c91cc60 (diff)
downloadtor-28bb673584b3e7e839bebce64bd986c6c4ad1faa.tar
tor-28bb673584b3e7e839bebce64bd986c6c4ad1faa.tar.gz
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.h')
-rw-r--r--src/or/main.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 4aebe3eee..df302ffa7 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -36,12 +36,12 @@ typedef enum watchable_events {
} watchable_events_t;
void connection_watch_events(connection_t *conn, watchable_events_t events);
int connection_is_reading(connection_t *conn);
-void connection_stop_reading(connection_t *conn);
-void connection_start_reading(connection_t *conn);
+MOCK_DECL(void,connection_stop_reading,(connection_t *conn));
+MOCK_DECL(void,connection_start_reading,(connection_t *conn));
int connection_is_writing(connection_t *conn);
-void connection_stop_writing(connection_t *conn);
-void connection_start_writing(connection_t *conn);
+MOCK_DECL(void,connection_stop_writing,(connection_t *conn));
+MOCK_DECL(void,connection_start_writing,(connection_t *conn));
void connection_stop_reading_from_linked_conn(connection_t *conn);