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

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

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked HaveAuth test Created 6 years, 3 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_proxy_client_socket.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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 template<typename ParentPool> 558 template<typename ParentPool>
559 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool( 559 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool(
560 HostResolver* host_resolver, 560 HostResolver* host_resolver,
561 CertVerifier* /* cert_verifier */) 561 CertVerifier* /* cert_verifier */)
562 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {} 562 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {}
563 563
564 template<> 564 template<>
565 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool( 565 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool(
566 HostResolver* host_resolver, 566 HostResolver* host_resolver,
567 CertVerifier* /* cert_verifier */) 567 CertVerifier* /* cert_verifier */)
568 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL) {} 568 : HttpProxyClientSocketPool(
569 0, 0, NULL, host_resolver, NULL, NULL, NULL, NULL) {}
569 570
570 template <> 571 template <>
571 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( 572 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool(
572 HostResolver* host_resolver, 573 HostResolver* host_resolver,
573 CertVerifier* cert_verifier) 574 CertVerifier* cert_verifier)
574 : SSLClientSocketPool(0, 575 : SSLClientSocketPool(0,
575 0, 576 0,
576 NULL, 577 NULL,
577 host_resolver, 578 host_resolver,
578 cert_verifier, 579 cert_verifier,
(...skipping 12625 matching lines...) Expand 10 before | Expand all | Expand 10 after
13204 EXPECT_EQ(ERR_IO_PENDING, rv); 13205 EXPECT_EQ(ERR_IO_PENDING, rv);
13205 13206
13206 rv = callback.WaitForResult(); 13207 rv = callback.WaitForResult();
13207 EXPECT_EQ(ERR_CONNECTION_RESET, rv); 13208 EXPECT_EQ(ERR_CONNECTION_RESET, rv);
13208 13209
13209 const HttpResponseInfo* response = trans->GetResponseInfo(); 13210 const HttpResponseInfo* response = trans->GetResponseInfo();
13210 EXPECT_TRUE(response == NULL); 13211 EXPECT_TRUE(response == NULL);
13211 } 13212 }
13212 13213
13213 } // namespace net 13214 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698