aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar DINH Viet Hoa <dinh.viet.hoa@gmail.com>2013-03-23 13:15:32 -0700
committerGravatar DINH Viet Hoa <dinh.viet.hoa@gmail.com>2013-03-23 13:15:32 -0700
commit52224ddbbb9b858f27c5861d98c0d91f60db400b (patch)
tree83eb6cae884fff9be1da3d7d041b31e7fd75f996 /tests
parentae907e6582b9d8faa49c85834dc8b4213af759ed (diff)
Simplified implementation of ObjC setter/getter by using a common implementation. Added RFC822 ObjC API.
Diffstat (limited to 'tests')
-rw-r--r--tests/main.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/main.mm b/tests/main.mm
index 2fb7b55b..7d2f3241 100644
--- a/tests/main.mm
+++ b/tests/main.mm
@@ -57,9 +57,9 @@ static mailcore::Data * testMessageBuilder()
bcc->release();
msg->header()->setSubject(MCSTR("Mon projet d'été"));
msg->setHTMLBody(MCSTR("<div>Hello <img src=\"cid:1234\"></div>"));
- msg->addAttachment(mailcore::Attachment::attachmentWithContentOfFile(MCSTR("first-filename")));
- msg->addAttachment(mailcore::Attachment::attachmentWithContentOfFile(MCSTR("second-filename")));
- mailcore::Attachment * attachment = mailcore::Attachment::attachmentWithContentOfFile(MCSTR("third-image-attachment"));
+ msg->addAttachment(mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("first-filename")));
+ msg->addAttachment(mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("second-filename")));
+ mailcore::Attachment * attachment = mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("third-image-attachment"));
attachment->setContentID(MCSTR("1234"));
msg->addRelatedAttachment(attachment);