]> git.saurik.com Git - wxWidgets.git/commitdiff
Include FindLength in the tests.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 27 Oct 2006 10:06:19 +0000 (10:06 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 27 Oct 2006 10:06:19 +0000 (10:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/streams/fileback.cpp

index 0fbce3ec1e684cd0bcf8237de0636a4a68a870cb..129e2029d086881f83630762681e4374e91561f8 100644 (file)
@@ -67,7 +67,7 @@ public:
 
 private:
     void Read(wxInputStream& in, size_t size1, size_t size2, size_t size3);
-    void Len(wxInputStream& in);
+    void Len(wxBackedInputStream& in);
     void Seek(wxInputStream& in);
 
     char m_testdata[TESTSIZE];
@@ -91,7 +91,7 @@ void backStream::ReadLenSeek()
 
 void backStream::LenSeekRead()
 {
-    wxBackingFile bf(new wxMemoryInputStream(m_testdata, TESTSIZE), BUFSIZE);
+    wxBackingFile bf(new TestStream(m_testdata, TESTSIZE), BUFSIZE);
     wxBackedInputStream in(bf);
 
     Len(in);
@@ -174,9 +174,9 @@ void backStream::Read(wxInputStream& in,
     CPPUNIT_ASSERT(in.Eof());
 }
 
-void backStream::Len(wxInputStream& in)
+void backStream::Len(wxBackedInputStream& in)
 {
-    CPPUNIT_ASSERT_EQUAL(wxFileOffset(TESTSIZE), in.GetLength());
+    CPPUNIT_ASSERT_EQUAL(wxFileOffset(TESTSIZE), in.FindLength());
 }
 
 void backStream::Seek(wxInputStream& in)