Test /otr gen

This commit is contained in:
James Booth
2014-02-16 19:35:40 +00:00
parent e048b3196e
commit 4eac5c0d43
5 changed files with 26 additions and 7 deletions

View File

@@ -21,12 +21,6 @@ _mock_otr_libotr_version(void)
return (char *)mock();
}
void
mock_otr_keygen(void)
{
otr_keygen = _mock_otr_keygen;
}
void
mock_otr_libotr_version(void)
{
@@ -36,6 +30,7 @@ mock_otr_libotr_version(void)
void
otr_keygen_expect(ProfAccount *account)
{
otr_keygen = _mock_otr_keygen;
expect_memory(_mock_otr_keygen, account, account, sizeof(ProfAccount));
}

View File

@@ -3,7 +3,6 @@
#include "config/account.h"
void mock_otr_keygen(void);
void otr_keygen_expect(ProfAccount *account);
void mock_otr_libotr_version(void);