[Libreoffice-commits] core.git: ucb/qa
Giuseppe Castagno
giuseppe.castagno at acca-esse.eu
Wed Oct 26 08:50:14 UTC 2016
ucb/qa/cppunit/webdav/webdav_options.cxx | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 80cd32f78deca3fea2f731af02a2ad83134261f3
Author: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Date: Wed Oct 26 08:57:51 2016 +0200
WebDAV: Small cosmetic to unit checks.
Change server name in URI test strings.
Pass by const lvalue reference [loplugin:passstuffbyref].
Change-Id: Ic0134f0690a8e6b9abb7d0764efaeeaf3a167bcf
Reviewed-on: https://gerrit.libreoffice.org/30284
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
diff --git a/ucb/qa/cppunit/webdav/webdav_options.cxx b/ucb/qa/cppunit/webdav/webdav_options.cxx
index ce3aba7..b1a71ba 100644
--- a/ucb/qa/cppunit/webdav/webdav_options.cxx
+++ b/ucb/qa/cppunit/webdav/webdav_options.cxx
@@ -27,7 +27,7 @@ namespace
void tearDown( ) override;
- void DAVTypesCheckInit( webdav_ucp::DAVOptions aDavType );
+ void DAVTypesCheckInit( webdav_ucp::DAVOptions& aDavType );
void DAVTypesTest();
void DAVOptsCacheTests();
@@ -51,7 +51,7 @@ namespace
{
}
- void webdav_opts_test::DAVTypesCheckInit( webdav_ucp::DAVOptions aDavType )
+ void webdav_opts_test::DAVTypesCheckInit( webdav_ucp::DAVOptions& aDavType )
{
// check if the class is at reset state
// using accessors
@@ -223,7 +223,7 @@ namespace
aHTTPResponseStatusText.clear();
aDavOpt.setHttpResponseStatusText( aHTTPResponseStatusText );
- OUString aURL = "http://a%20fake%20url/to%20test";
+ OUString aURL = "http://my.server.org/a%20fake%20url/to%20test";
aDavOpt.setURL( aURL );
CPPUNIT_ASSERT_EQUAL( false, aDavOpt.isClass1() );
CPPUNIT_ASSERT_EQUAL( false, aDavOpt.isClass2() );
@@ -240,7 +240,7 @@ namespace
aURL.clear();
aDavOpt.setURL( aURL );
- aURL = "http://a%20fake%20url/to%20test/another-url";
+ aURL = "http://my.server.org/a%20fake%20url/to%20test/another-url";
aDavOpt.setRedirectedURL( aURL );
CPPUNIT_ASSERT_EQUAL( false, aDavOpt.isClass1() );
CPPUNIT_ASSERT_EQUAL( false, aDavOpt.isClass2() );
@@ -257,7 +257,7 @@ namespace
//check the init() function
aAllowedMethods = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,PUT,LOCK,UNLOCK";
- aURL = "http://a%20fake%20url/to%20test/another-url";
+ aURL = "http://my.server.org/a%20fake%20url/to%20test/another-url";
aHTTPResponseStatusText = "404 Not Found";
aDavOpt.setClass1();
aDavOpt.setClass2();
@@ -348,8 +348,8 @@ namespace
webdav_ucp::DAVOptions aDavOptCached;
// init the values
OUString aAllowedMethods = "OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,PUT,LOCK,UNLOCK";
- OUString aURL = "http://a%20fake%20url/to%20test/another-url";
- OUString aRedirectedURL = "http://a%20fake%20url/to%20test/another-url/redirected";
+ OUString aURL = "http://my.server.org/a%20fake%20url/to%20test/another-url";
+ OUString aRedirectedURL = "http://my.server.org/a%20fake%20url/to%20test/another-url/redirected";
aDavOpt.setURL( aURL );
aDavOpt.setRedirectedURL( aRedirectedURL );
aDavOpt.setClass1();
More information about the Libreoffice-commits
mailing list