diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-03 11:42:50 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:41 -0400 |
commit | 39be8af7092a4ee004f4c53fa1e55678d9d67f1f (patch) | |
tree | 70cc2057b42c253fe4c93f71b7db2f1e52d8d0d0 /src/or/shared_random_state.h | |
parent | 727d419a9d0845e7820364e8a8f0928043c67111 (diff) | |
download | tor-39be8af7092a4ee004f4c53fa1e55678d9d67f1f.tar.gz tor-39be8af7092a4ee004f4c53fa1e55678d9d67f1f.zip |
prop250: Add unit tests
Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/shared_random_state.h')
-rw-r--r-- | src/or/shared_random_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/shared_random_state.h b/src/or/shared_random_state.h index 499a3754b6..d013650aa2 100644 --- a/src/or/shared_random_state.h +++ b/src/or/shared_random_state.h @@ -135,4 +135,11 @@ STATIC int is_phase_transition(sr_phase_t next_phase); #endif /* SHARED_RANDOM_STATE_PRIVATE */ +#ifdef TOR_UNIT_TESTS + +STATIC void set_sr_phase(sr_phase_t phase); +STATIC sr_state_t *get_sr_state(void); + +#endif /* TOR_UNIT_TESTS */ + #endif /* TOR_SHARED_RANDOM_STATE_H */ |