00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #ifdef __GNUG__
00012 #pragma implementation "CppUnitWarningAsserter.h"
00013 #endif
00014
00015 #include <wxGuiTest/CppUnitWarningAsserter.h>
00016
00017 #include <cppunit/Asserter.h>
00018
00019 namespace wxTst {
00020
00021
00022 void CppUnitWarningAsserter::FailAssert (const wxString &file,
00023 const int line, const wxString &shortDescription,
00024 const wxString &message) const
00025 {
00026 CPPUNIT_NS::SourceLine sourceLine;
00027
00028 if ((!file.IsEmpty ()) || (line != -1)) {
00029
00030 sourceLine = CPPUNIT_NS::SourceLine (std::string(
00031 (file).mb_str(*wxConvCurrent)), line);
00032 }
00033
00034 CPPUNIT_NS::Asserter::fail (CPPUNIT_NS::Message (
00035 std::string((shortDescription).mb_str(*wxConvCurrent)),
00036 std::string((message).mb_str(*wxConvCurrent))), sourceLine);
00037 }
00038
00039 }
00040