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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 7255002: Revert 90373 - Warmth of a connection (cwnd) is estimated by the amount of data written to the so... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/http/http_network_transaction.cc ('k') | net/http/http_proxy_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction_unittest.cc
===================================================================
--- net/http/http_network_transaction_unittest.cc (revision 90388)
+++ net/http/http_network_transaction_unittest.cc (working copy)
@@ -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 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(
Property changes on: net/http/http_network_transaction_unittest.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | net/http/http_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698