blob: 311229517d5e99ab4db83032e94a7337216b039e [file] [log] [blame]
Brad Bishop731171a2017-05-25 21:49:32 -04001#include <array>
2#include <string>
3#include <gtest/gtest.h>
4#include "data_types.hpp"
5
6using namespace phosphor::dbus::monitoring;
7
8#include "callbackgroupgentest.hpp"
9
10const std::array<std::vector<size_t>, 4> expectedGroups = {{
Gunnar Mills937df1a2017-08-15 12:39:04 -050011 {0, 1, 2, 3},
12 {0, 1, 4},
13 {2, 6, 7},
14 {7},
Brad Bishop731171a2017-05-25 21:49:32 -040015 }
16};
17
18TEST(CallbackGroupGenTest, GroupsSameSize)
19{
20 ASSERT_EQ(sizeof(expectedGroups), sizeof(groups));
21}
22
23TEST(CallbackGroupGenTest, GroupsSameContent)
24{
25 size_t i;
26 for (i = 0; i < expectedGroups.size(); ++i)
27 {
28 ASSERT_EQ(groups[i],
29 expectedGroups[i]);
30 }
31}