]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/fileback.cpp
proper default for iphone
[wxWidgets.git] / tests / streams / fileback.cpp
index 129e2029d086881f83630762681e4374e91561f8..54561a56b90be6be6a5432ec388df79348aa401c 100644 (file)
@@ -2,9 +2,8 @@
 // Name:        tests/streams/backfile.cpp
 // Purpose:     Test wxBackingFile
 // Author:      Mike Wetherell
-// RCS-ID:      $Id$
 // Copyright:   (c) 2006 Mike Wetherell
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "testprec.h"
 #endif
 
 #include "wx/mstream.h"
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
 #include "bstream.h"
 
-#if wxUSE_STREAMS
-
 const size_t TESTSIZE = 256;
 const size_t BUFSIZE = 100;
 
-
 ///////////////////////////////////////////////////////////////////////////////
 // Parent stream for testing
 
@@ -189,7 +185,7 @@ void backStream::Seek(wxInputStream& in)
     for (wxFileOffset i = TESTSIZE - 1; i >= 0; i--) {
         CPPUNIT_ASSERT_EQUAL(i, in.SeekI(i));
         CPPUNIT_ASSERT_EQUAL(i, in.TellI());
-        CPPUNIT_ASSERT_EQUAL(char(i), in.GetC());
+        CPPUNIT_ASSERT_EQUAL(int(i), in.GetC());
         CPPUNIT_ASSERT_EQUAL(size_t(1), in.LastRead());
         CPPUNIT_ASSERT(in.IsOk());
     }
@@ -198,5 +194,3 @@ void backStream::Seek(wxInputStream& in)
 // Register the stream sub suite, by using some stream helper macro.
 // Note: Don't forget to connect it to the base suite (See: bstream.cpp => StreamCase::suite())
 STREAM_TEST_SUBSUITE_NAMED_REGISTRATION(backStream)
-
-#endif // wxUSE_STREAMS