X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fclasses%2FFakeConnectionObject.h;h=96f03d0b9f2d902c2c7410f0306e1ca7a2db3c6b;hb=1a669f2f2ab771fac49d859851bd1cdba28ab3f8;hp=02924f9eff64ab8d40625631cb994e4d45101634;hpb=1a9e2a6862684d5bbd4a250019e72ec831429fe6;p=xestiaab%2F.git diff --git a/source/tests/classes/FakeConnectionObject.h b/source/tests/classes/FakeConnectionObject.h index 02924f9..96f03d0 100644 --- a/source/tests/classes/FakeConnectionObject.h +++ b/source/tests/classes/FakeConnectionObject.h @@ -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: