Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Removed Entity Tag from DeleteContact in ConnectionObject interface
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 28 Aug 2016 08:43:14 +0000 (09:43 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 28 Aug 2016 08:43:14 +0000 (09:43 +0100)
source/connobject/ConnectionObject.h
source/tests/classes/FakeConnectionObject.cpp
source/tests/classes/FakeConnectionObject.h
source/tests/xestiaab_carddav.cpp

index 6685b70..ab479e3 100644 (file)
@@ -87,7 +87,7 @@ class ConnectionObject{
                virtual COServerResponse GetDefaultPrefix(std::string *ServerPrefix) {};
                virtual COServerResponse AddContact(std::string Location, std::string Data) {};
                virtual COServerResponse EditContact(std::string Location, std::string Data) {};
-               virtual COServerResponse DeleteContact(std::string Location, std::string EntityTag) {};
+               virtual COServerResponse DeleteContact(std::string Location) {};
                virtual COServerResponse GetServerEntityTagValue(std::string Location) {};
                virtual COServerResponse GetContact(std::string Location, std::string *PageData) {};
                virtual COContactList GetContactList(std::string SyncToken) {};
index 9cb84ad..348956c 100644 (file)
@@ -69,7 +69,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;
        
index 9c6d9c8..9a214a7 100644 (file)
@@ -44,7 +44,7 @@ class FakeConnectionObject : public ConnectionObject {
                std::string GetDefaultPrefix();
                COServerResponse AddContact(std::string Location, std::string Data);
                COServerResponse EditContact(std::string Location, std::string Data);
-               COServerResponse DeleteContact(std::string Location, std::string EntityTag);
+               COServerResponse DeleteContact(std::string Location);
                COServerResponse GetServerEntityTagValue(std::string Location);
                COServerResponse GetContact(std::string Location);
                COContactList GetContactList(std::string SyncToken);
index b5e7a6d..02b1fa5 100644 (file)
@@ -682,7 +682,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);
@@ -696,7 +696,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);
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