Mercurial > hg > orthanc
comparison UnitTestsSources/MultiThreadingTests.cpp @ 3695:898903022836 storage-commitment
integration mainline->storage-commitment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Feb 2020 10:39:55 +0100 |
parents | 2d90dd30858c 4922bdd046dd |
children | 56f2397f027a |
comparison
equal
deleted
inserted
replaced
3681:9dac85e807c2 | 3695:898903022836 |
---|---|
1141 TEST(JobsSerialization, DicomModification) | 1141 TEST(JobsSerialization, DicomModification) |
1142 { | 1142 { |
1143 Json::Value s; | 1143 Json::Value s; |
1144 | 1144 |
1145 ParsedDicomFile source(true); | 1145 ParsedDicomFile source(true); |
1146 source.Insert(DICOM_TAG_STUDY_DESCRIPTION, "Test 1", false); | 1146 source.Insert(DICOM_TAG_STUDY_DESCRIPTION, "Test 1", false, ""); |
1147 source.Insert(DICOM_TAG_SERIES_DESCRIPTION, "Test 2", false); | 1147 source.Insert(DICOM_TAG_SERIES_DESCRIPTION, "Test 2", false, ""); |
1148 source.Insert(DICOM_TAG_PATIENT_NAME, "Test 3", false); | 1148 source.Insert(DICOM_TAG_PATIENT_NAME, "Test 3", false, ""); |
1149 | 1149 |
1150 std::auto_ptr<ParsedDicomFile> modified(source.Clone(true)); | 1150 std::auto_ptr<ParsedDicomFile> modified(source.Clone(true)); |
1151 | 1151 |
1152 { | 1152 { |
1153 DicomModification modification; | 1153 DicomModification modification; |
1308 bool CreateInstance(std::string& id) | 1308 bool CreateInstance(std::string& id) |
1309 { | 1309 { |
1310 // Create a sample DICOM file | 1310 // Create a sample DICOM file |
1311 ParsedDicomFile dicom(true); | 1311 ParsedDicomFile dicom(true); |
1312 dicom.Replace(DICOM_TAG_PATIENT_NAME, std::string("JODOGNE"), | 1312 dicom.Replace(DICOM_TAG_PATIENT_NAME, std::string("JODOGNE"), |
1313 false, DicomReplaceMode_InsertIfAbsent); | 1313 false, DicomReplaceMode_InsertIfAbsent, ""); |
1314 | 1314 |
1315 DicomInstanceToStore toStore; | 1315 DicomInstanceToStore toStore; |
1316 toStore.SetParsedDicomFile(dicom); | 1316 toStore.SetParsedDicomFile(dicom); |
1317 | 1317 |
1318 return (context_->Store(id, toStore) == StoreStatus_Success); | 1318 return (context_->Store(id, toStore) == StoreStatus_Success); |