# HG changeset patch # User Alain Mazy # Date 1678908463 -3600 # Node ID a2e5ea1869bdf1e8d62651586a63691e318d0f63 # Parent 94a9484d7f8f490142fcd66bf9aaa43a9e276918 fix build diff -r 94a9484d7f8f -r a2e5ea1869bd Plugin/AuthorizationParserBase.h --- a/Plugin/AuthorizationParserBase.h Wed Mar 15 16:36:42 2023 +0100 +++ b/Plugin/AuthorizationParserBase.h Wed Mar 15 20:27:43 2023 +0100 @@ -76,11 +76,13 @@ resourceHierarchy_->Invalidate(level, id); } +#if BUILD_UNIT_TESTS == 1 FRIEND_TEST(DefaultAuthorizationParser, Parse); protected: ResourceHierarchyCache* GetResourceHierarchy() { return resourceHierarchy_.get(); } +#endif }; } diff -r 94a9484d7f8f -r a2e5ea1869bd Plugin/ResourceHierarchyCache.cpp --- a/Plugin/ResourceHierarchyCache.cpp Wed Mar 15 16:36:42 2023 +0100 +++ b/Plugin/ResourceHierarchyCache.cpp Wed Mar 15 20:27:43 2023 +0100 @@ -194,6 +194,7 @@ } } +#if BUILD_UNIT_TESTS == 1 void ResourceHierarchyCache::AddOrthancDicomMapping(Orthanc::ResourceType level, const std::string& orthancId, const std::string& dicomUid) @@ -208,6 +209,6 @@ { cache_->Store(ComputeKey(childLevel, childOrthancId), parentOrthancId, 0 /* no expiration */); } - +#endif } diff -r 94a9484d7f8f -r a2e5ea1869bd Plugin/ResourceHierarchyCache.h --- a/Plugin/ResourceHierarchyCache.h Wed Mar 15 16:36:42 2023 +0100 +++ b/Plugin/ResourceHierarchyCache.h Wed Mar 15 20:27:43 2023 +0100 @@ -89,6 +89,7 @@ Orthanc::ResourceType level, const std::string& dicomUid); +#if BUILD_UNIT_TESTS == 1 FRIEND_TEST(DefaultAuthorizationParser, Parse); protected: void AddOrthancDicomMapping(Orthanc::ResourceType level, @@ -98,6 +99,6 @@ void AddParentLink(Orthanc::ResourceType childLevel, const std::string& childOrthancId, const std::string& parentOrthancId); - +#endif }; }