diff options
author | cutamar <amar.cutura@gmail.com> | 2022-08-28 02:42:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-08-30 22:33:06 +0200 |
commit | 45394fcf7e45f623add7ed3c6dc43e6d6f89158c (patch) | |
tree | 5bea38fed40dcf30b461e46fe74af027d43b0654 /vcl/qa/cppunit/drawmode.cxx | |
parent | 4343432d423b5d92ca2b4ff5037eb29c8ac080ff (diff) |
tdf#141908 Replace usage of sal_Int32 with Color in unit tests
Change-Id: Ifb5ff2e6d5ed28bcb9e190d7f2deaaa970693cbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138938
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/qa/cppunit/drawmode.cxx')
-rw-r--r-- | vcl/qa/cppunit/drawmode.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/qa/cppunit/drawmode.cxx b/vcl/qa/cppunit/drawmode.cxx index f2b59dc8440c..e3792ae1f29f 100644 --- a/vcl/qa/cppunit/drawmode.cxx +++ b/vcl/qa/cppunit/drawmode.cxx @@ -343,9 +343,7 @@ void VclDrawModeTest::testDrawModeBitmapEx() Bitmap::ScopedReadAccess pReadAccess(aResultBitmap); const BitmapColor& rColor = pReadAccess->GetColor(0, 0); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetRed())); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetGreen())); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetBlue())); + CPPUNIT_ASSERT_EQUAL(BitmapColor(0x26, 0x26, 0x26), rColor); } // any other operation other than DrawModeFlags::GrayBitmap is a noop @@ -355,9 +353,7 @@ void VclDrawModeTest::testDrawModeBitmapEx() Bitmap::ScopedReadAccess pReadAccess(aResultBitmap); const BitmapColor& rColor = pReadAccess->GetColor(0, 0); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x80), sal_Int32(rColor.GetRed())); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x00), sal_Int32(rColor.GetGreen())); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0x00), sal_Int32(rColor.GetBlue())); + CPPUNIT_ASSERT_EQUAL(BitmapColor(COL_RED), rColor); } } |