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

Side by Side Diff: net/spdy/spdy_test_util_spdy3.h

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | « net/spdy/spdy_test_util_spdy2.h ('k') | net/udp/udp_socket_libevent.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 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/base/mock_host_resolver.h" 12 #include "net/base/mock_host_resolver.h"
13 #include "net/base/request_priority.h" 13 #include "net/base/request_priority.h"
14 #include "net/base/ssl_config_service_defaults.h" 14 #include "net/base/ssl_config_service_defaults.h"
15 #include "net/base/sys_addrinfo.h"
16 #include "net/http/http_auth_handler_factory.h" 15 #include "net/http/http_auth_handler_factory.h"
17 #include "net/http/http_cache.h" 16 #include "net/http/http_cache.h"
18 #include "net/http/http_network_session.h" 17 #include "net/http/http_network_session.h"
19 #include "net/http/http_network_layer.h" 18 #include "net/http/http_network_layer.h"
20 #include "net/http/http_server_properties_impl.h" 19 #include "net/http/http_server_properties_impl.h"
21 #include "net/http/http_transaction_factory.h" 20 #include "net/http/http_transaction_factory.h"
22 #include "net/proxy/proxy_service.h" 21 #include "net/proxy/proxy_service.h"
23 #include "net/socket/socket_test_util.h" 22 #include "net/socket/socket_test_util.h"
24 #include "net/url_request/url_request_context.h" 23 #include "net/url_request/url_request_context.h"
25 #include "net/url_request/url_request_context_storage.h" 24 #include "net/url_request/url_request_context_storage.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 net::URLRequestContextStorage storage_; 385 net::URLRequestContextStorage storage_;
387 }; 386 };
388 387
389 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); 388 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type);
390 389
391 class SpdySessionPoolPeer { 390 class SpdySessionPoolPeer {
392 public: 391 public:
393 explicit SpdySessionPoolPeer(SpdySessionPool* pool) 392 explicit SpdySessionPoolPeer(SpdySessionPool* pool)
394 : pool_(pool) {} 393 : pool_(pool) {}
395 394
396 void AddAlias(const addrinfo* address, const HostPortProxyPair& pair) { 395 void AddAlias(const IPEndPoint& address, const HostPortProxyPair& pair) {
397 pool_->AddAlias(address, pair); 396 pool_->AddAlias(address, pair);
398 } 397 }
399 398
400 void RemoveAliases(const HostPortProxyPair& pair) { 399 void RemoveAliases(const HostPortProxyPair& pair) {
401 pool_->RemoveAliases(pair); 400 pool_->RemoveAliases(pair);
402 } 401 }
403 402
404 void RemoveSpdySession(const scoped_refptr<SpdySession>& session) { 403 void RemoveSpdySession(const scoped_refptr<SpdySession>& session) {
405 pool_->Remove(session); 404 pool_->Remove(session);
406 } 405 }
(...skipping 16 matching lines...) Expand all
423 422
424 private: 423 private:
425 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); 424 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper);
426 }; 425 };
427 426
428 } // namespace test_spdy3 427 } // namespace test_spdy3
429 428
430 } // namespace net 429 } // namespace net
431 430
432 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 431 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_spdy2.h ('k') | net/udp/udp_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698