Home
last modified time | relevance | path

Searched refs:AsStdFunction (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-actions_test.cc1363 mock.AsStdFunction()(Obj{}); in TEST()
1364 mock.AsStdFunction()(Obj{}); in TEST()
1383 mock.AsStdFunction()(Obj{}); in TEST()
1384 mock.AsStdFunction()(Obj{}); in TEST()
1401 mock.AsStdFunction()(obj); in TEST()
1402 mock.AsStdFunction()(obj); in TEST()
1419 mock.AsStdFunction()(Obj{}); in TEST()
1420 mock.AsStdFunction()(Obj{}); in TEST()
1434 mock.AsStdFunction()(obj); in TEST()
1972 mock.AsStdFunction()(); in TEST()
[all …]
H A Dgmock-function-mocker_test.cc820 TEST(MockMethodMockFunctionTest, AsStdFunction) { in TEST() argument
825 EXPECT_EQ(-1, call(foo.AsStdFunction(), 1)); in TEST()
826 EXPECT_EQ(-2, call(foo.AsStdFunction(), 2)); in TEST()
833 int& ref = foo.AsStdFunction()(); in TEST()
844 EXPECT_EQ(-1, call(foo.AsStdFunction(), i)); in TEST()
H A Dgmock-spec-builders_test.cc846 EXPECT_EQ(17, mock.AsStdFunction()().x); in TEST()
847 EXPECT_EQ(17, mock.AsStdFunction()().x); in TEST()
848 EXPECT_EQ(17, mock.AsStdFunction()().x); in TEST()
/freebsd-14.2/contrib/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h1913 std::function<R(Args...)> AsStdFunction() { in AsStdFunction() function
/freebsd-14.2/contrib/googletest/docs/
H A Dgmock_cook_book.md3825 EXPECT_EQ(mock.AsStdFunction()(2), 14);
3848 EXPECT_EQ(mock.AsStdFunction()(0), 17);
3866 EXPECT_THAT(mock.AsStdFunction()(), Pointee(Eq(17)));
4308 It also has a `AsStdFunction()` method, which creates a `std::function` proxy
4312 std::function<R(T1, ..., Tn)> AsStdFunction();
4317 `AsStdFunction()` to the code you are testing. For example:
4328 Foo(mock_function.AsStdFunction());
4338 Remember that function objects created with `AsStdFunction()` are just