• Home
  • Raw
  • Download

Lines Matching refs:arrow

66   void CreateArrowFromTarget(Arrow** arrow, Target* target) {  in CreateArrowFromTarget()  argument
69 FROM_HERE, base::Bind(&BackgroundThread::DoCreateArrowFromTarget, arrow, in CreateArrowFromTarget()
74 void CreateArrowFromArrow(Arrow** arrow, const Arrow* other) { in CreateArrowFromArrow() argument
77 FROM_HERE, base::Bind(&BackgroundThread::DoCreateArrowFromArrow, arrow, in CreateArrowFromArrow()
114 Target* DeRef(const Arrow* arrow) { in DeRef() argument
118 arrow, &result, &completion)); in DeRef()
124 static void DoCreateArrowFromArrow(Arrow** arrow, in DoCreateArrowFromArrow() argument
127 *arrow = new Arrow; in DoCreateArrowFromArrow()
128 **arrow = *other; in DoCreateArrowFromArrow()
132 static void DoCreateArrowFromTarget(Arrow** arrow, in DoCreateArrowFromTarget() argument
135 *arrow = new Arrow; in DoCreateArrowFromTarget()
136 (*arrow)->target = target->AsWeakPtr(); in DoCreateArrowFromTarget()
140 static void DoDeRef(const Arrow* arrow, in DoDeRef() argument
143 *result = arrow->target.get(); in DoDeRef()
307 scoped_ptr<Arrow> arrow(OffThreadObjectCreator<Arrow>::NewObject()); in TEST() local
309 arrow->target = target.AsWeakPtr(); in TEST()
310 EXPECT_EQ(&target, arrow->target.get()); in TEST()
326 Arrow* arrow; in TEST() local
329 background.CreateArrowFromTarget(&arrow, target); in TEST()
330 EXPECT_EQ(background.DeRef(arrow), target); in TEST()
335 Arrow arrow; in TEST() local
336 arrow.target = target->AsWeakPtr(); in TEST()
339 EXPECT_EQ(target, background.DeRef(&arrow)); in TEST()
344 background.DeleteArrow(arrow); in TEST()
351 Arrow* arrow; in TEST() local
355 background.CreateArrowFromTarget(&arrow, &target); in TEST()
358 EXPECT_EQ(&target, background.DeRef(arrow)); in TEST()
361 arrow->target.reset(); in TEST()
364 arrow->target = target.AsWeakPtr(); in TEST()
367 EXPECT_EQ(&target, arrow->target.get()); in TEST()
372 delete arrow; in TEST()
379 Arrow arrow; in TEST() local
383 arrow.target = target->factory.GetWeakPtr(); in TEST()
384 EXPECT_EQ(target.get(), arrow.target.get()); in TEST()
387 EXPECT_EQ(NULL, arrow.target.get()); in TEST()
389 arrow.target = target->factory.GetWeakPtr(); in TEST()
391 EXPECT_EQ(target.get(), background.DeRef(&arrow)); in TEST()
407 Arrow arrow; in TEST() local
408 arrow.target = target.AsWeakPtr(); in TEST()
411 background.CreateArrowFromArrow(&arrow_copy, &arrow); in TEST()
427 Arrow arrow; in TEST() local
428 arrow.target = target.AsWeakPtr(); in TEST()
429 background.CreateArrowFromArrow(&arrow_copy, &arrow); in TEST()
446 Arrow arrow; in TEST() local
447 arrow.target = target.AsWeakPtr(); in TEST()
448 background.CreateArrowFromArrow(&arrow_copy, &arrow); in TEST()
458 Arrow *arrow = new Arrow(); in TEST() local
459 arrow->target = target.AsWeakPtr(); in TEST()
464 background.CopyAndAssignArrow(arrow); in TEST()
465 background.DeleteArrow(arrow); in TEST()
472 Arrow *arrow = new Arrow(); in TEST() local
473 arrow->target = target.AsWeakPtr(); in TEST()
478 background.CopyAndAssignArrowBase(arrow); in TEST()
479 background.DeleteArrow(arrow); in TEST()
486 Arrow* arrow = new Arrow(); in TEST() local
487 arrow->target = target.AsWeakPtr(); in TEST()
492 background.DeleteArrow(arrow); in TEST()
508 Arrow arrow; in TEST() local
509 arrow.target = target.AsWeakPtr(); in TEST()
513 background.CreateArrowFromArrow(&arrow_copy, &arrow); in TEST()
516 EXPECT_EQ(arrow.target.get(), arrow_copy->target.get()); in TEST()
535 Arrow arrow; in TEST() local
536 arrow.target = target.AsWeakPtr(); in TEST()
537 arrow.target.get(); in TEST()
542 ASSERT_DEATH(background.DeRef(&arrow), ""); in TEST()
553 Arrow arrow; in TEST() local
554 arrow.target = target->AsWeakPtr(); in TEST()
559 background.DeRef(&arrow); in TEST()
578 Arrow arrow; in TEST() local
579 arrow.target = target->AsWeakPtr(); in TEST()
580 arrow.target.get(); in TEST()
596 Arrow arrow; in TEST() local
597 arrow.target = target->AsWeakPtr(); in TEST()
605 ASSERT_DEATH(arrow.target.get(), ""); in TEST()