Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for ConnectionObject interface and FakeConnectionObject class
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.h
index a9eba6d..a72a993 100644 (file)
 // You should have received a copy of the GNU General Public License along
 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
  
+#ifndef __CONNOBJECT_FAKECONNECTIONOBJECT_H__
+#define __CONNOBJECT_FAKECONNECTIONOBJECT_H__
 #include "../../connobject/ConnectionObject.h"
 
 class FakeConnectionObject : public ConnectionObject {
        
        public:
-               
-               // Functions for fake connection object.
        
                using ConnectionObject::ConnectionObject;
+       
+               // Functions for fake connection object.
+       
                std::string GetServerAddress();
                unsigned int GetServerPort();
                std::string GetServerUser();
@@ -44,12 +48,13 @@ class FakeConnectionObject : public ConnectionObject {
                COServerResponse GetServerEntityTagValue(std::string Location);
                COServerResponse GetContact(std::string Location);
                COContactList GetContactList(std::string SyncToken);
-
+               
+               bool IsTaskCompleted();
                void SetupData(std::string Method, std::string Location, std::string Data);
        
                bool CanDoProcessing();
                bool CanDoSSL();
-               bool SSLVerify();
+               COSSLVerified SSLVerify();
                bool AbleToLogin();
                bool HasValidResponse();
                bool IsSelfSigned();
@@ -61,9 +66,10 @@ class FakeConnectionObject : public ConnectionObject {
                bool ResultAuthPassed = false;
                bool ResultCanProcess = false;
                bool ResultSSLStatus = false;
-               bool ResultSSLVerified = false;
+               COSSLVerified ResultSSLVerified = COSSL_NORESULT;
                bool ResultValidResponse = false;
                bool ResultSelfSigned = false;
+               bool ResultTaskCompleted = false;
                CORequestResult TestRequestResult;
                COContactList TestContactList;
                std::string TestEntityTag;
@@ -74,4 +80,6 @@ class FakeConnectionObject : public ConnectionObject {
        protected:
        private:
        
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
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