diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:18:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:18:38 +0000 |
commit | 9ab1d67ae5be915e0a7e146123ea577b8b7d85cf (patch) | |
tree | 02180daeded681369095ccb9e1f592502d032c90 /Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h | |
parent | c9e6fa742a274dd314b6e483c65a810f7ed44d1e (diff) |
towards TL2010: libs graphite
git-svn-id: svn://tug.org/texlive/trunk@15953 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h')
-rw-r--r-- | Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h b/Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h new file mode 100644 index 00000000000..bd92d0d5b30 --- /dev/null +++ b/Build/source/libs/graphite/engine-2.3.1/test/RegressionTest/main.h @@ -0,0 +1,90 @@ +/*--------------------------------------------------------------------*//*:Ignore this sentence. +Copyright (C) 2004 SIL International. All rights reserved. + +Distributable under the terms of either the Common Public License or the +GNU Lesser General Public License, as specified in the LICENSING.txt file. + +File: Main.h +Responsibility: Sharon Correll +Last reviewed: Not yet. + +Description: + Header files to include in the Graphite regression test program. +-------------------------------------------------------------------------------*//*:End Ignore*/ + +#ifdef _MSC_VER +#pragma once +#endif +#ifndef GRCOMPILER_H +#define GRCOMPILER_H 1 + +#define NO_EXCEPTIONS 1 + +// To allow call to IsDebuggerPresent: +#define _WIN32_WINNT WINVER + +//:>******************************************************************************************** +//:> Include files +//:>******************************************************************************************** +// #include "windows.h" +#include "stdafx.h" +////#include "resource.h" +// #include <hash_map> +#include <fstream> +#include <iostream> +#include <vector> +////#include <algorithm> +#include <string> +#include <cstring> +#ifdef _WIN32 +#include <crtdbg.h> +#endif // _WIN32 +#include <assert.h> + +////using std::max; +////using std::min; + +#include "GrCommon.h" +#include "GrPlatform.h" + +////////#include "LgCharPropsStub.h" + +#include "GrConstants.h" +///#include "TtfUtil.h" +///#include "Tt.h" + +#include "GrClient.h" +#include "ITextSource.h" +#include "SimpleTextSrc.h" +#include "IGrEngine.h" +#include "IGrJustifier.h" +#include "GrJustifier.h" +#include "SegmentAux.h" +#include "Font.h" +// #include "WinFont.h" +#include "FileFont.h" +#include "Segment.h" +#include "SegmentPainter.h" +// #include "WinSegmentPainter.h" + +#include "TestCase.h" +#include "RtTextSrc.h" + + +//:>******************************************************************************************** +//:> Functions +//:>******************************************************************************************** +void RunTests(int numberOfTests, TestCase * ptcaseList); +int RunOneTestCase(TestCase * ptcase, Segment * psegPrev, Segment ** ppsegRet, RtTextSrc ** pptsrcRet); +void OutputError(TestCase * ptcase, std::string strErr, int i = -1); +void OutputErrorWithValues(TestCase * ptcase, std::string strErr, int i, + int valueFound, int valueExpected); +void OutputErrorAux(TestCase * ptcase, std::string strErr, int i, + bool showValues, int valueFound, int valueExpected); +bool WriteToLog(std::string str, int i = -1); +bool WriteToLog(std::string str, int i, + bool showValues, int valueFound, int valueExpected); +bool WriteToLog(int n); + +#endif //!WRCOMPILER_H + |