src/base/debug.test.cc
/** Test dumping no enabled debug flags. */
Test dumping no enabled debug flags.
Test dumping no enabled debug flags .
TEST(DebugFlagTest, NoDumpDebugFlags)
{
    debug::Flag::globalEnable();
    debug::SimpleFlag flag("FlagDumpDebugFlagTest", "");
    gtestLogOutput.str("");
    dumpDebugFlags();
    std::string output = gtestLogOutput.str();
    EXPECT_EQ(output, "");
    ASSERT_FALSE(flag.tracing());
}
TEST ( DebugFlagTest , NoDumpDebugFlags ) { debug :: Flag :: globalEnable ( ) ; debug :: SimpleFlag flag ( " " , " " ) ; gtestLogOutput . str ( " " ) ; dumpDebugFlags ( ) ; std :: string output = gtestLogOutput . str ( ) ; EXPECT_EQ ( output , " " ) ; ASSERT_FALSE ( flag . tracing ( ) ) ; }
Test dumping no enabled debug flags.
Test dumping no enabled debug flags .
// Verify that the names of the enabled flags are printed