Home
last modified time | relevance | path

Searched refs:cache_result (Results 1 – 3 of 3) sorted by relevance

/external/cronet/net/dns/
Dmock_host_resolver.cc1020 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result; in ResolveFromIPLiteralOrCache() local
1024 cache_result = cache_->LookupStale(key, tick_clock_->NowTicks(), in ResolveFromIPLiteralOrCache()
1027 cache_result = cache_->Lookup(key, tick_clock_->NowTicks(), in ResolveFromIPLiteralOrCache()
1030 if (cache_result) { in ResolveFromIPLiteralOrCache()
1031 rv = cache_result->second.error(); in ResolveFromIPLiteralOrCache()
1033 *out_endpoints = cache_result->second.GetEndpoints().value(); in ResolveFromIPLiteralOrCache()
1035 if (cache_result->second.aliases()) { in ResolveFromIPLiteralOrCache()
1036 *out_aliases = *cache_result->second.aliases(); in ResolveFromIPLiteralOrCache()
1046 HostCache::Entry new_entry(cache_result->second); in ResolveFromIPLiteralOrCache()
Dhost_resolver_manager_unittest.cc723 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result = in TEST_F() local
728 EXPECT_TRUE(cache_result); in TEST_F()
752 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result = in TEST_F() local
757 EXPECT_TRUE(cache_result); in TEST_F()
993 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result = in TEST_F() local
998 EXPECT_FALSE(cache_result); in TEST_F()
2812 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result = in TEST_F() local
2816 EXPECT_FALSE(cache_result); in TEST_F()
6349 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result = in TEST_F() local
6351 EXPECT_TRUE(!!cache_result); in TEST_F()
[all …]
Dhost_resolver_manager.cc3481 const std::pair<const HostCache::Key, HostCache::Entry>* cache_result; in MaybeServeFromCache() local
3484 cache_result = cache->LookupStale(effective_key, tick_clock_->NowTicks(), in MaybeServeFromCache()
3488 cache_result = in MaybeServeFromCache()
3492 if (cache_result) { in MaybeServeFromCache()
3496 [&] { return NetLogResults(cache_result->second); }); in MaybeServeFromCache()
3497 return cache_result->second; in MaybeServeFromCache()