| 485 | } |
| 486 | |
| 487 | void testAll() |
| 488 | { |
| 489 | mailcore::setICUDataDirectory(MCSTR("/usr/local/share/icu")); |
| 490 | |
| 491 | email = MCSTR("email@gmail.com"); |
| 492 | password = MCSTR("MyP4ssw0rd"); |
| 493 | displayName = MCSTR("My Email"); |
| 494 | |
| 495 | #if __linux__ && !defined(ANDROID) && !defined(__ANDROID__) |
| 496 | s_main_loop = g_main_loop_new (NULL, FALSE); |
| 497 | #endif |
| 498 | |
| 499 | mailcore::AutoreleasePool * pool = new mailcore::AutoreleasePool(); |
| 500 | MCLogEnabled = 1; |
| 501 | |
| 502 | //mailcore::Data * data = testMessageBuilder(); |
| 503 | //testMessageParser(data); |
| 504 | //testSMTP(data); |
| 505 | //testSendingMessageFromFileViaSMTP(data); |
| 506 | //testIMAP(); |
| 507 | //testIMAPMove(); |
| 508 | //testIMAPCapability(); |
| 509 | //testPOP(); |
| 510 | //testNNTP(); |
| 511 | //testAsyncSMTP(data); |
| 512 | //testAsyncSendMessageFromFileViaSMTP(data); |
| 513 | //testAsyncIMAP(); |
| 514 | //testAsyncPOP(); |
| 515 | //testAddresses(); |
| 516 | //testAttachments(); |
| 517 | |
| 518 | pool->release(); |
| 519 | } |