Searched refs:AsStdFunction (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-actions_test.cc | 704 EXPECT_THAT(mock.AsStdFunction()(), in TEST() 707 EXPECT_THAT(mock.AsStdFunction()(), in TEST() 739 EXPECT_THAT(mock.AsStdFunction()(), Field(&Out::x, 19)); in TEST() 756 EXPECT_EQ(17, mock.AsStdFunction()()); in TEST() 757 EXPECT_EQ(19, mock.AsStdFunction()()); in TEST() 801 EXPECT_THAT(mock.AsStdFunction()(), Pointee(17)); in TEST() 1338 EXPECT_EQ(19, mock.AsStdFunction()(17)); in TEST() 1363 mock.AsStdFunction()(Obj{}); in TEST() 1364 mock.AsStdFunction()(Obj{}); in TEST() 1383 mock.AsStdFunction()(Obj{}); in TEST() [all …]
|
H A D | gmock-function-mocker_test.cc | 820 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 D | gmock-spec-builders_test.cc | 846 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/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-spec-builders.h | 1913 std::function<R(Args...)> AsStdFunction() { in AsStdFunction() function
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cook_book.md | 3860 EXPECT_EQ(mock.AsStdFunction()(2), 14); 3883 EXPECT_EQ(mock.AsStdFunction()(0), 17); 3901 EXPECT_THAT(mock.AsStdFunction()(), Pointee(Eq(17))); 4343 It also has a `AsStdFunction()` method, which creates a `std::function` proxy 4347 std::function<R(T1, ..., Tn)> AsStdFunction(); 4352 `AsStdFunction()` to the code you are testing. For example: 4363 Foo(mock_function.AsStdFunction()); 4373 Remember that function objects created with `AsStdFunction()` are just
|