| OLD | NEW |
| 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" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 scoped_ptr<MockClientSocketFactory> socket_factory; | 366 scoped_ptr<MockClientSocketFactory> socket_factory; |
| 367 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; | 367 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; |
| 368 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; | 368 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; |
| 369 HttpServerPropertiesImpl http_server_properties; | 369 HttpServerPropertiesImpl http_server_properties; |
| 370 std::string trusted_spdy_proxy; | 370 std::string trusted_spdy_proxy; |
| 371 }; | 371 }; |
| 372 | 372 |
| 373 class SpdyURLRequestContext : public URLRequestContext { | 373 class SpdyURLRequestContext : public URLRequestContext { |
| 374 public: | 374 public: |
| 375 SpdyURLRequestContext(); | 375 SpdyURLRequestContext(); |
| 376 virtual ~SpdyURLRequestContext(); |
| 376 | 377 |
| 377 MockClientSocketFactory& socket_factory() { return socket_factory_; } | 378 MockClientSocketFactory& socket_factory() { return socket_factory_; } |
| 378 | 379 |
| 379 protected: | |
| 380 virtual ~SpdyURLRequestContext(); | |
| 381 | |
| 382 private: | 380 private: |
| 383 MockClientSocketFactory socket_factory_; | 381 MockClientSocketFactory socket_factory_; |
| 384 net::URLRequestContextStorage storage_; | 382 net::URLRequestContextStorage storage_; |
| 385 }; | 383 }; |
| 386 | 384 |
| 387 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); | 385 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); |
| 388 | 386 |
| 389 class SpdySessionPoolPeer { | 387 class SpdySessionPoolPeer { |
| 390 public: | 388 public: |
| 391 explicit SpdySessionPoolPeer(SpdySessionPool* pool) | 389 explicit SpdySessionPoolPeer(SpdySessionPool* pool) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 421 | 419 |
| 422 private: | 420 private: |
| 423 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); | 421 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); |
| 424 }; | 422 }; |
| 425 | 423 |
| 426 } // namespace test_spdy2 | 424 } // namespace test_spdy2 |
| 427 | 425 |
| 428 } // namespace net | 426 } // namespace net |
| 429 | 427 |
| 430 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ | 428 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ |
| OLD | NEW |