fix unittest: init() got 4 parameters instead of 3.

pull/2/head^2
roker 2021-05-27 15:39:23 +02:00
parent 8f10a76cb4
commit 534daedca0
1 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class EncodeDecodeTest : public ::testing::Test
protected:
void SetUp() override
{
init(&session, &dummy_send, &dummy_inject);
init(&session, &dummy_send, &dummy_inject, &dummy_ensure_passphrase);
random_name = gen_random_name();
const std::string address = "encode-decode-test." + random_name + "@peptest.ch";
@ -83,7 +83,10 @@ protected:
static
PEP_STATUS dummy_send(struct _message*) { return PEP_STATUS_OK; }
static
PEP_STATUS dummy_ensure_passphrase(PEP_SESSION, const char* /* fpr */) { return PEP_STATUS_OK; }
PEP_SESSION session = nullptr;
std::string random_name;
pEp_identity* my_identity = nullptr;