| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <cstdint> | 6 #include <cstdint> |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 error_substr_(error_substr), | 284 error_substr_(error_substr), |
| 285 called_(called), | 285 called_(called), |
| 286 out_(out) { | 286 out_(out) { |
| 287 *called_ = false; | 287 *called_ = false; |
| 288 } | 288 } |
| 289 | 289 |
| 290 void Run( | 290 void Run( |
| 291 QuicErrorCode error, | 291 QuicErrorCode error, |
| 292 const string& error_details, | 292 const string& error_details, |
| 293 std::unique_ptr<CryptoHandshakeMessage> message, | 293 std::unique_ptr<CryptoHandshakeMessage> message, |
| 294 std::unique_ptr<DiversificationNonce> diversification_nonce) override { | 294 std::unique_ptr<DiversificationNonce> diversification_nonce, |
| 295 std::unique_ptr<ProofSource::Details> proof_source_details) override { |
| 295 if (should_succeed_) { | 296 if (should_succeed_) { |
| 296 ASSERT_EQ(error, QUIC_NO_ERROR) << "Message failed with error " | 297 ASSERT_EQ(error, QUIC_NO_ERROR) << "Message failed with error " |
| 297 << error_details << ": " | 298 << error_details << ": " |
| 298 << result_->client_hello.DebugString(); | 299 << result_->client_hello.DebugString(); |
| 299 } else { | 300 } else { |
| 300 ASSERT_NE(error, QUIC_NO_ERROR) << "Message didn't fail: " | 301 ASSERT_NE(error, QUIC_NO_ERROR) << "Message didn't fail: " |
| 301 << result_->client_hello.DebugString(); | 302 << result_->client_hello.DebugString(); |
| 302 | 303 |
| 303 EXPECT_TRUE(error_details.find(error_substr_) != string::npos) | 304 EXPECT_TRUE(error_details.find(error_substr_) != string::npos) |
| 304 << error_substr_ << " not in " << error_details; | 305 << error_substr_ << " not in " << error_details; |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); | 1281 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); |
| 1281 } else { | 1282 } else { |
| 1282 // version 33. | 1283 // version 33. |
| 1283 ASSERT_EQ(kSHLO, out_.tag()); | 1284 ASSERT_EQ(kSHLO, out_.tag()); |
| 1284 CheckServerHello(out_); | 1285 CheckServerHello(out_); |
| 1285 } | 1286 } |
| 1286 } | 1287 } |
| 1287 | 1288 |
| 1288 } // namespace test | 1289 } // namespace test |
| 1289 } // namespace net | 1290 } // namespace net |
| OLD | NEW |