X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fclasses%2FFakeConnectionObject.cpp;h=4a348a56a5b58c60427f36402b70bfde6ec692b0;hb=176323555ae58da5fec1ac843e0c613a0b9dabba;hp=7eaffbbde5779a320e349c7cbcb7383e7dfcdd0e;hpb=207230fecdee2390ca3bfa41fc9ec33ea0e7886b;p=xestiaab%2F.git diff --git a/source/tests/classes/FakeConnectionObject.cpp b/source/tests/classes/FakeConnectionObject.cpp index 7eaffbb..4a348a5 100644 --- a/source/tests/classes/FakeConnectionObject.cpp +++ b/source/tests/classes/FakeConnectionObject.cpp @@ -18,6 +18,35 @@ #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(){ + +} + COConnectResult FakeConnectionObject::Connect(bool DoAuthentication){ COConnectResult ConnectResult = ResultStatus; @@ -69,7 +98,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 +183,7 @@ bool FakeConnectionObject::GetServerSSL(){ } bool FakeConnectionObject::GetTestMode(){ - return TestMode; + return ResultTestMode; } bool FakeConnectionObject::CanDoProcessing(){ @@ -175,4 +204,8 @@ bool FakeConnectionObject::AbleToLogin(){ bool FakeConnectionObject::HasValidResponse(){ return ValidResponse; +} + +bool FakeConnectionObject::IsSelfSigned(){ + return SSLSelfSigned; } \ No newline at end of file