diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2010-12-15 07:59:12 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-12-15 07:59:12 +0100 |
commit | c9265a6a745f4221e5377ce87bd4e774a5e2cd7f (patch) | |
tree | fd2e7eb020ccd6fd2532ce19713f2234bb11d631 /tools/qa | |
parent | a21107e4d727e284b927c6ebc2abd4088e94afab (diff) |
RTL_CONSTASCII_USTRINGPARAM qa
Diffstat (limited to 'tools/qa')
-rw-r--r-- | tools/qa/urlobj/tools_urlobj_test.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/qa/urlobj/tools_urlobj_test.cxx b/tools/qa/urlobj/tools_urlobj_test.cxx index 1f096ff5a5c1..049f770972dd 100644 --- a/tools/qa/urlobj/tools_urlobj_test.cxx +++ b/tools/qa/urlobj/tools_urlobj_test.cxx @@ -49,7 +49,7 @@ // this is only demonstration code void urlobjTest_001() { - INetURLObject aUrl(rtl::OUString::createFromAscii("file://10.10.1.1/sampledir/sample.file")); + INetURLObject aUrl(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file://10.10.1.1/sampledir/sample.file"))); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://10.10.1.1/sampledir/sample.file")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); @@ -68,7 +68,7 @@ void urlobjTest_002() { INetURLObject aUrl; - aUrl.setFSysPath(rtl::OUString::createFromAscii("\\\\137.65.170.24\\c$\\Img0001.jpg"), INetURLObject::FSYS_DETECT); + aUrl.setFSysPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\\\137.65.170.24\\c$\\Img0001.jpg")), INetURLObject::FSYS_DETECT); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://137.65.170.24/c$/Img0001.jpg")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); @@ -88,7 +88,7 @@ void urlobjTest_003() { INetURLObject aUrl; - aUrl.setFSysPath(rtl::OUString::createFromAscii("\\\\hive-winxp-x86\\pmladek\\test2.odt"), INetURLObject::FSYS_DETECT); + aUrl.setFSysPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\\\hive-winxp-x86\\pmladek\\test2.odt")), INetURLObject::FSYS_DETECT); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://hive-winxp-x86/pmladek/test2.odt")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); @@ -103,7 +103,7 @@ void urlobjTest_004() { - INetURLObject aUrl(rtl::OUString::createFromAscii("smb://10.10.1.1/sampledir/sample.file")); + INetURLObject aUrl(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("smb://10.10.1.1/sampledir/sample.file"))); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://10.10.1.1/sampledir/sample.file")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); @@ -122,7 +122,7 @@ void urlobjTest_005() { INetURLObject aUrl; - aUrl.setFSysPath(rtl::OUString::createFromAscii("//137.65.170.24/c$/Img0001.jpg"), INetURLObject::FSYS_DETECT); + aUrl.setFSysPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("//137.65.170.24/c$/Img0001.jpg")), INetURLObject::FSYS_DETECT); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://137.65.170.24/c$/Img0001.jpg")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); @@ -142,7 +142,7 @@ void urlobjTest_006() { INetURLObject aUrl; - aUrl.setFSysPath(rtl::OUString::createFromAscii("//hive-winxp-x86/pmladek/test2.odt"), INetURLObject::FSYS_DETECT); + aUrl.setFSysPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("//hive-winxp-x86/pmladek/test2.odt")), INetURLObject::FSYS_DETECT); #ifdef LINUX CPPUNIT_ASSERT(aUrl.GetMainURL(INetURLObject::NO_DECODE).compareToAscii("smb://hive-winxp-x86/pmladek/test2.odt")==0); CPPUNIT_ASSERT(aUrl.GetProtocol()==INET_PROT_SMB); |