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