From be2726cd5377778e01ee68ea0194d6686f91aa57 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABlle=20USSEGLIO?= <gaelle.usseglio@cnes.fr>
Date: Tue, 11 Dec 2018 09:06:04 +0000
Subject: [PATCH] BUG : Fix tests

---
 .../OSSIMAdapters/test/otbSarSensorModelAdapterTest.cxx        | 3 ++-
 Modules/Radiometry/SARCalibration/otb-module.cmake             | 1 +
 .../ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp   | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Modules/Adapters/OSSIMAdapters/test/otbSarSensorModelAdapterTest.cxx b/Modules/Adapters/OSSIMAdapters/test/otbSarSensorModelAdapterTest.cxx
index 6f29a60ef2..734c55ce3b 100644
--- a/Modules/Adapters/OSSIMAdapters/test/otbSarSensorModelAdapterTest.cxx
+++ b/Modules/Adapters/OSSIMAdapters/test/otbSarSensorModelAdapterTest.cxx
@@ -43,7 +43,8 @@ int otbSarSensorModelAdapterTest(int itkNotUsed(argc), char* argv[])
     }
 
   std::vector<std::pair<unsigned long, unsigned long> > lines;
-  success = sensorModel->Deburst(lines);
+  std::pair<unsigned long, unsigned long> samples;
+  success = sensorModel->Deburst(lines, samples);
 
   if(!success)
     {
diff --git a/Modules/Radiometry/SARCalibration/otb-module.cmake b/Modules/Radiometry/SARCalibration/otb-module.cmake
index 54f896fe57..13eb2a48f5 100644
--- a/Modules/Radiometry/SARCalibration/otb-module.cmake
+++ b/Modules/Radiometry/SARCalibration/otb-module.cmake
@@ -27,6 +27,7 @@ otb_module(OTBSARCalibration
     OTBITK
     OTBMetadata
     OTBOSSIMAdapters
+    OTBImageManipulation
 
   TEST_DEPENDS
     OTBImageBase
diff --git a/Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp b/Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
index ca968e66df..6985198446 100644
--- a/Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
+++ b/Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
@@ -109,9 +109,10 @@ int main(int argc, char * argv[])
          ;
       
       std::vector<std::pair<unsigned long, unsigned long> > deburstLines;
+      std::pair<unsigned long, unsigned long> deburstSamples;
 
       std::cout<<"Trying to deburst data ..."<<std::endl;
-      bool deburstOk = sensor->deburst(deburstLines);
+      bool deburstOk = sensor->deburst(deburstLines, deburstSamples);
       std::cout<<"Deburst succeed: "<<(deburstOk?"yes":"no")<<std::endl;
 
       if(deburstOk)
-- 
GitLab