Lines Matching refs:zip
3 // Purpose: Test the zip classes
31 // derived class is used so that zip specific features can be tested.
47 void OnCreateArchive(wxZipOutputStream& zip);
49 void OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal);
51 void OnCreateEntry(wxZipOutputStream& zip,
65 void ZipTestCase::OnCreateArchive(wxZipOutputStream& zip)
68 zip.SetComment(m_comment);
71 void ZipTestCase::OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal)
73 CPPUNIT_ASSERT(zip.GetComment() == m_comment);
74 CPPUNIT_ASSERT(zip.GetTotalEntries() == expectedTotal);
77 void ZipTestCase::OnCreateEntry(wxZipOutputStream& zip,
81 zip.SetLevel((m_id + m_count) % 10);
90 // the same for the zip entries when ModifyArchive() runs
155 // 'zip - -' produces local headers without the size field set. This is a
178 wxString testdata = _T("test data to pipe through zip");
179 wxString cmd = _T("echo ") + testdata + _T(" | zip -q - -");
188 wxZipInputStream zip(in);
190 auto_ptr<wxZipEntry> entry(zip.GetNextEntry());
197 size_t len = zip.Read(buf, sizeof(buf) - 1).LastRead();
203 CPPUNIT_ASSERT(zip.Eof());
226 : ArchiveTestSuite("zip")
228 AddArchiver(_T("zip -qr %s *"));
237 // if have popen then can check the piped output of 'zip - -'
238 if (IsInPath(_T("zip")))
241 false, _T(""), _T("zip -q - -"));
256 // unzip doesn't support piping in the zip
270 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ziptest, "archive/zip");