Home
last modified time | relevance | path

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

/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.cc245 PersistentMemoryAllocator::Reference ranges_ref; member
358 PersistentMemoryAllocator::Reference ranges_ref = in AllocateHistogram() local
360 if (!ranges_ref) { in AllocateHistogram()
363 ranges_ref = in AllocateHistogram()
365 if (ranges_ref) { in AllocateHistogram()
368 ranges_ref, kTypeIdRangesArray, ranges_count); in AllocateHistogram()
372 bucket_ranges->set_persistent_reference(ranges_ref); in AllocateHistogram()
375 ranges_ref = PersistentMemoryAllocator::kReferenceNull; in AllocateHistogram()
379 DCHECK_EQ(kTypeIdRangesArray, memory_allocator_->GetType(ranges_ref)); in AllocateHistogram()
387 if (ranges_ref && histogram_data) { in AllocateHistogram()
[all …]
Dpersistent_histogram_allocator_unittest.cc348 const uint32_t ranges_ref = static_cast<Histogram*>(histogram1) in TEST_F() local
351 ASSERT_NE(0U, ranges_ref); in TEST_F()
352 EXPECT_EQ(ranges_ref, static_cast<Histogram*>(histogram2) in TEST_F()
371 EXPECT_EQ(ranges_ref, data1[kRangesRefIndex]); in TEST_F()
372 EXPECT_EQ(ranges_ref, data2[kRangesRefIndex]); in TEST_F()