test/src/engine_tests/DecorateTests.cc
branchkrista-netpgp-sync
changeset 3276 c0b3430f1f1d
parent 3254 6e7f6bc9460a
child 3292 673b8c6da681
     1.1 --- a/test/src/engine_tests/DecorateTests.cc	Wed Feb 06 14:58:03 2019 +0100
     1.2 +++ b/test/src/engine_tests/DecorateTests.cc	Wed Feb 06 18:21:04 2019 +0100
     1.3 @@ -1,6 +1,7 @@
     1.4  // This file is under GNU General Public License 3.0
     1.5  // see LICENSE.txt
     1.6  
     1.7 +#include "TestConstants.h"
     1.8  #include <cpptest.h>
     1.9  #include <cpptest-suite.h>
    1.10  #include <cpptest-textoutput.h>
    1.11 @@ -35,9 +36,9 @@
    1.12      PEP_STATUS statuspub = import_key(session, alice_pub_key.c_str(), alice_pub_key.length(), NULL);
    1.13      PEP_STATUS statuspriv = import_key(session, alice_priv_key.c_str(), alice_priv_key.length(), NULL);
    1.14      PEP_STATUS statusbob = import_key(session, bob_pub_key.c_str(), bob_pub_key.length(), NULL);
    1.15 -    TEST_ASSERT_MSG((statuspub == PEP_KEY_IMPORTED), "statuspub == PEP_STATUS_OK");
    1.16 -    TEST_ASSERT_MSG((statuspriv == PEP_KEY_IMPORTED), "statuspriv == PEP_STATUS_OK");
    1.17 -    TEST_ASSERT_MSG((statusbob == PEP_KEY_IMPORTED), "statusbob == PEP_STATUS_OK");
    1.18 +    TEST_ASSERT_MSG((statuspub == PEP_TEST_KEY_IMPORT_SUCCESS), "statuspub == PEP_STATUS_OK");
    1.19 +    TEST_ASSERT_MSG((statuspriv == PEP_TEST_KEY_IMPORT_SUCCESS), "statuspriv == PEP_STATUS_OK");
    1.20 +    TEST_ASSERT_MSG((statusbob == PEP_TEST_KEY_IMPORT_SUCCESS), "statusbob == PEP_STATUS_OK");
    1.21  
    1.22      cout << "creating message…\n";
    1.23      pEp_identity* alice = new_identity("pep.test.alice@pep-project.org", NULL, PEP_OWN_USERID, "Alice Test");