xref: /openbmc/phosphor-led-manager/test/led-test-map.hpp (revision ed4907342897301ab96cbf2c617cafd78caf25a1)
1 static const std::map<std::string,
2     std::set<phosphor::led::Layout::LedAction>> singleLedOn = {
3     {   "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
4             {"One",phosphor::led::Layout::On},
5         }
6     },
7 };
8 
9 static const std::map<std::string,
10     std::set<phosphor::led::Layout::LedAction>> singleLedBlink = {
11     {   "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
12             {"One",phosphor::led::Layout::Blink},
13         }
14     },
15 };
16 
17 static const std::map<std::string,
18     std::set<phosphor::led::Layout::LedAction>> multipleLedsOn = {
19     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
20             {"One",phosphor::led::Layout::On},
21             {"Two",phosphor::led::Layout::On},
22             {"Three",phosphor::led::Layout::On},
23         }
24     },
25 };
26 
27 static const std::map<std::string,
28     std::set<phosphor::led::Layout::LedAction>> multipleLedsBlink = {
29     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
30             {"One",phosphor::led::Layout::Blink},
31             {"Two",phosphor::led::Layout::Blink},
32             {"Three",phosphor::led::Layout::Blink},
33         }
34     },
35 };
36 
37 static const std::map<std::string,
38     std::set<phosphor::led::Layout::LedAction>> multipleLedsOnAndBlink = {
39     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix",{
40             {"One",phosphor::led::Layout::Blink},
41             {"Two",phosphor::led::Layout::On},
42             {"Three",phosphor::led::Layout::Blink},
43             {"Four",phosphor::led::Layout::On},
44             {"Five",phosphor::led::Layout::On},
45         }
46     },
47 };
48 
49 static const std::map<std::string,
50     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithDistinctLEDsOn = {
51     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
52             {"One",phosphor::led::Layout::On},
53             {"Two",phosphor::led::Layout::On},
54             {"Three",phosphor::led::Layout::On},
55         }
56     },
57     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
58             {"Four",phosphor::led::Layout::On},
59             {"Five",phosphor::led::Layout::On},
60             {"Six",phosphor::led::Layout::On},
61         }
62     },
63 };
64 
65 static const std::map<std::string,
66     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOn = {
67     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
68             {"One",phosphor::led::Layout::On},
69             {"Two",phosphor::led::Layout::On},
70             {"Three",phosphor::led::Layout::On},
71         }
72     },
73     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
74             {"Four",phosphor::led::Layout::On},
75             {"Three",phosphor::led::Layout::On},
76             {"Six",phosphor::led::Layout::On},
77         }
78     },
79 };
80 
81 static const std::map<std::string,
82     std::set<phosphor::led::Layout::LedAction>>
83         twoGroupsWithOneComonLEDInDifferentState = {
84     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
85             {"One",phosphor::led::Layout::On},
86             {"Two",phosphor::led::Layout::On},
87             {"Three",phosphor::led::Layout::On},
88         }
89     },
90     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
91             {"Two",phosphor::led::Layout::Blink},
92             {"Four",phosphor::led::Layout::On},
93             {"Five",phosphor::led::Layout::On},
94             {"Six",phosphor::led::Layout::On},
95         }
96     },
97 };
98 
99 static const std::map<std::string,
100     std::set<phosphor::led::Layout::LedAction>>
101         twoGroupsWithMultiplComonLEDOn = {
102     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
103             {"One",phosphor::led::Layout::On},
104             {"Two",phosphor::led::Layout::On},
105             {"Three",phosphor::led::Layout::On},
106         }
107     },
108     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
109             {"Two",phosphor::led::Layout::On},
110             {"Six",phosphor::led::Layout::On},
111             {"Three",phosphor::led::Layout::On},
112             {"Seven",phosphor::led::Layout::On},
113         }
114     },
115 };
116 
117 static const std::map<std::string,
118     std::set<phosphor::led::Layout::LedAction>>
119         twoGroupsWithMultipleComonLEDInDifferentState = {
120     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
121             {"One",phosphor::led::Layout::On},
122             {"Two",phosphor::led::Layout::Blink},
123             {"Three",phosphor::led::Layout::On},
124             {"Four",phosphor::led::Layout::On},
125         }
126     },
127     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
128             {"Two",phosphor::led::Layout::On},
129             {"Three",phosphor::led::Layout::Blink},
130             {"Five",phosphor::led::Layout::On},
131             {"Six",phosphor::led::Layout::On},
132         }
133     },
134 };
135