Searched refs:mock_calls (Results 1 - 20 of 20) sorted by relevance

/external/vboot_reference/tests/
H A Drollback_index2_tests.c26 * Size of mock_calls[] should be big enough to handle all expected
35 static char mock_calls[16384]; variable
36 static char *mock_cnext = mock_calls;
61 *mock_calls = 0;
62 mock_cnext = mock_calls;
87 /* Mocks for tlcl functions which log the calls made to mock_calls[]. */
250 TEST_STR_EQ(mock_calls,
262 TEST_STR_EQ(mock_calls,
275 TEST_STR_EQ(mock_calls,
285 TEST_STR_EQ(mock_calls,
[all...]
/external/chromium-trace/catapult/devil/devil/utils/
H A Dlsusb_test.py12 from devil.utils import mock_calls namespace
220 class LsusbTest(mock_calls.TestCase):
H A Dmock_calls_test.py7 Unit tests for the contents of mock_calls.py.
16 from devil.utils import mock_calls namespace
47 class TestCaseWithAssertCallsTest(mock_calls.TestCase):
/external/libmojo/third_party/catapult/devil/devil/utils/
H A Dlsusb_test.py12 from devil.utils import mock_calls namespace
220 class LsusbTest(mock_calls.TestCase):
H A Dmock_calls_test.py7 Unit tests for the contents of mock_calls.py.
16 from devil.utils import mock_calls namespace
47 class TestCaseWithAssertCallsTest(mock_calls.TestCase):
/external/autotest/scheduler/
H A Ddrones_unittest.py44 mock_calls = ('foo',)
48 stdin=cPickle.dumps(mock_calls), stdout_tee=None,
52 self.assertEqual('mock return', drone._execute_calls_impl(mock_calls))
/external/python/cpython3/Lib/unittest/test/testmock/
H A Dtestmock.py229 self.assertEqual(mock.mock_calls, [])
844 # need to do this because MagicMock.mock_calls used to just return
846 self.assertIs(mock.mock_calls == [], True)
851 self.assertEqual(mock.mock_calls, expected)
855 self.assertEqual(mock.mock_calls, expected)
856 # intermediate mock_calls work too
857 self.assertEqual(mock.foo.mock_calls, [('', (), {})])
864 self.assertEqual(mock.mock_calls, expected)
865 self.assertEqual(mock.return_value.foo.mock_calls,
867 self.assertEqual(mock.return_value.mock_calls,
[all...]
H A Dtesthelpers.py66 self.assertEqual(expected, mock.mock_calls)
67 self.assertEqual(mock.mock_calls, expected)
260 self.assertEqual(mock.mock_calls, [call(1, 2, a=3, b=4)])
266 self.assertEqual(mock.mock_calls[-1], last_call)
267 self.assertEqual(mock.mock_calls, last_call.call_list())
273 self.assertEqual(call(1).call_list(), mock.mock_calls)
278 mock.mock_calls)
283 mock.mock_calls)
288 self.assertEqual(kall.call_list(), mock.mock_calls)
296 self.assertEqual(m.mock_calls, [AN
[all...]
H A Dtestwith.py151 self.assertEqual(mock.mock_calls, expected_calls)
167 self.assertEqual(mock.mock_calls, expected_calls)
H A Dtestpatch.py1643 self.assertEqual(m.mock_calls, kalls)
1645 self.assertEqual(m.wibble.mock_calls, [call()])
1649 self.assertEqual(m.mock_calls, kalls)
1653 self.assertEqual(m.mock_calls, kalls)
1655 self.assertEqual(result.mock_calls, [call.wibble()])
1656 self.assertEqual(result.wibble.mock_calls, [call()])
/external/chromium-trace/catapult/devil/devil/android/
H A Dapk_helper_test.py11 from devil.utils import mock_calls namespace
128 class ApkHelperTest(mock_calls.TestCase):
H A Dfastboot_utils_test.py22 from devil.utils import mock_calls namespace
76 class FastbootUtilsTest(mock_calls.TestCase):
H A Dbattery_utils_test.py20 from devil.utils import mock_calls namespace
34 class BatteryUtilsTest(mock_calls.TestCase):
H A Ddevice_utils_test.py29 from devil.utils import mock_calls namespace
97 class DeviceUtilsGetAVDsTest(mock_calls.TestCase):
117 class DeviceUtilsRestartServerTest(mock_calls.TestCase):
184 class DeviceUtilsTest(mock_calls.TestCase):
2618 class DeviceUtilsHealthyDevicesTest(mock_calls.TestCase):
/external/pdfium/third_party/pymock/
H A Dmock.py310 funcopy.mock_calls = _CallList()
321 funcopy.mock_calls = _CallList()
522 `method_calls` and `mock_calls` attributes of this one."""
592 mock_calls = _delegating_property('mock_calls') variable in class:NonCallableMock
617 self.mock_calls = _CallList()
774 # only set _new_name and not name so that mock_calls is tracked
851 The `mock_calls` list is checked for the calls.
858 they must all appear in `mock_calls`."""
860 if calls not in self.mock_calls
[all...]
/external/libmojo/third_party/catapult/devil/devil/android/
H A Dfastboot_utils_test.py22 from devil.utils import mock_calls namespace
76 class FastbootUtilsTest(mock_calls.TestCase):
H A Dbattery_utils_test.py20 from devil.utils import mock_calls namespace
34 class BatteryUtilsTest(mock_calls.TestCase):
H A Ddevice_utils_test.py27 from devil.utils import mock_calls namespace
87 class DeviceUtilsGetAVDsTest(mock_calls.TestCase):
107 class DeviceUtilsRestartServerTest(mock_calls.TestCase):
159 class DeviceUtilsTest(mock_calls.TestCase):
2322 class DeviceUtilsHealthyDevicesTest(mock_calls.TestCase):
/external/python/cpython2/Lib/test/
H A D_mock_backport.py215 funcopy.mock_calls = _CallList()
226 funcopy.mock_calls = _CallList()
428 `method_calls` and `mock_calls` attributes of this one."""
504 mock_calls = _delegating_property('mock_calls') variable in class:NonCallableMock
533 self.mock_calls = _CallList()
693 # only set _new_name and not name so that mock_calls is tracked
803 The `mock_calls` list is checked for the calls.
810 they must all appear in `mock_calls`."""
812 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
[all...]
/external/python/cpython3/Lib/unittest/
H A Dmock.py210 funcopy.mock_calls = _CallList()
221 funcopy.mock_calls = _CallList()
424 `method_calls` and `mock_calls` attributes of this one."""
500 mock_calls = _delegating_property('mock_calls') variable in class:NonCallableMock
536 self.mock_calls = _CallList()
701 # only set _new_name and not name so that mock_calls is tracked
830 The `mock_calls` list is checked for the calls.
837 they must all appear in `mock_calls`."""
840 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
[all...]

Completed in 807 milliseconds