1 /* 2 * Copyright 2020, Andrew Lindesay <apl@lindesay.co.nz> 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef TAR_ARCHIVE_SERVICE_TEST_H 6 #define TAR_ARCHIVE_SERVICE_TEST_H 7 8 #include "String.h" 9 10 #include <TestCase.h> 11 #include <TestSuite.h> 12 13 14 class TarArchiveServiceTest : public CppUnit::TestCase { 15 public: 16 TarArchiveServiceTest(); 17 virtual ~TarArchiveServiceTest(); 18 19 void TestReadHeader(); 20 21 static void AddTests(BTestSuite& suite); 22 private: 23 status_t CreateSampleFile(BString& path); 24 status_t DeleteSampleFile(const BString& path); 25 }; 26 27 28 #endif // TAR_ARCHIVE_SERVICE_TEST_H 29