Mercurial > hg > orthanc
comparison UnitTestsSources/FromDcmtkTests.cpp @ 3048:8b331be57606
fix build without plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Dec 2018 16:18:20 +0100 |
parents | 9b4251721f22 |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
3045:095193bbd7b9 | 3048:8b331be57606 |
---|---|
318 } | 318 } |
319 | 319 |
320 | 320 |
321 TEST(FromDcmtkBridge, ValueRepresentationConversions) | 321 TEST(FromDcmtkBridge, ValueRepresentationConversions) |
322 { | 322 { |
323 #if ORTHANC_ENABLE_PLUGINS == 1 | |
323 ASSERT_EQ(1, ValueRepresentation_ApplicationEntity); | 324 ASSERT_EQ(1, ValueRepresentation_ApplicationEntity); |
324 ASSERT_EQ(1, OrthancPluginValueRepresentation_AE); | 325 ASSERT_EQ(1, OrthancPluginValueRepresentation_AE); |
325 | 326 |
326 for (int i = ValueRepresentation_ApplicationEntity; | 327 for (int i = ValueRepresentation_ApplicationEntity; |
327 i <= ValueRepresentation_NotSupported; i++) | 328 i <= ValueRepresentation_NotSupported; i++) |
356 { | 357 { |
357 OrthancPluginValueRepresentation plugins = static_cast<OrthancPluginValueRepresentation>(i); | 358 OrthancPluginValueRepresentation plugins = static_cast<OrthancPluginValueRepresentation>(i); |
358 ValueRepresentation orthanc = Plugins::Convert(plugins); | 359 ValueRepresentation orthanc = Plugins::Convert(plugins); |
359 ASSERT_EQ(plugins, Plugins::Convert(orthanc)); | 360 ASSERT_EQ(plugins, Plugins::Convert(orthanc)); |
360 } | 361 } |
362 #endif | |
361 } | 363 } |
362 | 364 |
363 | 365 |
364 | 366 |
365 static const DicomTag REFERENCED_STUDY_SEQUENCE(0x0008, 0x1110); | 367 static const DicomTag REFERENCED_STUDY_SEQUENCE(0x0008, 0x1110); |