X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/716e748b2fe86beba88b390f4e6c81d2e268035a..e86aa7a62cc8be79ffaeb0d07b70161cb9ea2c74:/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