Home
last modified time | relevance | path

Searched refs:mocked (Results 1 – 25 of 37) sorted by relevance

12

/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java133 SubClass mocked = mock(SubClass.class); in mockSubClass() local
139 assertNull(mocked.returnA()); in mockSubClass()
140 assertNull(mocked.returnB()); in mockSubClass()
141 assertNull(mocked.returnC()); in mockSubClass()
152 assertNull(mocked.returnA()); in mockSubClass()
153 assertNull(mocked.returnB()); in mockSubClass()
154 assertNull(mocked.returnC()); in mockSubClass()
162 when(mocked.returnA()).thenReturn("fake2A"); in mockSubClass()
163 when(mocked.returnB()).thenReturn("fake2B"); in mockSubClass()
164 when(mocked.returnC()).thenReturn("fake2C"); in mockSubClass()
[all …]
/external/rust/crates/tokio/src/loom/
Dmod.rs12 mod mocked; module
14 pub(crate) use self::mocked::*;
/external/rust/crates/plotters/src/drawing/backend_impl/
Dmod.rs2 mod mocked; module
4 pub use mocked::{check_color, create_mocked_drawing_area, MockedBackend};
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DInlineBytecodeGenerator.java66 private final WeakConcurrentSet<Class<?>> mocked; field in InlineBytecodeGenerator
81 mocked = new WeakConcurrentSet<Class<?>>(WeakConcurrentSet.Cleaner.INLINE); in InlineBytecodeGenerator()
153 if (mocked.add(type)) { in triggerRetransformation()
172 mocked.remove(failed); in triggerRetransformation()
192 if (mocked.add(type)) { in addInterfaces()
206 || !mocked.contains(classBeingRedefined) in transform()
DMockMethodAdvice.java69 @Advice.Enter Callable<?> mocked) throws Throwable { in exit() argument
70 if (mocked != null) { in exit()
71 returned = mocked.call(); in exit()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMockingMultipleInterfacesTest.java109 Object mocked = mock(interface1, withSettings().extraInterfaces(interface2)); in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths() local
110 …assertThat(interface2.isInstance(mocked)).describedAs("mock should be assignable from interface2 t… in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()
/external/grpc-grpc/doc/
Dunit_testing.md5 To unit-test client-side logic via the synchronous API, gRPC provides a mocked Stub based on google…
78 By adding such a flag now a header file `echo_mock.grpc.pb.h` containing the mocked stub will also …
82 **Writing tests with mocked Stub.**
139 A test could initialize this FakeClient with a mocked stub having set expectations on it:
/external/python/cpython3/Lib/test/test_importlib/
Dtest_abc.py547 with mock.patch.object(self.InspectLoaderSubclass, 'get_source') as mocked:
548 mocked.return_value = 'attr = 42'
556 with mock.patch.object(self.InspectLoaderSubclass, 'get_source') as mocked:
557 mocked.return_value = None
658 with source_mock_context as mocked:
659 mocked.return_value = None
/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py932 mocked = create_autospec(meth)
935 mocked()
936 mocked.assert_called_once_with()
937 mocked.reset_mock()
938 mocked(4, 5, 6)
939 mocked.assert_called_once_with(4, 5, 6)
Dtestmock.py1994 with mock.patch(f'{__name__}.Something.meth', autospec=True) as mocked:
1996 manager.attach_mock(mocked, 'attach_meth')
2001 mocked.assert_has_calls([call(mock.ANY, 1, 2, 3, d=4)])
2003 with mock.patch(f'{__name__}.something', autospec=True) as mocked:
2005 manager.attach_mock(mocked, 'attach_func')
2009 mocked.assert_has_calls([call(1)])
2011 with mock.patch(f'{__name__}.Something', autospec=True) as mocked:
2013 manager.attach_mock(mocked, 'attach_obj')
2019 mocked.assert_has_calls([call(), call().meth(1, 2, 3, d=4)])
/external/python/mock/mock/tests/
Dtesthelpers.py981 mocked = create_autospec(meth)
984 mocked()
985 mocked.assert_called_once_with()
986 mocked.reset_mock()
987 mocked(4, 5, 6)
988 mocked.assert_called_once_with(4, 5, 6)
/external/autotest/client/site_tests/documentscan_AppTestWithFakeLorgnette/
Dcontrol13 image data from a mocked version of the lorgnette document image
/external/auto/value/userguide/
Dpractices.md39 actually needs to be mocked or faked, split it into a separate type that is
/external/googletest/docs/
Dgmock_faq.md5 In order for a method to be mocked, it must be *virtual*, unless you use the
312 call the function through that interface, which then can be easily mocked. It's
381 being mocked.
Dgmock_cheat_sheet.md54 Class templates can be mocked just like any class.
68 (note that all member functions that are mocked, including `~StackInterface()`
Dgmock_for_dummies.md162 be either mocked or overridden.)
188 Some people put it in a `_test.cc`. This is fine when the interface being mocked
Dgmock_cook_book.md16 generate mocked methods. The macro gets 3 or 4 parameters:
30 * **`const`** - Makes the mocked method a `const` method. Required if
86 section of the mock class, regardless of the method being mocked being `public`,
1708 supplying a [simpler mock interface](#SimplerInterfaces) than the mocked class
2909 // forwarded to DoShareBuzz(), which is mocked. Therefore this statement
/external/webrtc/examples/objc/AppRTCMobile/tests/
DARDAppClient_xctest.mm166 // components are mocked out and messages are relayed directly from object to
/external/python/cpython3/Doc/library/
Dunittest.mock.rst1360 patch to pass in the object being mocked as the spec/spec_set object.
1369 attribute of the object being replaced. Methods and functions being mocked
2322 Functions or methods being mocked will have their arguments checked to
2416 mocked) underscore and double underscore prefixed attributes have been
2520 the attributes of the spec. In addition mocked functions / methods have the
2622 mocked out :class:`request.Request` is a non-callable mock. With the spec in place
2742 a mocked class to create a mock instance *does not* create a real instance.
Dunittest.mock-examples.rst111 by looking at the return value of the mocked class.
513 This means that you can see how the object returned from a call to a mocked
737 that if you use it to patch out an unbound method on a class the mocked
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_test.py204 def __init__(self, patched=None, mocked=None): argument
206 self.mocked = mocked
/external/python/dateutil/
DNEWS77 - Add documentation for the ``dateutil.tz.win`` module and mocked out certain
/external/kotlinx.coroutines/
DCHANGES.md567 * Fixed loading of Android exception handler when `Thread.contextClassLoader` is mocked (see #530).
/external/brotli/tests/testdata/
Dasyoulik.txt593 mocked me before: but come your ways.
/external/llvm-project/llvm/docs/
DProgrammersManual.rst833 mocked-up classes or functions may be known to be safe.

12