Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Process the data files and load them into the CalDAVConnectionData objects.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 25 Feb 2016 18:33:52 +0000 (18:33 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 25 Feb 2016 18:33:52 +0000 (18:33 +0000)
source/tests/xestiacalendar_caldav.h

index f2f7654..955113b 100644 (file)
@@ -25,15 +25,44 @@ using namespace std;
 
 TEST(CalDAV, BasicTests){
 
+       CalDAVConnectionData ConnPlain;
+       CalDAVConnectionData ConnNormal;
+       CalDAVConnectionData ConnFail;
+       CalDAVConnectionData ConnTimeout;
+       ProcessConnectionDataFileResult DataFileResult;
+
        bool ValidDataPlain = false;
        bool ValidDataNormal = false;
        bool ValidDataFail = false;
        bool ValidDataTimeout = false;
 
        // Attempt to read the caldavtest-plain.auth file.
+       
+       DataFileResult = ProcessConnectionDataFile("caldavtest-plain.auth", &ConnPlain);
+       if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){
+               ValidDataPlain = true;
+       }
+       
+       // Attempt to read the caldavtest.auth file.
+
+       DataFileResult = ProcessConnectionDataFile("caldavtest.auth", &ConnNormal);
+       if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){
+               ValidDataNormal = true;
+       }
+       
        // Attempt to read the caldavtest-fail.auth file.
+       
+       DataFileResult = ProcessConnectionDataFile("caldavtest-fail.auth", &ConnFail);
+       if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){
+               ValidDataFail = true;
+       }
+       
        // Attempt to read the caldavtest-timeout.auth file.
-       // Attempt to read the caldavtest.auth file.
+       
+       DataFileResult = ProcessConnectionDataFile("caldavtest-fail.auth", &ConnTimeout);
+       if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){
+               ValidDataTimeout = true;
+       }
 
        if (ValidDataPlain == false){
        
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy