Searched refs:kNumEntries (Results 1 – 5 of 5) sorted by relevance
89 const int kNumEntries = 2000; in TEST_F() local90 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()
230 const int kNumEntries = 60000; in TEST_F() local231 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()
668 const int kNumEntries = 100; in BackendInvalidEntryWithLoad() local669 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 …]
124 const int kNumEntries = 30; in StressTheCache() local126 disk_cache::Entry* entries[kNumEntries] = {0}; in StressTheCache()137 int slot = rand() % kNumEntries; in StressTheCache()
433 const int kNumEntries = 1 << 14; in TEST() local434 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()