mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Add DjVu test
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user