From 95fedd3aa92bbd164c6c495f8e2a8f7c5d4c70fa Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 25 Feb 2016 18:35:19 +0000 Subject: [PATCH] Check if CalDAVConnectionData contains valid settings. --- source/tests/xestiacalendar_testcommon.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.5