ScummVM API documentation
testbed.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TESTBED_TESTBED_H
23#define TESTBED_TESTBED_H
24
25#include "common/array.h"
26
27#include "engines/engine.h"
28
29#include "testbed/config.h"
30#include "testbed/testsuite.h"
31
32namespace Testbed {
33
34class TestbedConfigManager;
35
36enum {
37 kTestbedLogOutput = 1,
38 kTestbedEngineDebug,
39 kViewLogCmd = 'vwlg',
40 kCmdRerunTestbed = 'crtb'
41};
42
43class TestbedEngine : public Engine {
44public:
46 ~TestbedEngine() override;
47
48 Common::Error run() override;
49
53 static void pushTestsuites(Common::Array<Testsuite *> &testsuiteList);
54
59
60 bool hasFeature(EngineFeature f) const override;
61
62private:
63 void checkForAllAchievements();
64
65 Common::Array<Testsuite *> _testsuiteList;
66};
67
69public:
71 _testsuiteList(testsuiteList) {}
72 ~TestbedExitDialog() override {}
73 void init();
74 void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override;
75 void run() { runModal(); }
76private:
77 Common::Array<Testsuite *> &_testsuiteList;
78};
79
80} // End of namespace Testbed
81
82#endif // TESTBED_TESTBED_H
Definition: array.h:52
Definition: error.h:81
Definition: engine.h:149
EngineFeature
Definition: engine.h:282
Definition: object.h:40
Definition: system.h:166
Definition: config.h:47
Definition: testbed.h:43
Common::Error run() override
static void pushTestsuites(Common::Array< Testsuite * > &testsuiteList)
void invokeTestsuites(TestbedConfigManager &cfMan)
bool hasFeature(EngineFeature f) const override
Definition: testbed.h:68
Definition: config.h:89