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