src/base/flags.test.cc
/** Test assignment of variable of underlying type. */
Test assignment of variable of underlying type.
Test assignment of variable of underlying type .
TEST(FlagsTest, TypeAssignment)
{
    const uint32_t value = (1 << 3) | (1 << 5) | (1 << 9);
    Flags<uint32_t> flags;
    flags = value;
    ASSERT_EQ(value, uint32_t(flags));
}
TEST ( FlagsTest , TypeAssignment ) { const uint32_t value = ( 1 << 3 ) | ( 1 << 5 ) | ( 1 << 9 ) ; Flags < uint32_t > flags ; flags = value ; ASSERT_EQ ( value , uint32_t ( flags ) ) ; }
Test assignment of variable of underlying type.
Test assignment of variable of underlying type .