OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "net/quic/test_tools/quic_crypto_server_config_peer.h" | 5 #include "net/quic/test_tools/quic_crypto_server_config_peer.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #include "net/quic/test_tools/mock_clock.h" | 9 #include "net/quic/test_tools/mock_clock.h" |
10 #include "net/quic/test_tools/mock_random.h" | 10 #include "net/quic/test_tools/mock_random.h" |
11 #include "net/quic/test_tools/quic_test_utils.h" | 11 #include "net/quic/test_tools/quic_test_utils.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using std::pair; | 14 using std::pair; |
15 using std::string; | 15 using std::string; |
16 using std::vector; | 16 using std::vector; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 namespace test { | 19 namespace test { |
20 | 20 |
| 21 ProofSource* QuicCryptoServerConfigPeer::GetProofSource() { |
| 22 return server_config_->proof_source_.get(); |
| 23 } |
| 24 |
21 scoped_refptr<QuicCryptoServerConfig::Config> | 25 scoped_refptr<QuicCryptoServerConfig::Config> |
22 QuicCryptoServerConfigPeer::GetPrimaryConfig() { | 26 QuicCryptoServerConfigPeer::GetPrimaryConfig() { |
23 base::AutoLock locked(server_config_->configs_lock_); | 27 base::AutoLock locked(server_config_->configs_lock_); |
24 return scoped_refptr<QuicCryptoServerConfig::Config>( | 28 return scoped_refptr<QuicCryptoServerConfig::Config>( |
25 server_config_->primary_config_); | 29 server_config_->primary_config_); |
26 } | 30 } |
27 | 31 |
28 scoped_refptr<QuicCryptoServerConfig::Config> | 32 scoped_refptr<QuicCryptoServerConfig::Config> |
29 QuicCryptoServerConfigPeer::GetConfig(string config_id) { | 33 QuicCryptoServerConfigPeer::GetConfig(string config_id) { |
30 base::AutoLock locked(server_config_->configs_lock_); | 34 base::AutoLock locked(server_config_->configs_lock_); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 return server_config_->server_nonce_strike_register_max_entries_; | 203 return server_config_->server_nonce_strike_register_max_entries_; |
200 } | 204 } |
201 | 205 |
202 uint32_t | 206 uint32_t |
203 QuicCryptoServerConfigPeer::server_nonce_strike_register_window_secs() { | 207 QuicCryptoServerConfigPeer::server_nonce_strike_register_window_secs() { |
204 return server_config_->server_nonce_strike_register_window_secs_; | 208 return server_config_->server_nonce_strike_register_window_secs_; |
205 } | 209 } |
206 | 210 |
207 } // namespace test | 211 } // namespace test |
208 } // namespace net | 212 } // namespace net |
OLD | NEW |