X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiacalendar_testcommon.cpp;h=37ec06a0062e10e7a4dd66de1e2fa80b9ce2ffd5;hb=b2f94ae01141acdd0714895440f3b33a45f1a8fd;hp=6c58342aee0d9289cefcb751b103f8a65543084f;hpb=878cff6cd778bc6f94987f083763462eadf86b73;p=xestiacalendar%2F.git diff --git a/source/tests/xestiacalendar_testcommon.cpp b/source/tests/xestiacalendar_testcommon.cpp index 6c58342..37ec06a 100644 --- a/source/tests/xestiacalendar_testcommon.cpp +++ b/source/tests/xestiacalendar_testcommon.cpp @@ -1,3 +1,21 @@ +// xestiacalendar_testcommon.cpp - Xestia Calendar Unit Test Common Functions. +// +// (c) 2016 Xestia Software Development. +// +// This file is part of Xestia Calendar. +// +// Xestia Address Book is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Address Book is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Calendar. If not, see + #include #include "xestiacalendar_testcommon.h" @@ -172,6 +190,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