Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndex.cpp @ 696:4c1860179cc5
dictionary of user-defined content types
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Feb 2014 15:00:29 +0100 |
parents | 01d8611c4a60 |
children | dd1ce9a2844c |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndex.cpp Wed Feb 05 13:58:00 2014 +0100 +++ b/UnitTestsSources/ServerIndex.cpp Wed Feb 05 15:00:29 2014 +0100 @@ -140,7 +140,7 @@ index.ListAvailableMetadata(md, a[4]); ASSERT_EQ(0u, md.size()); - index.AddAttachment(a[4], FileInfo("my json file", FileContentType_Json, 42, "md5", + index.AddAttachment(a[4], FileInfo("my json file", FileContentType_JsonSummary, 42, "md5", CompressionType_Zlib, 21, "compressedMD5")); index.AddAttachment(a[4], FileInfo("my dicom file", FileContentType_Dicom, 42, "md5")); index.AddAttachment(a[6], FileInfo("world", FileContentType_Dicom, 44, "md5")); @@ -183,7 +183,7 @@ ASSERT_EQ("None", index.GetGlobalProperty(static_cast<GlobalProperty>(42), "None")); FileInfo att; - ASSERT_TRUE(index.LookupAttachment(att, a[4], FileContentType_Json)); + ASSERT_TRUE(index.LookupAttachment(att, a[4], FileContentType_JsonSummary)); ASSERT_EQ("my json file", att.GetUuid()); ASSERT_EQ(21u, att.GetCompressedSize()); ASSERT_EQ("md5", att.GetUncompressedMD5());