• Home
  • Raw
  • Download

Lines Matching refs:subtle

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()
95 AtomicType fail = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 2); in TestCompareAndSwap()
104 prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 5); in TestCompareAndSwap()
109 prev = base::subtle::NoBarrier_CompareAndSwap(&value, k_test_val, 5); in TestCompareAndSwap()
118 AtomicType new_value = base::subtle::NoBarrier_AtomicExchange(&value, 1); in TestAtomicExchange()
127 new_value = base::subtle::NoBarrier_AtomicExchange(&value, k_test_val); in TestAtomicExchange()
132 new_value = base::subtle::NoBarrier_AtomicExchange(&value, 5); in TestAtomicExchange()
144 AtomicType new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1); in TestAtomicIncrementBounds()
148 base::subtle::NoBarrier_AtomicIncrement(&value, -1); in TestAtomicIncrementBounds()
154 new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1); in TestAtomicIncrementBounds()
158 base::subtle::NoBarrier_AtomicIncrement(&value, -1); in TestAtomicIncrementBounds()
179 base::subtle::NoBarrier_Store(&value, kVal1); in TestStore()
181 base::subtle::NoBarrier_Store(&value, kVal2); in TestStore()
184 base::subtle::Acquire_Store(&value, kVal1); in TestStore()
186 base::subtle::Acquire_Store(&value, kVal2); in TestStore()
189 base::subtle::Release_Store(&value, kVal1); in TestStore()
191 base::subtle::Release_Store(&value, kVal2); in TestStore()
205 EXPECT_EQ(kVal1, base::subtle::NoBarrier_Load(&value)); in TestLoad()
207 EXPECT_EQ(kVal2, base::subtle::NoBarrier_Load(&value)); in TestLoad()
210 EXPECT_EQ(kVal1, base::subtle::Acquire_Load(&value)); in TestLoad()
212 EXPECT_EQ(kVal2, base::subtle::Acquire_Load(&value)); in TestLoad()
215 EXPECT_EQ(kVal1, base::subtle::Release_Load(&value)); in TestLoad()
217 EXPECT_EQ(kVal2, base::subtle::Release_Load(&value)); in TestLoad()
221 TestAtomicIncrement<base::subtle::Atomic32>(); in TEST()
222 TestAtomicIncrement<base::subtle::AtomicWord>(); in TEST()
226 TestCompareAndSwap<base::subtle::Atomic32>(); in TEST()
227 TestCompareAndSwap<base::subtle::AtomicWord>(); in TEST()
231 TestAtomicExchange<base::subtle::Atomic32>(); in TEST()
232 TestAtomicExchange<base::subtle::AtomicWord>(); in TEST()
236 TestAtomicIncrementBounds<base::subtle::Atomic32>(); in TEST()
237 TestAtomicIncrementBounds<base::subtle::AtomicWord>(); in TEST()
241 TestStore<base::subtle::Atomic32>(); in TEST()
242 TestStore<base::subtle::AtomicWord>(); in TEST()
246 TestLoad<base::subtle::Atomic32>(); in TEST()
247 TestLoad<base::subtle::AtomicWord>(); in TEST()