Home
last modified time | relevance | path

Searched refs:mock_function (Results 1 – 16 of 16) sorted by relevance

/aosp_15_r20/external/rust/android-crates-io/crates/mockall_derive/src/
Dmock_item.rs5 mock_function::MockFunction,
73 let mf = mock_function::Builder::new(&f.sig, &f.vis) in from()
93 let mf = mock_function::Builder::new(&f.sig, &f.vis) in from()
Dmock_trait.rs15 mock_function::{self, MockFunction},
93 let mf = mock_function::Builder::new(&iif.sig, vis) in new()
Dmock_item_struct.rs8 mock_function::MockFunction,
208 mock_function::Builder::new(&meth.sig, &meth.vis) in from()
Dlib.rs25 mod mock_function; module
/aosp_15_r20/external/autotest/client/common_lib/test_utils/
H A Dmock.py232 class mock_function(object): class
272 class mask_function(mock_function):
299 func = mock_function(f_name, default_ret_val,
387 func = mock_function(f_name,
418 return mock_function(symbol, default_return_val,
/aosp_15_r20/external/toolchain-utils/llvm_tools/
H A Dtest_helpers.py26 def CallCountsToMockFunctions(mock_function): argument
49 ret_value = mock_function(prev_counter, *args, **kwargs)
/aosp_15_r20/external/python/mobly/tests/mobly/
Dutils_test.py452 mock_function = mock.MagicMock()
454 mock_function,
461 self.assertEqual(mock_function.call_count, 3)
462 mock_function.assert_has_calls(
/aosp_15_r20/external/googletest/googlemock/test/
H A Dgmock-actions_test.cc1838 testing::MockFunction<void()> mock_function; in TEST() local
1841 EXPECT_CALL(mock_function, Call()); in TEST()
1843 .WillOnce(DoAll(InvokeWithoutArgs(&mock_function, in TEST()
/aosp_15_r20/external/cronet/third_party/googletest/src/googlemock/test/
H A Dgmock-actions_test.cc1790 testing::MockFunction<void()> mock_function; in TEST() local
1793 EXPECT_CALL(mock_function, Call()); in TEST()
1795 .WillOnce(DoAll(InvokeWithoutArgs(&mock_function, in TEST()
/aosp_15_r20/external/cronet/third_party/boringssl/src/third_party/googletest/googlemock/test/
H A Dgmock-actions_test.cc1790 testing::MockFunction<void()> mock_function; in TEST() local
1793 EXPECT_CALL(mock_function, Call()); in TEST()
1795 .WillOnce(DoAll(InvokeWithoutArgs(&mock_function, in TEST()
/aosp_15_r20/external/python/cpython3/Doc/library/
Dunittest.mock.rst184 >>> mock_function = create_autospec(function, return_value='fishy')
185 >>> mock_function(1, 2, 3)
187 >>> mock_function.assert_called_once_with(1, 2, 3)
188 >>> mock_function('wrong arguments')
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py979 def test(mock_function): argument
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/testmock/
H A Dtestpatch.py979 def test(mock_function): argument
/aosp_15_r20/external/cronet/third_party/boringssl/src/third_party/googletest/docs/
H A Dgmock_cook_book.md4322 MockFunction<int(string)> mock_function;
4325 EXPECT_CALL(mock_function, Call("bar")).WillOnce(Return(1));
4328 Foo(mock_function.AsStdFunction());
4333 // 4. All expectations will be verified when mock_function
/aosp_15_r20/external/cronet/third_party/googletest/src/docs/
H A Dgmock_cook_book.md4328 MockFunction<int(string)> mock_function;
4331 EXPECT_CALL(mock_function, Call("bar")).WillOnce(Return(1));
4334 Foo(mock_function.AsStdFunction());
4339 // 4. All expectations will be verified when mock_function
/aosp_15_r20/external/googletest/docs/
H A Dgmock_cook_book.md4357 MockFunction<int(string)> mock_function;
4360 EXPECT_CALL(mock_function, Call("bar")).WillOnce(Return(1));
4363 Foo(mock_function.AsStdFunction());
4368 // 4. All expectations will be verified when mock_function