test/test_util.cc
branchENGINE-332
changeset 2444 a97dd32908e5
parent 2282 eed4a7047201
child 2477 45e8ed722fec
     1.1 --- a/test/test_util.cc	Wed Jan 24 11:57:10 2018 +0100
     1.2 +++ b/test/test_util.cc	Wed Jan 24 18:22:36 2018 +0100
     1.3 @@ -1,5 +1,6 @@
     1.4  #include "pEpEngine_test.h"
     1.5  #include "pEpEngine.h"
     1.6 +#include "pEp_internal.h"
     1.7  #include "message_api.h"
     1.8  #include <fstream>
     1.9  #include <sstream>
    1.10 @@ -30,6 +31,13 @@
    1.11      outfile.close();
    1.12  }
    1.13  
    1.14 +char* get_new_uuid() {
    1.15 +    char* new_uuid = (char*)calloc(37, 1);
    1.16 +    pEpUUID uuid;
    1.17 +    uuid_generate_random(uuid);
    1.18 +    uuid_unparse_upper(uuid, new_uuid);
    1.19 +    return new_uuid;
    1.20 +}
    1.21  
    1.22  const char* tl_status_string(PEP_STATUS status) {
    1.23      switch (status) {