Home
last modified time | relevance | path

Searched refs:MyContext (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dmutex_test.cc140 struct MyContext { struct
146 bool MyContext::MyTurn() { in MyTurn()
152 MyContext mc; in TestAwait()
158 cxt->mu.Await(absl::Condition(&mc, &MyContext::MyTurn)); in TestAwait()
/third_party/python/Lib/test/
Dtest_decimal.py4154 class MyContext(Context): class
4181 d = MyContext()
4187 self.assertRaises(ValueError, MyContext, **{'prec':-1})
4188 c = MyContext(prec=1)
4193 self.assertRaises(TypeError, MyContext, **{'rounding':'XYZ'})
4194 c = MyContext(rounding=ROUND_DOWN, prec=1)
4199 self.assertRaises(ValueError, MyContext, **{'Emin':5})
4200 c = MyContext(Emin=-1, prec=1)
4208 self.assertRaises(ValueError, MyContext, **{'Emax':-1})
4209 c = MyContext(Emax=1, prec=1)
[all …]
Dtest_context.py68 class MyContext(contextvars.Context): class