• Home
  • Raw
  • Download

Lines Matching refs:Bind

365   Callback<int(int, int, int)> cb = Bind(&Sum, 32, 16, 8);  in TEST_F()
368 Callback<int(int, int, int, int, int, int)> c1 = Bind(&Sum); in TEST_F()
371 Callback<int(int, int, int)> c2 = Bind(c1, 32, 16, 8); in TEST_F()
374 Callback<int()> c3 = Bind(c2, 4, 2, 1); in TEST_F()
634 Bind(&FunctionWithWeakFirstParam, weak_factory.GetWeakPtr()); in TEST_F()
756 Bind(F&& f, Args&&... args) { in Bind() function
768 Bind(F&& f, Args&&... args) { in Bind() function
805 ClosureType normal_cb = TypeParam::Bind(&VoidFunc0); in TYPED_TEST()
807 TypeParam::Bind(&PolymorphicIdentity<NoRef*>, &no_ref); in TYPED_TEST()
811 ClosureType method_cb = TypeParam::Bind(&HasRef::VoidMethod0, &has_ref); in TYPED_TEST()
812 ClosureType method_refptr_cb = TypeParam::Bind(&HasRef::VoidMethod0, in TYPED_TEST()
815 TypeParam::Bind(&HasRef::VoidConstMethod0, &has_ref); in TYPED_TEST()
817 TypeParam::Bind(&HasRef::VoidConstMethod0, const_has_ref_ptr); in TYPED_TEST()
825 ClosureType virtual_set_cb = TypeParam::Bind(&Parent::VirtualSet, &child); in TYPED_TEST()
831 TypeParam::Bind(&Parent::NonVirtualSet, &child); in TYPED_TEST()
857 CallbackType<TypeParam, int()> normal_cb = TypeParam::Bind(&IntFunc0); in TYPED_TEST()
859 TypeParam::Bind(&HasRef::IntMethod0, &has_ref); in TYPED_TEST()
861 TypeParam::Bind(&HasRef::IntConstMethod0, &has_ref); in TYPED_TEST()
863 TypeParam::Bind(&HasRef::IntConstMethod0, const_has_ref_ptr); in TYPED_TEST()
865 TypeParam::Bind(&HasRef::UniquePtrMethod0, &has_ref); in TYPED_TEST()
887 EXPECT_EQ(n, TypeParam::Bind(&Identity, n).Run()); in TYPED_TEST()
888 EXPECT_EQ(&n, TypeParam::Bind(&PolymorphicIdentity<int*>, &n).Run()); in TYPED_TEST()
889 EXPECT_EQ(3, TypeParam::Bind(&Identity, 3).Run()); in TYPED_TEST()
890 EXPECT_STREQ("hi", TypeParam::Bind(&CStringIdentity, "hi").Run()); in TYPED_TEST()
891 EXPECT_EQ(4, TypeParam::Bind(&PolymorphicIdentity<int>, 4).Run()); in TYPED_TEST()
895 EXPECT_EQ(5, TypeParam::Bind(&UnwrapNoRefParent, p).Run()); in TYPED_TEST()
899 TypeParam::Bind(&PolymorphicIdentity<IncompleteType*>, in TYPED_TEST()
904 EXPECT_EQ(6, TypeParam::Bind(&UnwrapNoRefParent, c).Run()); in TYPED_TEST()
907 EXPECT_EQ(7, TypeParam::Bind(&UnwrapNoRefParentPtr, &c).Run()); in TYPED_TEST()
910 EXPECT_EQ(8, TypeParam::Bind(&UnwrapNoRefParentConstRef, c).Run()); in TYPED_TEST()
923 TypeParam::Bind(&VoidPolymorphic<int>::Run); in TYPED_TEST()
925 TypeParam::Bind(&VoidPolymorphic<int*>::Run); in TYPED_TEST()
927 TypeParam::Bind(&VoidPolymorphic<int&>::Run); in TYPED_TEST()
929 TypeParam::Bind(&VoidPolymorphic<const int&>::Run); in TYPED_TEST()
931 TypeParam::Bind(&VoidPolymorphic<int[]>::Run); in TYPED_TEST()
933 TypeParam::Bind(&VoidPolymorphic<int[2]>::Run); in TYPED_TEST()
935 TypeParam::Bind(&VoidPolymorphic<int[][2]>::Run); in TYPED_TEST()
937 TypeParam::Bind(&VoidPolymorphic<int, int&>::Run, 1); in TYPED_TEST()
945 TypeParam::Bind(&RefArgSet); in TYPED_TEST()
961 TypeParam::Bind(&NoRef::VoidMethod0, Unretained(&no_ref)).Run(); in TYPED_TEST()
962 TypeParam::Bind(&NoRef::VoidConstMethod0, Unretained(&no_ref)).Run(); in TYPED_TEST()
963 TypeParam::Bind(&NoRef::VoidConstMethod0, Unretained(const_no_ref_ptr)).Run(); in TYPED_TEST()
973 TypeParam::Bind(&FunctionWithScopedRefptrFirstParam, in TYPED_TEST()
981 TypeParam::Bind(&NoRef::VoidMethod0, std::move(no_ref)).Run(); in TYPED_TEST()
1007 Callback<TypeParam()> callback = Bind(&PassThru<TypeParam>, Passed(&ptr)); in TYPED_TEST()
1018 Callback<TypeParam()> callback = Bind( in TYPED_TEST()
1032 Bind(&PassThru<TypeParam>, Passed(TypeParam(counter))); in TYPED_TEST()
1050 Callback<TypeParam(TypeParam)> cb_unbound = Bind(&PassThru<TypeParam>); in TYPED_TEST()
1075 base::Bind(&AcceptAndReturnMoveOnlyVector, Passed(&v)); in TEST_F()
1081 base::Bind(&AcceptAndReturnMoveOnlyVector); in TEST_F()
1096 Bind(&VoidPolymorphic<CopyCounter>::Run, counter); in TEST_F()
1102 Bind(&VoidPolymorphic<CopyCounter>::Run, CopyCounter(&copies, &assigns)); in TEST_F()
1108 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(counter); in TEST_F()
1114 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(CopyCounter(&copies, &assigns)); in TEST_F()
1121 Bind(&VoidPolymorphic<CopyCounter>::Run).Run(CopyCounter(derived)); in TEST_F()
1127 Bind(&VoidPolymorphic<CopyCounter>::Run) in TEST_F()
1140 Bind(&VoidPolymorphic<const MoveCounter&>::Run, in TEST_F()
1150 Bind(&VoidPolymorphic<MoveCounter>::Run) in TEST_F()
1157 Bind(&VoidPolymorphic<MoveCounter>::Run) in TEST_F()
1176 Bind(&VoidPolymorphic<CopyMoveCounter>::Run, counter); in TEST_F()
1186 Bind(&VoidPolymorphic<CopyMoveCounter>::Run, in TEST_F()
1197 Bind(&VoidPolymorphic<CopyMoveCounter>::Run).Run(counter); in TEST_F()
1207 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1220 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1231 Bind(&VoidPolymorphic<CopyMoveCounter>::Run) in TEST_F()
1258 EXPECT_EQ(42, Bind([] { return 42; }).Run()); in TEST_F()
1259 EXPECT_EQ(42, Bind([](int i) { return i * 7; }, 6).Run()); in TEST_F()
1263 Bind([](int* x, int i) { *x *= i; }, Unretained(&x)); in TEST_F()
1403 Callback<int()> fastcall_cb = Bind(&FastCallFunc, 1); in TEST_F()
1406 Callback<int()> stdcall_cb = Bind(&StdCallFunc, 2); in TEST_F()
1415 EXPECT_DCHECK_DEATH(base::Bind(null_cb, 42)); in TEST()