Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium/base/
Dgmock_unittest.cc68 MockSampleClass mock; in TEST() local
70 EXPECT_CALL(mock, ReturnSomething()) in TEST()
74 EXPECT_EQ(1, mock.ReturnSomething()); in TEST()
75 EXPECT_EQ(2, mock.ReturnSomething()); in TEST()
76 EXPECT_EQ(3, mock.ReturnSomething()); in TEST()
78 EXPECT_CALL(mock, ReturnNothingConstly()).Times(2); in TEST()
79 mock.ReturnNothingConstly(); in TEST()
80 mock.ReturnNothingConstly(); in TEST()
85 MockSampleClass mock; in TEST() local
87 EXPECT_CALL(mock, OutputParam(_)) in TEST()
[all …]
/external/chromium/net/proxy/
Dsingle_threaded_proxy_resolver_unittest.cc140 MockProxyResolver* mock = new MockProxyResolver; in TEST() local
142 new SingleThreadedProxyResolver(mock)); in TEST()
154 EXPECT_EQ("pac script bytes", mock->last_pac_bytes()); in TEST()
210 EXPECT_EQ(0, mock->purge_count()); in TEST()
218 EXPECT_EQ(1, mock->purge_count()); in TEST()
224 BlockableProxyResolver* mock = new BlockableProxyResolver; in TEST() local
226 new SingleThreadedProxyResolver(mock)); in TEST()
231 mock->Block(); in TEST()
242 mock->WaitUntilBlocked(); in TEST()
270 mock->Unblock(); in TEST()
[all …]
/external/webkit/WebKitTools/pywebsocket/test/
Dtest_handshake.py41 import mock
381 conn = mock.MockConn('')
383 return mock.MockRequest(
428 mock.MockDispatcher())
442 mock.MockDispatcher())
451 mock.MockDispatcher())
461 mock.MockDispatcher())
470 mock.MockDispatcher())
479 mock.MockDispatcher())
489 mock.MockDispatcher())
[all …]
Dtest_dispatch.py43 import mock
133 request = mock.MockRequest()
143 request = mock.MockRequest(connection=mock.MockConn(''))
151 request = mock.MockRequest(connection=mock.MockConn(''))
158 request = mock.MockRequest(connection=mock.MockConn(''))
165 request = mock.MockRequest(connection=mock.MockConn(''))
176 request = mock.MockRequest(connection=mock.MockConn(''))
189 request = mock.MockRequest(connection=mock.MockConn(''))
Dtest_mock.py40 import mock
45 self._conn = mock.MockConn('ABC\r\nDEFG\r\n\r\nHIJK')
85 conn = mock.MockBlockingConn()
96 table = mock.MockTable({'Key':'Value'})
101 table = mock.MockTable([('Key', 'Value')])
106 table = mock.MockTable((('Key', 'Value'),))
111 table = mock.MockTable()
Dtest_msgutil.py42 import mock
46 return mock.MockRequest(connection=mock.MockConn(read_data))
49 return mock.MockRequest(connection=mock.MockBlockingConn())
/external/easymock/src/org/easymock/
DEasyMock.java1546 for (Object mock : mocks) { in replay()
1547 getControl(mock).replay(); in replay()
1559 for (Object mock : mocks) { in reset()
1560 getControl(mock).reset(); in reset()
1573 for (Object mock : mocks) { in resetToNice()
1574 getControl(mock).resetToNice(); in resetToNice()
1587 for (Object mock : mocks) { in resetToDefault()
1588 getControl(mock).resetToDefault(); in resetToDefault()
1601 for (Object mock : mocks) { in resetToStrict()
1602 getControl(mock).resetToStrict(); in resetToStrict()
[all …]
DMockControl.java38 private final T mock; field in MockControl
44 this.mock = ctrl.createMock(toMock); in MockControl()
101 return mock; in getMock()
/external/easymock/src/org/easymock/internal/
DInvocation.java33 private final Object mock; field in Invocation
42 public Invocation(Object mock, Method method, Object[] args) { in Invocation() argument
43 this.mock = mock; in Invocation()
77 return mock; in getMock()
95 return this.mock.equals(other.mock) && this.method.equals(other.method) in equals()
136 return this.mock.equals(actual.mock) in matches()
147 String mockName = mock.toString(); in getMockAndMethodName()
149 if (toStringIsDefined(mock) && isJavaIdentifier(mockName)) { in getMockAndMethodName()
/external/protobuf/python/
Dmox.py242 for mock in args:
243 mock._Replay()
253 for mock in args:
254 mock._Verify()
264 for mock in args:
265 mock._Reset()
/external/webkit/WebKitTools/Scripts/webkitpy/
Dpatchcollection_unittest.py32 from webkitpy.mock import Mock
Dcredentials_unittest.py35 from webkitpy.mock import Mock
Dbugzilla_unittest.py34 from webkitpy.mock import Mock
/external/webkit/WebKitTools/Scripts/webkitpy/steps/
Dclosebugforlanddiff_unittest.py32 from webkitpy.mock import Mock
Dupdatechangelogswithreview_unittests.py32 from webkitpy.mock import Mock
Dsteps_unittest.py35 from webkitpy.mock import Mock
/external/webkit/WebKitTools/Scripts/webkitpy/commands/
Dcommandtest.py31 from webkitpy.mock import Mock
Dearly_warning_system_unittest.py33 from webkitpy.mock import Mock
Dqueries_unittest.py32 from webkitpy.mock import Mock
Dupload_unittest.py31 from webkitpy.mock import Mock
Dqueuestest.py32 from webkitpy.mock import Mock
Ddownload_unittest.py31 from webkitpy.mock import Mock
/external/webkit/LayoutTests/fast/dom/Geolocation/
Dpermission-denied-expected.txt1 Tests Geolocation when permission is denied, using the mock service.
Dsuccess-expected.txt1 Tests Geolocation success callback using the mock service.
Derror-expected.txt1 Tests Geolocation error callback using the mock service.

12