headers/bsd: Add sys/queue.h.
[haiku.git] / src / tests / servers / launch / SettingsParserTest.h
blobcfb5fceaa3605c1c75c64f6c1e21c22cba6aa20f
1 /*
2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SETTINGS_PARSER_TEST_H
6 #define SETTINGS_PARSER_TEST_H
9 #include <TestCase.h>
10 #include <TestSuite.h>
12 #include <Message.h>
15 class SettingsParserTest : public CppUnit::TestCase {
16 public:
17 SettingsParserTest();
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();
38 void TestRunFlat();
39 void TestRunMultiLine();
40 void TestRunIfThenElseFlat();
41 void TestRunIfThenElseMultiLine();
43 static void AddTests(BTestSuite& suite);
45 private:
46 status_t _ParseCondition(const char* text,
47 BMessage& message);
48 status_t _ParseEvent(const char* text,
49 BMessage& message);
50 status_t _ParseName(const char* name, const char* text,
51 BMessage& message);
52 int32 _ArrayCount(BMessage& message,
53 const char* name);
57 #endif // SETTINGS_PARSER_TEST_H