Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
CardDAV2: Fixed FakeConnectionObject unit tests
[xestiaab/.git] / source / tests / xestiaab_carddav.cpp
index 2ef1225..a4fa5ec 100644 (file)
@@ -41,6 +41,10 @@ TEST(CardDAV, Use_Fake_To_Setup_And_Check_Connection_Settings_With_TestMode_True
        FakeConnectionObject FakeConnection2(ServerAddress2, 8800, ServerUser2, ServerPass2, true);
        FakeConnectionObject FakeConnection3(ServerAddress3, 8008, ServerUser3, ServerPass3, false);
        
+       FakeConnection1.ResultTestMode = true;
+       FakeConnection2.ResultTestMode = true;
+       FakeConnection3.ResultTestMode = true;
+       
        EXPECT_EQ("gibberish.invalid", FakeConnection1.GetServerAddress());
        EXPECT_EQ(8080, FakeConnection1.GetServerPort());
        EXPECT_EQ("user", FakeConnection1.GetServerUser());
@@ -88,6 +92,10 @@ TEST(CardDAV, Use_Fake_To_Setup_And_Check_Connection_Settings_With_TestMode_Fals
        FakeConnectionObject FakeConnection2(ServerAddress2, 8800, ServerUser2, ServerPass2, true, "/prefix2", "Account2");
        FakeConnectionObject FakeConnection3(ServerAddress3, 8008, ServerUser3, ServerPass3, false, "/prefix3", "Account3");
        
+       FakeConnection1.ResultTestMode = false;
+       FakeConnection2.ResultTestMode = false;
+       FakeConnection3.ResultTestMode = false;
+       
        EXPECT_EQ("gibberish.invalid", FakeConnection1.GetServerAddress());
        EXPECT_EQ(8080, FakeConnection1.GetServerPort());
        EXPECT_EQ("user", FakeConnection1.GetServerUser());
@@ -126,7 +134,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_Returning_Success){
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultStatus = COCONNECT_OK;
        
-       EXPECT_EQ(COCONNECT_OK, FakeConnection.Connect());
+       EXPECT_EQ(COCONNECT_OK, FakeConnection.Connect(false));
        
 }
 
@@ -139,7 +147,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_Returning_InvalidAddress){
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultStatus = COCONNECT_INVALID;
        
-       EXPECT_EQ(COCONNECT_INVALID, FakeConnection.Connect());
+       EXPECT_EQ(COCONNECT_INVALID, FakeConnection.Connect(false));
        
 }
 
@@ -152,7 +160,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_Returning_Timeout){
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultStatus = COCONNECT_TIMEOUT;
        
-       EXPECT_EQ(COCONNECT_TIMEOUT, FakeConnection.Connect());
+       EXPECT_EQ(COCONNECT_TIMEOUT, FakeConnection.Connect(false));
        
 }
 
@@ -165,7 +173,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_Returning_Authentication_Failure
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultStatus = COCONNECT_AUTHFAIL;
        
-       EXPECT_EQ(COCONNECT_AUTHFAIL, FakeConnection.Connect());
+       EXPECT_EQ(COCONNECT_AUTHFAIL, FakeConnection.Connect(false));
        
 }
 
@@ -177,7 +185,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Is_Able_To_Login){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultAuthPassed = true;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(true, FakeConnection.AbleToLogin());
        
@@ -191,7 +199,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Is_Unable_To_Login){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultAuthPassed = false;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(false, FakeConnection.AbleToLogin());
        
@@ -205,7 +213,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Can_Do_Processing){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultCanProcess = true;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(true, FakeConnection.CanDoProcessing());
        
@@ -219,7 +227,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Supports_SSL){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSSLStatus  = true;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(true, FakeConnection.CanDoSSL());
        
@@ -233,7 +241,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Does_Not_Support_SSL){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSSLStatus  = false;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(false, FakeConnection.CanDoSSL());
        
@@ -247,7 +255,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Has_Valid_SSL_Certificate_D
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSSLVerified = COSSL_VERIFIED;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(COSSL_VERIFIED, FakeConnection.SSLVerify());
        
@@ -261,8 +269,9 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Has_Invalid_SSL_Certificate
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSSLVerified = COSSL_UNABLETOVERIFY;
-       FakeConnection.Connect();
+       FakeConnection.ResultStatus = COCONNECT_SSLFAIL;
        
+       EXPECT_EQ(COCONNECT_SSLFAIL, FakeConnection.Connect(false));
        EXPECT_EQ(COSSL_UNABLETOVERIFY, FakeConnection.SSLVerify());
        
 }
@@ -275,7 +284,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Has_User_Verified_SSL_Cerfi
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSSLVerified = COSSL_VERIFIED_USER;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(COSSL_VERIFIED_USER, FakeConnection.SSLVerify());
        
@@ -289,7 +298,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Doesnt_Use_SSL_Return_Not_A
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, false);
        FakeConnection.ResultSSLVerified = COSSL_NOTAPPLICABLE;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(COSSL_NOTAPPLICABLE, FakeConnection.SSLVerify());
        
@@ -303,7 +312,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Has_A_Valid_Response){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultValidResponse = true;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(true, FakeConnection.HasValidResponse());
        
@@ -317,7 +326,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Has_A_Invalid_Response){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultValidResponse = false;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(false, FakeConnection.HasValidResponse());
        
@@ -331,7 +340,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Uses_A_Self_Signed_SSL_Cert
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSelfSigned = true;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(true, FakeConnection.IsSelfSigned());
        
@@ -345,7 +354,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Doesnt_Use_A_Self_Signed_SS
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultSelfSigned = false;
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ(false, FakeConnection.IsSelfSigned());
        
@@ -359,7 +368,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_The_Server_Prefix_Of_P
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultServerPrefix = "/prefix/test/a";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ("/prefix/test/a", FakeConnection.GetDefaultPrefix());
        
@@ -373,7 +382,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_The_Server_Prefix_Of_P
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true);
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        EXPECT_EQ("/prefix/test/b", FakeConnection.GetDefaultPrefix());
        
