Lines Matching refs:TWO
27 enum class TestFlags : uint8_t { ONE = 0x1, TWO = 0x2, THREE = 0x4 }; enumerator
32 ASSERT_FALSE(flags.test(TestFlags::TWO)); in TEST()
37 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
40 ASSERT_TRUE(flags.any(TestFlags::TWO)); in TEST()
42 ASSERT_TRUE(flags.any(TestFlags::ONE | TestFlags::TWO)); in TEST()
43 ASSERT_TRUE(flags.any(TestFlags::TWO | TestFlags::THREE)); in TEST()
45 ASSERT_TRUE(flags.any(TestFlags::ONE | TestFlags::TWO | TestFlags::THREE)); in TEST()
52 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
54 ASSERT_TRUE(flags.all(TestFlags::TWO)); in TEST()
56 ASSERT_TRUE(flags.all(TestFlags::ONE | TestFlags::TWO)); in TEST()
57 ASSERT_FALSE(flags.all(TestFlags::TWO | TestFlags::THREE)); in TEST()
59 ASSERT_FALSE(flags.all(TestFlags::ONE | TestFlags::TWO | TestFlags::THREE)); in TEST()
64 ASSERT_FALSE(flags.any(TestFlags::ONE | TestFlags::TWO | TestFlags::THREE)); in TEST()
70 ASSERT_TRUE(flags.all(TestFlags::ONE | TestFlags::TWO | TestFlags::THREE)); in TEST()
74 Flags<TestFlags> flags = TestFlags::TWO; in TEST()
77 ASSERT_FALSE(flags.test(TestFlags::TWO)); in TEST()
82 Flags<TestFlags> flags2 = flags | TestFlags::TWO; in TEST()
84 ASSERT_TRUE(flags2.all(TestFlags::ONE | TestFlags::TWO)); in TEST()
90 ASSERT_FALSE(flags2.test(TestFlags::TWO)); in TEST()
98 ASSERT_FALSE(flags.any(TestFlags::ONE | TestFlags::TWO)); in TEST()
105 ASSERT_FALSE(flags.test(TestFlags::TWO)); in TEST()
112 ASSERT_FALSE(andFlags.any(TestFlags::ONE | TestFlags::TWO)); in TEST()
119 ASSERT_FALSE(andFlags.test(TestFlags::TWO)); in TEST()
124 Flags<TestFlags> andFlags = flags & TestFlags::TWO; in TEST()
125 ASSERT_FALSE(andFlags.any(TestFlags::ONE | TestFlags::TWO | TestFlags::THREE)); in TEST()
129 Flags<TestFlags> flags1 = TestFlags::ONE | TestFlags::TWO; in TEST()
130 Flags<TestFlags> flags2 = TestFlags::ONE | TestFlags::TWO; in TEST()
135 Flags<TestFlags> flags1 = TestFlags::ONE | TestFlags::TWO; in TEST()
144 ASSERT_FALSE(flags.any(TestFlags::TWO | TestFlags::THREE)); in TEST()
148 Flags<TestFlags> flags1 = TestFlags::ONE | TestFlags::TWO; in TEST()
152 flags1 &= TestFlags::TWO; in TEST()
157 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
167 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
177 Flags<TestFlags> flags1 = TestFlags::ONE | TestFlags::TWO; in TEST()
186 const std::vector<TestFlags> flagOrder = {TestFlags::ONE, TestFlags::TWO}; in TEST()
203 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
206 ASSERT_EQ(*iter, TestFlags::TWO); in TEST()
207 ASSERT_EQ(*(iter++), TestFlags::TWO); in TEST()
212 Flags<TestFlags> flags = TestFlags::ONE | TestFlags::TWO; in TEST()
214 ASSERT_EQ(*++iter, TestFlags::TWO); in TEST()