summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_network_transaction_unittest.cc')
-rw-r--r--net/http/http_network_transaction_unittest.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 3c4643e..45b3d79 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -12,7 +12,6 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
-#include "base/metrics/histogram.h"
#include "base/utf_string_conversions.h"
#include "net/base/auth.h"
#include "net/base/capturing_net_log.h"
@@ -334,34 +333,6 @@ static const char kExpectedNPNString[] = "\x08http/1.1\x06spdy/2";
static const char kAlternateProtocolHttpHeader[] =
"Alternate-Protocol: 443:npn-spdy/2\r\n\r\n";
-TEST_F(HttpNetworkTransactionTest, LogNumRttVsBytesMetrics_WarmestSocket) {
- MockRead data_reads[1000];
- data_reads[0] = MockRead("HTTP/1.0 200 OK\r\n\r\n");
- for (int i = 1; i < 999; i++) {
- data_reads[i] = MockRead("Gagan is a good boy!");
- }
- data_reads[999] = MockRead(false, OK);
-
- net::SetSocketReusePolicy(0);
- SimpleGetHelperResult out = SimpleGetHelper(data_reads,
- arraysize(data_reads));
-
- base::Histogram* histogram = NULL;
- base::StatisticsRecorder::FindHistogram(
- "Net.Num_RTT_vs_KB_warmest_socket_15KB", &histogram);
- CHECK(histogram);
-
- base::Histogram::SampleSet sample_set;
- histogram->SnapshotSample(&sample_set);
- EXPECT_EQ(1, sample_set.TotalCount());
-
- EXPECT_EQ(OK, out.rv);
- EXPECT_EQ("HTTP/1.0 200 OK", out.status_line);
-}
-
-// TODO(gagansingh): Add test for LogNumRttVsBytesMetrics_LastAccessSocket once
-// it is possible to clear histograms from previous tests.
-
TEST_F(HttpNetworkTransactionTest, Basic) {
SessionDependencies session_deps;
scoped_ptr<HttpTransaction> trans(