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
12
13#ifndef CompressTest_INCLUDED
14#define CompressTest_INCLUDED
15
16
17#include "Poco/Zip/Zip.h"
18#include "Poco/CppUnit/TestCase.h"
19
20
21class CompressTest: public CppUnit::TestCase
22{
23public:
24 CompressTest(const std::string& name);
25 ~CompressTest();
26
27 void testSingleFile();
28 void testDirectory();
29 void testManipulator();
30 void testManipulatorDel();
31 void testManipulatorReplace();
32 void testSetZipComment();
33
34 static const Poco::UInt64 KB = 1024;
35 static const Poco::UInt64 MB = 1024*KB;
36 void createDataFile(const std::string& path, Poco::UInt64 size);
37 void testZip64();
38
39 void setUp();
40 void tearDown();
41
42 static CppUnit::Test* suite();
43
44private:
45};
46
47
48#endif // CompressTest_INCLUDED
49