Home
last modified time | relevance | path

Searched refs:kTestCreateCount (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/metrics/
Dsparse_histogram_unittest.cc285 const int kTestCreateCount = 1 << 10; // Must be power-of-2. in TEST_P() local
291 for (int i = 0; i < kTestCreateCount; ++i) { in TEST_P()
293 StringPrintf("TestHistogram.%d", i % kTestCreateCount)); in TEST_P()
298 for (int i = 0; i < kTestCreateCount; ++i) in TEST_P()
303 VLOG(1) << kTestCreateCount << " histogram creations took " << create_ms in TEST_P()
305 << (create_ms * 1000000) / kTestCreateCount in TEST_P()
315 static_assert(i_mult < INT_MAX / kTestCreateCount, "Multiplier too big"); in TEST_P()
316 int index = (i * i_mult) & (kTestCreateCount - 1); in TEST_P()
Dhistogram_unittest.cc683 const int kTestCreateCount = 1 << 14; // Must be power-of-2. in TEST_P() local
689 for (int i = 0; i < kTestCreateCount; ++i) { in TEST_P()
691 StringPrintf("TestHistogram.%d", i % kTestCreateCount)); in TEST_P()
696 for (int i = 0; i < kTestCreateCount; ++i) { in TEST_P()
703 VLOG(1) << kTestCreateCount << " histogram creations took " << create_ms in TEST_P()
705 << (create_ms * 1000000) / kTestCreateCount in TEST_P()
715 static_assert(i_mult < INT_MAX / kTestCreateCount, "Multiplier too big"); in TEST_P()
716 int index = (i * i_mult) & (kTestCreateCount - 1); in TEST_P()