diff UnitTestsSources/PixelTestPatternsTests.cpp @ 1629:7fc8a3ff09ee

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 15:14:37 +0100
parents a1405ab3a91c
children 9ac2a65d4172
line wrap: on
line diff
--- a/UnitTestsSources/PixelTestPatternsTests.cpp	Sat Nov 07 00:08:45 2020 +0100
+++ b/UnitTestsSources/PixelTestPatternsTests.cpp	Mon Nov 09 15:14:37 2020 +0100
@@ -51,10 +51,10 @@
 
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("SimpleRedBlueHGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "SimpleRedBlueHGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(391u, sizeof(bin2c_SimpleRedBlueHGradient_png));
@@ -87,10 +87,10 @@
 
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("SimpleRedBlueVGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "SimpleRedBlueVGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(400u, sizeof(bin2c_SimpleRedBlueVGradient_png));
@@ -150,10 +150,10 @@
  
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("MultiGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "MultiGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(774u, sizeof(bin2c_MultiGradient_png));