X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/716e748b2fe86beba88b390f4e6c81d2e268035a..9e1da4827a0ec18f9766d664b9af12c25e3f71fb:/tests/archive/archivetest.h diff --git a/tests/archive/archivetest.h b/tests/archive/archivetest.h index 69dbd9520f..ea81436eac 100644 --- a/tests/archive/archivetest.h +++ b/tests/archive/archivetest.h @@ -7,6 +7,9 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// +#ifndef WX_ARCHIVETEST_INCLUDED +#define WX_ARCHIVETEST_INCLUDED 1 + #define WX_TEST_ARCHIVE_ITERATOR #include "wx/archive.h" @@ -79,6 +82,9 @@ public: bool IsSeekable() const { return (m_options & PipeIn) == 0; } void SetData(TestOutputStream& out); + void Chop(size_t size) { m_size = size; } + char& operator [](size_t pos) { return m_data[pos]; } + private: wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode); wxFileOffset OnSysTell() const; @@ -268,3 +274,5 @@ private: void AddCmd(wxArrayString& cmdlist, const wxString& cmd); }; + +#endif