Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndexTests.cpp @ 1124:790ff7a5b3bf
IStorageArea abstraction
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Sep 2014 16:28:34 +0200 |
parents | 66fa947c7280 |
children | ba9fd42284d0 |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp Fri Sep 05 15:59:04 2014 +0200 +++ b/UnitTestsSources/ServerIndexTests.cpp Fri Sep 05 16:28:34 2014 +0200 @@ -38,6 +38,7 @@ #include "../OrthancServer/ServerIndex.h" #include "../Core/Uuid.h" #include "../Core/DicomFormat/DicomNullValue.h" +#include "../Core/FileStorage/FilesystemStorage.h" #include <ctype.h> #include <glog/logging.h> @@ -569,8 +570,10 @@ TEST(ServerIndex, AttachmentRecycling) { const std::string path = "UnitTestsStorage"; + Toolbox::RemoveFile(path + "/index"); - ServerContext context(path, ":memory:"); // The SQLite DB is in memory + FilesystemStorage storage(path); + ServerContext context(storage, ":memory:"); // The SQLite DB is in memory ServerIndex& index = context.GetIndex(); index.SetMaximumStorageSize(10);