Use ARRAY_SIZE() macro to calculate the length of the array, across the
file.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
"cpu.foo",
"cpu.bar"
};
-static const int NAMES_CNT = sizeof(NAMES) / sizeof(NAMES[0]);
+static const int NAMES_CNT = ARRAY_SIZE(NAMES);
static const char * const VALUES[] = {
"999",
"random",
"data"
};
-static const int VALUES_CNT = sizeof(VALUES) / sizeof(VALUES[0]);
+static const int VALUES_CNT = ARRAY_SIZE(VALUES);
class SetValuesRecursiveTest : public ::testing::Test {