mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Add tests for options_act
This commit is contained in:
parent
d062baac86
commit
5edd431d92
5 changed files with 3404 additions and 7 deletions
|
@ -2691,8 +2691,7 @@ static int uname_result_is_set = 0;
|
|||
|
||||
/** Return a pointer to a description of our platform.
|
||||
*/
|
||||
const char *
|
||||
get_uname(void)
|
||||
MOCK_IMPL(const char *, get_uname, (void))
|
||||
{
|
||||
#ifdef HAVE_UNAME
|
||||
struct utsname u;
|
||||
|
|
|
@ -601,7 +601,7 @@ typedef enum {
|
|||
} socks5_reply_status_t;
|
||||
|
||||
/* ===== OS compatibility */
|
||||
const char *get_uname(void);
|
||||
MOCK_DECL(const char *, get_uname, (void));
|
||||
|
||||
uint16_t get_uint16(const void *cp) ATTR_NONNULL((1));
|
||||
uint32_t get_uint32(const void *cp) ATTR_NONNULL((1));
|
||||
|
@ -708,4 +708,3 @@ ssize_t tor_getpass(const char *prompt, char *output, size_t buflen);
|
|||
#include "compat_threads.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -108,4 +108,3 @@ mock_saving_logv(int severity, log_domain_mask_t domain,
|
|||
saved_logs = smartlist_new();
|
||||
smartlist_add(saved_logs, e);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,4 +28,3 @@ int mock_saved_severity_at(int ix);
|
|||
int mock_saved_log_number(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue