diff options
author | Gábor Stefanik <netrolller.3d@gmail.com> | 2012-05-03 22:26:44 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-05-07 11:31:55 +0300 |
commit | 789813aa8dcc19f8d576ca651ad8365d4ee6d703 (patch) | |
tree | be4b23dc49c0656a838f964fa0d382b0229730d7 /stoc/test/testloader.cxx | |
parent | ffc53f86501b6f29eeb5d75b6b2dfcf9ae982c18 (diff) |
fdo#48391: Remove TEST_ENSHURE
Change-Id: Id9fc99aab1515a710374b3364f6136587f95f582
Diffstat (limited to 'stoc/test/testloader.cxx')
-rw-r--r-- | stoc/test/testloader.cxx | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/stoc/test/testloader.cxx b/stoc/test/testloader.cxx index 490ac5b906c8..dad125fe669e 100644 --- a/stoc/test/testloader.cxx +++ b/stoc/test/testloader.cxx @@ -54,12 +54,6 @@ using namespace cppu; using ::rtl::OUString; -#if OSL_DEBUG_LEVEL > 0 -#define TEST_ENSHURE(c, m) OSL_ENSURE(c, m) -#else -#define TEST_ENSHURE(c, m) OSL_VERIFY(c) -#endif - class EmptyComponentContext : public WeakImplHelper1< XComponentContext > { public: @@ -104,23 +98,23 @@ SAL_IMPLEMENT_MAIN() } } - TEST_ENSHURE( xIFace.is(), "testloader error1"); + OSL_ENSURE( xIFace.is(), "testloader error1"); Reference<XSingleComponentFactory> xFactory( Reference<XSingleComponentFactory>::query(xIFace) ); - TEST_ENSHURE( xFactory.is(), "testloader error2"); + OSL_ENSURE( xFactory.is(), "testloader error2"); Reference<XInterface> xLoader = xFactory->createInstanceWithContext( new EmptyComponentContext ); - TEST_ENSHURE( xLoader.is(), "testloader error3"); + OSL_ENSURE( xLoader.is(), "testloader error3"); Reference<XServiceInfo> xServInfo( Reference<XServiceInfo>::query(xLoader) ); - TEST_ENSHURE( xServInfo.is(), "testloader error4"); + OSL_ENSURE( xServInfo.is(), "testloader error4"); - TEST_ENSHURE( xServInfo->getImplementationName() == "com.sun.star.comp.stoc.DLLComponentLoader", "testloader error5"); - TEST_ENSHURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")) ), "testloader error6"); - TEST_ENSHURE( xServInfo->getSupportedServiceNames().getLength() == 1, "testloader error7"); + OSL_ENSURE( xServInfo->getImplementationName() == "com.sun.star.comp.stoc.DLLComponentLoader", "testloader error5"); + OSL_ENSURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")) ), "testloader error6"); + OSL_ENSURE( xServInfo->getSupportedServiceNames().getLength() == 1, "testloader error7"); xIFace.clear(); xFactory.clear(); |