X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftests%2Fclasses%2FFakeConnectionObject.cpp;h=8a3da557b8881a471c415575dc2a5b90b754bbfc;hp=348956c65cf7caacb2fb022ceb94ec23aa2050a6;hb=ea5f276a69989d4e5797b49083322bac2c9a820c;hpb=3a02a0ffe62a3813b75e061252434de658929b1d diff --git a/source/tests/classes/FakeConnectionObject.cpp b/source/tests/classes/FakeConnectionObject.cpp index 348956c..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; @@ -154,7 +210,7 @@ bool FakeConnectionObject::GetServerSSL(){ } bool FakeConnectionObject::GetTestMode(){ - return TestMode; + return ResultTestMode; } bool FakeConnectionObject::CanDoProcessing(){