From: <svn...@op...> - 2009-10-10 16:28:16
|
Author: henrik Date: Sat Oct 10 18:28:03 2009 New Revision: 5868 URL: http://www.opensync.org/changeset/5868 Log: AutoRegister components, just to be on the safe side Modified: plugins/mozilla-sync/trunk/tests/unit_test_xpcom.cpp Modified: plugins/mozilla-sync/trunk/tests/unit_test_xpcom.cpp ============================================================================== --- plugins/mozilla-sync/trunk/tests/unit_test_xpcom.cpp Sat Oct 10 18:27:19 2009 (r5867) +++ plugins/mozilla-sync/trunk/tests/unit_test_xpcom.cpp Sat Oct 10 18:28:03 2009 (r5868) @@ -186,12 +186,16 @@ f=mozilla_startup(szTmp, &fWasStarted, &szError, &logFunction); fail_unless(f, "mozilla_startup failed: %s", szError); + printf("Getting ServiceManager\n"); nsCOMPtr<nsIServiceManager> servMan; rv = NS_GetServiceManager(getter_AddRefs(servMan)); fail_unless(NS_SUCCEEDED(rv), "NS_GetServiceManager returned [0x0%x]", rv); nsCOMPtr<nsIComponentRegistrar> registrar = do_QueryInterface(servMan, &rv); fail_unless(NS_SUCCEEDED(rv), "do_QueryInterface for nsIComponentRegistrar returned [0x0%x]", rv); + printf("AutoRegister components\n"); + registrar->AutoRegister(nsnull); + printf("Enumerating component ContractIDs\n"); nsCOMPtr<nsISimpleEnumerator> e; |