| 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 #include "net/tools/quic/test_tools/quic_test_client.h" | 5 #include "net/tools/quic/test_tools/quic_test_client.h" |
| 6 | 6 |
| 7 #include "googleurl/src/gurl.h" | |
| 8 #include "net/base/completion_callback.h" | 7 #include "net/base/completion_callback.h" |
| 9 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
| 10 #include "net/cert/x509_certificate.h" | 9 #include "net/cert/x509_certificate.h" |
| 11 #include "net/quic/crypto/proof_verifier.h" | 10 #include "net/quic/crypto/proof_verifier.h" |
| 12 #include "net/tools/flip_server/balsa_headers.h" | 11 #include "net/tools/flip_server/balsa_headers.h" |
| 13 #include "net/tools/quic/test_tools/http_message_test_utils.h" | 12 #include "net/tools/quic/test_tools/http_message_test_utils.h" |
| 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 using std::string; | 15 using std::string; |
| 16 using std::vector; | 16 using std::vector; |
| 17 using base::StringPiece; | 17 using base::StringPiece; |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // RecordingProofVerifier accepts any certificate chain and records the common | 21 // RecordingProofVerifier accepts any certificate chain and records the common |
| 22 // name of the leaf. | 22 // name of the leaf. |
| 23 class RecordingProofVerifier : public net::ProofVerifier { | 23 class RecordingProofVerifier : public net::ProofVerifier { |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 stream_error_ = stream_->stream_error(); | 282 stream_error_ = stream_->stream_error(); |
| 283 connection_error_ = stream_->connection_error(); | 283 connection_error_ = stream_->connection_error(); |
| 284 bytes_read_ = stream_->stream_bytes_read(); | 284 bytes_read_ = stream_->stream_bytes_read(); |
| 285 bytes_written_ = stream_->stream_bytes_written(); | 285 bytes_written_ = stream_->stream_bytes_written(); |
| 286 stream_ = NULL; | 286 stream_ = NULL; |
| 287 } | 287 } |
| 288 | 288 |
| 289 } // namespace test | 289 } // namespace test |
| 290 } // namespace tools | 290 } // namespace tools |
| 291 } // namespace net | 291 } // namespace net |
| OLD | NEW |