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

Unified Diff: base/metrics/histogram_delta_serialization_unittest.cc

Issue 2036643004: Create ForTesting method rather than declaring a dozen "friend" classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 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
« no previous file with comments | « base/metrics/histogram_base_unittest.cc ('k') | base/metrics/histogram_snapshot_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_delta_serialization_unittest.cc
diff --git a/base/metrics/histogram_delta_serialization_unittest.cc b/base/metrics/histogram_delta_serialization_unittest.cc
index 80a70096716908312467e4fbcc94dacf859add23..719bc70970f63b3fbe3aceb8e6a6afa1d5d215e5 100644
--- a/base/metrics/histogram_delta_serialization_unittest.cc
+++ b/base/metrics/histogram_delta_serialization_unittest.cc
@@ -14,7 +14,8 @@
namespace base {
TEST(HistogramDeltaSerializationTest, DeserializeHistogramAndAddSamples) {
- StatisticsRecorder statistic_recorder;
+ std::unique_ptr<StatisticsRecorder> statistic_recorder(
+ StatisticsRecorder::CreateTemporaryForTesting());
HistogramDeltaSerialization serializer("HistogramDeltaSerializationTest");
std::vector<std::string> deltas;
// Nothing was changed yet.
« no previous file with comments | « base/metrics/histogram_base_unittest.cc ('k') | base/metrics/histogram_snapshot_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698