tests adapted
authorVolker Birk <vb@pep-project.org>
Sun, 31 May 2015 19:36:55 +0200
changeset 306abca32c31ace
parent 305 40a0c95dc770
child 307 e961e773c32e
tests adapted
test/message_api_test.cc
test/mime_test.cc
     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;
     2.1 --- a/test/mime_test.cc	Sun May 31 19:31:32 2015 +0200
     2.2 +++ b/test/mime_test.cc	Sun May 31 19:36:55 2015 +0200
     2.3 @@ -65,11 +65,12 @@
     2.4  
     2.5      // testing multipart/alternative
     2.6  
     2.7 -    message *msg2 = new_message(PEP_dir_incoming,
     2.8 -            new_identity("vb@dingens.org", NULL, NULL, "Volker Birk"),
     2.9 -            new_identity_list(new_identity("trischa@dingens.org", NULL, NULL, "Patricia Bädnar")),
    2.10 -            "my sübject");
    2.11 +    message *msg2 = new_message(PEP_dir_incoming);
    2.12      assert(msg2);
    2.13 +    msg2->from = new_identity("vb@dingens.org", NULL, NULL, "Volker Birk");
    2.14 +    msg2->to = new_identity_list(new_identity("trischa@dingens.org", NULL, NULL, "Patricia Bädnar")),
    2.15 +    msg2->shortmsg = strdup("my sübject");
    2.16 +
    2.17      string text2 = "my mèssage to yoü";
    2.18      msg2->longmsg = strdup(text2.c_str());
    2.19      string html2 = "<html><body><p>my message to you</p></body></html>";