Lines Matching refs:base
35 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1); in TestAtomicIncrement()
40 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3); in TestAtomicIncrement()
45 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6); in TestAtomicIncrement()
50 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3); in TestAtomicIncrement()
55 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1); in TestAtomicIncrement()
60 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0); in TestAtomicIncrement()
65 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1); in TestAtomicIncrement()
70 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5); in TestAtomicIncrement()
75 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0); in TestAtomicIncrement()
88 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1); in TestCompareAndSwap()
97 prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 5); in TestCompareAndSwap()
102 prev = base::subtle::NoBarrier_CompareAndSwap(&value, k_test_val, 5); in TestCompareAndSwap()
111 AtomicType new_value = base::subtle::NoBarrier_AtomicExchange(&value, 1); in TestAtomicExchange()
120 new_value = base::subtle::NoBarrier_AtomicExchange(&value, k_test_val); in TestAtomicExchange()
125 new_value = base::subtle::NoBarrier_AtomicExchange(&value, 5); in TestAtomicExchange()
137 AtomicType new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1); in TestAtomicIncrementBounds()
141 base::subtle::NoBarrier_AtomicIncrement(&value, -1); in TestAtomicIncrementBounds()
147 new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1); in TestAtomicIncrementBounds()
151 base::subtle::NoBarrier_AtomicIncrement(&value, -1); in TestAtomicIncrementBounds()
172 base::subtle::NoBarrier_Store(&value, kVal1); in TestStore()
174 base::subtle::NoBarrier_Store(&value, kVal2); in TestStore()
177 base::subtle::Acquire_Store(&value, kVal1); in TestStore()
179 base::subtle::Acquire_Store(&value, kVal2); in TestStore()
182 base::subtle::Release_Store(&value, kVal1); in TestStore()
184 base::subtle::Release_Store(&value, kVal2); in TestStore()
198 EXPECT_EQ(kVal1, base::subtle::NoBarrier_Load(&value)); in TestLoad()
200 EXPECT_EQ(kVal2, base::subtle::NoBarrier_Load(&value)); in TestLoad()
203 EXPECT_EQ(kVal1, base::subtle::Acquire_Load(&value)); in TestLoad()
205 EXPECT_EQ(kVal2, base::subtle::Acquire_Load(&value)); in TestLoad()
208 EXPECT_EQ(kVal1, base::subtle::Release_Load(&value)); in TestLoad()
210 EXPECT_EQ(kVal2, base::subtle::Release_Load(&value)); in TestLoad()
214 TestAtomicIncrement<base::subtle::Atomic32>(); in TEST()
215 TestAtomicIncrement<base::subtle::AtomicWord>(); in TEST()
219 TestCompareAndSwap<base::subtle::Atomic32>(); in TEST()
220 TestCompareAndSwap<base::subtle::AtomicWord>(); in TEST()
224 TestAtomicExchange<base::subtle::Atomic32>(); in TEST()
225 TestAtomicExchange<base::subtle::AtomicWord>(); in TEST()
229 TestAtomicIncrementBounds<base::subtle::Atomic32>(); in TEST()
230 TestAtomicIncrementBounds<base::subtle::AtomicWord>(); in TEST()
234 TestStore<base::subtle::Atomic32>(); in TEST()
235 TestStore<base::subtle::AtomicWord>(); in TEST()
239 TestLoad<base::subtle::Atomic32>(); in TEST()
240 TestLoad<base::subtle::AtomicWord>(); in TEST()