diff options
author | offtkp <parisoplop@gmail.com> | 2022-07-09 20:40:52 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-07-19 13:06:19 +0200 |
commit | 605e391874e08484111ac760d5b353b7d4db6517 (patch) | |
tree | cf3371d041caea4d21ef5e1391620cf19d3a5860 /desktop/qa | |
parent | 4bd2aaaaaed3db9e71e756f9ae004d5fa6afd8cd (diff) |
Replace old png writer in test_desktop_lib.cxx
Change-Id: I9f73b316521bcacb9042375adef3a3339ab2166f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137115
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'desktop/qa')
-rw-r--r-- | desktop/qa/desktop_lib/test_desktop_lib.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 54440df9266b..0c5df69dba8b 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -62,7 +62,7 @@ #include <cppunit/TestAssert.h> #include <vcl/BitmapTools.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <vcl/filter/PDFiumLibrary.hxx> #if USE_TLS_NSS @@ -3377,8 +3377,8 @@ void DesktopLOKTest::testRenderSearchResult_WriterNode() if (bDumpBitmap) { SvFileStream aStream("~/SearchResultBitmap.png", StreamMode::WRITE | StreamMode::TRUNC); - vcl::PNGWriter aPNGWriter(aBitmap); - aPNGWriter.Write(aStream); + vcl::PngImageWriter aPNGWriter(aStream); + aPNGWriter.write(aBitmap); } CPPUNIT_ASSERT_EQUAL(tools::Long(642), aBitmap.GetSizePixel().Width()); CPPUNIT_ASSERT_EQUAL(tools::Long(561), aBitmap.GetSizePixel().Height()); @@ -3422,8 +3422,8 @@ void DesktopLOKTest::testRenderSearchResult_CommonNode() if (bDumpBitmap) { SvFileStream aStream("~/SearchResultBitmap.png", StreamMode::WRITE | StreamMode::TRUNC); - vcl::PNGWriter aPNGWriter(aBitmap); - aPNGWriter.Write(aStream); + vcl::PngImageWriter aPNGWriter(aStream); + aPNGWriter.write(aBitmap); } CPPUNIT_ASSERT_EQUAL(tools::Long(192), aBitmap.GetSizePixel().Width()); CPPUNIT_ASSERT_EQUAL(tools::Long(96), aBitmap.GetSizePixel().Height()); |