Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / testframework / easyunit / testrunner.h
1 /*
2 EasyUnit : Simple C++ Unit testing framework
3 Copyright (C) 2004 Barthelemy Dagenais
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Barthelemy Dagenais
20 barthelemy@prologique.com
21 */
22
23 #ifndef TestRunner_H
24 #define TestRunner_H
25
26 #include "testcase.h"
27
28
29
30 /**
31 * Test runner used to determine which test to run.
32 *
33 * User may extends this class to provide a custom test runner
34 * to TestRegistry.
35 */
36 class TestRunner
37 {
38 public:
39 TestRunner();
40 virtual ~TestRunner();
41
42 /**
43 * Method used to run testcases by TestRegistry.
44 *
45 * User should override this method in order to provide custom
46 * behavior.
47 *
48 * @param testCase Linked list of testcases
49 * @param size Size of the linked list
50 */
51 virtual void run(TestCase *testCase, int size);
52
53 };
54
55
56 #endif // TestRunner_H
57