Home
last modified time | relevance | path

Searched refs:cache_impl_ (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dregexp_cache.cc35 cache_impl_(new CacheImpl(min_items)) in RegExpCache()
37 cache_impl_(new CacheImpl()) in RegExpCache()
44 it = cache_impl_->begin(); it != cache_impl_->end(); ++it) { in ~RegExpCache()
51 CacheImpl::const_iterator it = cache_impl_->find(pattern); in GetRegExp()
52 if (it != cache_impl_->end()) return *it->second; in GetRegExp()
55 cache_impl_->insert(make_pair(pattern, regexp)); in GetRegExp()
Dregexp_cache.h69 scoped_ptr<CacheImpl> cache_impl_; // protected by lock_ variable
/external/chromium_org/net/disk_cache/
Ddisk_cache_test_base.cc70 : cache_impl_(NULL), in DiskCacheTestWithCache()
104 int rv = cache_impl_->FlushQueueForTest(cb.callback()); in SimulateCrash()
106 cache_impl_->ClearRefCountForTest(); in SimulateCrash()
116 cache_impl_->SetUnitTestMode(); in SetTestMode()
124 if (cache_impl_) in SetMaxSize()
125 EXPECT_TRUE(cache_impl_->SetMaxSize(size)); in SetMaxSize()
176 if (memory_only_ || !cache_impl_) in FlushQueueForTest()
180 int rv = cache_impl_->FlushQueueForTest(cb.callback()); in FlushQueueForTest()
185 if (memory_only_ || !cache_impl_) { in RunTaskForTest()
191 int rv = cache_impl_->RunTaskForTest(closure, cb.callback()); in RunTaskForTest()
[all …]
Dbackend_unittest.cc1705 cache_impl_ = NULL; in BackendTransaction()
2994 disk_cache::BackendImpl* backend_ = cache_impl_; // Needed be the macro. in TEST_F()
3033 EXPECT_EQ(0, cache_impl_->GetTotalBuffersSize()); in TEST_F()
3041 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()
3042 EXPECT_EQ(kOneMB, cache_impl_->GetTotalBuffersSize()); in TEST_F()
3044 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()
3045 EXPECT_EQ(kOneMB * 2, cache_impl_->GetTotalBuffersSize()); in TEST_F()
3047 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()
3048 EXPECT_EQ(kOneMB * 3, cache_impl_->GetTotalBuffersSize()); in TEST_F()
3050 cache_impl_->BufferDeleted(kOneMB); in TEST_F()
[all …]
Ddisk_cache_test_base.h162 disk_cache::BackendImpl* cache_impl_; variable
Dentry_unittest.cc444 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
604 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
633 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
901 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
983 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
1038 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
1133 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
1263 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
1399 cache_impl_->SetFlags(disk_cache::kNoBuffering); in TEST_F()
1580 base::FilePath name = cache_impl_->GetFileName(address); in TEST_F()