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

Unified Diff: net/url_request/url_request_throttler_unittest.cc

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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 | « net/socket_stream/socket_stream_metrics_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_throttler_unittest.cc
diff --git a/net/url_request/url_request_throttler_unittest.cc b/net/url_request/url_request_throttler_unittest.cc
index 998fb064b6dd8c460cca4400823ca74b4e33fcbc..bb010c385b1043dc2a5709d1d3a8154f83b2ab04 100644
--- a/net/url_request/url_request_throttler_unittest.cc
+++ b/net/url_request/url_request_throttler_unittest.cc
@@ -29,6 +29,7 @@ namespace net {
namespace {
using base::Histogram;
+using base::HistogramBase;
using base::HistogramSamples;
using base::StatisticsRecorder;
@@ -211,7 +212,7 @@ void URLRequestThrottlerEntryTest::SetUp() {
// Must retrieve original samples for each histogram for comparison
// as other tests may affect them.
const char* name = kHistogramNames[i];
- Histogram* histogram = StatisticsRecorder::FindHistogram(name);
+ HistogramBase* histogram = StatisticsRecorder::FindHistogram(name);
if (histogram) {
original_samples_[name] = histogram->SnapshotSamples().release();
} else {
@@ -230,9 +231,9 @@ void URLRequestThrottlerEntryTest::CalculateHistogramDeltas() {
const char* name = kHistogramNames[i];
HistogramSamples* original = original_samples_[name];
- Histogram* histogram = StatisticsRecorder::FindHistogram(name);
+ HistogramBase* histogram = StatisticsRecorder::FindHistogram(name);
if (histogram) {
- ASSERT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
+ ASSERT_EQ(HistogramBase::kUmaTargetedHistogramFlag, histogram->flags());
scoped_ptr<HistogramSamples> samples(histogram->SnapshotSamples());
if (original)
« no previous file with comments | « net/socket_stream/socket_stream_metrics_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698