Initial compresison.
This commit is contained in:
parent
4fce4fc614
commit
1ee31596fb
11 changed files with 195 additions and 1 deletions
|
@ -11,6 +11,7 @@ list(APPEND TestFiles
|
|||
audio/TestAudioWriter.cpp
|
||||
audio/TestMidiReader.cpp
|
||||
core/TestBinaryStream.cpp
|
||||
compression/TestStreamCompressor.cpp
|
||||
database/TestDatabase.cpp
|
||||
fonts/TestFontReader.cpp
|
||||
graphics/TestOpenGlRendering.cpp
|
||||
|
@ -30,6 +31,7 @@ list(APPEND TestNames
|
|||
TestAudioWriter
|
||||
TestMidiReader
|
||||
TestBinaryStream
|
||||
TestStreamCompressor
|
||||
TestDatabase
|
||||
TestFontReader
|
||||
TestOpenGlRendering
|
||||
|
@ -52,7 +54,7 @@ link_directories(${DBUS_LIBRARY_DIRS})
|
|||
|
||||
foreach(TestFile TestName IN ZIP_LISTS TestFiles TestNames)
|
||||
add_executable(${TestName} ${TestFile})
|
||||
target_link_libraries(${TestName} PUBLIC core fonts network image publishing video database geometry audio graphics web client test_utils ${DBUS_LIBRARIES})
|
||||
target_link_libraries(${TestName} PUBLIC core compression fonts network image publishing video database geometry audio graphics web client test_utils ${DBUS_LIBRARIES})
|
||||
endforeach()
|
||||
|
||||
|
||||
|
|
14
test/compression/TestStreamCompressor.cpp
Normal file
14
test/compression/TestStreamCompressor.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "HuffmanEncoder.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
std::string testData = "BCAADDDCCACACAC";
|
||||
std::vector<unsigned char> stream(testData.begin(), testData.end());
|
||||
|
||||
HuffmanEncoder encoder;
|
||||
encoder.encode(stream);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue