Lines Matching refs:Histogram
6 #include "base/metrics/histogram.h"
12 using base::Histogram;
28 Histogram* histogram;
33 Histogram::SampleSet original;
35 "Net.SocketStream.ProtocolType", &histogram)) {
36 histogram->SnapshotSample(&original);
47 "Net.SocketStream.ProtocolType", &histogram));
48 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
50 Histogram::SampleSet sample;
51 histogram->SnapshotSample(&sample);
52 original.Resize(*histogram); // Ensure |original| size is same as |sample|.
60 Histogram* histogram;
63 Histogram::SampleSet original;
65 "Net.SocketStream.ConnectionType", &histogram)) {
66 histogram->SnapshotSample(&original);
80 "Net.SocketStream.ConnectionType", &histogram));
81 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
83 Histogram::SampleSet sample;
84 histogram->SnapshotSample(&sample);
85 original.Resize(*histogram);
94 Histogram* histogram;
102 Histogram::SampleSet original;
104 "Net.SocketStream.ReceivedBytes", &histogram)) {
105 histogram->SnapshotSample(&original);
109 "Net.SocketStream.ReceivedCounts", &histogram)) {
110 histogram->SnapshotSample(&original);
114 "Net.SocketStream.SentBytes", &histogram)) {
115 histogram->SnapshotSample(&original);
119 "Net.SocketStream.SentCounts", &histogram)) {
120 histogram->SnapshotSample(&original);
135 Histogram::SampleSet sample;
139 "Net.SocketStream.ConnectionLatency", &histogram));
140 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
141 // We don't check the contents of the histogram as it's time sensitive.
145 "Net.SocketStream.ConnectionEstablish", &histogram));
146 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
147 // We don't check the contents of the histogram as it's time sensitive.
151 "Net.SocketStream.Duration", &histogram));
152 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
153 // We don't check the contents of the histogram as it's time sensitive.
157 "Net.SocketStream.ReceivedBytes", &histogram));
158 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
159 histogram->SnapshotSample(&sample);
164 "Net.SocketStream.ReceivedCounts", &histogram));
165 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
166 histogram->SnapshotSample(&sample);
171 "Net.SocketStream.SentBytes", &histogram));
172 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
173 histogram->SnapshotSample(&sample);
178 "Net.SocketStream.SentCounts", &histogram));
179 EXPECT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags());
180 histogram->SnapshotSample(&sample);