]> git.saurik.com Git - wxWidgets.git/commit - tests/image/image.cpp
Make it easier to compare wxImages in the unit tests.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:16 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:16 +0000 (22:57 +0000)
commita25b5bbfc92c4824db1d6e2c8369ab41531c2363
tree387d135886189774922e20de60b25ebc89782e53
parent051b7b264fd113b531097e5b762ccf850609e657
Make it easier to compare wxImages in the unit tests.

Instead of forcing the tests to manually use memcmp(), specialize
CppUnit::assertion_traits<> for wxImage. This allows to simply use
CPPUNIT_ASSERT_EQUAL() and related macros with wxImage objects.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
tests/image/image.cpp
tests/testimage.h [new file with mode: 0644]