Fix building tests with wxUSE_XRC==0
This commit is contained in:
parent
a87599b127
commit
7816ca6538
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "wx/filename.h"
|
#include "wx/filename.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
|
#include "wx/icon.h"
|
||||||
#include "wx/animate.h"
|
#include "wx/animate.h"
|
||||||
#include "wx/mstream.h"
|
#include "wx/mstream.h"
|
||||||
#include "wx/dynlib.h"
|
#include "wx/dynlib.h"
|
||||||
@ -161,7 +162,9 @@ void GarbageTestCase::DoLoadFile(const wxString& fullname)
|
|||||||
delete htmlwin;
|
delete htmlwin;
|
||||||
*/
|
*/
|
||||||
// test wxXmlResource
|
// test wxXmlResource
|
||||||
|
#if wxUSE_XRC
|
||||||
CPPUNIT_ASSERT( wxXmlResource::Get()->Load(fullname) == false );
|
CPPUNIT_ASSERT( wxXmlResource::Get()->Load(fullname) == false );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GarbageTestCase::DoLoadStream(wxInputStream& stream)
|
void GarbageTestCase::DoLoadStream(wxInputStream& stream)
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#if wxUSE_XRC
|
||||||
|
|
||||||
#include "wx/xml/xml.h"
|
#include "wx/xml/xml.h"
|
||||||
#include "wx/sstream.h"
|
#include "wx/sstream.h"
|
||||||
#include "wx/wfstream.h"
|
#include "wx/wfstream.h"
|
||||||
@ -226,3 +228,5 @@ void XrcTestCase::IDRanges()
|
|||||||
CPPUNIT_ASSERT( wxXmlResource::Get()->Unload(TEST_XRC_FILE) );
|
CPPUNIT_ASSERT( wxXmlResource::Get()->Unload(TEST_XRC_FILE) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_XRC
|
||||||
|
Loading…
Reference in New Issue
Block a user