diff --git a/components/core/src/clp/streaming_compression/lzma/Compressor.hpp b/components/core/src/clp/streaming_compression/lzma/Compressor.hpp index 5d35eb28e..f46a7a58d 100644 --- a/components/core/src/clp/streaming_compression/lzma/Compressor.hpp +++ b/components/core/src/clp/streaming_compression/lzma/Compressor.hpp @@ -11,6 +11,7 @@ #include "../../FileWriter.hpp" #include "../../TraceableException.hpp" #include "../Compressor.hpp" +#include "Constants.hpp" namespace clp::streaming_compression::lzma { /** @@ -33,6 +34,7 @@ class Compressor : public ::clp::streaming_compression::Compressor { // Constructors Compressor() : Compressor{cDefaultCompressionLevel, cDefaultDictionarySize, LZMA_CHECK_CRC64} {} + Compressor(int compression_level, size_t dict_size, lzma_check check) : m_lzma_stream{compression_level, dict_size, check} {} diff --git a/components/core/tests/test-StreamingCompression.cpp b/components/core/tests/test-StreamingCompression.cpp index 8fc7f4286..5ae5532a0 100644 --- a/components/core/tests/test-StreamingCompression.cpp +++ b/components/core/tests/test-StreamingCompression.cpp @@ -19,7 +19,6 @@ #include "../src/clp/streaming_compression/Compressor.hpp" #include "../src/clp/streaming_compression/Decompressor.hpp" #include "../src/clp/streaming_compression/lzma/Compressor.hpp" -#include "../src/clp/streaming_compression/lzma/Constants.hpp" #include "../src/clp/streaming_compression/passthrough/Compressor.hpp" #include "../src/clp/streaming_compression/passthrough/Decompressor.hpp" #include "../src/clp/streaming_compression/zstd/Compressor.hpp" @@ -132,11 +131,7 @@ TEST_CASE("StreamingCompression", "[StreamingCompression]") { } SECTION("LZMA compression") { - compressor = std::make_unique( - clp::streaming_compression::lzma::cDefaultCompressionLevel, - clp::streaming_compression::lzma::cDefaultDictionarySize, - LZMA_CHECK_CRC64 - ); + compressor = std::make_unique(); compress(std::move(compressor), uncompressed_buffer.data()); }