| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 void DisableDomainAuthenticationVerification() { | 407 void DisableDomainAuthenticationVerification() { |
| 408 pool_->verify_domain_authentication_ = false; | 408 pool_->verify_domain_authentication_ = false; |
| 409 } | 409 } |
| 410 | 410 |
| 411 private: | 411 private: |
| 412 SpdySessionPool* const pool_; | 412 SpdySessionPool* const pool_; |
| 413 | 413 |
| 414 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); | 414 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); |
| 415 }; | 415 }; |
| 416 | 416 |
| 417 // Helper to manage the state of a number of SPDY global variables. |
| 418 class SpdyTestStateHelper { |
| 419 public: |
| 420 SpdyTestStateHelper(); |
| 421 ~SpdyTestStateHelper(); |
| 422 |
| 423 private: |
| 424 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); |
| 425 }; |
| 426 |
| 417 } // namespace test_spdy3 | 427 } // namespace test_spdy3 |
| 418 | 428 |
| 419 } // namespace net | 429 } // namespace net |
| 420 | 430 |
| 421 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ | 431 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ |
| OLD | NEW |