ucb: webdav-curl: restore CppunitTest_ucb_webdav_core

First commit 2177f48b16 forgot to adapt
one use of WITH_WEBDAV so the test didn't run and then commit
2cbf83e208 removed some functions that
were only called by the test.

Change-Id: I46c8b065d37aa072a8966cce30d9e63d63b1145c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133206
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
This commit is contained in:
Michael Stahl
2022-04-20 11:32:09 +02:00
parent 88aeb649ed
commit 6a868fff7a
3 changed files with 4 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ $(eval $(call gb_CppunitTest_use_libraries,ucb_webdav_core, \
cppuhelper \
sal \
salhelper \
svl \
test \
ucbhelper \
tl \

View File

@@ -31,7 +31,7 @@ $(eval $(call gb_Module_add_targets,ucb,\
))
endif
ifeq ($(WITH_WEBDAV),curl)
ifneq ($(WITH_WEBDAV),)
$(eval $(call gb_Module_add_check_targets,ucb,\
CppunitTest_ucb_webdav_core \

View File

@@ -109,6 +109,7 @@ namespace http_dav_ucp
void setStaleTime( const sal_uInt32 nStaleTime ) { m_nStaleTime = nStaleTime; };
sal_uInt32 getRequestedTimeLife() const { return m_nRequestedTimeLife; };
void setRequestedTimeLife( const sal_uInt32 nRequestedTimeLife ) { m_nRequestedTimeLife = nRequestedTimeLife; };
const OUString & getURL() const { return m_sURL; };
void setURL( const OUString & sURL ) { m_sURL = sURL; };
@@ -117,6 +118,7 @@ namespace http_dav_ucp
void setRedirectedURL( const OUString & sRedirectedURL ) { m_sRedirectedURL = sRedirectedURL; };
void setAllowedMethods( const OUString & aAllowedMethods ) { m_aAllowedMethods = aAllowedMethods; } ;
const OUString & getAllowedMethods() const { return m_aAllowedMethods; } ;
bool isLockAllowed() const { return ( m_aAllowedMethods.indexOf( "LOCK" ) != -1 ); };
void setLocked( bool locked = true ) { m_isLocked = locked; } ;