@@ -387,7 +396,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Adds_A_Contact_Successfully
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -421,7 +430,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Add_A_Contact_Due_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -455,7 +464,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Add_A_Contact_Due_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -489,7 +498,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Add_A_Contact_Due_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -523,7 +532,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Edits_A_Server_Contact){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -571,7 +580,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Edit_A_Server_Cont
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -605,7 +614,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Edit_A_Server_Cont
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -639,7 +648,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Edit_A_Server_Cont
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -673,7 +682,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Deletes_A_Server_Contact){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_OK;
        FakeConnection.TestEntityTag = "";
@@ -681,7 +690,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Deletes_A_Server_Contact){
        FakeConnection.TestSessionCode = 0;
        FakeConnection.TestResultMessage = "";
        
-       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
        
        EXPECT_EQ(COREQUEST_OK, DeleteContactResult.RequestResult);
        EXPECT_EQ("", DeleteContactResult.EntityTag);
@@ -695,7 +704,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Deletes_A_Server_Contact){
        FakeConnection.TestSessionCode = 0;
        FakeConnection.TestResultMessage = "";
 
-       DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "asf84sa484saf614as64asvada4s6fas");
+       DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
 
        EXPECT_EQ(COREQUEST_OK, DeleteContactResult.RequestResult);
        EXPECT_EQ("", DeleteContactResult.EntityTag);
@@ -713,7 +722,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_SERVER;
        FakeConnection.TestEntityTag = "";
@@ -721,7 +730,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        FakeConnection.TestSessionCode = 22;
        FakeConnection.TestResultMessage = "You do not have permission to delete this resource.";
        
-       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
        
        EXPECT_EQ(COREQUEST_ERROR_SERVER, DeleteContactResult.RequestResult);
        EXPECT_EQ("", DeleteContactResult.EntityTag);
@@ -739,7 +748,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_SERVER;
        FakeConnection.TestEntityTag = "";
@@ -747,7 +756,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        FakeConnection.TestSessionCode = 22;
        FakeConnection.TestResultMessage = "The resource could not be found.";
        
-       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
        
        EXPECT_EQ(COREQUEST_ERROR_SERVER, DeleteContactResult.RequestResult);
        EXPECT_EQ("", DeleteContactResult.EntityTag);
@@ -765,7 +774,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_NOTCONNECTED;
        FakeConnection.TestEntityTag = "";
@@ -773,7 +782,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Delete_A_Server_Co
        FakeConnection.TestSessionCode = 0;
        FakeConnection.TestResultMessage = "";
        
-       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+       COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
        
        EXPECT_EQ(COREQUEST_ERROR_NOTCONNECTED, DeleteContactResult.RequestResult);
        EXPECT_EQ("", DeleteContactResult.EntityTag);
@@ -791,7 +800,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_Server_Entity_Tag_Valu
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_OK;
        FakeConnection.TestEntityTag = "a23124sfadfdvxc1646541bsdfaf";
@@ -817,7 +826,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_Server_Entity_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_SERVER;
        FakeConnection.TestEntityTag = "";
@@ -843,7 +852,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_Server_Entity_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_SERVER;
        FakeConnection.TestEntityTag = "";
@@ -869,7 +878,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_Server_Entity_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_NOTCONNECTED;
        FakeConnection.TestEntityTag = "";
@@ -895,7 +904,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_Server_Contact_Data){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        std::string ContactFile =
        "BEGIN:VCARD\n"
@@ -929,7 +938,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Gets_Server_Contac
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_OK;
        FakeConnection.TestEntityTag = "";
@@ -955,7 +964,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Gets_Server_Contac
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_OK;
        FakeConnection.TestEntityTag = "";
@@ -981,7 +990,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_Server_Contact
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        FakeConnection.TestRequestResult = COREQUEST_ERROR_NOTCONNECTED;
        FakeConnection.TestEntityTag = "";
@@ -1007,7 +1016,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_A_Full_Server_Contact_
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();       
+       FakeConnection.Connect(false);  
        
        std::string ContactFile1 =
        "BEGIN:VCARD\n"
@@ -1087,7 +1096,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Gets_A_Partial_Server_Conta
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();       
+       FakeConnection.Connect(false);  
        
        std::string ContactFile3 =
        "BEGIN:VCARD\n"
@@ -1137,7 +1146,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_A_Contact_List
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        COContactList ContactListSetup;
        ContactListSetup.SyncToken = "";
@@ -1169,7 +1178,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_A_Contact_List
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        COContactList ContactListSetup;
        ContactListSetup.SyncToken = "";
@@ -1201,7 +1210,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Connection_That_Fails_To_Get_A_Contact_List
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        
        COContactList ContactListSetup;
        ContactListSetup.SyncToken = "";
@@ -1233,7 +1242,7 @@ TEST(CardDAV, Use_Fake_To_Simulate_A_Wait_For_A_Completed_Task){
        
        FakeConnectionObject FakeConnection(ServerAddress1, 8080, ServerUser1, ServerPass1, true, "/prefix", "Account1");
        FakeConnection.ResultServerPrefix = "/prefix/test/b";
-       FakeConnection.Connect();
+       FakeConnection.Connect(false);
        FakeConnection.ResultTaskCompleted = false;
        
        while (!FakeConnection.IsTaskCompleted()){
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