diff options
author | CodaFi <devteam.codafi@gmail.com> | 2013-04-28 17:37:52 -0600 |
---|---|---|
committer | CodaFi <devteam.codafi@gmail.com> | 2013-04-28 17:37:52 -0600 |
commit | d9da8ea6e22361a35c0bf94237c8c16d5021a3b4 (patch) | |
tree | e5e68ac9a9906d128c2179b82cd8b60c8a64c721 /tests | |
parent | 10c9d0abf0e8009277fb2006cffb76b8a26865c7 (diff) |
Providers API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-all.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-all.mm b/tests/test-all.mm index 73981e82..8a8c04ed 100644 --- a/tests/test-all.mm +++ b/tests/test-all.mm @@ -285,6 +285,13 @@ static void testAddresses() MCLog("%s", MCUTF8DESC(str)); } +static void testProviders() { + NSString *filename = [[NSBundle bundleForClass:[MCOMessageBuilder class]] pathForResource:@"providers" ofType:@"json"]; + mailcore::MailProvidersManager::sharedManager()->registerProvidersFilename(filename.mco_mcString); + + NSLog(@"Providers: %s", MCUTF8DESC(mailcore::MailProvidersManager::sharedManager()->providerForEmail(MCSTR("email1@gmail.com")))); +} + static void testAttachments() { mailcore::Attachment *attachment = mailcore::Attachment::attachmentWithText(MCSTR("Hello World")); @@ -351,6 +358,7 @@ void testAll() //testAsyncPOP(); //testAddresses(); //testAttachments(); + testProviders(); testObjC(); MCLog("pool release"); |