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