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