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
roker@1656
     1
#include <string>
krista@1812
     2
#include "pEpEngine.h"
krista@1812
     3
#include "message_api.h"
roker@1656
     4
roker@1656
     5
// reads a whole file and returns it as std::string
roker@1656
     6
// throws std::runtime_error() if the file cannot be read. Empty file is not an error.
roker@1656
     7
std::string slurp(const std::string& filename);
krista@1812
     8
krista@1812
     9
// Returns the string value of the input rating enum value. 
krista@1812
    10
const char* tl_rating_string(PEP_rating rating);
krista@1812
    11
krista@1812
    12
// Returns the string value of the input comm_type enum value. 
krista@1812
    13
const char* tl_ct_string(PEP_comm_type ct);
krista@1812
    14
krista@1812
    15
// Returns the string value of the input status enum value. 
krista@1812
    16
const char* tl_status_string(PEP_STATUS status);