diff 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
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h	Mon Jun 29 19:22:34 2020 +0200
+++ b/Framework/Plugins/IndexUnitTests.h	Wed Jul 01 08:54:32 2020 +0200
@@ -22,14 +22,29 @@
 #pragma once
 
 #include "../Common/ImplicitTransaction.h"
+#include "GlobalProperties.h"
 
 #include <orthanc/OrthancCDatabasePlugin.h>
-#include <OrthancServer/ServerEnumerations.h>
 
 #include <gtest/gtest.h>
 #include <list>
 
 
+namespace Orthanc
+{
+  /**
+   * Mock enumeration inspired from the source code of Orthanc... only
+   * for use in the unit tests!
+   * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h
+   **/
+  enum MetadataType
+  {
+    MetadataType_ModifiedFrom,
+    MetadataType_LastUpdate
+  };
+}
+
+
 static std::auto_ptr<OrthancPluginAttachment>  expectedAttachment;
 static std::list<OrthancPluginDicomTag>  expectedDicomTags;
 static std::auto_ptr<OrthancPluginExportedResource>  expectedExported;