test/message_api_test.cc
changeset 306 abca32c31ace
parent 281 9f7691853773
child 345 9e129a270a46
     1.1 --- a/test/message_api_test.cc	Sun May 31 19:31:32 2015 +0200
     1.2 +++ b/test/message_api_test.cc	Sun May 31 19:36:55 2015 +0200
     1.3 @@ -24,8 +24,11 @@
     1.4      pEp_identity * me2 = new_identity("outlooktest@dingens.org", NULL, "23", "Outlook Test");
     1.5      me2->me = true;
     1.6      identity_list *to2 = new_identity_list(new_identity("vb@dingens.org", NULL, "42", "Volker Birk"));
     1.7 -    message *msg2 = new_message(PEP_dir_outgoing, me2, to2, "hello, world");
     1.8 +    message *msg2 = new_message(PEP_dir_outgoing);
     1.9      assert(msg2);
    1.10 +    msg2->from = me2;
    1.11 +    msg2->to = to2;
    1.12 +    msg2->shortmsg = strdup("hello, world");
    1.13      cout << "message created.\n";
    1.14  
    1.15      char *text2;