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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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_transaction.cc ('k') | net/http/http_proxy_client_socket_pool.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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 CaptureGroupNameSOCKSSocketPool; 555 CaptureGroupNameSOCKSSocketPool;
556 typedef CaptureGroupNameSocketPool<SSLClientSocketPool> 556 typedef CaptureGroupNameSocketPool<SSLClientSocketPool>
557 CaptureGroupNameSSLSocketPool; 557 CaptureGroupNameSSLSocketPool;
558 558
559 template<typename ParentPool> 559 template<typename ParentPool>
560 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool( 560 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool(
561 HostResolver* host_resolver, 561 HostResolver* host_resolver,
562 CertVerifier* /* cert_verifier */) 562 CertVerifier* /* cert_verifier */)
563 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {} 563 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {}
564 564
565 template<> 565 template <>
566 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool( 566 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool(
567 HostResolver* host_resolver, 567 HostResolver* host_resolver,
568 CertVerifier* /* cert_verifier */) 568 CertVerifier* /* cert_verifier */)
569 : HttpProxyClientSocketPool( 569 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL) {
570 0, 0, NULL, host_resolver, NULL, NULL, NULL, NULL) {} 570 }
571 571
572 template <> 572 template <>
573 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( 573 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool(
574 HostResolver* host_resolver, 574 HostResolver* host_resolver,
575 CertVerifier* cert_verifier) 575 CertVerifier* cert_verifier)
576 : SSLClientSocketPool(0, 576 : SSLClientSocketPool(0,
577 0, 577 0,
578 NULL, 578 NULL,
579 host_resolver, 579 host_resolver,
580 cert_verifier, 580 cert_verifier,
(...skipping 12667 matching lines...) Expand 10 before | Expand all | Expand 10 after
13248 EXPECT_EQ(ERR_IO_PENDING, rv); 13248 EXPECT_EQ(ERR_IO_PENDING, rv);
13249 13249
13250 rv = callback.WaitForResult(); 13250 rv = callback.WaitForResult();
13251 EXPECT_EQ(ERR_CONNECTION_RESET, rv); 13251 EXPECT_EQ(ERR_CONNECTION_RESET, rv);
13252 13252
13253 const HttpResponseInfo* response = trans->GetResponseInfo(); 13253 const HttpResponseInfo* response = trans->GetResponseInfo();
13254 EXPECT_TRUE(response == NULL); 13254 EXPECT_TRUE(response == NULL);
13255 } 13255 }
13256 13256
13257 } // namespace net 13257 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | net/http/http_proxy_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698