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

Function testOperationQueue

tests/test-all.cpp:302–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302static void testOperationQueue()
303{
304 mailcore::OperationQueue * queue = new mailcore::OperationQueue();
305
306 TestCallback * callback = new TestCallback();
307
308 for(unsigned int i = 0 ; i < 100 ; i ++) {
309 mailcore::Operation * op = new TestOperation();
310 op->setCallback(callback);
311 queue->addOperation(op);
312 op->release();
313 }
314
315 mainLoop();
316
317 queue->release();
318}
319
320class TestSMTPCallback : public mailcore::Object, public mailcore::OperationCallback, public mailcore::SMTPOperationCallback {
321 virtual void operationFinished(mailcore::Operation * op)

Callers

nothing calls this directly

Calls 4

mainLoopFunction · 0.85
releaseMethod · 0.80
setCallbackMethod · 0.45
addOperationMethod · 0.45

Tested by

no test coverage detected