Home
last modified time | relevance | path

Searched refs:kNumEntries (Results 1 – 5 of 5) sorted by relevance

/external/chromium/net/disk_cache/
Dblock_files_unittest.cc89 const int kNumEntries = 2000; in TEST_F() local
90 CacheAddr entries[kNumEntries]; in TEST_F()
94 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
101 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
102 int source1 = rand() % kNumEntries; in TEST_F()
103 int source2 = rand() % kNumEntries; in TEST_F()
109 for (int i = 0; i < kNumEntries / 2; i++) { in TEST_F()
117 Addr address(entries[kNumEntries / 2]); in TEST_F()
Ddisk_cache_perftest.cc230 const int kNumEntries = 60000; in TEST_F() local
231 disk_cache::Addr* address = new disk_cache::Addr[kNumEntries]; in TEST_F()
236 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
245 int entry = rand() * (kNumEntries / RAND_MAX + 1); in TEST_F()
246 if (entry >= kNumEntries) in TEST_F()
Dbackend_unittest.cc668 const int kNumEntries = 100; in BackendInvalidEntryWithLoad() local
669 disk_cache::Entry* entries[kNumEntries]; in BackendInvalidEntryWithLoad()
670 for (int i = 0; i < kNumEntries; i++) { in BackendInvalidEntryWithLoad()
674 EXPECT_EQ(kNumEntries, cache_->GetEntryCount()); in BackendInvalidEntryWithLoad()
676 for (int i = 0; i < kNumEntries; i++) { in BackendInvalidEntryWithLoad()
677 int source1 = rand() % kNumEntries; in BackendInvalidEntryWithLoad()
678 int source2 = rand() % kNumEntries; in BackendInvalidEntryWithLoad()
684 std::string keys[kNumEntries]; in BackendInvalidEntryWithLoad()
685 for (int i = 0; i < kNumEntries; i++) { in BackendInvalidEntryWithLoad()
687 if (i < kNumEntries / 2) in BackendInvalidEntryWithLoad()
[all …]
Dstress_cache.cc124 const int kNumEntries = 30; in StressTheCache() local
126 disk_cache::Entry* entries[kNumEntries] = {0}; in StressTheCache()
137 int slot = rand() % kNumEntries; in StressTheCache()
/external/chromium/base/allocator/
Dallocator_unittests.cc433 const int kNumEntries = 1 << 14; in TEST() local
434 int** p = reinterpret_cast<int**>(malloc(sizeof(*p) * kNumEntries)); in TEST()
436 for (int i = 0; i < kNumEntries; i++) { in TEST()
441 for (int i = 0; i < kNumEntries; i++) { in TEST()
444 for (int i = 0; i < kNumEntries; i++) { in TEST()
448 EXPECT_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even in TEST()