#include "data_types.hpp" #include #include #include using namespace phosphor::dbus::monitoring; #include "conditiongentest.hpp" const std::array, 2> expectedGroups = {{ {0}, {1}, }}; const std::array expectedCallbacks = { 0, 0, 1, 1, 0, 1, }; TEST(ConditionGenTest, GroupsSameSize) { ASSERT_EQ(sizeof(expectedGroups), sizeof(groups)); } TEST(ConditionGenTest, CallbacksSameSize) { ASSERT_EQ(sizeof(expectedCallbacks), sizeof(callbacks)); } TEST(ConditionGenTest, GroupsSameContent) { size_t i; for (i = 0; i < expectedGroups.size(); ++i) { ASSERT_EQ(groups[i], expectedGroups[i]); } } TEST(ConditionGenTest, CallbacksSameContent) { size_t i; for (i = 0; i < expectedCallbacks.size(); ++i) { ASSERT_EQ(callbacks[i], expectedCallbacks[i]); } }