From d9da8ea6e22361a35c0bf94237c8c16d5021a3b4 Mon Sep 17 00:00:00 2001 From: CodaFi Date: Sun, 28 Apr 2013 17:37:52 -0600 Subject: Providers API --- tests/test-all.mm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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"); -- cgit v1.2.3