• Home
  • Raw
  • Download

Lines Matching refs:BindOnce

421   OnceCallback<int(int)> c0 = BindOnce(&Sum, 1, 2, 4, 8, 16);  in TEST_F()
431 c0 = BindOnce(&Sum, 2, 3, 5, 7, 11); in TEST_F()
435 OnceCallback<int()> c1 = BindOnce(std::move(c0), 13); in TEST_F()
439 EXPECT_EQ(41, BindOnce(c2, 13).Run()); in TEST_F()
493 OnceClosure normal_func_cb = BindOnce(IgnoreResult(&IntFunc0)); in TEST_F()
497 BindOnce(IgnoreResult(&HasRef::IntMethod0), &has_ref_); in TEST_F()
501 BindOnce(IgnoreResult(&HasRef::IntConstMethod0), &has_ref_); in TEST_F()
508 BindOnce(IgnoreResult(&NoRef::IntMethod0), in TEST_F()
511 BindOnce(IgnoreResult(&NoRef::IntConstMethod0), in TEST_F()
544 OnceCallback<int()> ref_copies_cb = BindOnce(&Identity, ref_n); in TEST_F()
549 BindOnce(&Identity, const_ref_n); in TEST_F()
577 OnceCallback<int()> array_cb = BindOnce(&ArrayGet, array, 1); in TEST_F()
579 BindOnce(&ArrayGet, *const_array_ptr, 1); in TEST_F()
631 BindOnce(&NoRef::VoidMethod0, weak_factory.GetWeakPtr()); in TEST_F()
633 BindOnce(&NoRef::VoidConstMethod0, const_weak_factory.GetWeakPtr()); in TEST_F()
635 BindOnce(&NoRef::VoidConstMethod0, const_weak_factory.GetWeakPtr()); in TEST_F()
682 OnceCallback<int()> copy_cb = BindOnce(&Identity, n); in TEST_F()
683 OnceCallback<int()> const_ref_cb = BindOnce(&Identity, ConstRef(n)); in TEST_F()
694 BindOnce(&GetCopies, ConstRef(counter)); in TEST_F()
734 BindOnce(&PolymorphicIdentity<DeleteCounter*>, Owned(counter)); in TEST_F()
742 BindOnce(&DeleteCounter::VoidMethod0, Owned(counter)); in TEST_F()
772 return BindOnce(std::forward<F>(f), std::forward<Args>(args)...); in Bind()
1290 EXPECT_EQ(42, BindOnce(EmptyFunctor()).Run()); in TEST_F()
1291 EXPECT_EQ(42, BindOnce(EmptyFunctorConst()).Run()); in TEST_F()
1310 OnceClosure cb3 = BindOnce(cb, 8); in TEST_F()
1313 BindOnce(&NoRef::VoidMethodWithIntArg, weak_factory.GetWeakPtr()); in TEST_F()
1316 OnceClosure cb5 = BindOnce(std::move(cb4), 8); in TEST_F()
1399 OnceClosure cb = BindOnce(&VoidPolymorphic<>::Run); in TEST_F()
1413 BindOnce(&VoidPolymorphic<std::unique_ptr<int>, int>::Run, in TEST_F()
1415 BindOnce(std::move(cb4), 1).Run(); in TEST_F()
1485 EXPECT_EQ(42, base::BindOnce(&Noexcept).Run()); in TEST_F()
1488 base::BindOnce(&BindTest::NoexceptMethod, base::Unretained(this)).Run()); in TEST_F()
1490 42, base::BindOnce(&BindTest::ConstNoexceptMethod, base::Unretained(this)) in TEST_F()