ENGINE-212 fixed test/encrypt_for_identity_test.cc.
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 09 Jun 2017 17:36:38 +0200
changeset 18487400c532bb36
parent 1847 050f0e83c3f7
child 1849 8b7bed853a1f
child 1850 aa7bbc79e2e3
ENGINE-212 fixed test/encrypt_for_identity_test.cc.
test/encrypt_for_identity_test.cc
     1.1 --- a/test/encrypt_for_identity_test.cc	Fri Jun 09 16:36:43 2017 +0200
     1.2 +++ b/test/encrypt_for_identity_test.cc	Fri Jun 09 17:36:38 2017 +0200
     1.3 @@ -9,6 +9,7 @@
     1.4  #include <assert.h>
     1.5  #include "mime.h"
     1.6  #include "message_api.h"
     1.7 +#include "keymanagement.h"
     1.8  #include "test_util.h"
     1.9  
    1.10  using namespace std;
    1.11 @@ -35,9 +36,13 @@
    1.12      assert(statuspriv == PEP_STATUS_OK);
    1.13  
    1.14      cout << "creating message…\n";
    1.15 -    pEp_identity* alice = new_identity("pep.test.alice@pep-project.org", NULL, PEP_OWN_USERID, "Alice Test");
    1.16 +    pEp_identity* alice = new_identity("pep.test.alice@pep-project.org", "4ABE3AAF59AC32CFE4F86500A9411D176FF00E97", PEP_OWN_USERID, "Alice Test");
    1.17      pEp_identity* bob = new_identity("pep.test.bob@pep-project.org", NULL, "42", "Bob Test");
    1.18      alice->me = true;
    1.19 +
    1.20 +    PEP_STATUS mystatus = myself(session, alice);
    1.21 +    assert(mystatus == PEP_STATUS_OK);
    1.22 +
    1.23      identity_list* to_list = new_identity_list(bob); // to bob
    1.24      message* outgoing_message = new_message(PEP_dir_outgoing);
    1.25      assert(outgoing_message);