From: Steve Brokenshire Date: Thu, 25 Feb 2016 18:35:19 +0000 (+0000) Subject: Check if CalDAVConnectionData contains valid settings. X-Git-Tag: release-0.02~343^2~3 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=95fedd3aa92bbd164c6c495f8e2a8f7c5d4c70fa;p=xestiacalendar%2F.git Check if CalDAVConnectionData contains valid settings. --- diff --git a/source/tests/xestiacalendar_testcommon.cpp b/source/tests/xestiacalendar_testcommon.cpp index 6c58342..fd716c4 100644 --- a/source/tests/xestiacalendar_testcommon.cpp +++ b/source/tests/xestiacalendar_testcommon.cpp @@ -172,6 +172,17 @@ ProcessConnectionDataFileResult ProcessConnectionDataFile(string DataFilename, } + // Check that the CalDAV connection data object + // contains valid data. + + bool CalDAVConnDataResult = CalDAVObjectValidSettings(&ConnData); + + if (CalDAVConnDataResult == false){ + ProcessResult = PROCESSCONNECTIONDATAFILE_INVALID; + } else { + ProcessResult = PROCESSCONNECTIONDATAFILE_OK; + } + return ProcessResult; } \ No newline at end of file