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