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

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
« no previous file with comments | « net/socket/client_socket_pool_histograms.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket_stream/socket_stream_metrics_unittest.cc
===================================================================
--- net/socket_stream/socket_stream_metrics_unittest.cc (revision 80382)
+++ net/socket_stream/socket_stream_metrics_unittest.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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;
« no previous file with comments | « net/socket/client_socket_pool_histograms.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698