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

Side by Side Diff: net/spdy/spdy_test_util_spdy2.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_session_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.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 (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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 net::URLRequestContextStorage storage_; 384 net::URLRequestContextStorage storage_;
386 }; 385 };
387 386
388 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); 387 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type);
389 388
390 class SpdySessionPoolPeer { 389 class SpdySessionPoolPeer {
391 public: 390 public:
392 explicit SpdySessionPoolPeer(SpdySessionPool* pool) 391 explicit SpdySessionPoolPeer(SpdySessionPool* pool)
393 : pool_(pool) {} 392 : pool_(pool) {}
394 393
395 void AddAlias(const addrinfo* address, const HostPortProxyPair& pair) { 394 void AddAlias(const IPEndPoint& address, const HostPortProxyPair& pair) {
396 pool_->AddAlias(address, pair); 395 pool_->AddAlias(address, pair);
397 } 396 }
398 397
399 void RemoveAliases(const HostPortProxyPair& pair) { 398 void RemoveAliases(const HostPortProxyPair& pair) {
400 pool_->RemoveAliases(pair); 399 pool_->RemoveAliases(pair);
401 } 400 }
402 401
403 void RemoveSpdySession(const scoped_refptr<SpdySession>& session) { 402 void RemoveSpdySession(const scoped_refptr<SpdySession>& session) {
404 pool_->Remove(session); 403 pool_->Remove(session);
405 } 404 }
(...skipping 16 matching lines...) Expand all
422 421
423 private: 422 private:
424 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); 423 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper);
425 }; 424 };
426 425
427 } // namespace test_spdy2 426 } // namespace test_spdy2
428 427
429 } // namespace net 428 } // namespace net
430 429
431 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 430 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698