MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / testAsyncPOP

Function testAsyncPOP

tests/test-all.cpp:443–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441};
442
443static void testAsyncPOP()
444{
445 mailcore::POPAsyncSession * session;
446 TestPOPCallback * callback = new TestPOPCallback();
447
448 session = new mailcore::POPAsyncSession();
449 session->setHostname(MCSTR("pop.gmail.com"));
450 session->setPort(995);
451 session->setUsername(email);
452 session->setPassword(password);
453 session->setConnectionType(mailcore::ConnectionTypeTLS);
454
455 mailcore::POPFetchMessagesOperation * op = session->fetchMessagesOperation();
456 op->setCallback(callback);
457 op->setPopCallback(callback);
458 op->start();
459
460 //mailcore::Array * messages = session->fetchMessages(&error);
461 //MCLog("%s", MCUTF8DESC(messages));
462
463 mainLoop();
464}
465
466static void testAddresses()
467{

Callers

nothing calls this directly

Calls 10

mainLoopFunction · 0.85
setPopCallbackMethod · 0.80
setHostnameMethod · 0.45
setPortMethod · 0.45
setUsernameMethod · 0.45
setPasswordMethod · 0.45
setConnectionTypeMethod · 0.45
setCallbackMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected