Add DjVu test

This commit is contained in:
Svetlana Kulikova
2024-08-22 14:25:37 +03:00
parent 685f8d2442
commit 6ebccd7f4a
2 changed files with 13 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#include "../../DesktopEditor/xmlsec/src/include/CertificateCommon.h"
#include "../../DesktopEditor/graphics/MetafileToGraphicsRenderer.h"
#include "../../DesktopEditor/raster/BgraFrame.h"
#include "../../DjVuFile/DjVu.h"
#include "../PdfFile.h"
class CPdfFileTest : public testing::Test
@ -165,6 +166,17 @@ std::wstring CPdfFileTest::strDirIn;
std::wstring CPdfFileTest::strDirOut;
std::wstring CPdfFileTest::strDiffs;
TEST_F(CPdfFileTest, DjVuToPdf)
{
GTEST_SKIP();
CDjVuFile* pDjVu = new CDjVuFile(pApplicationFonts);
pDjVu->LoadFromFile(NSFile::GetProcessDirectory() + L"/test.djvu");
pDjVu->ConvertToPdf(wsDstFile);
RELEASEOBJECT(pDjVu);
}
TEST_F(CPdfFileTest, GetMetaData)
{
GTEST_SKIP();

View File

@ -13,7 +13,7 @@ include($$CORE_ROOT_DIR/Common/base.pri)
include($$CORE_ROOT_DIR/Common/3dParty/googletest/googletest.pri)
include($$CORE_ROOT_DIR/Common/3dParty/icu/icu.pri)
ADD_DEPENDENCY(UnicodeConverter, kernel, graphics, PdfFile, ooxmlsignature)
ADD_DEPENDENCY(UnicodeConverter, kernel, graphics, PdfFile, DjVuFile, ooxmlsignature)
SOURCES += test.cpp