diff UnitTestsSources/ServerIndexTests.cpp @ 1198:1169528a9a5f db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Oct 2014 13:52:01 +0200
parents 5b2d8c280ac2
children efece308018e
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Thu Oct 23 13:19:18 2014 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Thu Oct 23 13:52:01 2014 +0200
@@ -82,17 +82,16 @@
       LOG(INFO) << "A file must be removed: " << fileUuid;
     }       
 
-    virtual void SignalChange(ChangeType changeType,
-                              ResourceType resourceType,
-                              const std::string& publicId)
+    virtual void SignalChange(const ServerIndexChange& change)
     {
-      if (changeType == ChangeType_Deleted)
+      if (change.GetChangeType() == ChangeType_Deleted)
       {
-        deletedResources_.push_back(publicId);        
+        deletedResources_.push_back(change.GetPublicId());        
       }
 
-      LOG(INFO) << "Change related to resource " << publicId << " of type " 
-                << EnumerationToString(resourceType) << ": " << EnumerationToString(changeType);
+      LOG(INFO) << "Change related to resource " << change.GetPublicId() << " of type " 
+                << EnumerationToString(change.GetResourceType()) << ": " 
+                << EnumerationToString(change.GetChangeType());
     }
 
   };