src/base/debug.test.cc
/** Test assignment of names and descriptions. */
Test assignment of names and descriptions.
Test assignment of names and descriptions .
TEST(DebugFlagTest, NameDesc)
{
    debug::SimpleFlag flag_a("FlagNameDescTestKidA", "Kid A");
    EXPECT_EQ("FlagNameDescTestKidA", flag_a.name());
    EXPECT_EQ("Kid A", flag_a.desc());
    debug::SimpleFlag flag_b("FlagNameDescTestKidB", "Kid B");
    EXPECT_EQ("FlagNameDescTestKidB", flag_b.name());
    EXPECT_EQ("Kid B", flag_b.desc());
    debug::CompoundFlag compound_flag("FlagNameDescTest", "Compound Flag",
        {&flag_a, &flag_b});
    EXPECT_EQ("FlagNameDescTest", compound_flag.name());
    EXPECT_EQ("Compound Flag", compound_flag.desc());
}
TEST ( DebugFlagTest , NameDesc ) { debug :: SimpleFlag flag_a ( " " , " " ) ; EXPECT_EQ ( " " , flag_a . name ( ) ) ; EXPECT_EQ ( " " , flag_a . desc ( ) ) ; debug :: SimpleFlag flag_b ( " " , " " ) ; EXPECT_EQ ( " " , flag_b . name ( ) ) ; EXPECT_EQ ( " " , flag_b . desc ( ) ) ; debug :: CompoundFlag compound_flag ( " " , " " , { & flag_a , & flag_b } ) ; EXPECT_EQ ( " " , compound_flag . name ( ) ) ; EXPECT_EQ ( " " , compound_flag . desc ( ) ) ; }
Test assignment of names and descriptions.
Test assignment of names and descriptions .