Lines Matching refs:HostCache
23 HostCache::Key Key(const std::string& hostname) {
24 return HostCache::Key(hostname, ADDRESS_FAMILY_UNSPECIFIED, 0);
30 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
35 const HostCache::Entry* entry1 = NULL; // Entry for foobar.com.
36 const HostCache::Entry* entry2 = NULL; // Entry for foobar2.com.
90 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
112 HostCache cache(kMaxCacheEntries,
119 const HostCache::Entry* entry1 = NULL; // Entry for foobar.com.
120 const HostCache::Entry* entry2 = NULL; // Entry for foobar2.com.
173 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
239 HostCache cache(3, kSuccessEntryTTL, kFailureEntryTTL);
275 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
280 HostCache::Key key1("foobar.com", ADDRESS_FAMILY_UNSPECIFIED, 0);
281 HostCache::Key key2("foobar.com", ADDRESS_FAMILY_IPV4, 0);
283 const HostCache::Entry* entry1 = NULL; // Entry for key1
284 const HostCache::Entry* entry2 = NULL; // Entry for key2
310 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
315 HostCache::Key key1("foobar.com", ADDRESS_FAMILY_IPV4, 0);
316 HostCache::Key key2("foobar.com", ADDRESS_FAMILY_IPV4,
318 HostCache::Key key3("foobar.com", ADDRESS_FAMILY_IPV4,
321 const HostCache::Entry* entry1 = NULL; // Entry for key1
322 const HostCache::Entry* entry2 = NULL; // Entry for key2
323 const HostCache::Entry* entry3 = NULL; // Entry for key3
357 HostCache cache(0, kSuccessEntryTTL, kFailureEntryTTL);
372 HostCache cache(kMaxCacheEntries, kSuccessEntryTTL, kFailureEntryTTL);
391 // Tests the less than and equal operators for HostCache::Key work.
395 HostCache::Key key1;
396 HostCache::Key key2;
405 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
406 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
410 HostCache::Key("host1", ADDRESS_FAMILY_IPV4, 0),
411 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
415 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
416 HostCache::Key("host1", ADDRESS_FAMILY_IPV4, 0),
420 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
421 HostCache::Key("host2", ADDRESS_FAMILY_UNSPECIFIED, 0),
425 HostCache::Key("host1", ADDRESS_FAMILY_IPV4, 0),
426 HostCache::Key("host2", ADDRESS_FAMILY_UNSPECIFIED, 0),
430 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
431 HostCache::Key("host2", ADDRESS_FAMILY_IPV4, 0),
435 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
436 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED,
441 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED,
443 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED, 0),
447 HostCache::Key("host1", ADDRESS_FAMILY_UNSPECIFIED,
449 HostCache::Key("host2", ADDRESS_FAMILY_UNSPECIFIED,
458 const HostCache::Key& key1 = tests[i].key1;
459 const HostCache::Key& key2 = tests[i].key2;