[Libreoffice-commits] .: tools/qa

David Tardon dtardon at kemper.freedesktop.org
Tue Dec 14 22:59:19 PST 2010


 tools/qa/urlobj/tools_urlobj_test.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit e133eda619c1caaf70ad52661c13cf2c43845073
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Dec 15 07:59:12 2010 +0100

    RTL_CONSTASCII_USTRINGPARAM qa

diff --git a/tools/qa/urlobj/tools_urlobj_test.cxx b/tools/qa/urlobj/tools_urlobj_test.cxx
index 1f096ff..049f770 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);


More information about the Libreoffice-commits mailing list