1 #include "data_types.hpp" 2 3 #include <array> 4 #include <string> 5 6 #include <gtest/gtest.h> 7 8 using namespace phosphor::dbus::monitoring; 9 10 #include "callbackgroupgentest.hpp" 11 12 const std::array<std::vector<size_t>, 4> expectedGroups = {{ 13 {0, 1, 2, 3}, 14 {0, 1, 4}, 15 {2, 6, 7}, 16 {7}, 17 }}; 18 19 TEST(CallbackGroupGenTest, GroupsSameSize) 20 { 21 ASSERT_EQ(sizeof(expectedGroups), sizeof(groups)); 22 } 23 24 TEST(CallbackGroupGenTest, GroupsSameContent) 25 { 26 size_t i; 27 for (i = 0; i < expectedGroups.size(); ++i) 28 { 29 ASSERT_EQ(groups[i], expectedGroups[i]); 30 } 31 } 32