| 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_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 QuicRstStreamErrorCode stream_error() { return stream_error_; } | 155 QuicRstStreamErrorCode stream_error() { return stream_error_; } |
| 156 QuicErrorCode connection_error(); | 156 QuicErrorCode connection_error(); |
| 157 | 157 |
| 158 MockableQuicClient* client(); | 158 MockableQuicClient* client(); |
| 159 | 159 |
| 160 // cert_common_name returns the common name value of the server's certificate, | 160 // cert_common_name returns the common name value of the server's certificate, |
| 161 // or the empty string if no certificate was presented. | 161 // or the empty string if no certificate was presented. |
| 162 const std::string& cert_common_name() const; | 162 const std::string& cert_common_name() const; |
| 163 | 163 |
| 164 // cert_sct returns the signed timestamp of the server's certificate, |
| 165 // or the empty string if no signed timestamp was presented. |
| 166 const std::string& cert_sct() const; |
| 167 |
| 164 // Get the server config map. | 168 // Get the server config map. |
| 165 QuicTagValueMap GetServerConfig() const; | 169 QuicTagValueMap GetServerConfig() const; |
| 166 | 170 |
| 167 void set_auto_reconnect(bool reconnect) { auto_reconnect_ = reconnect; } | 171 void set_auto_reconnect(bool reconnect) { auto_reconnect_ = reconnect; } |
| 168 | 172 |
| 169 void set_priority(QuicPriority priority) { priority_ = priority; } | 173 void set_priority(QuicPriority priority) { priority_ = priority; } |
| 170 | 174 |
| 171 // Sets client's FEC policy. This policy applies to the data stream(s), and | 175 // Sets client's FEC policy. This policy applies to the data stream(s), and |
| 172 // also to the headers and crypto streams. | 176 // also to the headers and crypto streams. |
| 173 void SetFecPolicy(FecPolicy fec_policy); | 177 void SetFecPolicy(FecPolicy fec_policy); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 250 |
| 247 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); | 251 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); |
| 248 }; | 252 }; |
| 249 | 253 |
| 250 } // namespace test | 254 } // namespace test |
| 251 | 255 |
| 252 } // namespace tools | 256 } // namespace tools |
| 253 } // namespace net | 257 } // namespace net |
| 254 | 258 |
| 255 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 259 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| OLD | NEW |