Skip to content

Commit b2e2959

Browse files
committed
r12 | charles.nicholson | 2010-03-17 18:59:25 -0500 (Wed, 17 Mar 2010) | 1 line
move unittestpp.h and config.h to top-level folder, to allow 'include unittestpp/unittestpp.h' directives in client code
1 parent eebfcb4 commit b2e2959

38 files changed

+51
-58
lines changed

src/Config.h renamed to config.h

File renamed without changes.

src/AssertException.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#ifndef UNITTEST_ASSERTEXCEPTION_H
22
#define UNITTEST_ASSERTEXCEPTION_H
33

4-
#include "Config.h"
5-
4+
#include "../config.h"
65
#ifdef UNITTEST_USE_EXCEPTIONS
76

87
#include <exception>

src/Checks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_CHECKS_H
22
#define UNITTEST_CHECKS_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55
#include "TestResults.h"
66
#include "MemoryOutStream.h"
77

src/DeferredTestReporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Config.h"
1+
#include "../config.h"
22
#ifdef UNITTEST_USE_DEFERRED_REPORTER
33

44
#include "DeferredTestReporter.h"

src/DeferredTestReporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_DEFERREDTESTREPORTER_H
22
#define UNITTEST_DEFERREDTESTREPORTER_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55

66
#ifdef UNITTEST_USE_DEFERRED_REPORTER
77

src/DeferredTestResult.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Config.h"
1+
#include "../config.h"
22
#ifdef UNITTEST_USE_DEFERRED_REPORTER
33

44
#include "DeferredTestResult.h"

src/DeferredTestResult.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#ifndef UNITTEST_DEFERREDTESTRESULT_H
22
#define UNITTEST_DEFERREDTESTRESULT_H
33

4-
#include "Config.h"
5-
4+
#include "../config.h"
65
#ifdef UNITTEST_USE_DEFERRED_REPORTER
76

87
#include <string>

src/ExceptionMacros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_EXCEPTIONMACROS_H
22
#define UNITTEST_EXCEPTIONMACROS_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55

66
#ifdef UNITTEST_USE_EXCEPTIONS
77
#define UT_TRY(x) try x

src/ExecuteTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_EXECUTE_TEST_H
22
#define UNITTEST_EXECUTE_TEST_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55
#include "ExceptionMacros.h"
66
#include "TestDetails.h"
77
#include "TestResults.h"

src/MemoryOutStream.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#ifndef UNITTEST_MEMORYOUTSTREAM_H
22
#define UNITTEST_MEMORYOUTSTREAM_H
33

4-
#include "Config.h"
5-
4+
#include "../config.h"
65
#ifndef UNITTEST_USE_CUSTOM_STREAMS
76

87
#include <sstream>

src/ReportAssertImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_REPORTASSERTIMPL_H
22
#define UNITTEST_REPORTASSERTIMPL_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55

66
#ifndef UNITTEST_USE_EXCEPTIONS
77
#include <csetjmp>

src/Test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Config.h"
1+
#include "../config.h"
22
#include "Test.h"
33
#include "TestList.h"
44
#include "TestResults.h"

src/TestMacros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_TESTMACROS_H
22
#define UNITTEST_TESTMACROS_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55
#include "TestSuite.h"
66
#include "ExceptionMacros.h"
77
#include "ExecuteTest.h"

src/TimeHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Config.h"
1+
#include "../config.h"
22

33
#if defined UNITTEST_POSIX
44
#include "Posix/TimeHelpers.h"

src/Win32/TimeHelpers.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#ifndef UNITTEST_TIMEHELPERS_H
22
#define UNITTEST_TIMEHELPERS_H
33

4-
#include "../Config.h"
5-
4+
#include "../../config.h"
65

76
#ifdef UNITTEST_MINGW
87
#ifndef __int64

src/XmlTestReporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Config.h"
1+
#include "../config.h"
22
#ifdef UNITTEST_USE_DEFERRED_REPORTER
33

44
#include "XmlTestReporter.h"

src/XmlTestReporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UNITTEST_XMLTESTREPORTER_H
22
#define UNITTEST_XMLTESTREPORTER_H
33

4-
#include "Config.h"
4+
#include "../config.h"
55
#ifdef UNITTEST_USE_DEFERRED_REPORTER
66

