test/message_api_test.cc
branchkeysync
changeset 1006 0dc1800f8b2d
parent 940 5f0a9d0f0ecd
child 1325 5f2e643a4fd7
     1.1 --- a/test/message_api_test.cc	Thu Aug 11 21:48:26 2016 +0200
     1.2 +++ b/test/message_api_test.cc	Fri Aug 12 14:28:27 2016 +0200
     1.3 @@ -75,14 +75,14 @@
     1.4  
     1.5      message *msg4 = nullptr;
     1.6      stringlist_t *keylist4 = nullptr;
     1.7 -    PEP_color color;
     1.8 +    PEP_rating rating;
     1.9      PEP_decrypt_flags_t flags;
    1.10      
    1.11 -    PEP_STATUS status4 = decrypt_message(session, enc_msg2, &msg4, &keylist4, &color, &flags);
    1.12 +    PEP_STATUS status4 = decrypt_message(session, enc_msg2, &msg4, &keylist4, &rating, &flags);
    1.13      assert(status4 == PEP_STATUS_OK);
    1.14      assert(msg4);
    1.15      assert(keylist4);
    1.16 -    assert(color);
    1.17 +    assert(rating);
    1.18      PEP_comm_type ct = enc_msg2->from->comm_type;
    1.19      assert(ct == PEP_ct_pEp || ct == PEP_ct_pEp_unconfirmed || ct == PEP_ct_OpenPGP || ct == PEP_ct_OpenPGP_unconfirmed );
    1.20  
    1.21 @@ -119,14 +119,14 @@
    1.22  
    1.23      message *msg6 = nullptr;
    1.24      stringlist_t *keylist5 = nullptr;
    1.25 -    PEP_color color2;
    1.26 +    PEP_rating rating2;
    1.27      PEP_decrypt_flags_t flags2;
    1.28 -    PEP_STATUS status6 = decrypt_message(session, msg5, &msg6, &keylist5, &color2, &flags2);
    1.29 +    PEP_STATUS status6 = decrypt_message(session, msg5, &msg6, &keylist5, &rating2, &flags2);
    1.30      assert(status6 == PEP_DECRYPT_NO_KEY);
    1.31      assert(msg6 == NULL);
    1.32      assert(keylist5 == NULL);
    1.33 -    assert(color2 == PEP_rating_have_no_key);
    1.34 -    cout << "color :" << color2 << "\n";
    1.35 +    assert(rating2 == PEP_rating_have_no_key);
    1.36 +    cout << "rating :" << rating2 << "\n";
    1.37      free_stringlist(keylist5);
    1.38  
    1.39      cout << "freeing messages…\n";