Lines Matching refs:Bind
368 Callback<int(int, int, int)> cb = Bind(&Sum, 32, 16, 8); in TEST_F()
371 Callback<int(int, int, int, int, int, int)> c1 = Bind(&Sum); in TEST_F()
374 Callback<int(int, int, int)> c2 = Bind(c1, 32, 16, 8); in TEST_F()
377 Callback<int()> c3 = Bind(c2, 4, 2, 1); in TEST_F()
637 Bind(&FunctionWithWeakFirstParam, weak_factory.GetWeakPtr()); in TEST_F()
759 Bind(F&& f, Args&&... args) { in Bind() function
771 Bind(F&& f, Args&&... args) { in Bind() function
808 ClosureType normal_cb = TypeParam::Bind(&VoidFunc0); in TYPED_TEST()
810 TypeParam::Bind(&PolymorphicIdentity<NoRef*>, &no_ref); in TYPED_TEST()
814 ClosureType method_cb = TypeParam::Bind(&HasRef::VoidMethod0, &has_ref); in TYPED_TEST()
816 TypeParam::Bind(&HasRef::VoidMethod0, WrapRefCounted(&has_ref)); in TYPED_TEST()
818 TypeParam::Bind(&HasRef::VoidConstMethod0, &has_ref); in TYPED_TEST()
820 TypeParam::Bind(&HasRef::VoidConstMethod0, const_has_ref_ptr); in TYPED_TEST()
828 ClosureType virtual_set_cb = TypeParam::Bind(&Parent::VirtualSet, &child); in TYPED_TEST()
834 TypeParam::Bind(&Parent::NonVirtualSet, &child); in TYPED_TEST()
860 CallbackType<TypeParam, int()> normal_cb = TypeParam::Bind(&IntFunc0); in TYPED_TEST()
862 TypeParam::Bind(&HasRef::IntMethod0, &has_ref); in TYPED_TEST()
864 TypeParam::Bind(&HasRef::IntConstMethod0, &has_ref); in TYPED_TEST()
866 TypeParam::Bind(&HasRef::IntConstMethod0, const_has_ref_ptr); in TYPED_TEST()
868 TypeParam::Bind(&HasRef::UniquePtrMethod0, &has_ref); in TYPED_TEST()
890 EXPECT_EQ(n, TypeParam::Bind(&Identity, n).Run()); in TYPED_TEST()
891 EXPECT_EQ(&n, TypeParam::Bind(&PolymorphicIdentity<int*>, &n).Run()); in TYPED_TEST()
892 EXPECT_EQ(3, TypeParam::Bind(&Identity, 3).Run()); in TYPED_TEST()
893 EXPECT_STREQ("hi", TypeParam::Bind(&CStringIdentity, "hi").Run()); in TYPED_TEST()
894 EXPECT_EQ(4, TypeParam::Bind(&PolymorphicIdentity<int>, 4).Run()); in TYPED_TEST()
898 EXPECT_EQ(5, TypeParam::Bind(&UnwrapNoRefParent, p).Run()); in TYPED_TEST()
902 TypeParam::Bind(&PolymorphicIdentity<IncompleteType*>, in TYPED_TEST()
907 EXPECT_EQ(6, TypeParam::Bind(&UnwrapNoRefParent, c).Run()); in TYPED_TEST()
910 EXPECT_EQ(7, TypeParam::Bind(&UnwrapNoRefParentPtr, &c).Run()); in TYPED_TEST()
913 EXPECT_EQ(8, TypeParam::Bind(&UnwrapNoRefParentConstRef, c).Run()); in TYPED_TEST()
926 TypeParam::Bind(&VoidPolymorphic<int>::Run); in TYPED_TEST()
928 TypeParam::Bind(&VoidPolymorphic<int*>::Run); in TYPED_TEST()
930 TypeParam::Bind(&VoidPolymorphic<int&>::Run); in TYPED_TEST()
932 TypeParam::Bind(&VoidPolymorphic<const int&>::Run); in TYPED_TEST()
934 TypeParam::Bind(&VoidPolymorphic<int[]>::Run); in TYPED_TEST()
936 TypeParam::Bind(&VoidPolymorphic<int[2]>::Run); in TYPED_TEST()
938 TypeParam::Bind(&VoidPolymorphic<int[][2]>::Run); in TYPED_TEST()
940 TypeParam::Bind(&VoidPolymorphic<int, int&>::Run, 1); in TYPED_TEST()
948 TypeParam::Bind(&RefArgSet); in TYPED_TEST()
964 TypeParam::Bind(&NoRef::VoidMethod0, Unretained(&no_ref)).Run(); in TYPED_TEST()
965 TypeParam::Bind(&NoRef::VoidConstMethod0, Unretained(&no_ref)).Run(); in TYPED_TEST()
966 TypeParam::Bind(&NoRef::VoidConstMethod0, Unretained(const_no_ref_ptr)).Run(); in TYPED_TEST()
976 TypeParam::Bind(&FunctionWithScopedRefptrFirstParam, in TYPED_TEST()
984 TypeParam::Bind(&NoRef::VoidMethod0, std::move(no_ref)).Run(); in TYPED_TEST()
1010 Callback<TypeParam()> callback = Bind(&PassThru<TypeParam>, Passed(&ptr)); in TYPED_TEST()
1021 Callback<TypeParam()> callback = Bind( in TYPED_TEST()
1035 Bind(&PassThru<TypeParam>, Passed(TypeParam(counter))); in TYPED_TEST()
1053 Callback<TypeParam(TypeParam)> cb_unbound = Bind(&PassThru<TypeParam>); in TYPED_TEST()
1078 base::Bind(&AcceptAndReturnMoveOnlyVector, Passed(&v)); in TEST_F()
1084 base::Bind(&AcceptAndReturnMoveOnlyVector); in TEST_F()
1099 Bind(&VoidPolymorphic<CopyCounter>::Run, counter); in TEST_F()
1105 Bind(&VoidPolymorphic<CopyCounter>::Run, CopyCounter(&copies, &assigns)); in TEST_F()
1111 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(counter); in TEST_F()
1117 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(CopyCounter(&copies, &assigns)); in TEST_F()
1124 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(CopyCounter(derived)); in TEST_F()
1130 Bind(&VoidPolymorphic<CopyCounter>::Run) in TEST_F()
1143 Bind(&VoidPolymorphic<const MoveCounter&>::Run, in TEST_F()
1153 Bind(&VoidPolymorphic<MoveCounter>::Run) in TEST_F()
1160 Bind(&VoidPolymorphic<MoveCounter>::Run) in TEST_F()
1179 Bind(&VoidPolymorphic<CopyMoveCounter>::Run, counter); in TEST_F()
1189 Bind(&VoidPolymorphic<CopyMoveCounter>::Run, in TEST_F()
1200 Bind(&VoidPolymorphic<CopyMoveCounter>::Run).Run(counter); in TEST_F()
1210 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1223 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1234 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1261 EXPECT_EQ(42, Bind([] { return 42; }).Run()); in TEST_F()
1262 EXPECT_EQ(42, Bind([](int i) { return i * 7; }, 6).Run()); in TEST_F()
1266 Bind([](int* x, int i) { *x *= i; }, Unretained(&x)); in TEST_F()
1437 Callback<int()> fastcall_cb = Bind(&FastCallFunc, 1); in TEST_F()
1440 Callback<int()> stdcall_cb = Bind(&StdCallFunc, 2); in TEST_F()
1498 EXPECT_DCHECK_DEATH(base::Bind(null_cb, 42)); in TEST()