Lines Matching refs:key1
280 HostCache::Key key1("foobar.com", ADDRESS_FAMILY_UNSPECIFIED, 0);
283 const HostCache::Entry* entry1 = NULL; // Entry for key1
289 EXPECT_TRUE(cache.Lookup(key1, base::TimeTicks()) == NULL);
290 cache.Set(key1, OK, AddressList(), now);
291 entry1 = cache.Lookup(key1, base::TimeTicks());
315 HostCache::Key key1("foobar.com", ADDRESS_FAMILY_IPV4, 0);
321 const HostCache::Entry* entry1 = NULL; // Entry for key1
328 EXPECT_TRUE(cache.Lookup(key1, base::TimeTicks()) == NULL);
329 cache.Set(key1, OK, AddressList(), now);
330 entry1 = cache.Lookup(key1, base::TimeTicks());
395 HostCache::Key key1;
399 // -1 means key1 is less than key2
400 // 0 means key1 equals key2
401 // 1 means key1 is greater than key2
458 const HostCache::Key& key1 = tests[i].key1;
463 EXPECT_TRUE(key1
464 EXPECT_FALSE(key2 < key1);
465 EXPECT_FALSE(key2 == key1);
468 EXPECT_FALSE(key1 < key2);
469 EXPECT_FALSE(key2 < key1);
470 EXPECT_TRUE(key2 == key1);
473 EXPECT_FALSE(key1 < key2);
474 EXPECT_TRUE(key2 < key1);
475 EXPECT_FALSE(key2 == key1);