[ 1068188 ] Precompiled header for the test program [Modified a bit]

Regen bakefiles for unit tests


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-11-22 05:00:19 +00:00
parent 955f0add89
commit 8899b155a1
36 changed files with 319 additions and 270 deletions

View File

@@ -11,7 +11,7 @@
// headers
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
#include "testprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
@@ -24,9 +24,6 @@
#include "wx/fileconf.h"
#include "wx/sstream.h"
#include "wx/wfstream.h"
#include "wx/cppunit.h"
static const wxChar *testconfig =
_T("[root]\n")
@@ -45,9 +42,7 @@ _T("[root/group2]\n")
class FileConfigTestCase : public CppUnit::TestCase
{
public:
FileConfigTestCase()
{
}
FileConfigTestCase() { }
private:
CPPUNIT_TEST_SUITE( FileConfigTestCase );
@@ -87,23 +82,9 @@ private:
static wxString Dump(wxFileConfig& fc)
{
wxFileOutputStream* pOutFile = new wxFileOutputStream(_T("outconf.txt"));
fc.Save(*pOutFile);
delete pOutFile;
wxFileInputStream* pInFile = new wxFileInputStream(_T("outconf.txt"));
char* szOut = new char[pInFile->GetSize()];
pInFile->Read(szOut, pInFile->GetSize());
wxString realString = wxTextFile::Translate(
wxString(szOut, wxConvLocal, pInFile->GetSize()),
wxTextFileType_Unix
);
delete szOut;
delete pInFile;
return realString;
wxStringOutputStream sos;
fc.Save(sos);
return wxTextFile::Translate(sos.GetString(), wxTextFileType_Unix);
}
void CheckGroupEntries(const wxFileConfig& fc,