Lines Matching refs:FunctionRef
28 void RunFun(FunctionRef<void()> f) { f(); } in RunFun()
39 FunctionRef<int()> ref(&Function); in TEST()
44 FunctionRef<int()> ref(Function); in TEST()
52 FunctionRef<int()> ref(NoExceptFunction); in TEST()
58 FunctionRef<int(std::unique_ptr<int>)> ref(l); in TEST()
62 TEST(FunctionRef, ReturnMoveOnly) { in TEST() argument
64 FunctionRef<std::unique_ptr<int>()> ref(l); in TEST()
68 TEST(FunctionRef, ManyArgs) { in TEST() argument
70 FunctionRef<int(int, int, int)> ref(l); in TEST()
74 TEST(FunctionRef, VoidResultFromNonVoidFunctor) { in TEST() argument
80 FunctionRef<void()> ref(l); in TEST()
85 TEST(FunctionRef, CastFromDerived) { in TEST() argument
91 FunctionRef<void(Derived*)> ref1(l1); in TEST()
95 FunctionRef<Base*()> ref2(l2); in TEST()
99 TEST(FunctionRef, VoidResultFromNonVoidFuncton) { in TEST() argument
100 FunctionRef<void()> ref(Function); in TEST()
104 TEST(FunctionRef, MemberPtr) { in TEST() argument
111 FunctionRef<int(const S& s)> ref(mem_ptr); in TEST()
115 TEST(FunctionRef, MemberFun) { in TEST() argument
123 FunctionRef<int(const S& s)> ref(mem_fun_ptr); in TEST()
127 TEST(FunctionRef, MemberFunRefqualified) { in TEST() argument
134 FunctionRef<int(S && s)> ref(mem_fun_ptr); in TEST()
140 TEST(FunctionRef, MemberFunRefqualifiedNull) { in TEST() argument
147 EXPECT_DEBUG_DEATH({ FunctionRef<int(S && s)> ref(mem_fun_ptr); }, ""); in TEST()
150 TEST(FunctionRef, NullMemberPtrAssertFails) { in TEST() argument
156 EXPECT_DEBUG_DEATH({ FunctionRef<int(const S& s)> ref(mem_ptr); }, ""); in TEST()
161 TEST(FunctionRef, CopiesAndMovesPerPassByValue) { in TEST() argument
165 FunctionRef<void(absl::test_internal::CopyableMovableInstance)> ref(l); in TEST()
171 TEST(FunctionRef, CopiesAndMovesPerPassByRef) { in TEST() argument
175 FunctionRef<void(const absl::test_internal::CopyableMovableInstance&)> ref(l); in TEST()
181 TEST(FunctionRef, CopiesAndMovesPerPassByValueCallByMove) { in TEST() argument
185 FunctionRef<void(absl::test_internal::CopyableMovableInstance)> ref(l); in TEST()
191 TEST(FunctionRef, CopiesAndMovesPerPassByValueToRef) { in TEST() argument
195 FunctionRef<void(absl::test_internal::CopyableMovableInstance)> ref(l); in TEST()
201 TEST(FunctionRef, PassByValueTypes) { in TEST() argument
243 absl::FunctionRef<void(LargeTrivial&)> ref(test); in TEST()
250 absl::FunctionRef<void(Trivial&)> ref(test); in TEST()