X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftests%2Fclasses%2FFakeConnectionObject.cpp;h=8a3da557b8881a471c415575dc2a5b90b754bbfc;hp=7eaffbbde5779a320e349c7cbcb7383e7dfcdd0e;hb=ea5f276a69989d4e5797b49083322bac2c9a820c;hpb=207230fecdee2390ca3bfa41fc9ec33ea0e7886b diff --git a/source/tests/classes/FakeConnectionObject.cpp b/source/tests/classes/FakeConnectionObject.cpp index 7eaffbb..8a3da55 100644 --- a/source/tests/classes/FakeConnectionObject.cpp +++ b/source/tests/classes/FakeConnectionObject.cpp @@ -18,6 +18,62 @@ #include "FakeConnectionObject.h" +FakeConnectionObject::FakeConnectionObject(std::string ServerAddress, int ServerPort, + std::string ServerUser, std::string ServerPass, bool ServerSSL){ + + this->ServerAddress = ServerAddress; + this->ServerPort = ServerPort; + this->ServerUser = ServerUser; + this->ServerPass = ServerPass; + this->ServerSSL = ServerSSL; + +} + +FakeConnectionObject::FakeConnectionObject(std::string ServerAddress, int ServerPort, + std::string ServerUser, std::string ServerPass, bool ServerSSL, + std::string ServerPrefix, std::string ServerAccount){ + + this->ServerAddress = ServerAddress; + this->ServerPort = ServerPort; + this->ServerUser = ServerUser; + this->ServerPass = ServerPass; + this->ServerSSL = ServerSSL; + this->ServerPrefix = ServerPrefix; + this->ServerAccount = ServerAccount; + +} + +FakeConnectionObject::~FakeConnectionObject(){ + +} + +void FakeConnectionObject::SetupConnectionObject(){ + +} + +void FakeConnectionObject::BypassSSLVerification(bool EnableBypass){ + +} + +COServerResponse FakeConnectionObject::GetDefaultPrefix(std::string *ServerPrefix){ + COServerResponse blankResponse; + return blankResponse; +} + +COServerResponse FakeConnectionObject::GetContact(std::string Location, std::string *PageData){ + COServerResponse blankResponse; + return blankResponse; +} + +std::string FakeConnectionObject::GetErrorMessage(){ + return ""; +} + +SSLCertCollectionString FakeConnectionObject::BuildSSLCollection(){ + SSLCertCollectionString blankString; + return blankString; +} + COConnectResult FakeConnectionObject::Connect(bool DoAuthentication){ COConnectResult ConnectResult = ResultStatus; @@ -69,7 +125,7 @@ COServerResponse FakeConnectionObject::EditContact(std::string Location, std::st } -COServerResponse FakeConnectionObject::DeleteContact(std::string Location, std::string EntityTag){ +COServerResponse FakeConnectionObject::DeleteContact(std::string Location){ COServerResponse DeleteContactResult; @@ -154,7 +210,7 @@ bool FakeConnectionObject::GetServerSSL(){ } bool FakeConnectionObject::GetTestMode(){ - return TestMode; + return ResultTestMode; } bool FakeConnectionObject::CanDoProcessing(){ @@ -175,4 +231,8 @@ bool FakeConnectionObject::AbleToLogin(){ bool FakeConnectionObject::HasValidResponse(){ return ValidResponse; +} + +bool FakeConnectionObject::IsSelfSigned(){ + return SSLSelfSigned; } \ No newline at end of file