Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replace old build system with CMake build system
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.h
index 9a214a7..c5b446a 100644 (file)
@@ -25,7 +25,14 @@ class FakeConnectionObject : public ConnectionObject {
        
        public:
        
-               using ConnectionObject::ConnectionObject;
+               //using ConnectionObject::ConnectionObject;
+       
+               FakeConnectionObject(std::string ServerAddress, int ServerPort, std::string ServerUser, std::string ServerPass, bool ServerSSL);
+               FakeConnectionObject(std::string ServerAddress, int ServerPort, std::string ServerUser, std::string ServerPass, bool ServerSSL, std::string ServerPrefix, std::string ServerAccount);
+
+               // Destructor.
+       
+               ~FakeConnectionObject();
        
                // Functions for fake connection object.
        
@@ -40,6 +47,12 @@ class FakeConnectionObject : public ConnectionObject {
        
                // Functions from the ConnectionObject interface.
        
+        void SetupConnectionObject();
+        void BypassSSLVerification(bool EnableBypass);
+        COServerResponse GetDefaultPrefix(std::string *ServerPrefix);
+        COServerResponse GetContact(std::string Location, std::string *PageData);
+        std::string GetErrorMessage();
+        SSLCertCollectionString BuildSSLCollection();
                COConnectResult Connect(bool DoAuthentication);
                std::string GetDefaultPrefix();
                COServerResponse AddContact(std::string Location, std::string Data);
@@ -72,14 +85,15 @@ class FakeConnectionObject : public ConnectionObject {
                bool ResultTaskCompleted = false;
                CORequestResult TestRequestResult;
                COContactList TestContactList;
-               std::string TestEntityTag;
-               int TestSessionCode;
-               int TestResultCode;
-               std::string TestResultMessage;
+               std::string TestEntityTag = "";
+               int TestSessionCode = 0;
+               int TestResultCode = 0;
+               std::string TestResultMessage = "";
+               bool ResultTestMode = false;
        
        protected:
        private:
        
 };
 
-#endif
\ No newline at end of file
+#endif
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