comparison 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
comparison
equal deleted inserted replaced
272:337c506461d2 273:d384af918264
1 #include "gtest/gtest.h" 1 #include "gtest/gtest.h"
2 2
3 #include "../OrthancServer/DatabaseWrapper.h" 3 #include "../OrthancServer/DatabaseWrapper.h"
4 #include "../Core/Toolbox.h" 4 #include "../Core/Uuid.h"
5 5
6 #include <ctype.h> 6 #include <ctype.h>
7 #include <glog/logging.h> 7 #include <glog/logging.h>
8 8
9 using namespace Orthanc; 9 using namespace Orthanc;
28 { 28 {
29 ancestorId_ = publicId; 29 ancestorId_ = publicId;
30 ancestorType_ = type; 30 ancestorType_ = type;
31 } 31 }
32 32
33 virtual void SignalFileDeleted(const std::string& fileUuid) 33 virtual void SignalFileDeleted(const FileInfo& info)
34 { 34 {
35 const std::string fileUuid = info.GetUuid();
35 deletedFiles_.push_back(fileUuid); 36 deletedFiles_.push_back(fileUuid);
36 LOG(INFO) << "A file must be removed: " << fileUuid; 37 LOG(INFO) << "A file must be removed: " << fileUuid;
37 } 38 }
38 }; 39 };
39 } 40 }