X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiacalendar_testcommon.cpp;h=e36378ae43003b1c9b8c84770b25e3b38ffb3896;hb=3e3ae5dc244fc2f0a905d0e3ba04d974809f02b7;hp=6c58342aee0d9289cefcb751b103f8a65543084f;hpb=878cff6cd778bc6f94987f083763462eadf86b73;p=xestiacalendar%2F.git
diff --git a/source/tests/xestiacalendar_testcommon.cpp b/source/tests/xestiacalendar_testcommon.cpp
index 6c58342..e36378a 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-2017 Xestia Software Development.
+//
+// This file is part of Xestia Calendar.
+//
+// Xestia Calendar 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 Calendar 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