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

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

Issue 9958023: Properly handle spdy3 responses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_spdy3_unittest.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 4770 matching lines...) Expand 10 before | Expand all | Expand 10 after
4781 MockWrite spdy_writes[] = { 4781 MockWrite spdy_writes[] = {
4782 CreateMockWrite(*req, 0, ASYNC), 4782 CreateMockWrite(*req, 0, ASYNC),
4783 CreateMockWrite(*rst, 2, ASYNC), 4783 CreateMockWrite(*rst, 2, ASYNC),
4784 CreateMockWrite(*connect2, 3), 4784 CreateMockWrite(*connect2, 3),
4785 CreateMockWrite(*wrapped_get, 5) 4785 CreateMockWrite(*wrapped_get, 5)
4786 }; 4786 };
4787 4787
4788 // The proxy responds to the connect with a 407, using a persistent 4788 // The proxy responds to the connect with a 407, using a persistent
4789 // connection. 4789 // connection.
4790 const char* const kAuthChallenge[] = { 4790 const char* const kAuthChallenge[] = {
4791 "status", "407 Proxy Authentication Required", 4791 ":status", "407 Proxy Authentication Required",
4792 "version", "HTTP/1.1", 4792 ":version", "HTTP/1.1",
4793 "proxy-authenticate", "Basic realm=\"MyRealm1\"", 4793 "proxy-authenticate", "Basic realm=\"MyRealm1\"",
4794 }; 4794 };
4795 4795
4796 scoped_ptr<SpdyFrame> conn_auth_resp( 4796 scoped_ptr<SpdyFrame> conn_auth_resp(
4797 ConstructSpdyControlFrame(NULL, 4797 ConstructSpdyControlFrame(NULL,
4798 0, 4798 0,
4799 false, 4799 false,
4800 1, 4800 1,
4801 LOWEST, 4801 LOWEST,
4802 SYN_REPLY, 4802 SYN_REPLY,
(...skipping 4840 matching lines...) Expand 10 before | Expand all | Expand 10 after
9643 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); 9643 HttpStreamFactory::SetNextProtos(std::vector<std::string>());
9644 ClientSocketPoolManager::set_max_sockets_per_pool( 9644 ClientSocketPoolManager::set_max_sockets_per_pool(
9645 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_pool); 9645 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_pool);
9646 ClientSocketPoolManager::set_max_sockets_per_proxy_server( 9646 ClientSocketPoolManager::set_max_sockets_per_proxy_server(
9647 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_proxy_server); 9647 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_proxy_server);
9648 ClientSocketPoolManager::set_max_sockets_per_group( 9648 ClientSocketPoolManager::set_max_sockets_per_group(
9649 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_group); 9649 HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_group);
9650 } 9650 }
9651 9651
9652 } // namespace net 9652 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698