/third_party/python/Lib/test/ |
H A D | test_abstract_numbers.py | 9 def test_int(self): 10 self.assertTrue(issubclass(int, Integral)) 11 self.assertTrue(issubclass(int, Complex)) 13 self.assertEqual(7, int(7).real) 14 self.assertEqual(0, int(7).imag) 15 self.assertEqual(7, int(7).conjugate()) 16 self.assertEqual(-7, int(-7).conjugate()) 17 self.assertEqual(7, int(7).numerator) 18 self.assertEqual(1, int(7).denominator) 20 def test_float(self) [all...] |
H A D | test_urllib2net.py | 43 def __init__(self, exc, **kwargs): 44 self.exc = exc 45 self.attrs = kwargs 47 def __enter__(self): 48 return self 50 def __exit__(self, type_=None, value=None, traceback=None): 51 """If type_ is a subclass of self.exc and value has attributes matching 52 self.attrs, raise ResourceDenied. Otherwise let the exception 54 if type_ is not None and issubclass(self.exc, type_): 55 for attr, attr_value in self [all...] |
H A D | test_univnewlines.py | 47 def setUp(self): 48 data = self.DATA 49 if "b" in self.WRITEMODE: 51 with self.open(os_helper.TESTFN, self.WRITEMODE) as fp: 54 def tearDown(self): 60 def test_read(self): 61 with self.open(os_helper.TESTFN, self.READMODE) as fp: 63 self [all...] |
H A D | test_copyreg.py | 34 def test_class(self): 35 self.assertRaises(TypeError, copyreg.pickle, 38 def test_noncallable_reduce(self): 39 self.assertRaises(TypeError, copyreg.pickle, 42 def test_noncallable_constructor(self): 43 self.assertRaises(TypeError, copyreg.pickle, 46 def test_bool(self): 48 self.assertEqual(True, copy.copy(True)) 50 def test_extension_registry(self): 55 self [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_macholib.py | 55 def test_find(self): 56 self.assertEqual(dyld_find('libSystem.dylib'), 58 self.assertEqual(dyld_find('System.framework/System'), 64 self.assertIn(find_lib('pthread'), 72 self.assertRegex(result, r".*/lib/libz.*\.dylib") 74 self.assertIn(find_lib('IOKit'), 79 def test_info(self): 80 self.assertIsNone(dylib_info('completely/invalid')) 81 self.assertIsNone(dylib_info('completely/invalide_debug')) 82 self [all...] |
/third_party/python/Lib/email/ |
H A D | _policybase.py | 41 def __init__(self, **kw): 48 if hasattr(self, name): 49 super(_PolicyBase,self).__setattr__(name, value) 53 name, self.__class__.__name__)) 55 def __repr__(self): 57 for name, value in self.__dict__.items() ] 58 return "{}({})".format(self.__class__.__name__, ', '.join(args)) 60 def clone(self, **kw): 67 newpolicy = self.__class__.__new__(self [all...] |
/third_party/vixl/tools/ |
H A D | util.py | 117 def __init__(self, env): 122 self.compiler = 'clang' 123 self.version = '{}.{}'.format(major, minor) 127 self.compiler = 'gcc' 128 self.version = '{}.{}'.format(major, minor) 133 self.compiler = None 134 self.version = None 136 def GetDescription(self): 137 return "{}-{}".format(self.compiler, self [all...] |
H A D | threaded_tests.py | 46 def __init__(self, name, shared, **kwargs): 47 self.name = name 48 self.shared = shared 49 self.args = kwargs 52 def __init__(self, prefix = ''): 53 self.progress_prefix = prefix 54 self.queue = [] 55 self.tests_skipped = None 56 self.n_known_failures = 0 57 self [all...] |
/third_party/skia/infra/bots/recipe_modules/flavor/ |
H A D | valgrind.py | 13 def __init__(self, m, app_name): 14 super(ValgrindFlavor, self).__init__(m, app_name) 15 self._suppressions_file = self.m.path['start_dir'].join( 17 self._valgrind_cipd_dir = self.m.vars.workdir.join('valgrind') 18 self._valgrind_fake_dir = self._valgrind_cipd_dir 19 self._valgrind = self [all...] |
/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | registry.py | 38 def __init__(self, **kwargs): 39 self.__dict__.update(kwargs) 85 def __init__(self, items=[], **kwargs): 86 self.index = {} 87 self.items = [] 88 self.__dict__.update(kwargs) 89 self.update(items) 91 def append(self, item): 92 keys = self.getkeys(item) 94 self[ke [all...] |
/third_party/node/tools/inspector_protocol/ |
H A D | code_generator.py | 341 def __init__(self, config): 342 self.config = config 343 self.json_api = {"domains": []} 344 self.imported_domains = [] 345 self.exported_domains = [] 346 self.generate_domains = self.read_protocol_file(config.protocol.path) 349 self.generate_domains = [rule.domain for rule in config.protocol.options] 350 self.exported_domains = [rule.domain for rule in config.protocol.options if hasattr(rule, "exported")] 353 self [all...] |
/third_party/python/Modules/ |
H A D | _threadmodule.c | 51 lock_traverse(lockobject *self, visitproc visit, void *arg) in lock_traverse() argument 53 Py_VISIT(Py_TYPE(self)); in lock_traverse() 58 lock_dealloc(lockobject *self) in lock_dealloc() argument 60 PyObject_GC_UnTrack(self); in lock_dealloc() 61 if (self->in_weakreflist != NULL) { in lock_dealloc() 62 PyObject_ClearWeakRefs((PyObject *) self); in lock_dealloc() 64 if (self->lock_lock != NULL) { in lock_dealloc() 66 if (self->locked) in lock_dealloc() 67 PyThread_release_lock(self->lock_lock); in lock_dealloc() 68 PyThread_free_lock(self in lock_dealloc() 173 lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds) lock_PyThread_acquire_lock() argument 201 lock_PyThread_release_lock(lockobject *self, PyObject *Py_UNUSED(ignored)) lock_PyThread_release_lock() argument 223 lock_locked_lock(lockobject *self, PyObject *Py_UNUSED(ignored)) lock_locked_lock() argument 235 lock_repr(lockobject *self) lock_repr() argument 243 lock__at_fork_reinit(lockobject *self, PyObject *Py_UNUSED(args)) lock__at_fork_reinit() argument 327 rlock_traverse(rlockobject *self, visitproc visit, void *arg) rlock_traverse() argument 335 rlock_dealloc(rlockobject *self) rlock_dealloc() argument 355 rlock_acquire(rlockobject *self, PyObject *args, PyObject *kwds) rlock_acquire() argument 405 rlock_release(rlockobject *self, PyObject *Py_UNUSED(ignored)) rlock_release() argument 434 rlock_acquire_restore(rlockobject *self, PyObject *args) rlock_acquire_restore() argument 464 rlock_release_save(rlockobject *self, PyObject *Py_UNUSED(ignored)) rlock_release_save() argument 490 rlock_is_owned(rlockobject *self, PyObject *Py_UNUSED(ignored)) rlock_is_owned() argument 508 rlockobject *self = (rlockobject *) type->tp_alloc(type, 0); rlock_new() local 526 rlock_repr(rlockobject *self) rlock_repr() argument 537 rlock__at_fork_reinit(rlockobject *self, PyObject *Py_UNUSED(args)) rlock__at_fork_reinit() argument 605 lockobject *self = (lockobject *)type->tp_alloc(type, 0); newlockobject() local 670 localdummy_dealloc(localdummyobject *self) localdummy_dealloc() argument 719 _local_create_dummy(localobject *self, thread_module_state *state) _local_create_dummy() argument 794 localobject *self = (localobject *)type->tp_alloc(type, 0); local_new() local 833 local_traverse(localobject *self, visitproc visit, void *arg) local_traverse() argument 848 local_clear(localobject *self) local_clear() argument 880 local_dealloc(localobject *self) local_dealloc() argument 900 _ldict(localobject *self, thread_module_state *state) _ldict() argument 938 local_setattro(localobject *self, PyObject *name, PyObject *v) local_setattro() argument 990 local_getattro(localobject *self, PyObject *name) local_getattro() argument 1039 localobject *self = (localobject *)Py_NewRef(obj); _localdummy_destroyed() local 1116 thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs) thread_PyThread_start_new_thread() argument 1184 thread_PyThread_exit_thread(PyObject *self, PyObject *Py_UNUSED(ignored)) thread_PyThread_exit_thread() argument 1198 thread_PyThread_interrupt_main(PyObject *self, PyObject *args) thread_PyThread_interrupt_main() argument 1239 thread_get_ident(PyObject *self, PyObject *Py_UNUSED(ignored)) thread_get_ident() argument 1262 thread_get_native_id(PyObject *self, PyObject *Py_UNUSED(ignored)) thread_get_native_id() argument 1277 thread__count(PyObject *self, PyObject *Py_UNUSED(ignored)) thread__count() argument 1356 thread_stack_size(PyObject *self, PyObject *args) thread_stack_size() argument [all...] |
/third_party/node/deps/v8/third_party/test262-harness/test/ |
H A D | test_test262.py | 19 def test_that_tests_run(self): 20 self.assertEqual(1 + 2, 3) 24 def __init__(self, name, negative): 25 self.name = name 26 self.negative = negative if negative else False 27 self.strict_mode = False 29 def GetName(self): 30 return self.name 32 def IsNegative(self): 33 return self [all...] |
/third_party/spirv-tools/test/tools/ |
H A D | expect.py | 75 def check_return_code_is_zero(self, status): 85 def check_return_code_is_nonzero(self, status): 94 def check_no_output_on_stdout(self, status): 103 def check_no_output_on_stderr(self, status): 118 def check_no_generated_files(self, status): 133 def verify_binary_length_and_header(self, binary, spv_version=0x10000): 202 def verify_object_file_preamble(self, 218 return self.verify_binary_length_and_header(binary, spv_version) 226 def verify_assembly_file_preamble(self, filename): 248 def check_object_file_preamble(self, statu [all...] |
/third_party/openSLES/api/1.0.1/ |
H A D | OpenSLES.h | 403 SLObjectItf self, 407 SLObjectItf self, 411 SLObjectItf self, 415 SLObjectItf self, 420 SLObjectItf self, 425 SLObjectItf self 428 SLObjectItf self 431 SLObjectItf self, 436 SLObjectItf self, 441 SLObjectItf self, [all...] |
/third_party/openSLES/api/1.0/ |
H A D | OpenSLES.h | 402 SLObjectItf self, 406 SLObjectItf self, 410 SLObjectItf self, 414 SLObjectItf self, 419 SLObjectItf self, 424 SLObjectItf self 427 SLObjectItf self 430 SLObjectItf self, 435 SLObjectItf self, 440 SLObjectItf self, [all...] |
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
H A D | defs.c | 363 DescriptorPool* self = _self; in DescriptorPool_mark() local 364 rb_gc_mark(self->def_to_descriptor); in DescriptorPool_mark() 368 DescriptorPool* self = _self; in DescriptorPool_free() local 370 upb_symtab_free(self->symtab); in DescriptorPool_free() 371 upb_handlercache_free(self->fill_handler_cache); in DescriptorPool_free() 372 upb_handlercache_free(self->pb_serialize_handler_cache); in DescriptorPool_free() 373 upb_handlercache_free(self->json_serialize_handler_cache); in DescriptorPool_free() 374 upb_handlercache_free(self->json_serialize_handler_preserve_cache); in DescriptorPool_free() 375 upb_pbcodecache_free(self->fill_method_cache); in DescriptorPool_free() 376 upb_json_codecache_free(self in DescriptorPool_free() 388 DescriptorPool* self = ALLOC(DescriptorPool); DescriptorPool_alloc() local 487 Descriptor* self = _self; Descriptor_mark() local 496 Descriptor* self = _self; Descriptor_free() local 513 Descriptor* self = ALLOC(Descriptor); Descriptor_alloc() local 679 FileDescriptor* self = _self; FileDescriptor_mark() local 688 FileDescriptor* self = ALLOC(FileDescriptor); FileDescriptor_alloc() local 766 FieldDescriptor* self = _self; FieldDescriptor_mark() local 782 FieldDescriptor* self = ALLOC(FieldDescriptor); FieldDescriptor_alloc() local 1162 OneofDescriptor* self = _self; OneofDescriptor_mark() local 1178 OneofDescriptor* self = ALLOC(OneofDescriptor); OneofDescriptor_alloc() local 1255 EnumDescriptor* self = _self; EnumDescriptor_mark() local 1265 EnumDescriptor* self = ALLOC(EnumDescriptor); EnumDescriptor_alloc() local 1413 MessageBuilderContext* self = _self; MessageBuilderContext_mark() local 1418 MessageBuilderContext* self = _self; MessageBuilderContext_free() local 1423 MessageBuilderContext* self = ALLOC(MessageBuilderContext); MessageBuilderContext_alloc() local 1856 OneofBuilderContext* self = _self; OneofBuilderContext_mark() local 1865 OneofBuilderContext* self = ALLOC(OneofBuilderContext); OneofBuilderContext_alloc() local 1932 EnumBuilderContext* self = _self; EnumBuilderContext_mark() local 1941 EnumBuilderContext* self = ALLOC(EnumBuilderContext); EnumBuilderContext_alloc() local 2015 FileBuilderContext* self = _self; FileBuilderContext_mark() local 2020 FileBuilderContext* self = _self; FileBuilderContext_free() local 2049 FileBuilderContext* self = ALLOC(FileBuilderContext); FileBuilderContext_alloc() local 2167 Builder* self = _self; Builder_mark() local 2177 Builder* self = ALLOC(Builder); Builder_alloc() local [all...] |
/third_party/python/Objects/ |
H A D | exceptions.c | 44 PyBaseExceptionObject *self; in BaseException_new() local 46 self = (PyBaseExceptionObject *)type->tp_alloc(type, 0); in BaseException_new() 47 if (!self) in BaseException_new() 50 self->dict = NULL; in BaseException_new() 51 self->notes = NULL; in BaseException_new() 52 self->traceback = self->cause = self->context = NULL; in BaseException_new() 53 self->suppress_context = 0; in BaseException_new() 56 self in BaseException_new() 71 BaseException_init(PyBaseExceptionObject *self, PyObject *args, PyObject *kwds) BaseException_init() argument 83 BaseException_clear(PyBaseExceptionObject *self) BaseException_clear() argument 95 BaseException_dealloc(PyBaseExceptionObject *self) BaseException_dealloc() argument 108 BaseException_traverse(PyBaseExceptionObject *self, visitproc visit, void *arg) BaseException_traverse() argument 120 BaseException_str(PyBaseExceptionObject *self) BaseException_str() argument 133 BaseException_repr(PyBaseExceptionObject *self) BaseException_repr() argument 145 BaseException_reduce(PyBaseExceptionObject *self, PyObject *Py_UNUSED(ignored)) BaseException_reduce() argument 159 BaseException_setstate(PyObject *self, PyObject *state) BaseException_setstate() argument 184 BaseException_with_traceback(PyObject *self, PyObject *tb) BaseException_with_traceback() argument 204 BaseException_add_note(PyObject *self, PyObject *note) BaseException_add_note() argument 256 BaseException_get_args(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) BaseException_get_args() argument 266 BaseException_set_args(PyBaseExceptionObject *self, PyObject *val, void *Py_UNUSED(ignored)) BaseException_set_args() argument 281 BaseException_get_tb(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) BaseException_get_tb() argument 291 BaseException_set_tb(PyBaseExceptionObject *self, PyObject *tb, void *Py_UNUSED(ignored)) BaseException_set_tb() argument 309 BaseException_get_context(PyObject *self, void *Py_UNUSED(ignored)) BaseException_get_context() argument 318 BaseException_set_context(PyObject *self, PyObject *arg, void *Py_UNUSED(ignored)) BaseException_set_context() argument 338 BaseException_get_cause(PyObject *self, void *Py_UNUSED(ignored)) BaseException_get_cause() argument 347 BaseException_set_cause(PyObject *self, PyObject *arg, void *Py_UNUSED(ignored)) BaseException_set_cause() argument 380 PyException_GetTraceback(PyObject *self) PyException_GetTraceback() argument 389 PyException_SetTraceback(PyObject *self, PyObject *tb) PyException_SetTraceback() argument 395 PyException_GetCause(PyObject *self) PyException_GetCause() argument 404 PyException_SetCause(PyObject *self, PyObject *cause) PyException_SetCause() argument 412 PyException_GetContext(PyObject *self) PyException_GetContext() argument 421 PyException_SetContext(PyObject *self, PyObject *context) PyException_SetContext() argument 570 StopIteration_init(PyStopIterationObject *self, PyObject *args, PyObject *kwds) StopIteration_init() argument 588 StopIteration_clear(PyStopIterationObject *self) StopIteration_clear() argument 595 StopIteration_dealloc(PyStopIterationObject *self) StopIteration_dealloc() argument 603 StopIteration_traverse(PyStopIterationObject *self, visitproc visit, void *arg) StopIteration_traverse() argument 634 SystemExit_init(PySystemExitObject *self, PyObject *args, PyObject *kwds) SystemExit_init() argument 655 SystemExit_clear(PySystemExitObject *self) SystemExit_clear() argument 662 SystemExit_dealloc(PySystemExitObject *self) SystemExit_dealloc() argument 670 SystemExit_traverse(PySystemExitObject *self, visitproc visit, void *arg) SystemExit_traverse() argument 798 PyBaseExceptionGroupObject *self = BaseExceptionGroup_new() local 830 BaseExceptionGroup_init(PyBaseExceptionGroupObject *self, PyObject *args, PyObject *kwds) BaseExceptionGroup_init() argument 843 BaseExceptionGroup_clear(PyBaseExceptionGroupObject *self) BaseExceptionGroup_clear() argument 851 BaseExceptionGroup_dealloc(PyBaseExceptionGroupObject *self) BaseExceptionGroup_dealloc() argument 859 BaseExceptionGroup_traverse(PyBaseExceptionGroupObject *self, visitproc visit, void *arg) BaseExceptionGroup_traverse() argument 868 BaseExceptionGroup_str(PyBaseExceptionGroupObject *self) BaseExceptionGroup_str() argument 883 PyBaseExceptionGroupObject *self = _PyBaseExceptionGroupObject_cast(self_); BaseExceptionGroup_derive() local 1181 BaseExceptionGroup_split(PyObject *self, PyObject *args) BaseExceptionGroup_split() argument 1212 BaseExceptionGroup_subgroup(PyObject *self, PyObject *args) BaseExceptionGroup_subgroup() argument 1499 ImportError_init(PyImportErrorObject *self, PyObject *args, PyObject *kwds) ImportError_init() argument 1536 ImportError_clear(PyImportErrorObject *self) ImportError_clear() argument 1545 ImportError_dealloc(PyImportErrorObject *self) ImportError_dealloc() argument 1553 ImportError_traverse(PyImportErrorObject *self, visitproc visit, void *arg) ImportError_traverse() argument 1562 ImportError_str(PyImportErrorObject *self) ImportError_str() argument 1574 ImportError_getstate(PyImportErrorObject *self) ImportError_getstate() argument 1602 ImportError_reduce(PyImportErrorObject *self, PyObject *Py_UNUSED(ignored)) ImportError_reduce() argument 1731 oserror_init(PyOSErrorObject *self, PyObject **p_args, PyObject *myerrno, PyObject *strerror, PyObject *filename, PyObject *filename2 , PyObject *winerror ) oserror_init() argument 1821 PyOSErrorObject *self = NULL; OSError_new() local 1887 OSError_init(PyOSErrorObject *self, PyObject *args, PyObject *kwds) OSError_init() argument 1925 OSError_clear(PyOSErrorObject *self) OSError_clear() argument 1938 OSError_dealloc(PyOSErrorObject *self) OSError_dealloc() argument 1946 OSError_traverse(PyOSErrorObject *self, visitproc visit, void *arg) OSError_traverse() argument 1960 OSError_str(PyOSErrorObject *self) OSError_str() argument 2005 OSError_reduce(PyOSErrorObject *self, PyObject *Py_UNUSED(ignored)) OSError_reduce() argument 2054 OSError_written_get(PyOSErrorObject *self, void *context) OSError_written_get() argument 2064 OSError_written_set(PyOSErrorObject *self, PyObject *arg, void *context) OSError_written_set() argument 2181 NameError_init(PyNameErrorObject *self, PyObject *args, PyObject *kwds) NameError_init() argument 2208 NameError_clear(PyNameErrorObject *self) NameError_clear() argument 2215 NameError_dealloc(PyNameErrorObject *self) NameError_dealloc() argument 2223 NameError_traverse(PyNameErrorObject *self, visitproc visit, void *arg) NameError_traverse() argument 2255 AttributeError_init(PyAttributeErrorObject *self, PyObject *args, PyObject *kwds) AttributeError_init() argument 2286 AttributeError_clear(PyAttributeErrorObject *self) AttributeError_clear() argument 2294 AttributeError_dealloc(PyAttributeErrorObject *self) AttributeError_dealloc() argument 2302 AttributeError_traverse(PyAttributeErrorObject *self, visitproc visit, void *arg) AttributeError_traverse() argument 2329 SyntaxError_init(PySyntaxErrorObject *self, PyObject *args, PyObject *kwds) SyntaxError_init() argument 2375 SyntaxError_clear(PySyntaxErrorObject *self) SyntaxError_clear() argument 2389 SyntaxError_dealloc(PySyntaxErrorObject *self) SyntaxError_dealloc() argument 2397 SyntaxError_traverse(PySyntaxErrorObject *self, visitproc visit, void *arg) SyntaxError_traverse() argument 2442 SyntaxError_str(PySyntaxErrorObject *self) SyntaxError_str() argument 2542 KeyError_str(PyBaseExceptionObject *self) KeyError_str() argument 2830 UnicodeError_clear(PyUnicodeErrorObject *self) UnicodeError_clear() argument 2839 UnicodeError_dealloc(PyUnicodeErrorObject *self) UnicodeError_dealloc() argument 2847 UnicodeError_traverse(PyUnicodeErrorObject *self, visitproc visit, void *arg) UnicodeError_traverse() argument 2875 UnicodeEncodeError_init(PyObject *self, PyObject *args, PyObject *kwds) UnicodeEncodeError_init() argument 2903 UnicodeEncodeError_str(PyObject *self) UnicodeEncodeError_str() argument 2973 UnicodeDecodeError_init(PyObject *self, PyObject *args, PyObject *kwds) UnicodeDecodeError_init() argument 3016 UnicodeDecodeError_str(PyObject *self) UnicodeDecodeError_str() argument 3089 UnicodeTranslateError_init(PyUnicodeErrorObject *self, PyObject *args, PyObject *kwds) UnicodeTranslateError_init() argument 3113 UnicodeTranslateError_str(PyObject *self) UnicodeTranslateError_str() argument 3241 PyBaseExceptionObject *self; MemoryError_new() local 3272 MemoryError_dealloc(PyBaseExceptionObject *self) MemoryError_dealloc() argument 3320 PyObject *self = (PyObject *) state->memerrors_freelist; free_preallocated_memerrors() local [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/hdi_gen_test/ |
H A D | big_d_2000_file_test.py | 24 def __init__(self): 26 self.gen_file_num = 2000 28 def get_file_name(self): 31 def get_fool_content(self, loop): 46 def get_types_content(self, loop): 63 def file_gen(self): 64 idl_dir = os.path.join(self.get_working_dir(), "foo", "v1_0") 65 for loop in range(self.gen_file_num): 66 fool_file_conntent = self.get_fool_content(loop) 67 types_file_conntent = self [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/ |
H A D | wifi_hdi_wpa_callback.h | 26 int32_t OnEventDisconnected(struct IWpaCallback *self,
28 int32_t OnEventConnected(struct IWpaCallback *self,
30 int32_t OnEventBssidChanged(struct IWpaCallback *self,
32 int32_t OnEventStateChanged(struct IWpaCallback *self,
34 int32_t OnEventTempDisabled(struct IWpaCallback *self,
36 int32_t OnEventAssociateReject(struct IWpaCallback *self,
38 int32_t OnEventStaNotify(struct IWpaCallback *self, const char *notifyParam, const char *ifName);
39 int32_t OnEventWpsOverlap(struct IWpaCallback *self, const char *ifName);
40 int32_t OnEventWpsTimeout(struct IWpaCallback *self, const char *ifName);
41 int32_t OnEventAuthTimeout(struct IWpaCallback *self, cons [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | testsuite_test.py | 24 def setUp(self): 26 self.test_root = os.path.join(test_dir, "fake_testsuite") 27 self.test_config = TestConfig( 41 self.suite = TestSuite.Load(self.test_root, self.test_config, 44 def testLoadingTestSuites(self): 45 self.assertEquals(self.suite.name, "fake_testsuite") 46 self [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_cmd.py | 12 def initialize_options(self): 17 def setUp(self): 19 self.cmd = MyCmd(dist) 21 def test_ensure_string_list(self): 23 cmd = self.cmd 31 self.assertRaises(DistutilsOptionError, 34 self.assertRaises(DistutilsOptionError, 39 self.assertEqual(cmd.option1, ['ok', 'dok']) 45 self.assertRaises(DistutilsOptionError, cmd.ensure_string_list, 49 def test_make_file(self) [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_help_about.py | 38 def test_build_bits(self): 39 self.assertIn(help_about.bits, ('32', '64')) 41 def test_dialog_title(self): 43 self.assertEqual(self.dialog.title(), 'About IDLE') 45 def test_dialog_logo(self): 47 path, file = os.path.split(self.dialog.icon_image['file']) 49 self.assertEqual(fn, 'idle_48') 51 def test_printer_buttons(self): 53 dialog = self [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_threaded_import.py | 74 def __init__(self): 75 self.numcalls = 0 76 self.x = 0 77 self.lock = threading.Lock() 79 def find_spec(self, name, path=None, target=None): 84 with self.lock: 85 self.numcalls += 1 86 x = self.x 88 self.x = x + 1 94 def find_spec(self, nam [all...] |
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | sandbox.py | 133 def __init__(self, args, kwargs): 134 self._args = args 135 self._kwargs = kwargs 136 self._last_index = 0 138 def __getitem__(self, key): 140 idx = self._last_index 141 self._last_index += 1 143 return self._args[idx] 147 return self._kwargs[key] 149 def __iter__(self) [all...] |