Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code and unit tests to FakeConnectionObject class
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.h
index 02924f9..96f03d0 100644 (file)
@@ -34,9 +34,36 @@ class FakeConnectionObject : public ConnectionObject {
                bool GetServerSSL();
                bool GetTestMode();
        
+               // Functions from the ConnectionObject interface.
+       
+               COConnectResult Connect();
+               std::string GetDefaultPrefix();
+               COServerResponse AddContact(std::string Location, std::string Data);
+
+               void SetupData(std::string Method, std::string Location, std::string Data);
+       
+               bool CanDoProcessing();
+               bool CanDoSSL();
+               bool SSLVerify();
+               bool AbleToLogin();
+               bool HasValidResponse();
+               bool IsSelfSigned();
+       
                // Variables to set for fake connection object.
        
-               std::string ServerPrefixInput = "";
+               std::string ResultServerPrefix = "";
+               COConnectResult ResultStatus = COCONNECT_UNITTESTFAIL;
+               bool ResultAuthPassed = false;
+               bool ResultCanProcess = false;
+               bool ResultSSLStatus = false;
+               bool ResultSSLVerified = false;
+               bool ResultValidResponse = false;
+               bool ResultSelfSigned = false;
+               bool NoConnection = false;
+               CORequestResult TestRequestResult;
+               std::string TestEntityTag;
+               int TestResultCode;
+               std::string TestResultMessage;
        
        protected:
        private:
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