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

Side by Side Diff: net/http/http_network_transaction_unittest.cc

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)
Patch Set: self review Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_stream_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 14973 matching lines...) Expand 10 before | Expand all | Expand 10 after
14984 void PreconnectStreams(int num_streams, 14984 void PreconnectStreams(int num_streams,
14985 const HttpRequestInfo& info) override { 14985 const HttpRequestInfo& info) override {
14986 ADD_FAILURE(); 14986 ADD_FAILURE();
14987 } 14987 }
14988 14988
14989 const HostMappingRules* GetHostMappingRules() const override { 14989 const HostMappingRules* GetHostMappingRules() const override {
14990 ADD_FAILURE(); 14990 ADD_FAILURE();
14991 return NULL; 14991 return NULL;
14992 } 14992 }
14993 14993
14994 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
14995 const std::string& parent_absolute_name) const override {
14996 ADD_FAILURE();
14997 }
14998
14994 private: 14999 private:
14995 base::WeakPtr<FakeStreamRequest> last_stream_request_; 15000 base::WeakPtr<FakeStreamRequest> last_stream_request_;
14996 15001
14997 DISALLOW_COPY_AND_ASSIGN(FakeStreamFactory); 15002 DISALLOW_COPY_AND_ASSIGN(FakeStreamFactory);
14998 }; 15003 };
14999 15004
15000 // TODO(ricea): Maybe unify this with the one in 15005 // TODO(ricea): Maybe unify this with the one in
15001 // url_request_http_job_unittest.cc ? 15006 // url_request_http_job_unittest.cc ?
15002 class FakeWebSocketBasicHandshakeStream : public WebSocketHandshakeStreamBase { 15007 class FakeWebSocketBasicHandshakeStream : public WebSocketHandshakeStreamBase {
15003 public: 15008 public:
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
16507 base::RunLoop().RunUntilIdle(); 16512 base::RunLoop().RunUntilIdle();
16508 16513
16509 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); 16514 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy);
16510 HttpRequestHeaders headers; 16515 HttpRequestHeaders headers;
16511 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); 16516 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers));
16512 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); 16517 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding));
16513 } 16518 }
16514 #endif // !defined(OS_IOS) 16519 #endif // !defined(OS_IOS)
16515 16520
16516 } // namespace net 16521 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698