Browse Source

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

Release_2.1
roker 1 year ago
parent
commit
534daedca0
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      server/unittest_encrypt_decrypt.cc

+ 5
- 2
server/unittest_encrypt_decrypt.cc 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;


Loading…
Cancel
Save