Mercurial > hg > orthanc
diff UnitTests/ServerIndex.cpp @ 273:d384af918264
more detailed signal about deleted file
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 08 Dec 2012 22:34:56 +0100 |
parents | 4bc02e2254ec |
children | 4eea080e6e7a |
line wrap: on
line diff
--- a/UnitTests/ServerIndex.cpp Fri Dec 07 18:21:04 2012 +0100 +++ b/UnitTests/ServerIndex.cpp Sat Dec 08 22:34:56 2012 +0100 @@ -1,7 +1,7 @@ #include "gtest/gtest.h" #include "../OrthancServer/DatabaseWrapper.h" -#include "../Core/Toolbox.h" +#include "../Core/Uuid.h" #include <ctype.h> #include <glog/logging.h> @@ -30,8 +30,9 @@ ancestorType_ = type; } - virtual void SignalFileDeleted(const std::string& fileUuid) + virtual void SignalFileDeleted(const FileInfo& info) { + const std::string fileUuid = info.GetUuid(); deletedFiles_.push_back(fileUuid); LOG(INFO) << "A file must be removed: " << fileUuid; }