message_api unit test further...
authorvb
Mon, 23 Feb 2015 17:25:24 +0100
changeset 713a036da3e479
parent 69 c119ffc3065f
child 72 07265a6367ff
message_api unit test further...
test/message_api_test.cc
     1.1 --- a/test/message_api_test.cc	Mon Feb 23 16:10:22 2015 +0100
     1.2 +++ b/test/message_api_test.cc	Mon Feb 23 17:25:24 2015 +0100
     1.3 @@ -32,10 +32,18 @@
     1.4      assert(status3 == PEP_STATUS_OK);
     1.5      assert(enc_msg3);
     1.6      cout << "message encrypted.\n";
     1.7 -    free_message(enc_msg3);
     1.8      
     1.9 +    cout << "encrypting message in pieces…\n";
    1.10 +    message *enc_msg4;
    1.11 +    cout << "calling encrypt_message()\n";
    1.12 +    PEP_STATUS status4 = encrypt_message(session, msg, NULL, &enc_msg4, PEP_enc_pieces);
    1.13 +    assert(status4 == PEP_STATUS_OK);
    1.14 +    assert(enc_msg4);
    1.15 +    cout << "message encrypted.\n";
    1.16 +
    1.17      cout << "freeing messages…\n";
    1.18      free_message(msg);
    1.19 +    free_message(enc_msg3);
    1.20      cout << "done.\n";
    1.21  
    1.22      cout << "calling release()\n";