Mercurial > hg > orthanc-databases
comparison Framework/Plugins/IndexUnitTests.h @ 152:063aa53b5917
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2020 08:54:32 +0200 |
parents | 4cd7e45b671e |
children | 275e14f57f1e |
comparison
equal
deleted
inserted
replaced
150:d9101318442d | 152:063aa53b5917 |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../Common/ImplicitTransaction.h" | 24 #include "../Common/ImplicitTransaction.h" |
25 #include "GlobalProperties.h" | |
25 | 26 |
26 #include <orthanc/OrthancCDatabasePlugin.h> | 27 #include <orthanc/OrthancCDatabasePlugin.h> |
27 #include <OrthancServer/ServerEnumerations.h> | |
28 | 28 |
29 #include <gtest/gtest.h> | 29 #include <gtest/gtest.h> |
30 #include <list> | 30 #include <list> |
31 | |
32 | |
33 namespace Orthanc | |
34 { | |
35 /** | |
36 * Mock enumeration inspired from the source code of Orthanc... only | |
37 * for use in the unit tests! | |
38 * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h | |
39 **/ | |
40 enum MetadataType | |
41 { | |
42 MetadataType_ModifiedFrom, | |
43 MetadataType_LastUpdate | |
44 }; | |
45 } | |
31 | 46 |
32 | 47 |
33 static std::auto_ptr<OrthancPluginAttachment> expectedAttachment; | 48 static std::auto_ptr<OrthancPluginAttachment> expectedAttachment; |
34 static std::list<OrthancPluginDicomTag> expectedDicomTags; | 49 static std::list<OrthancPluginDicomTag> expectedDicomTags; |
35 static std::auto_ptr<OrthancPluginExportedResource> expectedExported; | 50 static std::auto_ptr<OrthancPluginExportedResource> expectedExported; |