diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 17:36:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 17:36:14 +0100 |
commit | 09e071fdddde4077d412708ba12f4561b70f6b34 (patch) | |
tree | 3886fadd78f9d8126a279abaf33b2f47d67cf772 /tools | |
parent | a349a4763fd32177be55877a098247959a820c5a (diff) |
tools: Use appropriate OUString functions on string constants
Change-Id: Idbca92ee8d38fe5839ec0aeb8ee02af3e326549d
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qa/cppunit/test_urlobj.cxx | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx index 038ead7cd0f2..97656e4adb07 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 |