1731171a1SBrad Bishop #include <array>
2731171a1SBrad Bishop #include <string>
3731171a1SBrad Bishop #include <gtest/gtest.h>
4731171a1SBrad Bishop #include "data_types.hpp"
5731171a1SBrad Bishop 
6731171a1SBrad Bishop using namespace phosphor::dbus::monitoring;
7731171a1SBrad Bishop 
8731171a1SBrad Bishop #include "callbackgroupgentest.hpp"
9731171a1SBrad Bishop 
10731171a1SBrad Bishop const std::array<std::vector<size_t>, 4> expectedGroups = {{
11*937df1a9SGunnar Mills         {0, 1, 2, 3},
12*937df1a9SGunnar Mills         {0, 1, 4},
13*937df1a9SGunnar Mills         {2, 6, 7},
14*937df1a9SGunnar Mills         {7},
15731171a1SBrad Bishop     }
16731171a1SBrad Bishop };
17731171a1SBrad Bishop 
18731171a1SBrad Bishop TEST(CallbackGroupGenTest, GroupsSameSize)
19731171a1SBrad Bishop {
20731171a1SBrad Bishop     ASSERT_EQ(sizeof(expectedGroups), sizeof(groups));
21731171a1SBrad Bishop }
22731171a1SBrad Bishop 
23731171a1SBrad Bishop TEST(CallbackGroupGenTest, GroupsSameContent)
24731171a1SBrad Bishop {
25731171a1SBrad Bishop     size_t i;
26731171a1SBrad Bishop     for (i = 0; i < expectedGroups.size(); ++i)
27731171a1SBrad Bishop     {
28731171a1SBrad Bishop         ASSERT_EQ(groups[i],
29731171a1SBrad Bishop                   expectedGroups[i]);
30731171a1SBrad Bishop     }
31731171a1SBrad Bishop }
32