summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:41 +0200
commit50413b07d2ab1fb0dd706565bfcac0a5946f6cf2 (patch)
tree0aaf0210ec3253c0b6b6d31829a10a4104813e2e /tools
parentff1b46c6fee5f6d1259eb29254782688b4dccb32 (diff)
loplugin:cppunitassertequals: tools
Change-Id: I8dc45fbbe3ea8c3fb898250e55cee582d1d8199d
Diffstat (limited to 'tools')
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index 2c14f2210dab..68ff8197076f 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -55,9 +55,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL(INetProtocol::Smb, aUrl.GetProtocol());
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://10.10.1.1/sampledir/sample.file"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("10.10.1.1"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));
@@ -81,9 +81,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL(INetProtocol::Smb, aUrl.GetProtocol());
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://137.65.170.24/c$/Img0001.jpg"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("137.65.170.24"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));
@@ -107,9 +107,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL(INetProtocol::Smb, aUrl.GetProtocol());
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://hive-winxp-x86/pmladek/test2.odt"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("hive-winxp-x86"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));
@@ -126,9 +126,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL( INetProtocol::Smb, aUrl.GetProtocol( ) );
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://10.10.1.1/sampledir/sample.file"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("10.10.1.1"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));
@@ -150,9 +150,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL(INetProtocol::Smb, aUrl.GetProtocol());
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://137.65.170.24/c$/Img0001.jpg"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("137.65.170.24"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));
@@ -175,9 +175,9 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL(INetProtocol::Smb, aUrl.GetProtocol());
#endif
#ifdef _WIN32
- CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE )
- == "file://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
+ CPPUNIT_ASSERT_EQUAL( OUString("file://hive-winxp-x86/pmladek/test2.odt"),
+ aUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
+ CPPUNIT_ASSERT_EQUAL( INetProtocol::File, aUrl.GetProtocol( ) );
#endif
CPPUNIT_ASSERT_EQUAL(OUString("hive-winxp-x86"),
aUrl.GetHost(INetURLObject::DecodeMechanism::NONE));