CompressTest.h 875 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // CompressTest.h
  3. //
  4. // Definition of the CompressTest class.
  5. //
  6. // Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
  7. // and Contributors.
  8. //
  9. // SPDX-License-Identifier: BSL-1.0
  10. //
  11. #ifndef CompressTest_INCLUDED
  12. #define CompressTest_INCLUDED
  13. #include "Poco/Zip/Zip.h"
  14. #include "CppUnit/TestCase.h"
  15. class CompressTest: public CppUnit::TestCase
  16. {
  17. public:
  18. CompressTest(const std::string& name);
  19. ~CompressTest();
  20. void testSingleFile();
  21. void testDirectory();
  22. void testManipulator();
  23. void testManipulatorDel();
  24. void testManipulatorReplace();
  25. void testSetZipComment();
  26. static const Poco::UInt64 KB = 1024;
  27. static const Poco::UInt64 MB = 1024*KB;
  28. void createDataFile(const std::string& path, Poco::UInt64 size);
  29. void testZip64();
  30. void setUp();
  31. void tearDown();
  32. static CppUnit::Test* suite();
  33. private:
  34. };
  35. #endif // CompressTest_INCLUDED