Searched refs:TestBitFields (Results 1 – 1 of 1) sorted by relevance
/art/libartbase/base/ |
D | bit_field_test.cc | 25 class TestBitFields : public BitField<int32_t, 1, 8> {}; in TEST() class 26 ASSERT_TRUE(TestBitFields::IsValid(16)); in TEST() 27 ASSERT_TRUE(!TestBitFields::IsValid(256)); in TEST() 28 ASSERT_EQ(0x00ffU, TestBitFields::Mask()); in TEST() 29 ASSERT_EQ(0x001feU, TestBitFields::MaskInPlace()); in TEST() 30 ASSERT_EQ(1, TestBitFields::Shift()); in TEST() 31 ASSERT_EQ(8, TestBitFields::BitSize()); in TEST() 32 ASSERT_EQ(32U, TestBitFields::Encode(16)); in TEST() 33 ASSERT_EQ(16, TestBitFields::Decode(32)); in TEST() 34 ASSERT_EQ(2U, TestBitFields::Update(1, 16)); in TEST()
|