src/base/debug.test.cc
/** Test that the conversion operator matches the enablement status. */
Test that the conversion operator matches the enablement status.
Test that the conversion operator matches the enablement status .
TEST(DebugFlagTest, ConversionOperator)
{
    debug::Flag::globalEnable();
    debug::SimpleFlag flag("FlagConversionOperatorTest", "");
    ASSERT_EQ(flag, flag.tracing());
    flag.enable();
    ASSERT_EQ(flag, flag.tracing());
    flag.disable();
}
TEST ( DebugFlagTest , ConversionOperator ) { debug :: Flag :: globalEnable ( ) ; debug :: SimpleFlag flag ( " " , " " ) ; ASSERT_EQ ( flag , flag . tracing ( ) ) ; flag . enable ( ) ; ASSERT_EQ ( flag , flag . tracing ( ) ) ; flag . disable ( ) ; }
Test that the conversion operator matches the enablement status.
Test that the conversion operator matches the enablement status .