Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: base/metrics/statistics_recorder_unittest.cc

Issue 1780993002: Break global impact of PersistentHistogramAllocator into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-hp
Patch Set: addressed review comments by Alexei Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/metrics/statistics_recorder_unittest.cc
diff --git a/base/metrics/statistics_recorder_unittest.cc b/base/metrics/statistics_recorder_unittest.cc
index 073cbb1616458913b3c930cf7b5082b84025749a..c98ce9c4d79e45d9d92d9f4d5db94eeca301754b 100644
--- a/base/metrics/statistics_recorder_unittest.cc
+++ b/base/metrics/statistics_recorder_unittest.cc
@@ -31,7 +31,7 @@ class StatisticsRecorderTest : public testing::Test {
void TearDown() override {
UninitializeStatisticsRecorder();
- PersistentHistogramAllocator::ReleaseGlobalAllocatorForTesting();
+ GlobalHistogramAllocator::ReleaseForTesting();
}
void InitializeStatisticsRecorder() {
@@ -325,8 +325,7 @@ TEST_F(StatisticsRecorderTest, ToJSON) {
TEST_F(StatisticsRecorderTest, IterationTest) {
StatisticsRecorder::Histograms registered_histograms;
LOCAL_HISTOGRAM_COUNTS("TestHistogram.IterationTest1", 30);
- PersistentHistogramAllocator::CreateGlobalAllocatorOnLocalMemory(
- 64 << 10 /* 64 KiB */, 0, "");
+ GlobalHistogramAllocator::CreateWithLocalMemory(64 << 10 /* 64 KiB */, 0, "");
LOCAL_HISTOGRAM_COUNTS("TestHistogram.IterationTest2", 30);
StatisticsRecorder::HistogramIterator i1 = StatisticsRecorder::begin(true);

Powered by Google App Engine
This is Rietveld 408576698