/external/python/cpython3/Lib/unittest/test/testmock/ |
testcallable.py | 58 patcher = patch('%s.X' % __name__, spec=True) 59 mock = patcher.start() 60 self.addCleanup(patcher.stop) 70 patcher = patch('%s.X' % __name__, spec_set=True) 71 mock = patcher.start() 72 self.addCleanup(patcher.stop) 82 patcher = patch('%s.X' % __name__, spec=X()) 83 mock = patcher.start() 84 self.addCleanup(patcher.stop) 91 patcher = patch('%s.X' % __name__, spec_set=X() [all...] |
testpatch.py | 763 patcher = patch('%s.something' % __name__) 765 mock = patcher.start() 770 patcher.stop() 775 patcher = patch(foo_name, 'bar', 3) 778 self.assertRaises(RuntimeError, patcher.stop) 783 patcher = patch.object(PTModule, 'something', 'foo') 785 replaced = patcher.start() 790 patcher.stop() 797 patcher = patch.dict(d, [('spam', 'eggs')], clear=True) 800 patcher.start( [all...] |
testmock.py | 861 patcher = patch.object(mock, 'FILTER_DIR', False) 862 patcher.start() 870 patcher.stop() [all...] |
/external/python/mock/mock/tests/ |
testcallable.py | 58 patcher = patch('%s.X' % __name__, spec=True) 59 mock = patcher.start() 60 self.addCleanup(patcher.stop) 70 patcher = patch('%s.X' % __name__, spec_set=True) 71 mock = patcher.start() 72 self.addCleanup(patcher.stop) 82 patcher = patch('%s.X' % __name__, spec=X()) 83 mock = patcher.start() 84 self.addCleanup(patcher.stop) 91 patcher = patch('%s.X' % __name__, spec_set=X() [all...] |
testpatch.py | 750 patcher = patch('%s.something' % __name__) 752 mock = patcher.start() 757 patcher.stop() 762 patcher = patch(foo_name, 'bar', 3) 765 self.assertRaises(RuntimeError, patcher.stop) 770 patcher = patch.object(PTModule, 'something', 'foo') 772 replaced = patcher.start() 777 patcher.stop() 784 patcher = patch.dict(d, [('spam', 'eggs')], clear=True) 787 patcher.start( [all...] |
testmock.py | 773 patcher = patch.object(mock, 'FILTER_DIR', False) 774 patcher.start() 782 patcher.stop() [all...] |
/external/autotest/client/common_lib/cros/ |
retry_unittest.py | 34 patcher = mock.patch('time.sleep', autospec=True) 35 self._sleep_mock = patcher.start() 36 self.addCleanup(patcher.stop) 38 patcher = mock.patch('time.time', autospec=True) 39 self._time_mock = patcher.start() 40 self.addCleanup(patcher.stop)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
retry_util_unittest.py | 16 patcher = mock.patch('time.sleep') 17 self.time_sleep = patcher.start() 18 self.addCleanup(patcher.stop)
|
/external/autotest/site_utils/ |
run_suite_unittest.py | 26 patcher = mock.patch.object(run_suite, '_RETURN_RESULTS', 28 self.results = results = patcher.start() 29 self.addCleanup(patcher.stop) 33 patcher = mock.patch.object(run_suite, '_RETURN_RESULTS_LIST', 35 patcher.start() 36 self.addCleanup(patcher.stop)
|
/external/v8/src/arm64/ |
instructions-arm64.cc | 255 PatchingAssembler patcher(options, reinterpret_cast<byte*>(this), 257 patcher.PatchAdrFar(target_offset); 305 PatchingAssembler patcher(options, reinterpret_cast<byte*>(this), 2); 306 patcher.brk(high16); 307 patcher.brk(low16);
|
assembler-arm64.cc | 781 PatchingAssembler patcher(options(), reinterpret_cast<byte*>(link), 2); 782 patcher.dc64(reinterpret_cast<uintptr_t>(pc_)); [all...] |
/external/pdfium/third_party/pymock/ |
mock.py | [all...] |
/external/python/cpython2/Lib/test/ |
_mock_backport.py | [all...] |
/external/python/cpython3/Lib/unittest/ |
mock.py | [all...] |
/external/python/mock/mock/ |
mock.py | [all...] |
/external/v8/src/ppc/ |
assembler-ppc.cc | 502 PatchingAssembler patcher(options(), 504 patcher.bitwise_mov32(dst, offset); 517 PatchingAssembler patcher( 520 patcher.bitwise_add32(dst, base, offset); 521 if (opcode == kUnboundAddLabelLongOffsetOpcode) patcher.nop(); 527 PatchingAssembler patcher(options(), 531 patcher.bitwise_mov(dst, target_pos); 535 PatchingAssembler patcher(options(), 539 patcher.dp(target_pos); [all...] |
/art/dex2oat/linker/ |
image_test.h | 287 MultiOatRelativePatcher patcher(compiler_options_->GetInstructionSet(), 302 oat_writer->PrepareLayout(&patcher);
|
oat_writer_test.cc | 199 MultiOatRelativePatcher patcher(compiler_options_->GetInstructionSet(), 203 oat_writer.PrepareLayout(&patcher); [all...] |
/external/v8/src/arm/ |
assembler-arm.cc | 871 PatchingAssembler patcher(options(), 873 patcher.mov(dst, Operand(target24)); 880 PatchingAssembler patcher(options(), 882 CpuFeatureScope scope(&patcher, ARMv7); 883 patcher.movw(dst, target16_0); 885 PatchingAssembler patcher(options(), 887 CpuFeatureScope scope(&patcher, ARMv7); 888 patcher.movw(dst, target16_0); 889 patcher.movt(dst, target16_1); 897 PatchingAssembler patcher(options() [all...] |
/external/autotest/client/common_lib/ |
utils_unittest.py | [all...] |
/external/autotest/scheduler/ |
monitor_db_functional_test.py | 357 patcher = mock.patch( 360 patcher.start() 361 self.addCleanup(patcher.stop) [all...] |
/art/dex2oat/ |
dex2oat.cc | [all...] |