From 46d69234ce95edafc8cbe3834c174a90c9bf1b9d Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Fri, 27 Oct 2006 10:06:19 +0000 Subject: [PATCH] Include FindLength in the tests. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/streams/fileback.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/streams/fileback.cpp b/tests/streams/fileback.cpp index 0fbce3ec1e..129e2029d0 100644 --- a/tests/streams/fileback.cpp +++ b/tests/streams/fileback.cpp @@ -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) -- 2.45.2