2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef SETTINGS_PARSER_TEST_H
6 #define SETTINGS_PARSER_TEST_H
10 #include <TestSuite.h>
15 class SettingsParserTest
: public CppUnit::TestCase
{
18 virtual ~SettingsParserTest();
20 void TestConditionsEmpty();
21 void TestConditionsMultiLine();
22 void TestConditionsFlat();
23 void TestConditionsFlatWithNot();
24 void TestConditionsFlatWithArgs();
25 void TestConditionsFlatWithNotAndArgs();
26 void TestConditionsMultiLineFlatNot();
27 void TestConditionsMultiLineFlatNotWithArgs();
28 void TestConditionsMultiLineNot();
30 void TestEventsEmpty();
31 void TestEventsMultiLine();
32 void TestEventsFlat();
33 void TestEventsFlatWithArgs();
35 void TestEnvironmentMultiLine();
36 void TestEnvironmentFlat();
39 void TestRunMultiLine();
40 void TestRunIfThenElseFlat();
41 void TestRunIfThenElseMultiLine();
43 static void AddTests(BTestSuite
& suite
);
46 status_t
_ParseCondition(const char* text
,
48 status_t
_ParseEvent(const char* text
,
50 status_t
_ParseName(const char* name
, const char* text
,
52 int32
_ArrayCount(BMessage
& message
,
57 #endif // SETTINGS_PARSER_TEST_H