X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftests%2Fclasses%2FFakeConnectionObject.cpp;h=8a3da557b8881a471c415575dc2a5b90b754bbfc;hp=7257640c29c32546362a6f8adf387f8da62cc3b3;hb=ea5f276a69989d4e5797b49083322bac2c9a820c;hpb=674d18f3054c0530a53c9586f9c2effa4dc5dfcb diff --git a/source/tests/classes/FakeConnectionObject.cpp b/source/tests/classes/FakeConnectionObject.cpp index 7257640..8a3da55 100644 --- a/source/tests/classes/FakeConnectionObject.cpp +++ b/source/tests/classes/FakeConnectionObject.cpp @@ -18,7 +18,63 @@ #include "FakeConnectionObject.h" -COConnectResult FakeConnectionObject::Connect(){ +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; AuthPassed = ResultAuthPassed; @@ -29,6 +85,7 @@ COConnectResult FakeConnectionObject::Connect(){ SSLSelfSigned = ResultSelfSigned; ServerPrefix = ResultServerPrefix; return ConnectResult; + } bool FakeConnectionObject::IsTaskCompleted(){ @@ -68,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; @@ -153,7 +210,7 @@ bool FakeConnectionObject::GetServerSSL(){ } bool FakeConnectionObject::GetTestMode(){ - return TestMode; + return ResultTestMode; } bool FakeConnectionObject::CanDoProcessing(){