Home
last modified time | relevance | path

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

/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Drealloc_unittest.cc105 const int kNumEntries = 1 << 14; in main() local
106 int** p = (int**)malloc(sizeof(*p) * kNumEntries); in main()
108 for (int i = 0; i < kNumEntries; i++) { in main()
112 for (int i = 0; i < kNumEntries; i++) { in main()
115 for (int i = 0; i < kNumEntries; i++) { in main()
119 CHECK_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even in main()
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Drealloc_unittest.cc105 const int kNumEntries = 1 << 14; in main() local
106 int** p = (int**)malloc(sizeof(*p) * kNumEntries); in main()
108 for (int i = 0; i < kNumEntries; i++) { in main()
112 for (int i = 0; i < kNumEntries; i++) { in main()
115 for (int i = 0; i < kNumEntries; i++) { in main()
119 CHECK_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even in main()
/external/skia/tests/
DRandomTest.cpp108 const int kNumEntries = kN >> 5; // dividing by 32 in test_single_gorilla() local
109 unsigned int entries[kNumEntries]; in test_single_gorilla()
112 memset(entries, 0, sizeof(unsigned int)*kNumEntries); in test_single_gorilla()
127 int index = value & (kNumEntries-1); in test_single_gorilla()
128 SkASSERT(index < kNumEntries); in test_single_gorilla()
135 for (int i = 0; i < kNumEntries; ++i) { in test_single_gorilla()
/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_org/net/disk_cache/
Dblock_files_unittest.cc88 const int kNumEntries = 2000; in TEST_F() local
89 CacheAddr entries[kNumEntries]; in TEST_F()
93 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
100 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
101 int source1 = rand() % kNumEntries; in TEST_F()
102 int source2 = rand() % kNumEntries; in TEST_F()
108 for (int i = 0; i < kNumEntries / 2; i++) { in TEST_F()
116 Addr address(entries[kNumEntries / 2]); in TEST_F()
Ddisk_cache_perftest.cc223 const int kNumEntries = 60000; in TEST_F() local
224 disk_cache::Addr* address = new disk_cache::Addr[kNumEntries]; in TEST_F()
229 for (int i = 0; i < kNumEntries; i++) { in TEST_F()
238 int entry = rand() * (kNumEntries / RAND_MAX + 1); in TEST_F()
239 if (entry >= kNumEntries) in TEST_F()
Dstress_cache.cc143 const int kNumEntries = 30; in StressTheCache() local
145 disk_cache::Entry* entries[kNumEntries] = {0}; in StressTheCache()
156 int slot = rand() % kNumEntries; in StressTheCache()
Dbackend_unittest.cc238 const int kNumEntries = 10; in CreateSetOfRandomEntries() local
240 for (int i = 0; i < kNumEntries; ++i) { in CreateSetOfRandomEntries()
1040 const int kNumEntries = 100; in BackendInvalidEntryWithLoad() local
1041 disk_cache::Entry* entries[kNumEntries]; in BackendInvalidEntryWithLoad()
1042 for (int i = 0; i < kNumEntries; i++) { in BackendInvalidEntryWithLoad()
1046 EXPECT_EQ(kNumEntries, cache_->GetEntryCount()); in BackendInvalidEntryWithLoad()
1048 for (int i = 0; i < kNumEntries; i++) { in BackendInvalidEntryWithLoad()
1049 int source1 = rand() % kNumEntries; in BackendInvalidEntryWithLoad()
1050 int source2 = rand() % kNumEntries; in BackendInvalidEntryWithLoad()
1056 std::string keys[kNumEntries]; in BackendInvalidEntryWithLoad()
[all …]
/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()
/external/chromium_org/base/allocator/
Dallocator_unittests.cc432 const int kNumEntries = 1 << 14; in TEST() local
433 int** p = reinterpret_cast<int**>(malloc(sizeof(*p) * kNumEntries)); in TEST()
435 for (int i = 0; i < kNumEntries; i++) { in TEST()
440 for (int i = 0; i < kNumEntries; i++) { in TEST()
443 for (int i = 0; i < kNumEntries; i++) { in TEST()
447 EXPECT_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even in TEST()
/external/chromium_org/net/socket/
Dssl_session_cache_openssl_unittest.cc336 const size_t kNumEntries = 20; in TEST_F() local
344 for (size_t n = 0; n < kNumEntries - 1U; ++n) { in TEST_F()
353 EXPECT_EQ(kNumEntries - 1U, cache_.size()); in TEST_F()
360 EXPECT_EQ(kNumEntries, cache_.size()); in TEST_F()
367 EXPECT_EQ(kNumEntries, cache_.size()); in TEST_F()
/external/chromium_org/gpu/command_buffer/service/
Dcmd_parser_test.cc225 const unsigned int kNumEntries = 5; in TEST_F() local
226 scoped_ptr<CommandParser> parser(MakeParser(kNumEntries)); in TEST_F()
231 EXPECT_FALSE(parser->set_get(kNumEntries)); in TEST_F()
/external/chromium_org/third_party/leveldatabase/
Denv_chromium.cc322 case kNumEntries: in MethodIDToString()
1066 return base::LinearHistogram::FactoryGet(uma_name, 1, kNumEntries, in GetMethodIOErrorHistogram()
1067 kNumEntries + 1, base::Histogram::kUmaTargetedHistogramFlag); in GetMethodIOErrorHistogram()
1114 return base::LinearHistogram::FactoryGet(uma_name, 1, kNumEntries, in GetRecoveredFromErrorHistogram()
1115 kNumEntries + 1, base::Histogram::kUmaTargetedHistogramFlag); in GetRecoveredFromErrorHistogram()
Denv_chromium.h45 kNumEntries enumerator
/external/chromium_org/content/browser/indexed_db/leveldb/
Dleveldb_database.cc187 leveldb_env::kNumEntries, in ParseAndHistogramIOErrorDetails()
188 leveldb_env::kNumEntries + 1, in ParseAndHistogramIOErrorDetails()