src/base/flags.test.cc
/** Test if no bits are set after a full clear. */
Test if no bits are set after a full clear.
Test if no bits are set after a full clear .
TEST(FlagsTest, Clear)
{
    const uint32_t value = (1 << 5) | (1 << 6);
    Flags<uint32_t> flags(value);
    flags.clear();
    ASSERT_EQ(0, uint32_t(flags));
}
TEST ( FlagsTest , Clear ) { const uint32_t value = ( 1 << 5 ) | ( 1 << 6 ) ; Flags < uint32_t > flags ( value ) ; flags . clear ( ) ; ASSERT_EQ ( 0 , uint32_t ( flags ) ) ; }
Test if no bits are set after a full clear.
Test if no bits are set after a full clear .