[Libreoffice-commits] core.git: tools/qa

Stephan Bergmann sbergman at redhat.com
Thu Dec 18 08:36:50 PST 2014


 tools/qa/cppunit/test_urlobj.cxx |   25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

New commits:
commit 09e071fdddde4077d412708ba12f4561b70f6b34
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Dec 18 17:36:14 2014 +0100

    tools: Use appropriate OUString functions on string constants
    
    Change-Id: Idbca92ee8d38fe5839ec0aeb8ee02af3e326549d

diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index 038ead7..97656e4 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -58,9 +58,8 @@ namespace tools_urlobj
         {
             INetURLObject aUrl( OUString( "file://10.10.1.1/sampledir/sample.file" ) );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii
-                            ( "smb://10.10.1.1/sampledir/sample.file" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://10.10.1.1/sampledir/sample.file" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN
@@ -86,8 +85,8 @@ namespace tools_urlobj
                 setFSysPath( OUString( "\\\\137.65.170.24\\c$\\Img0001.jpg" ),
                              INetURLObject::FSYS_DETECT );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii( "smb://137.65.170.24/c$/Img0001.jpg" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://137.65.170.24/c$/Img0001.jpg" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN
@@ -112,8 +111,8 @@ namespace tools_urlobj
                 setFSysPath( OUString( "\\\\hive-winxp-x86\\pmladek\\test2.odt" ),
                              INetURLObject::FSYS_DETECT );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii( "smb://hive-winxp-x86/pmladek/test2.odt" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://hive-winxp-x86/pmladek/test2.odt" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN
@@ -131,8 +130,8 @@ namespace tools_urlobj
         {
             INetURLObject aUrl( OUString( "smb://10.10.1.1/sampledir/sample.file" ) );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii( "smb://10.10.1.1/sampledir/sample.file" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://10.10.1.1/sampledir/sample.file" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN
@@ -155,8 +154,8 @@ namespace tools_urlobj
             aUrl.setFSysPath( OUString( "//137.65.170.24/c$/Img0001.jpg" ),
                               INetURLObject::FSYS_DETECT );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii( "smb://137.65.170.24/c$/Img0001.jpg" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://137.65.170.24/c$/Img0001.jpg" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN
@@ -180,8 +179,8 @@ namespace tools_urlobj
             aUrl.setFSysPath( OUString( "//hive-winxp-x86/pmladek/test2.odt" ),
                               INetURLObject::FSYS_DETECT );
 #ifdef LINUX
-            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
-                            equalsAscii( "smb://hive-winxp-x86/pmladek/test2.odt" ) );
+            CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
+                            == "smb://hive-winxp-x86/pmladek/test2.odt" );
             CPPUNIT_ASSERT( aUrl.GetProtocol(  ) == INET_PROT_SMB );
 #endif
 #ifdef WIN


More information about the Libreoffice-commits mailing list