Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
CardDAV2: Fixed FakeConnectionObject unit tests
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.cpp
index 348956c..4a348a5 100644 (file)
 
 #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;
@@ -154,7 +183,7 @@ bool FakeConnectionObject::GetServerSSL(){
 }
 
 bool FakeConnectionObject::GetTestMode(){
-       return TestMode;
+       return ResultTestMode;
 }
 
 bool FakeConnectionObject::CanDoProcessing(){
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy