test/test_util.h
author Krista Bennett <krista@pep-project.org>
Wed, 14 Jun 2017 18:52:55 +0200
branchENGINE-215
changeset 1856 99348d336639
parent 1812 925ad845e3ec
child 2282 eed4a7047201
permissions -rw-r--r--
ENGINE-215: needs to be tested, test cases impacted by the change need to be adjusted
     1 #include <string>
     2 #include "pEpEngine.h"
     3 #include "message_api.h"
     4 
     5 // reads a whole file and returns it as std::string
     6 // throws std::runtime_error() if the file cannot be read. Empty file is not an error.
     7 std::string slurp(const std::string& filename);
     8 
     9 // Returns the string value of the input rating enum value. 
    10 const char* tl_rating_string(PEP_rating rating);
    11 
    12 // Returns the string value of the input comm_type enum value. 
    13 const char* tl_ct_string(PEP_comm_type ct);
    14 
    15 // Returns the string value of the input status enum value. 
    16 const char* tl_status_string(PEP_STATUS status);