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

Unified Diff: net/socket_stream/socket_stream_metrics_unittest.cc

Issue 6780035: Use lock-free lazy initialization for static histogram references (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: net/socket_stream/socket_stream_metrics_unittest.cc
===================================================================
--- net/socket_stream/socket_stream_metrics_unittest.cc (revision 80220)
+++ net/socket_stream/socket_stream_metrics_unittest.cc (working copy)
@@ -25,7 +25,7 @@
}
TEST(SocketStreamMetricsTest, ProtocolType) {
- scoped_refptr<Histogram> histogram;
+ Histogram* histogram;
// First we'll preserve the original values. We need to do this
// as histograms can get affected by other tests. In particular,
@@ -57,7 +57,7 @@
}
TEST(SocketStreamMetricsTest, ConnectionType) {
- scoped_refptr<Histogram> histogram;
+ Histogram* histogram;
// First we'll preserve the original values.
Histogram::SampleSet original;
@@ -91,7 +91,7 @@
}
TEST(SocketStreamMetricsTest, OtherNumbers) {
- scoped_refptr<Histogram> histogram;
+ Histogram* histogram;
// First we'll preserve the original values.
int64 original_received_bytes = 0;

Powered by Google App Engine
This is Rietveld 408576698