Lines Matching refs:Has
234 TEST_F(SimpleIndexTest, Has) {
235 // Confirm the base index has dispatched the request for index entries.
239 // Confirm "Has()" always returns true before the callback is called.
240 EXPECT_TRUE(index()->Has(kKey1Hash));
242 EXPECT_TRUE(index()->Has(kKey1Hash));
245 EXPECT_TRUE(index()->Has(kKey1Hash));
249 // Confirm "Has() returns conditionally now.
250 EXPECT_FALSE(index()->Has(kKey1Hash));
252 EXPECT_TRUE(index()->Has(kKey1Hash));
257 // Confirm the base index has dispatched the request for index entries.
372 EXPECT_FALSE(index()->Has(kKey1Hash));
403 EXPECT_FALSE(index()->Has(kKey1Hash));
453 EXPECT_FALSE(index()->Has(kKey1Hash));
461 EXPECT_FALSE(index()->Has(kKey3Hash));
489 EXPECT_TRUE(index()->Has(kKey1Hash));
490 EXPECT_TRUE(index()->Has(kKey2Hash));
491 EXPECT_TRUE(index()->Has(kKey3Hash));
500 EXPECT_FALSE(index()->Has(kKey1Hash));
501 EXPECT_FALSE(index()->Has(kKey2Hash));
502 EXPECT_TRUE(index()->Has(kKey3Hash));