mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
17
vendor/POCO/PDF/testsuite/src/Driver.cpp
vendored
Normal file
17
vendor/POCO/PDF/testsuite/src/Driver.cpp
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
//
|
||||
// Driver.cpp
|
||||
//
|
||||
// Console-based test driver for Poco PDF.
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "CppUnit/TestRunner.h"
|
||||
#include "PDFTestSuite.h"
|
||||
|
||||
|
||||
CppUnitMain(PDFTestSuite)
|
98
vendor/POCO/PDF/testsuite/src/PDFTest.cpp
vendored
Normal file
98
vendor/POCO/PDF/testsuite/src/PDFTest.cpp
vendored
Normal file
@ -0,0 +1,98 @@
|
||||
//
|
||||
// PDFTest.cpp
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "PDFTest.h"
|
||||
#include "CppUnit/TestCaller.h"
|
||||
#include "CppUnit/TestSuite.h"
|
||||
|
||||
|
||||
PDFTest::PDFTest(const std::string& name): CppUnit::TestCase(name)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
PDFTest::~PDFTest()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testDocument()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testPage()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testImage()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testFont()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testEncoding()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testOutline()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testDestination()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::testAnnotation()
|
||||
{
|
||||
warn("not implemented");
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::setUp()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void PDFTest::tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
CppUnit::Test* PDFTest::suite()
|
||||
{
|
||||
CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("PDFTest");
|
||||
|
||||
CppUnit_addTest(pSuite, PDFTest, testDocument);
|
||||
CppUnit_addTest(pSuite, PDFTest, testPage);
|
||||
CppUnit_addTest(pSuite, PDFTest, testImage);
|
||||
CppUnit_addTest(pSuite, PDFTest, testFont);
|
||||
CppUnit_addTest(pSuite, PDFTest, testEncoding);
|
||||
CppUnit_addTest(pSuite, PDFTest, testOutline);
|
||||
CppUnit_addTest(pSuite, PDFTest, testDestination);
|
||||
CppUnit_addTest(pSuite, PDFTest, testAnnotation);
|
||||
|
||||
return pSuite;
|
||||
}
|
43
vendor/POCO/PDF/testsuite/src/PDFTest.h
vendored
Normal file
43
vendor/POCO/PDF/testsuite/src/PDFTest.h
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
//
|
||||
// PDFTest.h
|
||||
//
|
||||
// Definition of the PDFTest class.
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef PDFTest_INCLUDED
|
||||
#define PDFTest_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/PDF/PDF.h"
|
||||
#include "CppUnit/TestCase.h"
|
||||
|
||||
|
||||
class PDFTest: public CppUnit::TestCase
|
||||
{
|
||||
public:
|
||||
PDFTest(const std::string& name);
|
||||
~PDFTest();
|
||||
|
||||
void testDocument();
|
||||
void testPage();
|
||||
void testImage();
|
||||
void testFont();
|
||||
void testEncoding();
|
||||
void testOutline();
|
||||
void testDestination();
|
||||
void testAnnotation();
|
||||
|
||||
void setUp();
|
||||
void tearDown();
|
||||
|
||||
static CppUnit::Test* suite();
|
||||
};
|
||||
|
||||
|
||||
#endif // PDFTest_INCLUDED
|
22
vendor/POCO/PDF/testsuite/src/PDFTestSuite.cpp
vendored
Normal file
22
vendor/POCO/PDF/testsuite/src/PDFTestSuite.cpp
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// PDFTestSuite.cpp
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "PDFTestSuite.h"
|
||||
#include "PDFTest.h"
|
||||
|
||||
|
||||
CppUnit::Test* PDFTestSuite::suite()
|
||||
{
|
||||
CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("PDFTestSuite");
|
||||
|
||||
pSuite->addTest(PDFTest::suite());
|
||||
|
||||
return pSuite;
|
||||
}
|
27
vendor/POCO/PDF/testsuite/src/PDFTestSuite.h
vendored
Normal file
27
vendor/POCO/PDF/testsuite/src/PDFTestSuite.h
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// PDFTestSuite.h
|
||||
//
|
||||
// Definition of the PDFTestSuite class.
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef PDFTestSuite_INCLUDED
|
||||
#define PDFTestSuite_INCLUDED
|
||||
|
||||
|
||||
#include "CppUnit/TestSuite.h"
|
||||
|
||||
|
||||
class PDFTestSuite
|
||||
{
|
||||
public:
|
||||
static CppUnit::Test* suite();
|
||||
};
|
||||
|
||||
|
||||
#endif // PDFTestSuite_INCLUDED
|
28
vendor/POCO/PDF/testsuite/src/WinDriver.cpp
vendored
Normal file
28
vendor/POCO/PDF/testsuite/src/WinDriver.cpp
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
//
|
||||
// WinDriver.cpp
|
||||
//
|
||||
// Windows test driver for Poco PDF.
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "WinTestRunner/WinTestRunner.h"
|
||||
#include "PDFTestSuite.h"
|
||||
|
||||
|
||||
class TestDriver: public CppUnit::WinTestRunnerApp
|
||||
{
|
||||
void TestMain()
|
||||
{
|
||||
CppUnit::WinTestRunner runner;
|
||||
runner.addTest(PDFTestSuite::suite());
|
||||
runner.run();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
TestDriver theDriver;
|
Reference in New Issue
Block a user