OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/mock_host_resolver.h" | 10 #include "net/base/mock_host_resolver.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 virtual ~SpdyURLRequestContext() { | 372 virtual ~SpdyURLRequestContext() { |
373 delete http_transaction_factory_; | 373 delete http_transaction_factory_; |
374 delete http_auth_handler_factory_; | 374 delete http_auth_handler_factory_; |
375 } | 375 } |
376 | 376 |
377 private: | 377 private: |
378 MockClientSocketFactory socket_factory_; | 378 MockClientSocketFactory socket_factory_; |
379 scoped_refptr<SpdySessionPool> spdy_session_pool_; | 379 scoped_refptr<SpdySessionPool> spdy_session_pool_; |
380 }; | 380 }; |
381 | 381 |
382 // This creates a proxy for testing purposes. | |
383 // |proxy| should be in the form "myproxy:70". | |
384 ProxyService* SpdyCreateFixedProxyService(const std::string& proxy); | |
385 | |
386 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type); | 382 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type); |
387 } // namespace net | 383 } // namespace net |
388 | 384 |
389 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ | 385 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ |
OLD | NEW |