77
#include "DeferredTestReporter.h"

src/tests/Main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#include "../unittestpp.h"
2-
#include "../TestReporterStdout.h"
3-
1+
#include "../../unittestpp.h"
42

53
int main(int, char const *[])
64
{

src/tests/TestAssertHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "../Config.h"
1+
#include "../../config.h"
2+
#include "../../unittestpp.h"
23

3-
#include "../unittestpp.h"
44
#include "../ReportAssert.h"
55
#include "../ReportAssertImpl.h"
66
#include "../AssertException.h"

src/tests/TestCheckMacros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../CurrentTest.h"
33
#include "RecordingReporter.h"
44
#include "ScopedCurrentTest.h"

src/tests/TestChecks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "RecordingReporter.h"
33

44
using namespace UnitTest;

src/tests/TestCurrentTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../CurrentTest.h"
33
#include "ScopedCurrentTest.h"
44

src/tests/TestDeferredTestReporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include "../Config.h"
1+
#include "../../config.h"
22

33
#ifdef UNITTEST_USE_DEFERRED_REPORTER
44

5-
#include "../unittestpp.h"
5+
#include "../../unittestpp.h"
66
#include "../DeferredTestReporter.h"
77
#include <cstring>
88

src/tests/TestExceptions.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#include "../Config.h"
2-
1+
#include "../../config.h"
32
#ifdef UNITTEST_USE_EXCEPTIONS
43

5-
#include "../unittestpp.h"
4+
#include "../../unittestpp.h"
65
#include "../CurrentTest.h"
76
#include "RecordingReporter.h"
87
#include "ScopedCurrentTest.h"

src/tests/TestMemoryOutStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22

33
#include "../MemoryOutStream.h"
44
#include <cstring>

src/tests/TestTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TestReporter.h"
33
#include "../TimeHelpers.h"
44
#include "ScopedCurrentTest.h"

src/tests/TestTestList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TestList.h"
33

44
using namespace UnitTest;

src/tests/TestTestMacros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TestMacros.h"
33
#include "../TestList.h"
44
#include "../TestResults.h"

src/tests/TestTestResults.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TestResults.h"
33
#include "RecordingReporter.h"
44

src/tests/TestTestRunner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "RecordingReporter.h"
33
#include "../ReportAssert.h"
44
#include "../TestList.h"

src/tests/TestTestSuite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22

33
// We're really testing if it's possible to use the same suite in two files
44
// to compile and link successfuly (TestTestSuite.cpp has suite with the same name)

src/tests/TestTimeConstraint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TestResults.h"
33
#include "../TimeHelpers.h"
44
#include "RecordingReporter.h"

src/tests/TestTimeConstraintMacro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "../TimeHelpers.h"
33

44
#include "RecordingReporter.h"

src/tests/TestUnitTestPP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../unittestpp.h"
1+
#include "../../unittestpp.h"
22
#include "ScopedCurrentTest.h"
33

44
// These are sample tests that show the different features of the framework

src/tests/TestXmlTestReporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include "../Config.h"
1+
#include "../../config.h"
22
#ifdef UNITTEST_USE_DEFERRED_REPORTER
33

4-
#include "../unittestpp.h"
4+
#include "../../unittestpp.h"
55
#include "../XmlTestReporter.h"
66

77
#include <sstream>

src/unittestpp.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/unittestpp.vcproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
>
178178
</File>
179179
<File
180-
RelativePath=".\Config.h"
180+
RelativePath="..\config.h"
181181
>
182182
</File>
183183
<File
@@ -309,7 +309,7 @@
309309
>
310310
</File>
311311
<File
312-
RelativePath=".\unittestpp.h"
312+
RelativePath="..\unittestpp.h"
313313
>
314314
</File>
315315
<File

unittestpp.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef UNITTESTPP_H
2+
#define UNITTESTPP_H
3+
4+
#include "config.h"
5+
#include "src/TestMacros.h"
6+
#include "src/CheckMacros.h"
7+
#include "src/TestRunner.h"
8+
#include "src/TimeConstraint.h"
9+
#include "src/ReportAssert.h"
10+
11+
#endif

0 commit comments

Comments
 (0)