457 NoLinearSearchSet<RetainPtr<
const PseudoRetainable>, std::less<>> the_set;
466 the_set.insert(const_ptr1);
473 EXPECT_NE(the_set.end(), the_set.find(&obj1));
474 EXPECT_EQ(the_set.end(), the_set.find(&obj2));
475 EXPECT_TRUE(pdfium::Contains(the_set, &obj1));
476 EXPECT_FALSE(pdfium::Contains(the_set, &obj2));
482 EXPECT_NE(the_set.end(), the_set.find(const_ptr1));
483 EXPECT_EQ(the_set.end(), the_set.find(const_ptr2));
484 EXPECT_TRUE(pdfium::Contains(the_set, const_ptr1));
485 EXPECT_FALSE(pdfium::Contains(the_set, const_ptr2));
492 EXPECT_NE(the_set.end(), the_set.find(ptr1));
493 EXPECT_EQ(the_set.end(), the_set.find(ptr2));
494 EXPECT_TRUE(pdfium::Contains(the_set, ptr1));
495 EXPECT_FALSE(pdfium::Contains(the_set, ptr2));
507 std::vector<
const PseudoRetainable*> vec;
508 vec.push_back(&obj1);
509 EXPECT_TRUE(pdfium::Contains(vec, &obj1));
510 EXPECT_FALSE(pdfium::Contains(vec, &obj2));
514 EXPECT_TRUE(pdfium::Contains(vec, ptr1));
515 EXPECT_FALSE(pdfium::Contains(vec, ptr2));
519 EXPECT_TRUE(pdfium::Contains(vec, const_ptr1));
520 EXPECT_FALSE(pdfium::Contains(vec, const_ptr2));