Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code and unit tests to FakeConnectionObject class
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.h
index c26bfd4..96f03d0 100644 (file)
@@ -37,6 +37,11 @@ class FakeConnectionObject : public ConnectionObject {
                // 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();
@@ -46,8 +51,19 @@ class FakeConnectionObject : public ConnectionObject {
        
                // Variables to set for fake connection object.
        
-               std::string ServerPrefixInput = "";
-               COConnectResult ResultStatus;
+               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