aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar CodaFi <devteam.codafi@gmail.com>2013-04-28 17:37:52 -0600
committerGravatar CodaFi <devteam.codafi@gmail.com>2013-04-28 17:37:52 -0600
commitd9da8ea6e22361a35c0bf94237c8c16d5021a3b4 (patch)
treee5e68ac9a9906d128c2179b82cd8b60c8a64c721 /tests
parent10c9d0abf0e8009277fb2006cffb76b8a26865c7 (diff)
Providers API
Diffstat (limited to 'tests')
-rw-r--r--tests/test-all.mm8
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");