summaryrefslogtreecommitdiff
path: root/tools/qa/cppunit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-02 18:32:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-02 18:33:37 +0200
commit54e87df11faf697d3b2666198a3d20b3ee091419 (patch)
tree8cfe316f012a4969ca6980fa6ac2fdb3a9424118 /tools/qa/cppunit
parent3aac11a1233f679ea813fee8b8de134553d7db60 (diff)
Change INetProtocol enumerators to CamelCase
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
Diffstat (limited to 'tools/qa/cppunit')
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index daeb3217873f..b591156b52c7 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -60,13 +60,13 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii
( "file://10.10.1.1/sampledir/sample.file" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "10.10.1.1" );
@@ -87,12 +87,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://137.65.170.24/c$/Img0001.jpg" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "137.65.170.24" );
@@ -113,12 +113,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://hive-winxp-x86/pmladek/test2.odt" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "hive-winxp-x86" );
@@ -132,12 +132,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://10.10.1.1/sampledir/sample.file" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://10.10.1.1/sampledir/sample.file" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "10.10.1.1" );
@@ -156,12 +156,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://137.65.170.24/c$/Img0001.jpg" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://137.65.170.24/c$/Img0001.jpg" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "137.65.170.24" );
@@ -181,12 +181,12 @@ namespace tools_urlobj
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
== "smb://hive-winxp-x86/pmladek/test2.odt" );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::SMB );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::Smb );
#endif
#ifdef WIN
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE ).
equalsAscii( "file://hive-winxp-x86/pmladek/test2.odt" ) );
- CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::FILE );
+ CPPUNIT_ASSERT( aUrl.GetProtocol( ) == INetProtocol::File );
#endif
CPPUNIT_ASSERT( aUrl.GetHost( INetURLObject::NO_DECODE )
== "hive-winxp-x86" );
@@ -204,7 +204,7 @@ namespace tools_urlobj
CPPUNIT_ASSERT_EQUAL( std::string( "username" ), OUSTR_TO_STDSTR( aUrl.GetUser( ) ) );
CPPUNIT_ASSERT_EQUAL( std::string( "/path/to/content" ),
OUSTR_TO_STDSTR( aUrl.GetURLPath( INetURLObject::NO_DECODE ) ) );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::CMIS, aUrl.GetProtocol( ) );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::Cmis, aUrl.GetProtocol( ) );
}
// Test without a username part
@@ -216,14 +216,14 @@ namespace tools_urlobj
CPPUNIT_ASSERT( !aUrl.HasUserData() );
CPPUNIT_ASSERT_EQUAL( std::string( "/path/to/content" ),
OUSTR_TO_STDSTR( aUrl.GetURLPath( INetURLObject::NO_DECODE ) ) );
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::CMIS, aUrl.GetProtocol( ) );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Wrong protocol found", INetProtocol::Cmis, aUrl.GetProtocol( ) );
}
}
void urlobjTest_emptyPath() {
{
INetURLObject url(OUString("http://example.com"));
- CPPUNIT_ASSERT_EQUAL(INetProtocol::HTTP, url.GetProtocol());
+ CPPUNIT_ASSERT_EQUAL(INetProtocol::Http, url.GetProtocol());
CPPUNIT_ASSERT_EQUAL(OUString("example.com"), url.GetHost());
CPPUNIT_ASSERT_EQUAL(OUString("/"), url.GetURLPath());
}
@@ -234,7 +234,7 @@ namespace tools_urlobj
}
{
INetURLObject url(OUString("http://example.com#fragment"));
- CPPUNIT_ASSERT_EQUAL(INetProtocol::HTTP, url.GetProtocol());
+ CPPUNIT_ASSERT_EQUAL(INetProtocol::Http, url.GetProtocol());
CPPUNIT_ASSERT_EQUAL(OUString("example.com"), url.GetHost());
CPPUNIT_ASSERT_EQUAL(OUString("/"), url.GetURLPath());
CPPUNIT_ASSERT_EQUAL(OUString("fragment"), url.GetMark());