Lines Matching refs:TEST_ENSHURE

62 #define TEST_ENSHURE(c, m)   OSL_ENSURE(c, m)  macro
64 #define TEST_ENSHURE(c, m) OSL_VERIFY(c) macro
126 TEST_ENSHURE(!myRegistry->create(userReg), "setStarUserRegistry error 1"); in setStarUserRegistry()
129 TEST_ENSHURE(!myRegistry->close(), "setStarUserRegistry error 9"); in setStarUserRegistry()
145 TEST_ENSHURE(!myRegistry->open(appReg, REG_READWRITE), "setLinkInDefaultRegistry error 1"); in setLinkInDefaultRegistry()
146 TEST_ENSHURE(!myRegistry->openRootKey(rootKey), "setLinkInDefaultRegistry error 2"); in setLinkInDefaultRegistry()
148 TEST_ENSHURE(!rootKey.createLink(linkName, linkTarget), "setLinkInDefaultRegistry error 3"); in setLinkInDefaultRegistry()
150 TEST_ENSHURE(!rootKey.closeKey(), "setLinkInDefaultRegistry error 4"); in setLinkInDefaultRegistry()
151 TEST_ENSHURE(!myRegistry->close(), "setLinkInDefaultRegistry error 5"); in setLinkInDefaultRegistry()
187 TEST_ENSHURE( xIFace.is(), "test_SimpleRegistry error1"); in test_SimpleRegistry()
192 TEST_ENSHURE( xFactory.is(), "testloader error11"); in test_SimpleRegistry()
197 TEST_ENSHURE( xIFace2.is(), "testloader error12"); in test_SimpleRegistry()
201 TEST_ENSHURE( xServInfo.is(), "test_SimpleRegistry error2"); in test_SimpleRegistry()
203TEST_ENSHURE( xServInfo->getImplementationName().equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun… in test_SimpleRegistry()
204TEST_ENSHURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.regis… in test_SimpleRegistry()
205TEST_ENSHURE( xServInfo->getSupportedServiceNames().getLength() == 1, "test_SimpleRegistry error5"… in test_SimpleRegistry()
211 TEST_ENSHURE( xReg.is(), "test_SimpleRegistry error6"); in test_SimpleRegistry()
217 TEST_ENSHURE( xReg->isValid() != sal_False, "test_SimpleRegistry error 7" ); in test_SimpleRegistry()
218 TEST_ENSHURE( xReg->isReadOnly() == sal_False, "test_SimpleRegistry error 8" ); in test_SimpleRegistry()
221 TEST_ENSHURE( xRootKey->isValid(), "test_SimpleRegistry error 9" ); in test_SimpleRegistry()
249 TEST_ENSHURE( xSubKey->getLongValue() == 123456789, in test_SimpleRegistry()
254TEST_ENSHURE( xSubKey->getAsciiValue() == OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein acsii… in test_SimpleRegistry()
259TEST_ENSHURE( xSubKey->getStringValue() == OUString( RTL_CONSTASCII_USTRINGPARAM("ich bin ein unic… in test_SimpleRegistry()
265 TEST_ENSHURE(!strcmp(((const char*)seqByte.getArray()), "ich bin ein binary value"), in test_SimpleRegistry()
284 TEST_ENSHURE( seqLongs.getLength() == 3, "test_SimpleRegistry error 14" ); in test_SimpleRegistry()
285 TEST_ENSHURE( seqLongs.getArray()[0] == 123, "test_SimpleRegistry error 15" ); in test_SimpleRegistry()
286 TEST_ENSHURE( seqLongs.getArray()[1] == 456, "test_SimpleRegistry error 16" ); in test_SimpleRegistry()
287 TEST_ENSHURE( seqLongs.getArray()[2] == 789, "test_SimpleRegistry error 17" ); in test_SimpleRegistry()
301 TEST_ENSHURE( seqAscii2.getLength() == 3, "test_SimpleRegistry error 18" ); in test_SimpleRegistry()
302TEST_ENSHURE( seqAscii2.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), "test_S… in test_SimpleRegistry()
303TEST_ENSHURE( seqAscii2.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), "t… in test_SimpleRegistry()
304TEST_ENSHURE( seqAscii2.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich") ), "test_Sim… in test_SimpleRegistry()
317 TEST_ENSHURE( seqUnicode2.getLength() == 3, "test_SimpleRegistry error 22" ); in test_SimpleRegistry()
318TEST_ENSHURE( seqUnicode2.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), "test… in test_SimpleRegistry()
319TEST_ENSHURE( seqUnicode2.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), … in test_SimpleRegistry()
320TEST_ENSHURE( seqUnicode2.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich als unicode"… in test_SimpleRegistry()
324 TEST_ENSHURE( xReg->isValid() != sal_False, "test_SimpleRegistry error 25" ); in test_SimpleRegistry()
328 TEST_ENSHURE( in test_SimpleRegistry()
337 TEST_ENSHURE( xReg->isValid() != sal_False, "test_SimpleRegistry error 26" ); in test_SimpleRegistry()
353 TEST_ENSHURE( in test_SimpleRegistry()
358 TEST_ENSHURE( in test_SimpleRegistry()
364 TEST_ENSHURE( !xKey.is(), "test_SimpleRegistry error 27" ); in test_SimpleRegistry()
372 TEST_ENSHURE( xKey->isValid(), "test_SimpleRegistry error 27" ); in test_SimpleRegistry()
373TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/ThirdKey/FirstSubKey")… in test_SimpleRegistry()
378TEST_ENSHURE( xKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLi… in test_SimpleRegistry()
383TEST_ENSHURE( xKey->getResolvedName(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourth… in test_SimpleRegistry()
406TEST_ENSHURE( xRootKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/FifthKey/MyFirstLink… in test_SimpleRegistry()
418TEST_ENSHURE( seqNames.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/SixthSubK… in test_SimpleRegistry()
420TEST_ENSHURE( seqNames.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("/SixthKey/MyThirdLi… in test_SimpleRegistry()
423TEST_ENSHURE( seqKeys.getArray()[0]->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Sixth… in test_SimpleRegistry()
425TEST_ENSHURE( seqKeys.getArray()[1]->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Third… in test_SimpleRegistry()
433 TEST_ENSHURE(0, "exception InvalidRegistryExcption raised while doing test_SimpleRegistry"); in test_SimpleRegistry()
437 TEST_ENSHURE(0, "exception InvalidValueExcption raised while doing test_SimpleRegistry()"); in test_SimpleRegistry()
463 TEST_ENSHURE( xPropSet.is(), "test_DefaultRegistry error0"); in test_DefaultRegistry()
466 TEST_ENSHURE( aPropertyAny.hasValue(), "test_DefaultRegistry error1"); in test_DefaultRegistry()
470 TEST_ENSHURE( xReg.is(), "test_DefaultRegistry error1a"); in test_DefaultRegistry()
474 TEST_ENSHURE( xServInfo.is(), "test_DefaultRegistry error2"); in test_DefaultRegistry()
476TEST_ENSHURE( xServInfo->getImplementationName() == OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun… in test_DefaultRegistry()
477TEST_ENSHURE( xServInfo->supportsService(OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.regis… in test_DefaultRegistry()
478TEST_ENSHURE( xServInfo->getSupportedServiceNames().getLength() == 1, "test_DefaultRegistry error5… in test_DefaultRegistry()
481 TEST_ENSHURE( xReg.is(), "test_DefaultRegistry error6"); in test_DefaultRegistry()
489TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/UCR/com/sun/star/regis… in test_DefaultRegistry()
515 TEST_ENSHURE( seqNames.getLength() == 2, "test_DefaultRegistry error 8" ); in test_DefaultRegistry()
522 TEST_ENSHURE( valueType == RegistryValueType_ASCIILIST, "test_DefaultRegistry error 9" ); in test_DefaultRegistry()
526 TEST_ENSHURE( seqValue.getLength() == 3, "test_DefaultRegistry error 10" ); in test_DefaultRegistry()
527 TEST_ENSHURE( seqValue.getArray()[0] == OUString( RTL_CONSTASCII_USTRINGPARAM("Hallo") ), in test_DefaultRegistry()
529 TEST_ENSHURE( seqValue.getArray()[1] == OUString( RTL_CONSTASCII_USTRINGPARAM("jetzt komm") ), in test_DefaultRegistry()
531 TEST_ENSHURE( seqValue.getArray()[2] == OUString( RTL_CONSTASCII_USTRINGPARAM("ich") ), in test_DefaultRegistry()
543 TEST_ENSHURE( seqLongValue.getLength() == 3, "test_DefaultRegistry error 14" ); in test_DefaultRegistry()
544 TEST_ENSHURE( seqLongValue.getArray()[0] == 1234, "test_DefaultRegistry error 15" ); in test_DefaultRegistry()
545 TEST_ENSHURE( seqLongValue.getArray()[1] == 4567, "test_DefaultRegistry error 16" ); in test_DefaultRegistry()
546 TEST_ENSHURE( seqLongValue.getArray()[2] == 7890, "test_DefaultRegistry error 17" ); in test_DefaultRegistry()
555 TEST_ENSHURE( xKey->isValid(), "test_DefaultRegistry error 18" ); in test_DefaultRegistry()
556TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
562TEST_ENSHURE( xKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourthLi… in test_DefaultRegistry()
568TEST_ENSHURE( xKey->getResolvedName(OUString( RTL_CONSTASCII_USTRINGPARAM("/WithSubSubKey/MyFourth… in test_DefaultRegistry()
591TEST_ENSHURE( xRootKey->getLinkTarget(OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/FifthKey/MyFirs… in test_DefaultRegistry()
600TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
605TEST_ENSHURE( xKey->getKeyName() == OUString( RTL_CONSTASCII_USTRINGPARAM("/Test/ThirdKey/FirstSub… in test_DefaultRegistry()
610 TEST_ENSHURE( xKey->isValid(), "test_DefaultRegistry error 25" ); in test_DefaultRegistry()
636 TEST_ENSHURE(0, "exception InvalidRegistryExcption raised while doing test_DefaultRegistry"); in test_DefaultRegistry()
640 TEST_ENSHURE(0, "exception InvalidValueExcption raised while doing test_DefaultRegistry()"); in test_DefaultRegistry()
649 TEST_ENSHURE(0, OUStringToOString(e.Message,RTL_TEXTENCODING_ASCII_US).getStr()); in test_DefaultRegistry()